|
@@ -573,13 +573,13 @@ public class MeterWorkRailwayActFirstServiceImpl extends BaseServiceImpl<MeterWo
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void ckeckcar(MeterWorkRailwayActFirst model) throws MarkerMetException {
|
|
private void ckeckcar(MeterWorkRailwayActFirst model) throws MarkerMetException {
|
|
|
- if (model.getActualFirstNo() == null || "".equals(model.getActualFirstNo())) {
|
|
|
|
|
|
|
+ if (StringUtils.isEmpty(model.getActualFirstNo())) {
|
|
|
throw new MarkerMetException(500, "操作数据主键不能为空");
|
|
throw new MarkerMetException(500, "操作数据主键不能为空");
|
|
|
}
|
|
}
|
|
|
if (model.getValueFlag() == "2") {
|
|
if (model.getValueFlag() == "2") {
|
|
|
throw new MarkerMetException(500, "已经结净的数据不能进行修改");
|
|
throw new MarkerMetException(500, "已经结净的数据不能进行修改");
|
|
|
}
|
|
}
|
|
|
- if (model.getPredictionNo() != null || "".equals(model.getPredictionNo())) {
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(model.getPredictionNo())) {
|
|
|
throw new MarkerMetException(500, "已经匹配委托的数据无法修改车号!!");
|
|
throw new MarkerMetException(500, "已经匹配委托的数据无法修改车号!!");
|
|
|
}
|
|
}
|
|
|
if (model.getRailwayNo() == null || model.getRailwayNo().equals("")) {
|
|
if (model.getRailwayNo() == null || model.getRailwayNo().equals("")) {
|