|
@@ -94,11 +94,16 @@ public class SyCostAllocationController {
|
|
|
public Result<?> queryByPlanNum(@RequestParam(name = "plannum", required = true) String plannum,
|
|
|
@RequestParam(name = "type", required = true) String type) {
|
|
|
SyCostAllocation syCostAllocation=new SyCostAllocation();
|
|
|
+ Result result = new Result();
|
|
|
if (oConvertUtils.isEmpty(plannum)) {
|
|
|
throw new JeecgBootException("计划号不能为空!");
|
|
|
}
|
|
|
if(type.equals("query")){
|
|
|
syCostAllocation=syCostAllocationService.queryByPlanNum(plannum,type);
|
|
|
+ if(syCostAllocation==null){
|
|
|
+ result.setMessage("查找不到数据");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}else if(type.equals("add")){
|
|
|
|
|
|
}
|