|
@@ -1,10 +1,12 @@
|
|
|
package com.qmth.sop.server.api;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.boot.api.exception.ApiException;
|
|
|
import com.qmth.sop.business.bean.result.EditResult;
|
|
|
import com.qmth.sop.business.entity.TBCrmDetail;
|
|
|
import com.qmth.sop.business.service.TBCrmDetailService;
|
|
|
+import com.qmth.sop.business.service.TBCrmService;
|
|
|
import com.qmth.sop.common.annotation.OperationLog;
|
|
|
import com.qmth.sop.common.contant.SystemConstant;
|
|
|
import com.qmth.sop.common.enums.ExceptionResultEnum;
|
|
@@ -45,11 +47,15 @@ public class TBCrmDetailController {
|
|
|
@Resource
|
|
|
TBCrmDetailService tbCrmDetailService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ TBCrmService tbCrmService;
|
|
|
+
|
|
|
@ApiOperation(value = "获取派单信息")
|
|
|
@RequestMapping(value = "/sop/var/info", method = RequestMethod.POST)
|
|
|
+ @OperationLog(logType = LogTypeEnum.SEARCH)
|
|
|
@ApiResponses({ @ApiResponse(code = 200, message = "派单信息", response = EditResult.class) })
|
|
|
public Result info(@ApiParam(value = "派单号", required = true) @RequestParam String crmNo) {
|
|
|
- return ResultUtil.ok(true);
|
|
|
+ return ResultUtil.ok(tbCrmService.findCrmProjectBySopNoOrCrmNo(null, crmNo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "派单明细sop变量保存")
|
|
@@ -68,7 +74,7 @@ public class TBCrmDetailController {
|
|
|
public Result sopInfo(@ApiParam(value = "派单号", required = true) @RequestParam String crmNo,
|
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
- return ResultUtil.ok(true);
|
|
|
+ return ResultUtil.ok(tbCrmDetailService.list(new Page<>(pageNumber, pageSize), crmNo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "创建/编辑派单明细sop")
|