| | |
| | | @ApiModelProperty("社区id") |
| | | private String communityId; |
| | | |
| | | @ApiModelProperty("社区名字") |
| | | private String communityName; |
| | | |
| | | @ApiModelProperty("是否参与0 未参与 1已参与") |
| | | private String isJoin="0"; |
| | | |
| | | @ApiModelProperty("状态(1已发布 2进行中 3已完成)") |
| | | private String status="1"; |
| | | |
| | | @ApiModelProperty("预计完工时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date estimatedTime; |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "项目规划确认完工") |
| | | @PostMapping("/editProjectPlanAccomplish") |
| | | @GetMapping("/editProjectPlanAccomplish") |
| | | public R editProjectPlanAccomplish(@RequestParam("id") String id) |
| | | { |
| | | NewFightProjectPlanDTO item =new NewFightProjectPlanDTO(); |
| | |
| | | @Override |
| | | public R addData(NewFightCommunityConstructionDTO item) |
| | | { |
| | | item.setStatus("1"); |
| | | int num=baseMapper.addData(item); |
| | | if(num>0) |
| | | { |
| | |
| | | creation_time, |
| | | update_time, |
| | | user_id, |
| | | status, |
| | | community_id |
| | | </sql> |
| | | |
| | |
| | | nfcc.creation_time, |
| | | nfcc.update_time, |
| | | nfcc.user_id, |
| | | nfcc.status, |
| | | ca.name as communityName, |
| | | ifnull(count(nfpj.id),0) as isJoin, |
| | | nfcc.community_id |
| | | FROM new_fight_community_construction as nfcc |
| | | LEFT JOIN new_fight_project_join as nfpj ON nfpj.user_id=#{userId} |
| | | LEFT JOIN com_act as ca ON ca.community_id=nfcc.community_id |
| | | <where> |
| | | 1=1 |
| | | <if test="communityId !=null and communityId != '' "> |
| | |
| | | </select> |
| | | |
| | | <select id="getDetails" resultType="com.panzhihua.common.model.dtos.partybuilding.NewFightCommunityConstructionDTO"> |
| | | SELECT <include refid="Base_Column_List"></include> |
| | | FROM new_fight_community_construction |
| | | SELECT |
| | | nfcc.id, |
| | | nfcc.item_cover, |
| | | nfcc.item_title, |
| | | nfcc.agreement_title, |
| | | nfcc.agreement_customization_time, |
| | | nfcc.agreement_content, |
| | | nfcc.construction_community_id, |
| | | nfcc.estimated_time, |
| | | nfcc.creation_time, |
| | | nfcc.update_time, |
| | | nfcc.user_id, |
| | | nfcc.status, |
| | | ca.name as communityName, |
| | | ifnull(count(nfpj.id),0) as isJoin, |
| | | nfcc.community_id |
| | | FROM new_fight_community_construction as nfcc |
| | | LEFT JOIN new_fight_project_join as nfpj ON nfpj.user_id=#{userId} |
| | | LEFT JOIN com_act as ca ON ca.community_id=nfcc.community_id |
| | | <where> |
| | | 1=1 |
| | | <if test="id !=null and id != '' "> |
| | | and id =#{id} |
| | | and nfcc.id =#{id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <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} |