|
@ -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); |
|
|
} |
|
|
} |
|
|