| | |
| | | @GetMapping("/NeedProblem/getList") |
| | | public R getNeedProblemList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "search", required = false)String search, |
| | | @RequestParam(value = "status", required = false)String status, |
| | | @RequestParam(value = "kind", required = false)String kind, |
| | | @RequestParam(value = "userId", required = false)String userId) |
| | | { |
| | | return newStriveForFeign.getNeedProblemList(pageNum,pageSize,kind,userId,getCommunityId()+""); |
| | | return newStriveForFeign.getNeedProblemList(pageNum,pageSize,search,status,kind,userId,getCommunityId()+""); |
| | | } |
| | | |
| | | |
| | |
| | | @GetMapping("/getMyJoinNeedProblemList") |
| | | public R getMyJoinNeedProblemList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "search", required = false)String search, |
| | | @RequestParam(value = "status", required = false)String status, |
| | | @RequestParam(value = "kind", required = false)String kind) |
| | | { |
| | | return newStriveForFeign.getMyJoinNeedProblemList(pageNum,pageSize,kind,getUserId()+""); |
| | | return newStriveForFeign.getMyJoinNeedProblemList(pageNum,pageSize,search,status,kind,getUserId()+""); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | @ApiModelProperty("创建人id") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty("状态 (1认领中 2进行中 3已完成)") |
| | | private String status; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | @GetMapping("/NeedProblem/getList") |
| | | public R getNeedProblemList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "search", required = false)String search, |
| | | @RequestParam(value = "status", required = false)String status, |
| | | @RequestParam(value = "kind", required = false)String kind, |
| | | @RequestParam(value = "userId", required = false)String userId, |
| | | @RequestParam(value = "communityId", required = false)String communityId); |
| | |
| | | @GetMapping("/NeedProblem/getMyJoinNeedProblemList") |
| | | public R getMyJoinNeedProblemList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "search", required = false)String search, |
| | | @RequestParam(value = "status", required = false)String status, |
| | | @RequestParam(value = "kind", required = false)String kind, |
| | | @RequestParam(value = "userId", required = false)String userId); |
| | | |
| | |
| | | @GetMapping("/getList") |
| | | public R getNeedProblemList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "search", required = false)String search, |
| | | @RequestParam(value = "status", required = false)String status, |
| | | @RequestParam(value = "kind", required = false)String kind, |
| | | @RequestParam(value = "userId", required = false)String userId, |
| | | @RequestParam(value = "communityId", required = false)String communityId) |
| | | { |
| | | return R.ok(inventoryService.getList(pageNum,pageSize,kind,userId,communityId)); |
| | | return R.ok(inventoryService.getList(pageNum,pageSize,search,status,kind,userId,communityId)); |
| | | } |
| | | |
| | | @GetMapping("/getMyJoinNeedProblemList") |
| | | public R getMyJoinNeedProblemList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "kind", required = false)String kind, |
| | | @RequestParam(value = "userId", required = false)String userId) |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "search", required = false) String search, |
| | | @RequestParam(value = "status", required = false) String status, |
| | | @RequestParam(value = "kind", required = false) String kind, |
| | | @RequestParam(value = "userId", required = false)String userId) |
| | | { |
| | | return R.ok(inventoryService.getMyJoinList(pageNum,pageSize,kind,userId)); |
| | | return R.ok(inventoryService.getMyJoinList(pageNum,pageSize,search,status,kind,userId)); |
| | | } |
| | | |
| | | @GetMapping("/getDetails") |
| | |
| | | public interface NeedProblemInventoryDAO extends BaseMapper<NeedProblemInventoryDTO> |
| | | { |
| | | |
| | | IPage<NeedProblemInventoryDTO> getList(Page page,@Param("kind") String kind, |
| | | @Param("userId") String userId, |
| | | @Param("communityId") String communityId); |
| | | IPage<NeedProblemInventoryDTO> getList(Page page, |
| | | @Param("search") String search, |
| | | @Param("status") String status, |
| | | @Param("kind") String kind, |
| | | @Param("userId") String userId, |
| | | @Param("communityId") String communityId); |
| | | |
| | | IPage<NeedProblemInventoryDTO> getMyJoinList(Page page,@Param("kind") String kind, |
| | | @Param("userId") String userId); |
| | | IPage<NeedProblemInventoryDTO> getMyJoinList(Page page, |
| | | @Param("search") String search, |
| | | @Param("status") String status, |
| | | @Param("kind") String kind, |
| | | @Param("userId") String userId); |
| | | |
| | | NeedProblemInventoryDTO getDetails(@Param("id")String id); |
| | | |
| | |
| | | public interface NeedProblemInventoryService |
| | | { |
| | | |
| | | IPage<NeedProblemInventoryDTO> getList(int pageNum, int pageSize, String kind,String userId,String communityId); |
| | | IPage<NeedProblemInventoryDTO> getList(int pageNum, int pageSize, |
| | | String search,String status, |
| | | String kind,String userId,String communityId); |
| | | |
| | | IPage<NeedProblemInventoryDTO> getMyJoinList(int pageNum, int pageSize, String kind,String userId); |
| | | IPage<NeedProblemInventoryDTO> getMyJoinList(int pageNum, int pageSize, |
| | | String search,String status, |
| | | String kind,String userId); |
| | | |
| | | NeedProblemInventoryDTO getDetails(String id); |
| | | |
| | |
| | | |
| | | |
| | | @Override |
| | | public IPage<NeedProblemInventoryDTO> getList(int pageNum, int pageSize, String kind, String userId,String communityId) |
| | | public IPage<NeedProblemInventoryDTO> getList(int pageNum, int pageSize,String search,String status, String kind, String userId,String communityId) |
| | | { |
| | | Page page = new Page<>(pageNum,pageSize); |
| | | return baseMapper.getList(page,kind,userId,communityId); |
| | | return baseMapper.getList(page, search, status,kind,userId,communityId); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<NeedProblemInventoryDTO> getMyJoinList(int pageNum, int pageSize, String kind, String userId) { |
| | | public IPage<NeedProblemInventoryDTO> getMyJoinList(int pageNum, int pageSize,String search,String status, String kind, String userId) { |
| | | Page page = new Page<>(pageNum,pageSize); |
| | | return baseMapper.getMyJoinList(page,kind,userId); |
| | | return baseMapper.getMyJoinList(page, search, status,kind,userId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public int addData(NeedProblemInventoryDTO item) { |
| | | item.setStatus("1"); |
| | | return baseMapper.addData(item); |
| | | } |
| | | |
| | |
| | | nfpi.update_time, |
| | | nfpi.kind, |
| | | nfpi.community_id, |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | | left join com_act_neighbor_circle_topic as canct on canct.id=nfpi.classify_id |
| | | <where> |
| | | 1=1 |
| | | <if test="search !=null and search != '' "> |
| | | and nfpi.title like concat ('%',#{search},'%') |
| | | </if> |
| | | <if test="status !=null and status != '' "> |
| | | and nfpi.status =#{status} |
| | | </if> |
| | | <if test="kind !=null and kind != '' "> |
| | | and nfpi.kind =#{kind} |
| | | </if> |
| | |
| | | nfpi.update_time, |
| | | nfpi.kind, |
| | | nfpi.community_id, |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | | left join com_act_neighbor_circle_topic as canct on canct.id=nfpi.classify_id |
| | | <where> |
| | | 1=1 |
| | | <if test="search !=null and search != '' "> |
| | | and nfpi.title like concat ('%',#{search},'%') |
| | | </if> |
| | | <if test="status !=null and status != '' "> |
| | | and nfpi.status =#{status} |
| | | </if> |
| | | <if test="kind !=null and kind != '' "> |
| | | and nfpi.kind =#{kind} |
| | | </if> |
| | |
| | | nfpi.update_time, |
| | | nfpi.kind, |
| | | nfpi.community_id, |
| | | nfpi.status, |
| | | nfpi.user_id |
| | | FROM new_fight_need_problem_inventory as nfpi |
| | | left join com_act_neighbor_circle_topic as canct on canct.id=nfpi.classify_id |
| | |
| | | <if test="item.communityId != null and item.communityId !='' " > |
| | | community_id, |
| | | </if> |
| | | <if test="item.status != null and item.status !='' " > |
| | | status, |
| | | </if> |
| | | creation_time |
| | | </trim> |
| | | values |
| | |
| | | </if> |
| | | <if test="item.communityId != null and item.communityId !='' " > |
| | | #{item.communityId}, |
| | | </if> |
| | | <if test="item.status != null and item.status !='' " > |
| | | #{item.status}, |
| | | </if> |
| | | sysdate() |
| | | </trim> |
| | |
| | | <if test="item.communityId != null and item.communityId !='' " > |
| | | community_id=#{item.communityId}, |
| | | </if> |
| | | <if test="item.status != null and item.status !='' " > |
| | | status=#{item.status}, |
| | | </if> |
| | | update_time=sysdate() |
| | | </set> |
| | | where id = #{item.id} |