| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.dtos.common.EditComActEasyPhotoHandlerDto; |
| | | import com.panzhihua.common.model.dtos.common.EvaluateEasyDto; |
| | | import com.panzhihua.common.model.dtos.common.PageComActEasyPhotoHandlerDto; |
| | | import com.panzhihua.common.model.vos.common.ComActEasyPhotoHandlerVo; |
| | |
| | | comActEasyPhotoHandler.setUserId(this.getUserId()); |
| | | return this.communityService.queryEasyPhotoHandler(comActEasyPhotoHandler); |
| | | } |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @ApiOperation(value = "提交反馈") |
| | | @PostMapping("/editEasyPhotoHandler") |
| | | public R editEasyPhotoHandler(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler) { |
| | | return this.communityService.editEasyPhotoHandler(comActEasyPhotoHandler); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询随手拍是否有活动", response = ComActEasyPhotoActivityVO.class) |
| | | @PostMapping("getEasyPhotoActivity") |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 编辑随手拍、微心愿处理人绑定表请求参数 |
| | | * <p> |
| | |
| | | @ApiModelProperty(value = "业务类型(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | /** |
| | | * 服务状态 0待执行 1已完成 |
| | | */ |
| | | @ApiModelProperty(value = "服务状态 0待执行 1已完成") |
| | | private Integer status; |
| | | /** |
| | | * 发起人id |
| | | */ |
| | | private Long senderId; |
| | | |
| | | private Date createTime; |
| | | /** |
| | | * 得分 |
| | | */ |
| | | @ApiModelProperty(value = "得分") |
| | | private Integer score; |
| | | /** |
| | | * 汇报内容 |
| | | */ |
| | | @ApiModelProperty(value = "汇报内容") |
| | | private String resultContent; |
| | | /** |
| | | * 汇报图片 |
| | | */ |
| | | @ApiModelProperty(value = "汇报图片") |
| | | private String resultUrl; |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "状态 0待执行 1已完成") |
| | | private Integer status; |
| | | |
| | | } |
| | | |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿处理人绑定表返回参数 |
| | | * <p> |
| | |
| | | @ApiModelProperty(value = "业务类型(1.随手拍 2.微心愿)") |
| | | private Integer serviceType; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Date createTime; |
| | | |
| | | @ApiModelProperty(value = "状态") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "发起人名称") |
| | | private String senderName; |
| | | |
| | | } |
| | |
| | | */ |
| | | @PostMapping("/comActEasyPhotoHandler/page") |
| | | R queryEasyPhotoHandler(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler); |
| | | |
| | | /** |
| | | * description edit 编辑数据 |
| | | * |
| | | * @param comActEasyPhotoHandler 请求参数 |
| | | * @return 编辑结果 |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @PostMapping("/comActEasyPhotoHandler/edit") |
| | | R editEasyPhotoHandler(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler); |
| | | } |
| | |
| | | * @author lyq |
| | | * @date 2022-03-01 13:45:10 |
| | | */ |
| | | @PutMapping("/edit") |
| | | @PostMapping("/edit") |
| | | public R edit(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler) { |
| | | return this.comActEasyPhotoHandlerService.update(comActEasyPhotoHandler); |
| | | } |
| | |
| | | package com.panzhihua.service_community.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import lombok.Data; |
| | | |
| | |
| | | */ |
| | | private Integer serviceType; |
| | | /** |
| | | * 服务状态 0待执行 1已完成 |
| | | */ |
| | | private Integer status; |
| | | /** |
| | | * 发起人id |
| | | */ |
| | | private Long senderId; |
| | | |
| | | private Date createTime; |
| | | /** |
| | | * 得分 |
| | | */ |
| | | private Integer score; |
| | | /** |
| | | * 汇报内容 |
| | | */ |
| | | private String resultContent; |
| | | /** |
| | | * 汇报图片 |
| | | */ |
| | | private String resultUrl; |
| | | /** |
| | | * 业务分类(1.随手拍 2.微心愿) |
| | | */ |
| | | public interface ServiceType{ |
| | | int SSP = 1; |
| | | int WXY = 2; |
| | | } |
| | | /** |
| | | * 服务状态 0待执行 1已完成 |
| | | */ |
| | | public interface Status{ |
| | | int DZX = 0; |
| | | int YWC= 1; |
| | | } |
| | | } |
| | | |
| | |
| | | * @param serviceId 业务id |
| | | * @param type 人员类型(1.后台用户 2.党员 3.志愿者 4.社工 5.四长四员) |
| | | * @param serviceType 业务类型(1.随手拍 2.微心愿) |
| | | * @param sponsorId 发起人id |
| | | */ |
| | | void addHandleRecord(Long communityId,Long userId,Long serviceId,Integer type,Integer serviceType); |
| | | void addHandleRecord(Long communityId,Long userId,Long serviceId,Integer type,Integer serviceType,Long sponsorId); |
| | | |
| | | } |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * title: 随手拍、微心愿处理人绑定表表服务实现类 |
| | | * <p> |
| | |
| | | * @param serviceType 业务类型(1.随手拍 2.微心愿) |
| | | */ |
| | | @Override |
| | | public void addHandleRecord(Long communityId, Long userId, Long serviceId, Integer type, Integer serviceType) { |
| | | public void addHandleRecord(Long communityId, Long userId, Long serviceId, Integer type, Integer serviceType,Long sponsorId) { |
| | | ComActEasyPhotoHandler easyPhotoHandler = new ComActEasyPhotoHandler(); |
| | | easyPhotoHandler.setCommunityId(communityId); |
| | | easyPhotoHandler.setStatus(ComActEasyPhotoHandler.Status.DZX); |
| | | easyPhotoHandler.setCreateTime(new Date()); |
| | | easyPhotoHandler.setUserId(userId); |
| | | easyPhotoHandler.setSenderId(sponsorId); |
| | | easyPhotoHandler.setServiceId(serviceId); |
| | | easyPhotoHandler.setType(type); |
| | | easyPhotoHandler.setServiceType(serviceType); |
| | |
| | | if(comActEasyPhotoVO.getHandleList() != null && comActEasyPhotoVO.getHandleList().size() > 0){ |
| | | comActEasyPhotoVO.getHandleList().forEach(handle -> { |
| | | easyPhotoHandlerService.addHandleRecord(cmActEasyPhotoDO.getCommunityId(),comActEasyPhotoVO.getUserId() |
| | | ,cmActEasyPhotoDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.SSP); |
| | | ,cmActEasyPhotoDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.SSP,comActEasyPhotoVO.getSponsorId()); |
| | | }); |
| | | } |
| | | break; |
| | |
| | | if(comActMicroWishVO.getHandleList() != null && comActMicroWishVO.getHandleList().size() > 0){ |
| | | comActMicroWishVO.getHandleList().forEach(handle -> { |
| | | easyPhotoHandlerService.addHandleRecord(microWishDO.getCommunityId(),handle.getUserId() |
| | | ,microWishDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.WXY); |
| | | ,microWishDO.getId(),handle.getType(), ComActEasyPhotoHandler.ServiceType.WXY,comActMicroWishVO.getSponsorId()); |
| | | }); |
| | | } |
| | | break; |
| | |
| | | </select> |
| | | |
| | | <!--查询指定行数据--> |
| | | <select id="queryAllByLimit" resultMap="ComActEasyPhotoHandlerMap"> |
| | | <select id="queryAllByLimit" resultType="com.panzhihua.common.model.vos.common.ComActEasyPhotoHandlerVo"> |
| | | select |
| | | id, community_id, user_id, service_id, type, service_type |
| | | from com_act_easy_photo_handler |
| | | t.id, t.community_id, t.user_id, t.service_id, t.type, t.service_type ,t.status ,t1.name as senderName ,t.create_time |
| | | from com_act_easy_photo_handler t left join sys_user t1 on t.sender_id = t1.user_id |
| | | <where> |
| | | <if test="dto.id != null"> |
| | | and id = #{dto.id} |
| | | and t.id = #{dto.id} |
| | | </if> |
| | | <if test="dto.communityId != null"> |
| | | and community_id = #{dto.communityId} |
| | | and t.community_id = #{dto.communityId} |
| | | </if> |
| | | <if test="dto.userId != null"> |
| | | and user_id = #{dto.userId} |
| | | and t.user_id = #{dto.userId} |
| | | </if> |
| | | <if test="dto.serviceId != null"> |
| | | and service_id = #{dto.serviceId} |
| | | and t.service_id = #{dto.serviceId} |
| | | </if> |
| | | <if test="dto.type != null"> |
| | | and type = #{dto.type} |
| | | and t.type = #{dto.type} |
| | | </if> |
| | | <if test="dto.serviceType != null"> |
| | | and service_type = #{dto.serviceType} |
| | | and t.service_type = #{dto.serviceType} |
| | | </if> |
| | | <if test="dto.status !=null"> |
| | | and t.status = #{dto.status} |
| | | </if> |
| | | </where> |
| | | order by create_at desc |