| | |
| | | |
| | | @ApiOperation(value = "社区共建项目删除") |
| | | @DeleteMapping("/expurgateNewFightCommunityData") |
| | | public R expurgateNewFightCommunityData(@RequestParam("id") String id) |
| | | public R expurgateNewFightCommunityData(@RequestParam(value = "id", required = false) String id, |
| | | @RequestParam(value = "taskId", required = false) String taskId, |
| | | @RequestParam(value = "userId", required = false) String userId) |
| | | { |
| | | return newStriveForFeign.expurgateNewFightCommunityData(id); |
| | | return newStriveForFeign.expurgateNewFightCommunityData(id,taskId,userId); |
| | | } |
| | | |
| | | |
| | |
| | | public R editNewFightCommunityData(@RequestBody NewFightCommunityConstructionDTO item); |
| | | |
| | | @DeleteMapping("/NewFightCommunity/expurgateNeedClaimData") |
| | | public R expurgateNewFightCommunityData(@RequestParam("id") String id); |
| | | public R expurgateNewFightCommunityData(@RequestParam(value = "id", required = false) String id, |
| | | @RequestParam(value = "taskId", required = false) String taskId, |
| | | @RequestParam(value = "userId", required = false) String userId); |
| | | |
| | | |
| | | /************************************************************************************************************** |
| | |
| | | |
| | | @DeleteMapping("/NewFightCommunity/expurgateEvaluateData") |
| | | public R expurgateEvaluateData(@RequestParam("id") String id); |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/expurgateNeedClaimData") |
| | | public R expurgateNeedClaimData(@RequestParam("id") String id) |
| | | public R expurgateNeedClaimData(@RequestParam(value = "id", required = false) String id, |
| | | @RequestParam(value = "taskId", required = false) String taskId, |
| | | @RequestParam(value = "userId", required = false) String userId) |
| | | { |
| | | return claimService.expurgateData(id); |
| | | return claimService.expurgateData(id,taskId,userId); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | int editData(@Param("item") NeedProblemClaimDTO userId); |
| | | |
| | | int expurgateData(@Param("id") String id); |
| | | int expurgateData(@Param("id") String id, |
| | | @Param("taskId") String taskId, |
| | | @Param("userId") String userId); |
| | | |
| | | int getJionNum(@Param("taskId") String taskId, |
| | | @Param("userId") String userId); |
| | |
| | | |
| | | R editData(NeedProblemClaimDTO item); |
| | | |
| | | R expurgateData(String id); |
| | | R expurgateData(String id,String taskId,String userId); |
| | | |
| | | int getJionNum(String taskId,String userId); |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R expurgateData(String id) |
| | | public R expurgateData(String id,String taskId,String userId) |
| | | { |
| | | //报名信息 |
| | | NeedProblemClaimDTO claimDTO=baseMapper.getDetails(id); |
| | |
| | | return R.fail("任务已开始!不能取消"); |
| | | } |
| | | |
| | | int num=baseMapper.expurgateData(id); |
| | | int num=baseMapper.expurgateData(id, taskId, userId); |
| | | if(num>0) |
| | | { |
| | | return R.ok(); |
| | |
| | | </update> |
| | | |
| | | <delete id="expurgateData" parameterType="String"> |
| | | delete from new_fight_need_problem_claim where id=#{id} |
| | | delete from new_fight_need_problem_claim |
| | | <where> |
| | | 1=1 |
| | | <if test="id!=null and id != '' "> |
| | | and id=#{id} |
| | | </if> |
| | | <if test="userId !=null and userId != '' "> |
| | | and user_id=#{userId} |
| | | </if> |
| | | <if test="taskId !=null and taskId != '' "> |
| | | and task_id=#{taskId} |
| | | </if> |
| | | </where> |
| | | </delete> |
| | | |
| | | <select id="getJionNum" resultType="int"> |