|
|
|
@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@ -94,6 +95,7 @@ public class BussinessOriginTypeController {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
|
|
|
|
|
}
|
|
|
|
|
if (bussinessTypeEntity != null) {
|
|
|
|
|
bussinessTypeEntity.setUpdateTime(new Date());
|
|
|
|
|
bussinessOriginTypeService.updateBusOriginType(bussinessTypeEntity);
|
|
|
|
|
} else {
|
|
|
|
|
ResultVOUtils.error(999, "参数错误");
|
|
|
|
@ -113,6 +115,7 @@ public class BussinessOriginTypeController {
|
|
|
|
|
if (bussinessOriginTypeEntity != null) {
|
|
|
|
|
return ResultVOUtils.error(500, "单据类型已存在!");
|
|
|
|
|
}
|
|
|
|
|
bussinessTypeEntity.setUpdateTime(new Date());
|
|
|
|
|
bussinessOriginTypeService.insertBusOriginType(bussinessTypeEntity);
|
|
|
|
|
} else {
|
|
|
|
|
return ResultVOUtils.error(999, "参数错误");
|
|
|
|
|