|
|
@@ -474,7 +474,7 @@ public class StepWorkServiceImpl implements StepWorkService {
|
|
|
Map<Object, Object> rmap = new HashMap<>();
|
|
|
if ("FAIL".equals(result) && StringUtil.hasText(failureCode)) {
|
|
|
//将历史的不良记录更新状态
|
|
|
- baseDao.execute("update makebad set mb_status=-1 where mb_sncode=? and mb_makecode=? and mb_stepcode=? and mb_status=0", sncode, macode);
|
|
|
+ baseDao.execute("update makebad set mb_status=-1 where mb_sncode=? and mb_makecode=? and mb_stepcode=? and mb_status=0", sncode, macode,msstepcode);
|
|
|
|
|
|
if("GX0030".equals(stepcode)) { //只是这道工序需要这样
|
|
|
int cn = baseDao.getJdbcTemplate().queryForObject(" select count(1) from MAKEBADCOUNT_USING " +
|