|
|
|
@ -102,10 +102,10 @@ public class ThrBusTypeOriginController {
|
|
|
|
|
}
|
|
|
|
|
if (thrBusTypeOriginEntity != null) {
|
|
|
|
|
//校验单据类型代码是否重复
|
|
|
|
|
boolean exists = thrBusTypeOriginService.checkActionExists(thrBusTypeOriginEntity.getAction(), thrBusTypeOriginEntity.getThirdSys());
|
|
|
|
|
if (exists) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据类型已存在!");
|
|
|
|
|
}
|
|
|
|
|
// boolean exists = thrBusTypeOriginService.checkActionExists(thrBusTypeOriginEntity.getAction(), thrBusTypeOriginEntity.getThirdSys());
|
|
|
|
|
// if (exists) {
|
|
|
|
|
// return ResultVOUtils.error(500, "单据类型已存在!");
|
|
|
|
|
// }
|
|
|
|
|
thrBusTypeOriginService.updateBusOriginType(thrBusTypeOriginEntity);
|
|
|
|
|
} else {
|
|
|
|
|
ResultVOUtils.error(999, "参数错误");
|
|
|
|
|