feat:mini
This commit is contained in:
@@ -20,7 +20,7 @@ public class ModifyPasswordDTO {
|
|||||||
@ApiModelProperty(value = "密码",required = true)
|
@ApiModelProperty(value = "密码",required = true)
|
||||||
String password;
|
String password;
|
||||||
@ApiModelProperty(value = "第二密码",required = true)
|
@ApiModelProperty(value = "第二密码",required = true)
|
||||||
String passwordSecondary;
|
String secondaryPassword;
|
||||||
@ApiModelProperty(value = "门店ID",required = true)
|
@ApiModelProperty(value = "门店ID",required = true)
|
||||||
Long shopId;
|
Long shopId;
|
||||||
@ApiModelProperty(value = "门店ID",hidden = true)
|
@ApiModelProperty(value = "门店ID",hidden = true)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import com.cool.store.mapper.LineAuditInfoMapper;
|
|||||||
import com.cool.store.mapper.LineInfoMapper;
|
import com.cool.store.mapper.LineInfoMapper;
|
||||||
import com.cool.store.request.JoinIntentionRequest;
|
import com.cool.store.request.JoinIntentionRequest;
|
||||||
import com.cool.store.service.JoinIntentionService;
|
import com.cool.store.service.JoinIntentionService;
|
||||||
|
import com.cool.store.service.ThirdXinGuanJiaService;
|
||||||
import com.cool.store.service.UserAuthMappingService;
|
import com.cool.store.service.UserAuthMappingService;
|
||||||
import com.cool.store.utils.PasswordUtil;
|
import com.cool.store.utils.PasswordUtil;
|
||||||
import com.cool.store.utils.RedisUtilPool;
|
import com.cool.store.utils.RedisUtilPool;
|
||||||
@@ -63,6 +64,8 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
|
|||||||
CommonService commonService;
|
CommonService commonService;
|
||||||
@Resource
|
@Resource
|
||||||
HyPartnerUserInfoDAO hyPartnerUserInfoDAO;
|
HyPartnerUserInfoDAO hyPartnerUserInfoDAO;
|
||||||
|
@Resource
|
||||||
|
ThirdXinGuanJiaService thirdXinGuanJiaService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@@ -131,6 +134,9 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
|
|||||||
String password = PasswordUtil.encryptPassword(substring, salt);
|
String password = PasswordUtil.encryptPassword(substring, salt);
|
||||||
HyPartnerUserInfoDO hyPartnerUserInfoDO = hyPartnerUserInfoDAO.selectByPartnerId(lineInfo.getPartnerId());
|
HyPartnerUserInfoDO hyPartnerUserInfoDO = hyPartnerUserInfoDAO.selectByPartnerId(lineInfo.getPartnerId());
|
||||||
hyPartnerUserInfoDO.setDownstreamSystemPassword(password);
|
hyPartnerUserInfoDO.setDownstreamSystemPassword(password);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
hyPartnerUserInfoDO.setDownstreamSystemSalting(salt);
|
hyPartnerUserInfoDO.setDownstreamSystemSalting(salt);
|
||||||
hyPartnerUserInfoDO.setUpdateTime(new Date());
|
hyPartnerUserInfoDO.setUpdateTime(new Date());
|
||||||
hyPartnerUserInfoDAO.updatePasswordByPartnerId(hyPartnerUserInfoDO);
|
hyPartnerUserInfoDAO.updatePasswordByPartnerId(hyPartnerUserInfoDO);
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public class ShopAccountServiceImpl implements ShopAccountService {
|
|||||||
}
|
}
|
||||||
HyPartnerUserInfoDO hyPartnerUserInfoDO = hyPartnerUserInfoDAO.selectByPartnerId(shopInfo.getPartnerId());
|
HyPartnerUserInfoDO hyPartnerUserInfoDO = hyPartnerUserInfoDAO.selectByPartnerId(shopInfo.getPartnerId());
|
||||||
hyPartnerUserInfoDO.setDownstreamSystemPassword(modifyPasswordDTO.getPassword());
|
hyPartnerUserInfoDO.setDownstreamSystemPassword(modifyPasswordDTO.getPassword());
|
||||||
hyPartnerUserInfoDO.setDownstreamSystemSecondaryPassword(modifyPasswordDTO.getPasswordSecondary());
|
hyPartnerUserInfoDO.setDownstreamSystemSecondaryPassword(modifyPasswordDTO.getSecondaryPassword());
|
||||||
hyPartnerUserInfoDO.setDownstreamSystemSalting(modifyPasswordDTO.getPasswordSalt());
|
hyPartnerUserInfoDO.setDownstreamSystemSalting(modifyPasswordDTO.getPasswordSalt());
|
||||||
hyPartnerUserInfoDO.setUpdateTime(new Date());
|
hyPartnerUserInfoDO.setUpdateTime(new Date());
|
||||||
hyPartnerUserInfoDAO.updatePasswordByPartnerId(hyPartnerUserInfoDO);
|
hyPartnerUserInfoDAO.updatePasswordByPartnerId(hyPartnerUserInfoDO);
|
||||||
@@ -102,7 +102,7 @@ public class ShopAccountServiceImpl implements ShopAccountService {
|
|||||||
List<Long> shopIdList = shopInfoDAO.getShopIdList(shopInfo.getLineId());
|
List<Long> shopIdList = shopInfoDAO.getShopIdList(shopInfo.getLineId());
|
||||||
|
|
||||||
//批量修改密码 密码盐
|
//批量修改密码 密码盐
|
||||||
shopAccountDAO.batchUpdatePasswordByShopIds(shopIdList,modifyPasswordDTO.getPassword(),modifyPasswordDTO.getPasswordSecondary(),modifyPasswordDTO.getPasswordSalt(),new Date());
|
shopAccountDAO.batchUpdatePasswordByShopIds(shopIdList,modifyPasswordDTO.getPassword(),modifyPasswordDTO.getSecondaryPassword(),modifyPasswordDTO.getPasswordSalt(),new Date());
|
||||||
|
|
||||||
//当前加盟商所有开店成功的CODE
|
//当前加盟商所有开店成功的CODE
|
||||||
List<String> shopCodeList = shopInfoDAO.getShopCodeList(shopInfo.getLineId());
|
List<String> shopCodeList = shopInfoDAO.getShopCodeList(shopInfo.getLineId());
|
||||||
|
|||||||
Reference in New Issue
Block a user