Merge remote-tracking branch 'origin/master'
| | |
| | | import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberVO; |
| | | import com.panzhihua.common.model.vos.user.ComMngFamilyInfoVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.model.vos.user.UserPhoneVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | |
| | | loginUserInfoVO.setUserId(userId); |
| | | R r = userService.putUserAuthentication(loginUserInfoVO); |
| | | if (R.isOk(r)) { |
| | | //通过不发通知 |
| | | //通过发通知 |
| | | SysUserNoticeVO sysUserNoticeVO=new SysUserNoticeVO(); |
| | | sysUserNoticeVO.setUserId(userId); |
| | | sysUserNoticeVO.setType(3); |
| | | sysUserNoticeVO.setTitle("实名制审核通过"); |
| | | sysUserNoticeVO.setBusinessType(6); |
| | | sysUserNoticeVO.setBusinessContent("恭喜你,你已经通过了实名制认证"); |
| | | sysUserNoticeVO.setStatus(0); |
| | | sysUserNoticeVO.setBusinessStatus(2); |
| | | R r1 = userService.addNotice(sysUserNoticeVO); |
| | | if (R.isOk(r1)) { |
| | | log.info("新增实名认证未通过通知成功【{}】", JSONObject.toJSONString(sysUserNoticeVO)); |
| | | } |
| | | } else { |
| | | //未通过发通知 |
| | | /** |
| | | SysUserNoticeVO sysUserNoticeVO=new SysUserNoticeVO(); |
| | | sysUserNoticeVO.setUserId(userId); |
| | | sysUserNoticeVO.setType(3); |
| | | sysUserNoticeVO.setTitle("实名制审核未通过"); |
| | | sysUserNoticeVO.setBusinessType(6); |
| | | // sysUserNoticeVO.setBusinessTitle(comActActivityVO.getActivityName()); |
| | | sysUserNoticeVO.setBusinessContent(String.format("驳回原因:%s",r.getMsg())); |
| | | // sysUserNoticeVO.setBusinessId(activityId);R |
| | | sysUserNoticeVO.setStatus(0); |
| | | sysUserNoticeVO.setBusinessStatus(1); |
| | | R r1 = userService.addNotice(sysUserNoticeVO); |
| | | if (R.isOk(r1)) { |
| | | log.info("新增实名认证未通过通知成功【{}】", JSONObject.toJSONString(sysUserNoticeVO)); |
| | | } |
| | | */ |
| | | } |
| | | return r; |
| | | } |
| | |
| | | return partyBuildingService.userCertification(userId); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "获取用户电子档案",response = UserArchivesVO.class) |
| | | @PostMapping("getUserArchives") |
| | | public R getUserArchives() { |
| | | Long userId = this.getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请重新登录"); |
| | | } |
| | | return userService.getUserArchives(userId); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑用户电子档案") |
| | | @PostMapping("updateUserArchives") |
| | | public R updateUserArchives(@RequestBody UpdateUserArchivesVO userArchivesVO) { |
| | | Long userId = this.getUserId(); |
| | | if(userId == null){ |
| | | return R.fail("请重新登录"); |
| | | } |
| | | userArchivesVO.setUserId(userId); |
| | | return userService.updateUserArchives(userArchivesVO); |
| | | } |
| | | } |
New file |
| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe 办事指南API |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/workguide/") |
| | | @Api(tags = {"办事指南API"}) |
| | | public class WorkGuideApi extends BaseController { |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | @ApiOperation(value = "办事指南_分页",response = ComActWorkGuideVO.class) |
| | | @PostMapping("pageworkguide") |
| | | public R detailWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | return communityService.pageWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "办事指南_详情",response = ComActWorkGuideVO.class) |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId")Long workGuideId) { |
| | | return communityService.detailWorkGuide(workGuideId); |
| | | } |
| | | } |
| | | |
| | |
| | | **/ |
| | | @Api(tags = {"用户模块"}) |
| | | @RestController |
| | | @RequestMapping("/user/")public class UserApi extends BaseController { |
| | | @RequestMapping("/user/") |
| | | public class UserApi extends BaseController { |
| | | @Resource |
| | | private UserService userService; |
| | | @ApiOperation(value = "当前登录用户信息",response = LoginUserInfoVO.class) |
New file |
| | |
| | | package com.panzhihua.applets_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageComStreetDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideVO; |
| | | import com.panzhihua.common.model.vos.community.ComStreetVO; |
| | | import com.panzhihua.common.model.vos.user.AdministratorsUserVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @description: 办事指南管理 |
| | | * @author: llming |
| | | **/ |
| | | @RestController |
| | | @RequestMapping("/workguidemanager/") |
| | | @Api(tags = {"办事指南管理"}) |
| | | public class WorkGuideApi extends BaseController { |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | |
| | | @ApiOperation(value = "办事指南_新增") |
| | | @PostMapping("addworkguide") |
| | | public R addStreet(@RequestBody ComActWorkGuideVO workGuideVO) { |
| | | LoginUserInfoVO loginUserInfo = getLoginUserInfo(); |
| | | return communityService.addWorkGuide(workGuideVO,loginUserInfo.getUserId()); |
| | | } |
| | | |
| | | |
| | | @PostMapping("editworkguide") |
| | | @ApiOperation(value = "办事指南_编辑") |
| | | public R putWorkGuide(@RequestBody ComActWorkGuideVO workGuideVO) { |
| | | LoginUserInfoVO loginUserInfo = getLoginUserInfo(); |
| | | return communityService.editWorkGuide(workGuideVO,loginUserInfo.getUserId()); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "办事指南_详情",response = ComActWorkGuideVO.class) |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId")Long workGuideId) { |
| | | return communityService.detailWorkGuide(workGuideId); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "办事指南_分页",response = ComActWorkGuideVO.class) |
| | | @PostMapping("pageworkguide") |
| | | public R detailWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | return communityService.pageWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "办事指南_删除",response = ComActWorkGuideVO.class) |
| | | @PostMapping("delectworkguide") |
| | | R delectWorkGuide(@RequestParam("workGuideId") Long workGuideId){ |
| | | return communityService.delectWorkGuide(workGuideId); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.dtos.community; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe |
| | | */ |
| | | @Data |
| | | @ApiModel("办事指南请求参数") |
| | | public class PageActWorkGuideDTO { |
| | | |
| | | @ApiModelProperty("办事指南标题") |
| | | private String title; |
| | | |
| | | @ApiModelProperty(value = "分页-当前页数",example = "1") |
| | | private Long pageNum; |
| | | |
| | | @ApiModelProperty(value = "分页-每页记录数",example = "10") |
| | | private Long pageSize; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe |
| | | */ |
| | | @Data |
| | | @ApiModel("办事指南材料") |
| | | public class ComActWorkGuideMaterialVO { |
| | | @ApiModelProperty("办事指南材料id") |
| | | private Long id; |
| | | @ApiModelProperty("申报材料名称") |
| | | private String materialName; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.community; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.google.common.collect.Lists; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe 办事指南 |
| | | */ |
| | | @Data |
| | | @ApiModel("办事指南") |
| | | public class ComActWorkGuideVO { |
| | | @ApiModelProperty("办事指南id") |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("办事指南标题") |
| | | private String title; |
| | | |
| | | @ApiModelProperty("办事指南内容") |
| | | private String content; |
| | | |
| | | @ApiModelProperty("办理时间") |
| | | private String timeAt; |
| | | |
| | | @ApiModelProperty("办理地点") |
| | | private String address; |
| | | |
| | | @ApiModelProperty("咨询电话") |
| | | private String phone; |
| | | |
| | | private List<ComActWorkGuideMaterialVO> materials = Lists.newArrayList(); |
| | | } |
| | |
| | | @ApiModelProperty("店内商品列表") |
| | | private List<ComShopGoodsVO> goodsList; |
| | | |
| | | @ApiModelProperty("该商家是否订单完成") |
| | | private Boolean orderDone; |
| | | |
| | | } |
| | |
| | | @NotBlank(groups = {AddGroup.class},message ="手机号不能为空" ) |
| | | private String phone; |
| | | |
| | | @ApiModelProperty("年龄") |
| | | @Min(value = 1,groups = {AddGroup.class},message ="年龄不能为空" ) |
| | | @ApiModelProperty(value = "年龄",hidden = true) |
| | | private Integer age; |
| | | |
| | | @ApiModelProperty("健康状况") |
| | |
| | | @ApiModelProperty("工作") |
| | | private String job; |
| | | |
| | | @ApiModelProperty("证件照(人像面)照片") |
| | | private String cardPhotoFront; |
| | | |
| | | @ApiModelProperty("证件照(国徽面)照片") |
| | | private String cardPhotoBack; |
| | | |
| | | @ApiModelProperty("户口本照片 逗号隔开") |
| | | private String familyBook; |
| | | |
| | | @ApiModelProperty(value = "create_at",hidden = true) |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date createAt; |
| | |
| | | @ApiModelProperty("消息标题") |
| | | private String title; |
| | | |
| | | @ApiModelProperty("具体业务类型 1 社区活动 2党建活动 3微心愿通知 4随手拍服务通知 5支援者申请 6实名制审核 7人脸识别审核 8积分获取和消耗 9积分点击直接跳转积分列表") |
| | | @ApiModelProperty("具体业务类型 1 社区活动 2党建活动 3微心愿通知 4随手拍服务通知 5支援者申请 6实名制审核 7人脸识别审核 8积分获取和消耗 9积分点击直接跳转积分列表 10 房屋审核通知") |
| | | private Integer businessType; |
| | | |
| | | @ApiModelProperty("业务标题") |
New file |
| | |
| | | package com.panzhihua.common.model.vos.user; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe |
| | | */ |
| | | @ApiModel("修改用户电子档案") |
| | | @Data |
| | | public class UpdateUserArchivesVO { |
| | | @ApiModelProperty(value = "用户id",hidden = true) |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty("证件照(人像面)照片") |
| | | private String cardPhotoFront; |
| | | |
| | | @ApiModelProperty("证件照(国徽面)照片") |
| | | private String cardPhotoBack; |
| | | |
| | | @ApiModelProperty("户口本照片 逗号隔开") |
| | | private String familyBook; |
| | | } |
New file |
| | |
| | | package com.panzhihua.common.model.vos.user; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe 用户电子档案 |
| | | */ |
| | | @ApiModel("用户电子档案") |
| | | @Data |
| | | public class UserArchivesVO { |
| | | @ApiModelProperty("用户id") |
| | | private Long userId; |
| | | |
| | | @ApiModelProperty("身份证号") |
| | | private String idCard; |
| | | |
| | | |
| | | @ApiModelProperty("性别 1 男 2 女") |
| | | private Integer sex; |
| | | |
| | | @ApiModelProperty("生日") |
| | | private Date birthday; |
| | | |
| | | @ApiModelProperty("职业") |
| | | private String job; |
| | | |
| | | |
| | | @ApiModelProperty("证件照(人像面)照片") |
| | | private String cardPhotoFront; |
| | | |
| | | @ApiModelProperty("证件照(国徽面)照片") |
| | | private String cardPhotoBack; |
| | | |
| | | @ApiModelProperty("户口本照片 逗号隔开") |
| | | private String familyBook; |
| | | |
| | | } |
| | |
| | | import com.panzhihua.common.model.vos.shop.ShopStoreVO; |
| | | import com.panzhihua.common.model.vos.user.UserPhoneVO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | |
| | | */ |
| | | @PostMapping("common/data/special/delete") |
| | | R deleteSpecialInputUser(@RequestParam(value = "id") Long id); |
| | | |
| | | |
| | | /** |
| | | * 办事指南_新增 |
| | | * @param workGuideVO 新增信息 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/addworkguide") |
| | | R addWorkGuide(@RequestBody ComActWorkGuideVO workGuideVO, @RequestParam("userId")Long userId); |
| | | |
| | | /** |
| | | * 办事指南_编辑 |
| | | * @param workGuideVO |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/editworkguide") |
| | | R editWorkGuide(@RequestBody ComActWorkGuideVO workGuideVO, @RequestParam("userId")Long userId); |
| | | |
| | | /** |
| | | * 办事指南_详情 |
| | | * @param workGuideId |
| | | * @return 详情 |
| | | */ |
| | | @GetMapping("/detailworkguide") |
| | | R detailWorkGuide(@RequestParam("workGuideId")Long workGuideId); |
| | | /** |
| | | * 办事指南_分页 |
| | | * @param pageActWorkGuideDTO 查询参数 |
| | | * @return 分页集合 |
| | | */ |
| | | @PostMapping("/pageworkguide") |
| | | R pageWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO); |
| | | |
| | | /** |
| | | * 办事指南_删除 |
| | | * @param workGuideId 办事指南id |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/delectworkguide") |
| | | R delectWorkGuide(@RequestParam("workGuideId") Long workGuideId); |
| | | |
| | | } |
| | |
| | | */ |
| | | @PostMapping("editUserTips") |
| | | R editUserTips(@RequestBody SysUserEditTipsDTO userEditTipsDTO); |
| | | |
| | | /** |
| | | * 获取用户电子档案 |
| | | * @param userId 家庭成员信息 |
| | | * @return 结果 |
| | | */ |
| | | @GetMapping("getUserArchives") |
| | | R getUserArchives(@RequestParam("userId") Long userId); |
| | | |
| | | /** |
| | | * 编辑用户电子档案 |
| | | * @param userArchivesVO 编辑的信息 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("updateUserArchives") |
| | | R updateUserArchives(@RequestBody UpdateUserArchivesVO userArchivesVO); |
| | | } |
| | |
| | | sysUserNoticeVO.setUserId(comOpsHouseVO.getUserId()); |
| | | sysUserNoticeVO.setType(3); |
| | | sysUserNoticeVO.setTitle("房源审核通过"); |
| | | sysUserNoticeVO.setBusinessType(1); |
| | | sysUserNoticeVO.setBusinessType(10); |
| | | sysUserNoticeVO.setBusinessTitle("您提交的" + comOpsHouseVO.getTitle() +"房屋出租审核已经审核通过"); |
| | | sysUserNoticeVO.setBusinessId(comOpsHouseVO.getId()); |
| | | sysUserNoticeVO.setStatus(0); |
| | |
| | | if (R.isOk(r2)) { |
| | | log.info("新增房屋出租通过审核通知成功【{}】", JSONObject.toJSONString(sysUserNoticeVO)); |
| | | } |
| | | }else if(R.isOk(r) && 2==comOpsHouseVO.getStatus()){ |
| | | //您提交的xxxx房屋出租审核已经审核通过/被驳回 |
| | | //审核驳回添加提示信息 |
| | | SysUserNoticeVO sysUserNoticeVO = new SysUserNoticeVO(); |
| | | sysUserNoticeVO.setUserId(comOpsHouseVO.getUserId()); |
| | | sysUserNoticeVO.setType(3); |
| | | sysUserNoticeVO.setTitle("房源审核被驳回"); |
| | | sysUserNoticeVO.setBusinessType(10); |
| | | sysUserNoticeVO.setBusinessTitle("您提交的" + comOpsHouseVO.getTitle() +"房屋出租审核已经被驳回"); |
| | | sysUserNoticeVO.setBusinessId(comOpsHouseVO.getId()); |
| | | sysUserNoticeVO.setStatus(0); |
| | | sysUserNoticeVO.setBusinessStatus(1); |
| | | R r2 = userService.addNotice(sysUserNoticeVO); |
| | | if (R.isOk(r2)) { |
| | | log.info("新增房屋出租通过审核通知成功【{}】", JSONObject.toJSONString(sysUserNoticeVO)); |
| | | } |
| | | } |
| | | return r; |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideVO; |
| | | import com.panzhihua.service_community.service.ComActWorkGuideService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe 办事指南 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/") |
| | | public class WorkGuideApi { |
| | | @Resource |
| | | private ComActWorkGuideService workGuideService; |
| | | /** |
| | | * 办事指南_新增 |
| | | * @param workGuideVO 新增信息 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("addworkguide") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R addWorkGuide(@RequestBody ComActWorkGuideVO workGuideVO, @RequestParam("userId")Long userId) { |
| | | return workGuideService.addWorkGuide(workGuideVO,userId); |
| | | } |
| | | |
| | | /** |
| | | * 办事指南_编辑 |
| | | * @param workGuideVO |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("editworkguide") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R putWorkGuide(@RequestBody ComActWorkGuideVO workGuideVO, @RequestParam("userId")Long userId) { |
| | | return workGuideService.editWorkGuide(workGuideVO,userId); |
| | | } |
| | | |
| | | /** |
| | | * 办事指南_详情 |
| | | * @param workGuideId |
| | | * @return 详情 |
| | | */ |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId")Long workGuideId) { |
| | | return workGuideService.detailWorkGuide(workGuideId); |
| | | } |
| | | |
| | | /** |
| | | * 办事指南_分页 |
| | | * @param pageActWorkGuideDTO 查询参数 |
| | | * @return 分页集合 |
| | | */ |
| | | @PostMapping("pageworkguide") |
| | | public R pageWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | return workGuideService.pageWorkGuide(pageActWorkGuideDTO); |
| | | } |
| | | /** |
| | | * 办事指南_删除 |
| | | * @param workGuideId 办事指南id |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("delectworkguide") |
| | | R delectWorkGuide(@RequestParam("workGuideId") Long workGuideId){ |
| | | return workGuideService.delectWorkGuide(workGuideId); |
| | | } |
| | | |
| | | } |
| | |
| | | "AND a.`status` in (3,4) \n" + |
| | | " </if> " + |
| | | "<if test='comActActivityVO.isApplets != null and comActActivityVO.isApplets ==1'>" + |
| | | "AND a.`status` != 1 \n" + |
| | | "AND a.`status` != 1 AND a.`status` != 6 \n" + |
| | | " </if> " + |
| | | "<if test='comActActivityVO.beginAt != null '>" + |
| | | "AND a.begin_at <![CDATA[ >= ]]> #{comActActivityVO.beginAt} AND a.end_at <![CDATA[ <= ]]> #{comActActivityVO.endAt} \n" + |
| | |
| | | @Update("update com_act_activity set `status`=3 where `status`=2 and TIMESTAMPDIFF(MINUTE,SYSDATE(),sign_up_begin)<=0") |
| | | int updateStatusToBeginSign(); |
| | | |
| | | @Update("update com_act_activity set `status`=(if(DATEDIFF(SYSDATE(),end_at)>=0,5,4)) where `status` in (3,4) and TIMESTAMPDIFF(MINUTE,SYSDATE(),sign_up_end)<=0") |
| | | @Update("update com_act_activity set `status`=5 where `status` in (3,4) and TIMESTAMPDIFF(MINUTE,SYSDATE(),sign_up_end)<=0") |
| | | int updateStatusToBeginActiveOrEnd(); |
| | | @Select("<script> " + |
| | | "select t.* from (\n" + |
| | |
| | | "<if test='comActMicroWishVO.sponsorPhone != null and comActMicroWishVO.sponsorPhone.trim() != ""'>" + |
| | | "AND w.sponsor_phone like concat(#{comActMicroWishVO.sponsorPhone},'%') \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.status != null and comActMicroWishVO.status!=0 and comActMicroWishVO.isPageMyWish==null'>" + |
| | | "<if test='comActMicroWishVO.status != null and comActMicroWishVO.status!=0 and comActMicroWishVO.status!=3 and comActMicroWishVO.isPageMyWish==null'>" + |
| | | "AND w.`status` = #{comActMicroWishVO.status} \n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.status == 3 and comActMicroWishVO.isPageMyWish==null'>" + |
| | | "AND ( w.`status` = 3 or w.`status` = 5 )\n" + |
| | | " </if> " + |
| | | "<if test='comActMicroWishVO.status != null and comActMicroWishVO.status!=0 and comActMicroWishVO.isPageMyWish!=null and comActMicroWishVO.status==1'>" + |
| | | "AND w.`status` in (1,2) \n" + |
| | | " </if> " + |
New file |
| | |
| | | package com.panzhihua.service_community.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideVO; |
| | | import com.panzhihua.service_community.model.dos.ComActWorkGuideDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | |
| | | /** |
| | | * @description: 办事指南 |
| | | **/ |
| | | @Mapper |
| | | public interface ComActWorkGuideDAO extends BaseMapper<ComActWorkGuideDO> { |
| | | @Select("<script> " + |
| | | "select id ,title,content,time_at,address,phone from com_act_work_guide " + |
| | | " <where>" + |
| | | "<if test='pageActWorkGuideDTO.title != null and pageActWorkGuideDTO.title.trim() != ""'>" + |
| | | "title like concat('%',#{pageActWorkGuideDTO.title},'%')"+ |
| | | " </if> " + |
| | | " </where>" + |
| | | "order by create_at desc"+ |
| | | "</script>") |
| | | IPage<ComActWorkGuideVO> pageWorkGuide(Page page, @Param("pageActWorkGuideDTO") PageActWorkGuideDTO pageActWorkGuideDTO); |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.dao; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.panzhihua.service_community.model.dos.ComActWorkGuideMaterialDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | |
| | | /** |
| | | * @description: 办事指南材料 |
| | | **/ |
| | | @Mapper |
| | | public interface ComActWorkGuideMaterialDAO extends BaseMapper<ComActWorkGuideMaterialDO> { |
| | | } |
| | |
| | | "AND d.status in (1,3) \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.houseCommunityName != null and pageComOpsHouseDTO.houseCommunityName.trim() != ""'>" + |
| | | " and d.`house_community_name` LIKE concat( '%', #{pageComOpsHouseDTO.houseCommunityName}, '%' ) \n" + |
| | | " and (" + |
| | | " d.`house_community_name` LIKE concat( '%', #{pageComOpsHouseDTO.houseCommunityName}, '%' ) " + |
| | | " or d.title like concat( '%', #{pageComOpsHouseDTO.houseCommunityName}, '%' ) " + |
| | | " ) \n" + |
| | | " </if> " + |
| | | "<if test='pageComOpsHouseDTO.mobile != null and pageComOpsHouseDTO.mobile.trim() != ""'>" + |
| | | " and d.`mobile` LIKE concat( #{pageComOpsHouseDTO.mobile}, '%' ) \n" + |
| | |
| | | "select c.id,c.type_id,css.name as storeName,c.name,c.store_id,c.goods_pic,c.images,c.status,c.sale,c.original_price,c.price,c.unit,c.order,c.stock,c.details,c.remark,c.goods_describe,c.delivery_type,c.delete_status,c.create_at,c.update_at from com_shop_goods c \n" + |
| | | " left join com_shop_store css on c.store_id=css.id\n" + |
| | | " <where>" + |
| | | " and c.delete_status = 1 " + |
| | | " and c.delete_status = 1 and css.delete_status = 1 " + |
| | | "<if test='pageComShopGoodsDTO.storeName != null and pageComShopGoodsDTO.storeName.trim() != ""'>" + |
| | | "and css.name like concat('%',#{pageComShopGoodsDTO.storeName},'%') \n" + |
| | | " </if> " + |
| | |
| | | " AND su.phone = #{pageComShopOrderSearchDTO.userAccount} " + |
| | | " </if> " + |
| | | "<if test='pageComShopOrderSearchDTO.receiverAccount != null '>" + |
| | | " AND uad.name = #{pageComShopOrderSearchDTO.receiverAccount} " + |
| | | " AND uad.name like concat('%', #{pageComShopOrderSearchDTO.receiverAccount}, '%') " + |
| | | " </if> " + |
| | | "<if test='pageComShopOrderSearchDTO.receiverPhone != null '>" + |
| | | " AND uad.phone = #{pageComShopOrderSearchDTO.receiverPhone} " + |
| | |
| | | |
| | | @Select("<script>" + |
| | | "select id,`name`,store_password,contacts,store_account,classify_id,logo,phone,delivery_type,remark,`status`," + |
| | | "sale,sale_volume,store_detail,create_at from com_shop_store c" + |
| | | "sale,sale_volume,store_detail,create_at, store_describe from com_shop_store c" + |
| | | " <where>" + |
| | | "c.delete_status=1 and c.status = 1" + |
| | | "<if test='pageComShopStoreDTO.contacts != null and pageComShopStoreDTO.contacts.trim() != ""'>" + |
| | |
| | | |
| | | @Select("<script>" + |
| | | "select id,`name`,store_password,contacts,store_account,classify_id,logo,phone,delivery_type,remark,`status`," + |
| | | "sale,sale_volume,store_detail,create_at from com_shop_store c" + |
| | | "sale,sale_volume,store_detail,create_at,store_describe from com_shop_store c" + |
| | | " <where>" + |
| | | " and c.delete_status=1 " + |
| | | "<if test='pageComShopStoreDTO.contacts != null and pageComShopStoreDTO.contacts.trim() != ""'>" + |
New file |
| | |
| | | package com.panzhihua.service_community.model.dos; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe: 办事指南 |
| | | */ |
| | | @Data |
| | | @TableName(value = "com_act_work_guide") |
| | | public class ComActWorkGuideDO extends BaseDO implements Serializable { |
| | | /**自增 id*/ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 办事指南标题 |
| | | */ |
| | | private String title; |
| | | /** |
| | | * 办事指南内容 |
| | | */ |
| | | private String content; |
| | | /** |
| | | * 办理时间 |
| | | */ |
| | | private String timeAt; |
| | | /** |
| | | * 办理地点 |
| | | */ |
| | | private String address; |
| | | /** |
| | | * 咨询电话 |
| | | */ |
| | | private String phone; |
| | | |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.model.dos; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe: 办事指南材料 |
| | | */ |
| | | @Data |
| | | @TableName(value = "com_act_work_guide_material") |
| | | public class ComActWorkGuideMaterialDO implements Serializable { |
| | | /**自增 id*/ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | /** |
| | | * 申报材料名称 |
| | | */ |
| | | private String materialName; |
| | | /** |
| | | * 办事指南id |
| | | */ |
| | | private Long workGuideId; |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.service; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideVO; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe 办事指南 |
| | | */ |
| | | public interface ComActWorkGuideService { |
| | | /** |
| | | * 办事指南_新增 |
| | | * @param workGuideVO 办事指南信息 |
| | | * @return 新增结果 |
| | | */ |
| | | R addWorkGuide(ComActWorkGuideVO workGuideVO,Long userId); |
| | | /** |
| | | * 办事指南_编辑 |
| | | * @param workGuideVO 编辑内容 |
| | | * @return 编辑结果 |
| | | */ |
| | | R editWorkGuide(ComActWorkGuideVO workGuideVO, Long userId); |
| | | /** |
| | | * 办事指南_详情 |
| | | * @param workGuideId 办事指南id |
| | | * @return 社区详情 |
| | | */ |
| | | R detailWorkGuide(Long workGuideId); |
| | | /** |
| | | * 办事指南_分页 |
| | | * @param pageActWorkGuideDTO 查询参数 |
| | | * @return 分页集合 |
| | | */ |
| | | R pageWorkGuide(PageActWorkGuideDTO pageActWorkGuideDTO); |
| | | /** |
| | | * 办事指南_删除 |
| | | * @param workGuideId 办事指南id |
| | | * @return 删除结果 |
| | | */ |
| | | R delectWorkGuide(Long workGuideId); |
| | | } |
| | |
| | | /*if(now.getTime()<comActActivityVO.getBeginAt().getTime()){ |
| | | comActActivityDO.setStatus(3); |
| | | }*/ |
| | | //结束时间大于当前时间则设置为“进行中” |
| | | //报名结束时间大于当前时间则设置为“进行中” |
| | | if(comActActivityVO.getSignUpEnd()!=null && now.getTime()<comActActivityVO.getSignUpEnd().getTime()){ |
| | | comActActivityDO.setStatus(4); |
| | | } |
New file |
| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideMaterialVO; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideVO; |
| | | import com.panzhihua.common.utlis.DifferentLongListUtil; |
| | | import com.panzhihua.service_community.dao.ComActWorkGuideDAO; |
| | | import com.panzhihua.service_community.dao.ComActWorkGuideMaterialDAO; |
| | | import com.panzhihua.service_community.model.dos.ComActWorkGuideDO; |
| | | import com.panzhihua.service_community.model.dos.ComActWorkGuideMaterialDO; |
| | | import com.panzhihua.service_community.service.ComActWorkGuideService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @auther llming |
| | | * @describe 办事指南 |
| | | */ |
| | | @Service |
| | | public class ComActWorkGuideServiceImpl extends ServiceImpl<ComActWorkGuideDAO, ComActWorkGuideDO> implements ComActWorkGuideService { |
| | | @Resource |
| | | ComActWorkGuideMaterialDAO workGuideMaterialDAO; |
| | | |
| | | @Override |
| | | public R addWorkGuide(ComActWorkGuideVO workGuideVO, Long userId) { |
| | | ComActWorkGuideDO comActWorkGuideDO = new ComActWorkGuideDO(); |
| | | BeanUtils.copyProperties(workGuideVO, comActWorkGuideDO); |
| | | comActWorkGuideDO.setCreateBy(userId); |
| | | this.baseMapper.insert(comActWorkGuideDO); |
| | | //保存办事指南材料 |
| | | workGuideVO.getMaterials().forEach(material -> { |
| | | ComActWorkGuideMaterialDO workGuideMaterialDO = new ComActWorkGuideMaterialDO(); |
| | | workGuideMaterialDO.setMaterialName(material.getMaterialName()); |
| | | workGuideMaterialDO.setWorkGuideId(comActWorkGuideDO.getId()); |
| | | workGuideMaterialDAO.insert(workGuideMaterialDO); |
| | | }); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public R editWorkGuide(ComActWorkGuideVO workGuideVO, Long userId) { |
| | | if (workGuideVO.getId() == 0L) { |
| | | return R.fail("Id有误!"); |
| | | } |
| | | ComActWorkGuideDO workGuideDO = this.baseMapper.selectById(workGuideVO.getId()); |
| | | if (workGuideDO == null) { |
| | | return R.fail("Id有误!"); |
| | | } |
| | | BeanUtils.copyProperties(workGuideVO, workGuideDO); |
| | | workGuideDO.setUpdateBy(userId); |
| | | this.baseMapper.updateById(workGuideDO); |
| | | if (workGuideVO.getMaterials().size() == 0) {//若编辑材料为null,执行删除操作 |
| | | workGuideMaterialDAO.delete(new LambdaQueryWrapper<ComActWorkGuideMaterialDO>() |
| | | .eq(ComActWorkGuideMaterialDO::getWorkGuideId, workGuideVO.getId())); |
| | | } else {//若材料不为空,但是少了数据条数,也要执行删除 |
| | | List<ComActWorkGuideMaterialDO> workGuideMaterialDOS = workGuideMaterialDAO.selectList(new LambdaQueryWrapper<ComActWorkGuideMaterialDO>() |
| | | .eq(ComActWorkGuideMaterialDO::getWorkGuideId, workGuideVO.getId())); |
| | | //1、筛选vo里面和db里,需要删除的材料数据 |
| | | List<Long> voMaterialIds = workGuideVO.getMaterials().stream() |
| | | .filter(materialVo -> materialVo.getId() != null) |
| | | .map(ComActWorkGuideMaterialVO::getId) |
| | | .collect(Collectors.toList()); |
| | | List<Long> deleteMaterialIds = workGuideMaterialDOS.stream() |
| | | .filter(workGuideMaterialDO -> !voMaterialIds.contains(workGuideMaterialDO.getId())) |
| | | .map(ComActWorkGuideMaterialDO::getId) |
| | | .collect(Collectors.toList()); |
| | | if (deleteMaterialIds.size() != 0) { |
| | | workGuideMaterialDAO.deleteBatchIds(deleteMaterialIds); |
| | | } |
| | | workGuideVO.getMaterials().forEach(materialsVO -> { |
| | | if (materialsVO.getId() != null && materialsVO.getId() != 0L) { |
| | | ComActWorkGuideMaterialDO workGuideMaterialDO1 = workGuideMaterialDOS.stream().filter(workGuideMaterialDO -> workGuideMaterialDO.getId() |
| | | .equals(materialsVO.getId())).findFirst().orElse(null); |
| | | if (workGuideMaterialDO1 != null) {//2、如果db有,执行编辑 |
| | | workGuideMaterialDO1.setMaterialName(materialsVO.getMaterialName()); |
| | | workGuideMaterialDAO.updateById(workGuideMaterialDO1); |
| | | } else {//3、如果db没有,执行新增 |
| | | ComActWorkGuideMaterialDO newWorkGuideMaterialDO = new ComActWorkGuideMaterialDO(); |
| | | newWorkGuideMaterialDO.setMaterialName(materialsVO.getMaterialName()); |
| | | newWorkGuideMaterialDO.setWorkGuideId(workGuideDO.getId()); |
| | | workGuideMaterialDAO.insert(newWorkGuideMaterialDO); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public R detailWorkGuide(Long workGuideId) { |
| | | ComActWorkGuideDO workGuideDO = this.baseMapper.selectById(workGuideId); |
| | | if (workGuideDO == null) { |
| | | return R.fail("Id有误!"); |
| | | } |
| | | ComActWorkGuideVO vo = new ComActWorkGuideVO(); |
| | | BeanUtils.copyProperties(workGuideDO, vo); |
| | | List<ComActWorkGuideMaterialDO> workGuideMaterialDOS = workGuideMaterialDAO.selectList(new LambdaQueryWrapper<ComActWorkGuideMaterialDO>() |
| | | .eq(ComActWorkGuideMaterialDO::getWorkGuideId, workGuideId)); |
| | | workGuideMaterialDOS.forEach(workGuideMaterialDO -> { |
| | | ComActWorkGuideMaterialVO workGuideMaterialVO = new ComActWorkGuideMaterialVO(); |
| | | workGuideMaterialVO.setId(workGuideMaterialDO.getId()); |
| | | workGuideMaterialVO.setMaterialName(workGuideMaterialDO.getMaterialName()); |
| | | vo.getMaterials().add(workGuideMaterialVO); |
| | | }); |
| | | return R.ok(vo); |
| | | } |
| | | |
| | | @Override |
| | | public R pageWorkGuide(PageActWorkGuideDTO pageActWorkGuideDTO) { |
| | | Page page = new Page<>(); |
| | | Long pageNum = pageActWorkGuideDTO.getPageNum(); |
| | | Long pageSize = pageActWorkGuideDTO.getPageSize(); |
| | | if (null == pageNum || 0 == pageNum) { |
| | | pageNum = 1l; |
| | | } |
| | | if (null == pageSize || 0 == pageSize) { |
| | | pageSize = 10l; |
| | | } |
| | | page.setSize(pageSize); |
| | | page.setCurrent(pageNum); |
| | | IPage<ComActWorkGuideVO> iPage = this.baseMapper.pageWorkGuide(page, pageActWorkGuideDTO); |
| | | return R.ok(iPage); |
| | | } |
| | | |
| | | @Override |
| | | public R delectWorkGuide(Long workGuideId) { |
| | | this.baseMapper.deleteById(workGuideId); |
| | | workGuideMaterialDAO.delete(new LambdaQueryWrapper<ComActWorkGuideMaterialDO>() |
| | | .eq(ComActWorkGuideMaterialDO::getWorkGuideId, workGuideId)); |
| | | return R.ok(); |
| | | } |
| | | } |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | import java.util.stream.Collectors; |
| | | import java.util.stream.Stream; |
| | | |
| | |
| | | private ComShopGoodsDAO shopGoodsDAO; |
| | | @Resource |
| | | private ComShopGoodsAttrDAO comShopGoodsAttrDAO; |
| | | @Resource |
| | | private ComShopOrderService orderService; |
| | | @Resource |
| | | private UserService userService; |
| | | /** |
| | | * 查询店铺列表 |
| | | * |
| | |
| | | public R pageStoreList(PageComShopStoreDTO pageComShopStoreDTO) { |
| | | Page page = new Page<>(pageComShopStoreDTO.getPageNum(), pageComShopStoreDTO.getPageSize()); |
| | | IPage<PageShopStoreVO> comShopStoreVOIPage = this.baseMapper.pageShopStore(page, pageComShopStoreDTO); |
| | | if(comShopStoreVOIPage!=null){ |
| | | Optional.ofNullable(comShopStoreVOIPage.getRecords()).orElse(new ArrayList<>()).forEach(shopStoreVO ->{ |
| | | List<Integer> notDoneOrderStatus = new ArrayList<>(); |
| | | notDoneOrderStatus.add(1); |
| | | notDoneOrderStatus.add(2); |
| | | notDoneOrderStatus.add(3); |
| | | notDoneOrderStatus.add(4); |
| | | Integer orderCount = orderService.getBaseMapper() |
| | | .selectCount(new LambdaQueryWrapper<ComShopOrderDO>() |
| | | .eq(ComShopOrderDO::getStoreId, shopStoreVO.getId()) |
| | | .eq(ComShopOrderDO::getDeleteStatus, 1) |
| | | .in(ComShopOrderDO::getStatus, notDoneOrderStatus) |
| | | ); |
| | | if(orderCount!=null && orderCount.intValue()>0){ |
| | | shopStoreVO.setOrderDone(false); |
| | | } |
| | | }); |
| | | } |
| | | return R.ok(comShopStoreVOIPage); |
| | | } |
| | | |
| | | @Resource |
| | | private UserService userService; |
| | | @Resource |
| | | private ComShopOrderService orderService; |
| | | |
| | | /** |
| | | * 查询店铺详情 |
| | |
| | | @Update("update com_pb_activity set status=3 where `status`=2 and TIMESTAMPDIFF(MINUTE,SYSDATE(),enroll_time_begin)<=0") |
| | | int updateStatusToSign(); |
| | | |
| | | @Update("update com_pb_activity set status=(if(TIMESTAMPDIFF(MINUTE,SYSDATE(),activity_time_end)<=0,5,4)) where `status` in (3,4) and TIMESTAMPDIFF(MINUTE,SYSDATE(),enroll_time_end)<=0") |
| | | @Update("update com_pb_activity set status=5 where `status` in (3,4) and TIMESTAMPDIFF(MINUTE,SYSDATE(),enroll_time_end)<=0") |
| | | int updateStatusToActiveOrEnd(); |
| | | @Select("select type,name from sys_user where user_id=#{createBy}") |
| | | LoginUserInfoVO selectUserInfoByUserId(Long createBy); |
| | |
| | | public R addactivity(PartyBuildingActivityVO partyBuildingActivityVO) { |
| | | ComPbActivityDO comPbActivityDO = new ComPbActivityDO(); |
| | | BeanUtils.copyProperties(partyBuildingActivityVO, comPbActivityDO); |
| | | comPbActivityDO.setCreateAt(new Date()); |
| | | Date now = new Date(); |
| | | comPbActivityDO.setEnrollTimeBegin(now); |
| | | comPbActivityDO.setCreateAt(now); |
| | | |
| | | //默认设置为“进行中” |
| | | comPbActivityDO.setStatus(4); |
| | | |
| | | int insert = comBpActivityDAO.insert(comPbActivityDO); |
| | | if (insert > 0) { |
| | | return R.ok(); |
| | |
| | | public R editUserTips(@RequestBody SysUserEditTipsDTO userEditTipsDTO) { |
| | | return userService.editUserTips(userEditTipsDTO); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户电子档案 |
| | | * @param userId 家庭成员信息 |
| | | * @return 结果 |
| | | */ |
| | | @GetMapping("getUserArchives") |
| | | public R getUserArchives(@RequestParam("userId") Long userId){ |
| | | return userService.getUserArchives(userId); |
| | | } |
| | | |
| | | /** |
| | | * 编辑用户电子档案 |
| | | * @param userArchivesVO 编辑的信息 |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("updateUserArchives") |
| | | public R updateUserArchives(@RequestBody UpdateUserArchivesVO userArchivesVO){ |
| | | return userService.updateUserArchives(userArchivesVO); |
| | | } |
| | | } |
| | |
| | | import com.panzhihua.common.model.vos.user.AdministratorsUserVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.model.vos.user.SysUserVO; |
| | | import com.panzhihua.common.model.vos.user.UpdateUserArchivesVO; |
| | | import com.panzhihua.service_user.model.dos.SysUserDO; |
| | | import com.panzhihua.service_user.model.dtos.DataKanbanDTO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | |
| | | @Select("delete from com_shop_store where delete_status = 1 and phone = #{phone}") |
| | | void deleteStoreByPhoneAndStatus(@RequestParam("phone") String phone); |
| | | |
| | | @Select("update sys_user set" + |
| | | " card_photo_front = #{userArchivesVO.cardPhotoFront} \n" + |
| | | ", card_photo_back = #{userArchivesVO.cardPhotoBack} \n" + |
| | | ",family_book = #{userArchivesVO.familyBook} \n" + |
| | | " where user_id = #{userArchivesVO.userId}") |
| | | void updateUserArchives(@Param("userArchivesVO") UpdateUserArchivesVO userArchivesVO); |
| | | |
| | | } |
| | |
| | | private String job; |
| | | |
| | | /** |
| | | * 证件照(人像面)照片 |
| | | */ |
| | | private String cardPhotoFront; |
| | | /** |
| | | * 证件照(国徽面)照片 |
| | | */ |
| | | private String cardPhotoBack; |
| | | /** |
| | | * 户口本照片 逗号隔开 |
| | | */ |
| | | private String familyBook; |
| | | |
| | | /** |
| | | * create_at |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | */ |
| | | @Data |
| | | @TableName("sys_user") |
| | | public class SysUserDO implements Serializable |
| | | { |
| | | public class SysUserDO implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | */ |
| | | private Integer isTips; |
| | | |
| | | |
| | | /** |
| | | * 证件照(人像面)照片 |
| | | */ |
| | | private String cardPhotoFront; |
| | | /** |
| | | * 证件照(国徽面)照片 |
| | | */ |
| | | private String cardPhotoBack; |
| | | |
| | | /** |
| | | * 户口本照片 逗号隔开 |
| | | */ |
| | | private String familyBook; |
| | | |
| | | } |
| | |
| | | R putUser(LoginUserInfoVO loginUserInfoVO); |
| | | |
| | | /** |
| | | * 家庭成员列表 |
| | | * @param userId 登录用户 |
| | | * @return 成员集合 |
| | | */ |
| | | R listFamily(Long userId); |
| | | /** |
| | | * 新增家庭成员 |
| | | * @param comMngFamilyInfoVO 家庭成员基本信息 |
| | | * @return 增加结果 |
| | | */ |
| | | R addFamily(ComMngFamilyInfoVO comMngFamilyInfoVO); |
| | | /** |
| | | * 编辑家庭成员 |
| | | * @param comMngFamilyInfoVO 家庭成员信息 |
| | | * @return 编辑结果 |
| | | */ |
| | | R putFamily(ComMngFamilyInfoVO comMngFamilyInfoVO); |
| | | /** |
| | | * 新增运营、社区后台账户 |
| | | * @param administratorsUserVO 账户信息 |
| | | * @return 新增结果 |
| | |
| | | * @return 修改结果 |
| | | */ |
| | | R editUserTips(SysUserEditTipsDTO userEditTipsDTO); |
| | | |
| | | /** |
| | | * 家庭成员列表 |
| | | * @param userId 登录用户 |
| | | * @return 成员集合 |
| | | */ |
| | | R listFamily(Long userId); |
| | | /** |
| | | * 新增家庭成员 |
| | | * @param comMngFamilyInfoVO 家庭成员基本信息 |
| | | * @return 增加结果 |
| | | */ |
| | | R addFamily(ComMngFamilyInfoVO comMngFamilyInfoVO); |
| | | /** |
| | | * 编辑家庭成员 |
| | | * @param comMngFamilyInfoVO 家庭成员信息 |
| | | * @return 编辑结果 |
| | | */ |
| | | R putFamily(ComMngFamilyInfoVO comMngFamilyInfoVO); |
| | | |
| | | /** |
| | | * 当前登陆用户的电子档案 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | R getUserArchives(Long userId); |
| | | |
| | | /** |
| | | * 编辑电子档案 |
| | | * @param userArchivesVO |
| | | * @return |
| | | */ |
| | | R updateUserArchives(UpdateUserArchivesVO userArchivesVO); |
| | | } |
| | |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | /** |
| | | * 用户绑定社区、小区 |
| | | * |
| | |
| | | if (!ObjectUtils.isEmpty(comMngFamilyInfoDO1)) { |
| | | return R.fail("家庭成员已经存在"); |
| | | } |
| | | comMngFamilyInfoDO.setAge(IdCard.IdNOToAge(comMngFamilyInfoVO.getIdCard())); |
| | | int insert = comMngFamilyInfoDAO.insert(comMngFamilyInfoDO); |
| | | if (insert > 0) { |
| | | return R.ok(); |
| | |
| | | public R putFamily(ComMngFamilyInfoVO comMngFamilyInfoVO) { |
| | | ComMngFamilyInfoDO comMngFamilyInfoDO = new ComMngFamilyInfoDO(); |
| | | BeanUtils.copyProperties(comMngFamilyInfoVO, comMngFamilyInfoDO); |
| | | comMngFamilyInfoDO.setAge(IdCard.IdNOToAge(comMngFamilyInfoVO.getIdCard())); |
| | | int update = comMngFamilyInfoDAO.updateById(comMngFamilyInfoDO); |
| | | if (update > 0) { |
| | | return R.ok(); |
| | |
| | | return R.fail(); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public R getUserArchives(Long userId) { |
| | | //查询用户信息 |
| | | SysUserDO userDO = userDao.selectById(userId); |
| | | if (userDO == null) { |
| | | return R.fail("未查询到用户信息"); |
| | | } |
| | | UserArchivesVO userArchivesVO = new UserArchivesVO(); |
| | | BeanUtils.copyProperties(userDO, userArchivesVO); |
| | | userArchivesVO.setUserId(userDO.getUserId()); |
| | | return R.ok(userArchivesVO); |
| | | } |
| | | |
| | | @Override |
| | | public R updateUserArchives(UpdateUserArchivesVO userArchivesVO) { |
| | | if(userArchivesVO.getUserId()==null){ |
| | | return R.fail("未查询到用户信息"); |
| | | } |
| | | userDao.updateUserArchives(userArchivesVO); |
| | | return R.ok(); |
| | | } |
| | | } |