| | |
| | | |
| | | @ApiOperation(value = "任务报名详情", response = NeedProblemClaimDTO.class) |
| | | @GetMapping("/getNeedClaimDetails") |
| | | public R getNeedClaimDetails(@RequestParam("id") String id) |
| | | public R getNeedClaimDetails(@RequestParam(value = "id", required = false) String id, |
| | | @RequestParam(value = "taskId", required = false) String taskId, |
| | | @RequestParam(value = "userId", required = false) String userId) |
| | | { |
| | | return newStriveForFeign.getNeedClaimDetails(id); |
| | | return newStriveForFeign.getNeedClaimDetails(id,taskId,userId); |
| | | } |
| | | |
| | | @ApiOperation(value = "任务报名") |
| | |
| | | @RequestParam(value = "unitId", required = false) String unitId); |
| | | |
| | | @GetMapping("/NeedClaim/getNeedClaimDetails") |
| | | public R getNeedClaimDetails(@RequestParam("id") String id); |
| | | public R getNeedClaimDetails(@RequestParam(value = "id", required = false) String id, |
| | | @RequestParam(value = "taskId", required = false) String taskId, |
| | | @RequestParam(value = "userId", required = false) String userId); |
| | | |
| | | @PostMapping("/NeedClaim/addNeedClaimData") |
| | | public R addNeedClaimData(@RequestBody NeedProblemClaimDTO item); |
| | |
| | | } |
| | | |
| | | @GetMapping("/getNeedClaimDetails") |
| | | public R getNeedClaimDetails(@RequestParam("id") String id) |
| | | public R getNeedClaimDetails(@RequestParam(value = "id", required = false) String id, |
| | | @RequestParam(value = "taskId", required = false) String taskId, |
| | | @RequestParam(value = "userId", required = false) String userId) |
| | | { |
| | | return R.ok(claimService.getDetails(id)); |
| | | return R.ok(claimService.getDetails(id, taskId, userId)); |
| | | } |
| | | |
| | | @PostMapping("/addNeedClaimData") |
| | |
| | | @Param("userId") String userId, |
| | | @Param("unitId") String unitId); |
| | | |
| | | NeedProblemClaimDTO getDetails(@Param("id")String id); |
| | | NeedProblemClaimDTO getDetails(@Param("id")String id, |
| | | @Param("taskId") String taskId, |
| | | @Param("userId") String userId); |
| | | |
| | | |
| | | NeedProblemClaimDTO getUserIdDetails(@Param("taskId") String taskId, |
| | |
| | | |
| | | List<NeedProblemClaimDTO> getList(String taskId, String userId, String unitId); |
| | | |
| | | NeedProblemClaimDTO getDetails(String id); |
| | | NeedProblemClaimDTO getDetails(String id,String taskId,String userId); |
| | | |
| | | R addData(NeedProblemClaimDTO item); |
| | | |
| | |
| | | import com.panzhihua.service_dangjian.dao.NeedProblemClaimDAO; |
| | | import com.panzhihua.service_dangjian.service.NeedProblemClaimService; |
| | | import com.panzhihua.service_dangjian.service.NeedProblemInventoryService; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public NeedProblemClaimDTO getDetails(String id) { |
| | | return baseMapper.getDetails(id); |
| | | public NeedProblemClaimDTO getDetails(String id,String taskId, String userId) { |
| | | return baseMapper.getDetails(id,taskId,userId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | public R expurgateData(String id,String taskId,String userId) |
| | | { |
| | | //报名信息 |
| | | NeedProblemClaimDTO claimDTO=baseMapper.getDetails(id); |
| | | NeedProblemClaimDTO claimDTO=baseMapper.getDetails(id,taskId,userId); |
| | | NeedProblemInventoryDTO inventoryDTO=inventoryService.getDetails(claimDTO.getTaskId(),claimDTO.getUserId()); |
| | | long times=System.currentTimeMillis(); |
| | | |
| | |
| | | <if test="id !=null and id != '' "> |
| | | and nfnpc.id =#{id} |
| | | </if> |
| | | <if test="taskId !=null and taskId != '' "> |
| | | and nfnpc.task_id =#{taskId} |
| | | </if> |
| | | <if test="userId !=null and userId != '' "> |
| | | and nfnpc.user_id =#{userId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |