Commit 4acfa4d9 by “zcwang”

add: 工单详情入参修改工单id

parent e8076bd6
...@@ -594,8 +594,8 @@ public class ChangeFlowBiz { ...@@ -594,8 +594,8 @@ public class ChangeFlowBiz {
.changeProfitDesc(changeRecord.getChangeProfitDesc()).files(changeFileList).build(); .changeProfitDesc(changeRecord.getChangeProfitDesc()).files(changeFileList).build();
} }
public ChangeFlowVO detail(Long id) { public ChangeFlowVO detail(Long flowId) {
ChangeRecord changeRecord = changeFlowService.getById(id); ChangeRecord changeRecord = changeFlowService.getByFlowId(flowId);
if (changeRecord == null) { if (changeRecord == null) {
throw ExceptionFactory.createBiz(ResponseCode.ERROR_FLOW_ID, "工单id不存在"); throw ExceptionFactory.createBiz(ResponseCode.ERROR_FLOW_ID, "工单id不存在");
} }
......
...@@ -22,7 +22,7 @@ import com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowListQueryReq ...@@ -22,7 +22,7 @@ import com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowListQueryReq
@Mapper @Mapper
public interface ChangeRecordMapper extends tk.mybatis.mapper.common.Mapper<ChangeRecord> { public interface ChangeRecordMapper extends tk.mybatis.mapper.common.Mapper<ChangeRecord> {
@Select("select * from TB_YX_QC_CHANGE_RECORD where `flow_id` = #{flowId}") @Select("select * from TB_YX_QC_CHANGE_RECORD where `flow_id` = #{flowId} limit 1")
ChangeRecord selectByFlowId(@Param("flowId") Long flowId); ChangeRecord selectByFlowId(@Param("flowId") Long flowId);
List<ChangeRecord> selectByCondition(ChangeFlowListQueryReq changeFlowListQueryReq); List<ChangeRecord> selectByCondition(ChangeFlowListQueryReq changeFlowListQueryReq);
......
...@@ -18,7 +18,7 @@ public class WebMvcConfig implements WebMvcConfigurer { ...@@ -18,7 +18,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Autowired @Autowired
private AdminUserLoginInterceptor adminUserLoginInterceptor; private AdminUserLoginInterceptor adminUserLoginInterceptor;
/** /**`
* 拦截器配置 * 拦截器配置
* *
* @param registry * @param registry
......
...@@ -17,7 +17,6 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -17,7 +17,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.github.pagehelper.PageInfo;
import com.netease.mail.yanxuan.change.biz.biz.ChangeFlowBiz; import com.netease.mail.yanxuan.change.biz.biz.ChangeFlowBiz;
import com.netease.mail.yanxuan.change.biz.config.TitleConfig; import com.netease.mail.yanxuan.change.biz.config.TitleConfig;
import com.netease.mail.yanxuan.change.biz.service.ChangeFlowService; import com.netease.mail.yanxuan.change.biz.service.ChangeFlowService;
...@@ -62,8 +61,8 @@ public class ChangeFlowController { ...@@ -62,8 +61,8 @@ public class ChangeFlowController {
* @return * @return
*/ */
@GetMapping("/detail") @GetMapping("/detail")
public AjaxResult<ChangeFlowVO> detail(@RequestParam Long id) { public AjaxResult<ChangeFlowVO> detail(@RequestParam Long flowId) {
return AjaxResult.success(changeFlowBiz.detail(id)); return AjaxResult.success(changeFlowBiz.detail(flowId));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment