Commit 4acfa4d9 by “zcwang”

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

parent e8076bd6
Pipeline #43487 passed with stages
in 1 minute 23 seconds
......@@ -594,8 +594,8 @@ public class ChangeFlowBiz {
.changeProfitDesc(changeRecord.getChangeProfitDesc()).files(changeFileList).build();
}
public ChangeFlowVO detail(Long id) {
ChangeRecord changeRecord = changeFlowService.getById(id);
public ChangeFlowVO detail(Long flowId) {
ChangeRecord changeRecord = changeFlowService.getByFlowId(flowId);
if (changeRecord == null) {
throw ExceptionFactory.createBiz(ResponseCode.ERROR_FLOW_ID, "工单id不存在");
}
......
......@@ -22,7 +22,7 @@ import com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeFlowListQueryReq
@Mapper
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);
List<ChangeRecord> selectByCondition(ChangeFlowListQueryReq changeFlowListQueryReq);
......
......@@ -18,7 +18,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Autowired
private AdminUserLoginInterceptor adminUserLoginInterceptor;
/**
/**`
* 拦截器配置
*
* @param registry
......
......@@ -17,7 +17,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
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.config.TitleConfig;
import com.netease.mail.yanxuan.change.biz.service.ChangeFlowService;
......@@ -62,8 +61,8 @@ public class ChangeFlowController {
* @return
*/
@GetMapping("/detail")
public AjaxResult<ChangeFlowVO> detail(@RequestParam Long id) {
return AjaxResult.success(changeFlowBiz.detail(id));
public AjaxResult<ChangeFlowVO> detail(@RequestParam Long flowId) {
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