Browse Source

去除多余新增

develop
wangsixiang 4 months ago
parent
commit
38bb3199a1
  1. 2
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

2
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -889,7 +889,7 @@ public class DcWarningServiceImpl implements IDcWarningService
@Override @Override
public Integer insertDispatch(DcDispatch dcDispatch) { public Integer insertDispatch(DcDispatch dcDispatch) {
if (dcDispatch.getId()==null){ //id为空说明新增 if (dcDispatch.getId()==null){ //id为空说明新增
return dcWarningMapper.insertDcDispatch(dcDispatch); return null;
} }
return dcWarningMapper.updateDcDispatch(dcDispatch); return dcWarningMapper.updateDcDispatch(dcDispatch);
} }

Loading…
Cancel
Save