|
|
|
@ -98,10 +98,10 @@ public class BussinessOriginTypeController {
|
|
|
|
|
}
|
|
|
|
|
if (bussinessTypeEntity != null) {
|
|
|
|
|
//校验单据类型代码是否重复
|
|
|
|
|
boolean exists = bussinessOriginTypeService.checkActionExists(bussinessTypeEntity.getAction(), bussinessTypeEntity.getThirdSys());
|
|
|
|
|
if (exists) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据类型已存在!");
|
|
|
|
|
}
|
|
|
|
|
// boolean exists = bussinessOriginTypeService.checkActionExists(bussinessTypeEntity.getAction(), bussinessTypeEntity.getThirdSys());
|
|
|
|
|
// if (exists) {
|
|
|
|
|
// return ResultVOUtils.error(500, "单据类型已存在!");
|
|
|
|
|
// }
|
|
|
|
|
bussinessTypeEntity.setUpdateTime(new Date());
|
|
|
|
|
bussinessOriginTypeService.updateBusOriginType(bussinessTypeEntity);
|
|
|
|
|
} else {
|
|
|
|
|