feat:平台账号
This commit is contained in:
@@ -40,6 +40,7 @@ public class ShopAccountDAO {
|
||||
if (ShopAccountEnum.getSpecialEnumList().contains(shopAccountEnum)){
|
||||
shopAccountDO.setPasswordSalt(partnerUserInfoDO.getDownstreamSystemSalting());
|
||||
shopAccountDO.setPassword(partnerUserInfoDO.getDownstreamSystemPassword());
|
||||
shopAccountDO.setSecondaryPassword(partnerUserInfoDO.getDownstreamSystemSecondaryPassword());
|
||||
}
|
||||
shopAccountDO.setStatus(shopAccountEnum.getInitStatus().getCode());
|
||||
if (ShopAccountEnum.HUOMA.equals(shopAccountEnum)){
|
||||
@@ -71,7 +72,7 @@ public class ShopAccountDAO {
|
||||
/**
|
||||
* 根据shopId与system_name修改status
|
||||
* @param shopId 店铺ID
|
||||
* @param systemName 系统名称
|
||||
* @param systemNameList 系统名称
|
||||
* @param status 状态
|
||||
* @return 影响的行数
|
||||
*/
|
||||
@@ -112,9 +113,9 @@ public class ShopAccountDAO {
|
||||
* @param lastSyncTime
|
||||
* @return
|
||||
*/
|
||||
public int batchUpdatePasswordByShopIds( List<Long> shopIds, String password, String passwordSalt, Date lastSyncTime){
|
||||
public int batchUpdatePasswordByShopIds( List<Long> shopIds, String password,String secondaryPassword, String passwordSalt, Date lastSyncTime){
|
||||
return shopAccountMapper.batchUpdatePasswordByShopIds(
|
||||
shopIds, password, passwordSalt, lastSyncTime
|
||||
shopIds, password, secondaryPassword, passwordSalt, lastSyncTime
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -253,4 +253,11 @@ public class ShopInfoDAO {
|
||||
}
|
||||
return shopInfoMapper.getShopCodeList(lineId);
|
||||
}
|
||||
|
||||
public List<Long> getShopIdList(Long lineId){
|
||||
if (lineId == null){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return shopInfoMapper.getShopIdList(lineId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@ public interface ShopAccountMapper extends Mapper<ShopAccountDO> {
|
||||
int batchUpdatePasswordByShopIds(
|
||||
@Param("shopIds") List<Long> shopIds,
|
||||
@Param("password") String password,
|
||||
@Param("secondaryPassword") String secondaryPassword,
|
||||
@Param("passwordSalt") String passwordSalt,
|
||||
@Param("lastSyncTime") Date lastSyncTime
|
||||
);
|
||||
|
||||
@@ -132,4 +132,6 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
Integer updateShopCode(@Param("shopCode") String shopCode,@Param("shopId") Long shopId);
|
||||
|
||||
List<String> getShopCodeList(@Param("lineId") Long lineId);
|
||||
|
||||
List<Long> getShopIdList(@Param("lineId") Long lineId);
|
||||
}
|
||||
|
||||
@@ -117,6 +117,7 @@
|
||||
xfsg_shop_account
|
||||
SET
|
||||
password = #{password},
|
||||
secondary_password = #{secondaryPassword},
|
||||
password_salt = #{passwordSalt},
|
||||
last_sync_time = #{lastSyncTime,jdbcType=TIMESTAMP}
|
||||
WHERE
|
||||
|
||||
@@ -439,6 +439,12 @@
|
||||
where deleted = 0 and line_id = #{lineId} and shop_code is not null
|
||||
</select>
|
||||
|
||||
<select id="getShopIdList" resultType="java.lang.String">
|
||||
select id
|
||||
from xfsg_shop_info
|
||||
where deleted = 0 and line_id = #{lineId} and shop_code is not null
|
||||
</select>
|
||||
|
||||
<update id="batchUpdate" parameterType="list">
|
||||
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
||||
UPDATE xfsg_shop_info
|
||||
|
||||
Reference in New Issue
Block a user