feat:平台账号

This commit is contained in:
苏竹红
2025-04-09 10:04:35 +08:00
parent f42f751cce
commit abc7c206c4
19 changed files with 425 additions and 25 deletions

View File

@@ -36,10 +36,13 @@ public class ShopAccountDAO {
shopAccountDO.setShopId(shopId);
shopAccountDO.setSystemName(shopAccountEnum.getSystemName());
shopAccountDO.setBoundPhone(partnerUserInfoDO.getMobile());
shopAccountDO.setPasswordSalt(partnerUserInfoDO.getDownstreamSystemSalting());
shopAccountDO.setPassword(partnerUserInfoDO.getDownstreamSystemPassword());
//其他账户不使用统一密码
if (ShopAccountEnum.getSpecialEnumList().contains(shopAccountEnum)){
shopAccountDO.setPasswordSalt(partnerUserInfoDO.getDownstreamSystemSalting());
shopAccountDO.setPassword(partnerUserInfoDO.getDownstreamSystemPassword());
}
shopAccountDO.setStatus(shopAccountEnum.getInitStatus().getCode());
if (ShopAccountEnum.HuoMa.equals(shopAccountEnum)){
if (ShopAccountEnum.HUOMA.equals(shopAccountEnum)){
shopAccountDO.setEntryStatus(CommonConstants.ONE);
}
shopAccountDOS.add(shopAccountDO);
@@ -116,5 +119,10 @@ public class ShopAccountDAO {
}
public List<ShopAccountDO> getALlFail(){
return shopAccountMapper.getALlFail();
}
}

View File

@@ -69,6 +69,12 @@ public interface ShopAccountMapper extends Mapper<ShopAccountDO> {
);
/**
* 查询云流水、新掌柜 POS失败的数据 重新推数据
* @return
*/
List<ShopAccountDO> getALlFail();
}

View File

@@ -126,4 +126,11 @@
#{shopId}
</foreach>
</update>
<select id="getALlFail">
select * from xfsg_shop_account WHERE
system_name in ('火码POS','云流水','新掌柜')
and status = 6
</select>
</mapper>