代码更新

This commit is contained in:
2023-02-21 10:19:17 +08:00
parent 38f9733c9c
commit 5153b9e903
5 changed files with 42 additions and 6 deletions

View File

@@ -153,4 +153,11 @@ public class CheckController {
checkService.disposeConfirm(whereJson);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
}
@PostMapping("/confirmBtn")
@Log("强制确认")
@ApiOperation("强制确认")
public ResponseEntity<Object> confirmBtn(@RequestBody JSONObject whereJson) {
checkService.confirmBtn(whereJson);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
}
}

View File

@@ -119,4 +119,9 @@ public interface CheckService {
* 新增全部在库木箱
*/
void allInsert(JSONObject whereJson);
/**
* 强制确认
*/
void confirmBtn(JSONObject whereJson);
}

View File

@@ -808,4 +808,15 @@ public class CheckServiceImpl implements CheckService {
dtlTab.insert(jsonDtl);
}
}
@Override
@Transactional(rollbackFor = Exception.class)
public void confirmBtn(JSONObject whereJson) {
WQLObject mstTab = WQLObject.getWQLObject("ST_IVT_CheckMst");
JSONObject jsonMst = mstTab.query("check_id = '" + whereJson.getString("check_id") + "'").uniqueResult(0);
jsonMst.put("status", "99");
mstTab.update(jsonMst);
}
}