Merge remote-tracking branch 'origin/master'

master
philip 3 years ago
commit c15ca9d55d

@ -506,7 +506,11 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
String local = LocaleContextHolder.getLocale().getLanguage(); String local = LocaleContextHolder.getLocale().getLanguage();
abnormalBillDispose.setHandle(HandleEnum.ABNORMAL_BILL_DISPOSE.getHandle(site,abnormalBill.getAbnormalNo())); abnormalBillDispose.setHandle(HandleEnum.ABNORMAL_BILL_DISPOSE.getHandle(site,abnormalBill.getAbnormalNo()));
abnormalBill.setStatus(Constants.SHUT_DOWN); if(!StringUtil.isBlank(abnormalBill.getStatus())){
abnormalBill.setStatus(abnormalBill.getStatus());
}else{
abnormalBill.setStatus(Constants.SHUT_DOWN);
}
abnormalBillDispose.setClosedUser(user); abnormalBillDispose.setClosedUser(user);
abnormalBillDispose.setClosedDateTime(now); abnormalBillDispose.setClosedDateTime(now);
// this.anomalyCreatedAndSendMessage(abnormalBill,abnormalBillDispose); // this.anomalyCreatedAndSendMessage(abnormalBill,abnormalBillDispose);

@ -86,17 +86,17 @@ public class SystemJobController {
* @param systemJobDTO * @param systemJobDTO
* @return null * @return null
*/ */
@PostMapping @PostMapping("/save")
public R save(@RequestBody SystemJobDTO systemJobDTO) { public R save(@RequestBody SystemJobDTO systemJobDTO) {
return R.ok(systemJobService.save(systemJobDTO)); return R.ok(systemJobService.save(systemJobDTO));
} }
/** /**
* *
* @param systemJob * @param systemJobDTO
* @return null * @return null
*/ */
@PutMapping @PostMapping("/update")
public R updateById(@RequestBody SystemJobDTO systemJobDTO) { public R updateById(@RequestBody SystemJobDTO systemJobDTO) {
return R.ok(systemJobService.updateById(systemJobDTO)); return R.ok(systemJobService.updateById(systemJobDTO));
} }
@ -107,8 +107,8 @@ public class SystemJobController {
* @return 0 1 * @return 0 1
*/ */
@ResponseBody @ResponseBody
@RequestMapping(method = RequestMethod.DELETE, value = "/{id:.+}") @GetMapping("/delete")
public R removeById(@PathVariable("id") String id){ public R removeById(String id){
return R.ok(systemJobService.removeById(id)); return R.ok(systemJobService.removeById(id));
} }

Loading…
Cancel
Save