Merge remote-tracking branch 'origin/test' into test
| | |
| | | |
| | | @ApiOperation(value = "车辆登记") |
| | | @PostMapping("car/register") |
| | | public R addComMngCar(@RequestBody ComMngCarAppletDTO comMngCarAppletDTO) { |
| | | public R addComMngCar(@Validated(AddGroup.class) @RequestBody ComMngCarAppletDTO comMngCarAppletDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long communityId = loginUserInfo.getCommunityId(); |
| | | if (null!=communityId && 0!=communityId) { |
| | |
| | | @ApiOperation(value = "保存商家") |
| | | @PostMapping("/store/save") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R saveStore(@Validated(AddGroup.class) @RequestBody ShopStoreVO storeVO) { |
| | | public R saveStore(@Validated @RequestBody ShopStoreVO storeVO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | Long loginUserId = loginUserInfo.getUserId(); |
| | | if (storeVO == null) { |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | |
| | | |
| | | @ApiModelProperty(value = "车牌号") |
| | | @NotBlank(groups = {AddGroup.class},message = "车牌号不能为空") |
| | | @Length(groups = {AddGroup.class}, max = 20,message = "车牌号长度错误") |
| | | private String plateNum; |
| | | |
| | | @ApiModelProperty(value = "车辆品牌型号") |
| | | @NotBlank(groups = {AddGroup.class},message = "车辆品牌型号不能为空") |
| | | @Length(groups = {AddGroup.class}, max = 20,message = "车辆品牌型号超长") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value = "车身颜色") |
| | |
| | | |
| | | |
| | | @ApiModelProperty("店铺登陆账号") |
| | | //@Pattern(groups = {AddGroup.class}, message="【密码】格式为6-16个字符,英文,数字,且必须包含英文和数字",regexp="^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$") |
| | | //@Pattern(message="【密码】格式为6-16个字符,英文,数字,且必须包含英文和数字",regexp="^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$") |
| | | @NotBlank(message = "店铺登陆账号不能为空") |
| | | private String storeAccount; |
| | | |
| | |
| | | |
| | | |
| | | @ApiModelProperty("配送方式(1.商家配送 2.快递物流)") |
| | | @NotNull(message = "配送方式(1.商家配送 2.快递物流)") |
| | | @NotNull(message = "配送方式(1.商家配送 2.快递物流)不能为空") |
| | | private Integer deliveryType; |
| | | |
| | | |
| | |
| | | private Long id; |
| | | |
| | | @ApiModelProperty("商家简介") |
| | | @Size(max = 25,min = 1,message = "简介长度不符合!") |
| | | @Size(max = 25,min = 0,message = "简介长度不符合!") |
| | | private String storeDescribe; |
| | | |
| | | } |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.user.UserElectronicFileVO; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.service_community.service.*; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/car/save") |
| | | public R saveComMngCar(@RequestBody ComMngCarSaveDTO comMngCarSaveDTO) { |
| | | public R saveComMngCar(@Validated({AddGroup.class}) @RequestBody ComMngCarSaveDTO comMngCarSaveDTO) { |
| | | return comMngCarService.saveComMngCar(comMngCarSaveDTO); |
| | | } |
| | | |
| | |
| | | /*if(now.getTime()<comActActivityVO.getBeginAt().getTime()){ |
| | | comActActivityDO.setStatus(3); |
| | | }*/ |
| | | //报名结束时间大于当前时间则设置为“进行中” |
| | | if(comActActivityVO.getSignUpEnd()!=null && now.getTime()<comActActivityVO.getSignUpEnd().getTime()){ |
| | | comActActivityDO.setStatus(4); |
| | | if(status.intValue()==2) {//点击‘保存并发布’ 按钮 |
| | | //报名结束时间大于当前时间则设置为“进行中” |
| | | if (comActActivityVO.getSignUpEnd() != null && now.getTime() < comActActivityVO.getSignUpEnd().getTime()) { |
| | | comActActivityDO.setStatus(4); |
| | | } |
| | | } |
| | | |
| | | boolean save = this.save(comActActivityDO); |
| | |
| | | } |
| | | Map<String, Long> businessMap = getBusinessMap(comCvtBusinessDOS); |
| | | list.forEach(comCvtServeExcelVO -> { |
| | | /** |
| | | * 便民服务分类存在 并且 便民服务商家 匹配上 |
| | | */ |
| | | if (categoryMap.containsKey(comCvtServeExcelVO.getCategoryName()) && businessMap.containsKey(comCvtServeExcelVO.getBusinessName())) { |
| | | ComCvtServeDO comCvtServeDO = new ComCvtServeDO(); |
| | | BeanUtils.copyProperties(comCvtServeExcelVO, comCvtServeDO); |
| | |
| | | comPbActivityDO.setEnrollTimeBegin(now); |
| | | comPbActivityDO.setCreateAt(now); |
| | | |
| | | //默认设置为“进行中” |
| | | comPbActivityDO.setStatus(4); |
| | | Integer status = partyBuildingActivityVO.getStatus(); |
| | | if(status!=null && status.intValue()==2) {//点击'保存并发布' 按钮 |
| | | //默认设置为“进行中” |
| | | comPbActivityDO.setStatus(4); |
| | | } |
| | | |
| | | int insert = comBpActivityDAO.insert(comPbActivityDO); |
| | | if (insert > 0) { |
| | |
| | | |
| | | SysUserDO sysUserDO = new SysUserDO(); |
| | | sysUserDO.setIsVolunteer(type); |
| | | //????根据手机号匹配 |
| | | int update = userDao.update(sysUserDO, new UpdateWrapper<SysUserDO>().lambda().eq(SysUserDO::getPhone, phone)); |
| | | if (update > 0) { |
| | | ComMngVolunteerMngVO comMngVolunteerMngVO = userDao.selectVolunteerMngByPhone(phone); |
| | |
| | | SysUserDO sysUserDO = userDao.selectOne(new QueryWrapper<SysUserDO>().lambda().eq(SysUserDO::getIdCard,idCard).eq(SysUserDO::getType,1)); |
| | | if(sysUserDO != null){ |
| | | sysUserDO.setIsPartymember(1); |
| | | userDao.updateById(sysUserDO); |
| | | int updated = userDao.updateById(sysUserDO); |
| | | if(updated>0){ |
| | | //删除用户信息缓存 |
| | | String userKey = UserConstants.LOGIN_USER_INFO + sysUserDO.getUserId(); |
| | | stringRedisTemplate.delete(userKey); |
| | | } |
| | | log.info("新增党员修改用户党员状态成功 身份证号【{}】", idCard); |
| | | } |
| | | return R.ok(); |
| | |
| | | SysUserDO sysUserDO = userDao.selectOne(new QueryWrapper<SysUserDO>().lambda().eq(SysUserDO::getIdCard,idCard).eq(SysUserDO::getType,1)); |
| | | if(sysUserDO != null){ |
| | | sysUserDO.setIsPartymember(0); |
| | | userDao.updateById(sysUserDO); |
| | | int updated = userDao.updateById(sysUserDO); |
| | | if(updated>0) { |
| | | //删除用户信息缓存 |
| | | String userKey = UserConstants.LOGIN_USER_INFO + sysUserDO.getUserId(); |
| | | stringRedisTemplate.delete(userKey); |
| | | } |
| | | log.info("新增党员修改用户为非党员状态成功 身份证号【{}】", idCard); |
| | | } |
| | | return R.ok(); |