增加字段 同步数据组合
This commit is contained in:
@@ -79,11 +79,9 @@ public class ShopInfoDAO {
|
||||
return shopInfoMapper.getShopList(lineId);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopIdBySuccessOpen(Integer shopStatus){
|
||||
if (Objects.isNull(shopStatus)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return shopInfoMapper.getShopIdBySuccessOpen(shopStatus);
|
||||
public List<ShopInfoDO> getShopIdBySuccessOpen(String eid){
|
||||
|
||||
return shopInfoMapper.getShopIdBySuccessOpen(eid);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopListByRegion(Long lineId,List<Long> regionIdList,String userId){
|
||||
@@ -238,4 +236,14 @@ public class ShopInfoDAO {
|
||||
}
|
||||
return shopInfoMapper.getOpenName(eid,shopId);
|
||||
}
|
||||
public Integer updateShopCode(String shopCode,Long shopId){
|
||||
return shopInfoMapper.updateShopCode(shopCode,shopId);
|
||||
}
|
||||
|
||||
public List<String> getShopCodeList(Long lineId){
|
||||
if (lineId == null){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return shopInfoMapper.getShopCodeList(lineId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,9 +121,13 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
|
||||
List<ShopInfoDO> selectByLines (@Param("list") List<Long> list,@Param("regionIds") List<Long> regionIds);
|
||||
|
||||
List<ShopInfoDO> getShopIdBySuccessOpen(@Param("shopStatus") Integer shopStatus);
|
||||
List<ShopInfoDO> getShopIdBySuccessOpen(@Param("eid") String eid);
|
||||
|
||||
List<MiniShopsResponse> getShopListSuccessOpen(@Param("eid") String eid,@Param("lineId") Long lineId);
|
||||
|
||||
String getOpenName(@Param("eid") String eid,@Param("shopId")Long shopId);
|
||||
|
||||
Integer updateShopCode(@Param("shopCode") String shopCode,@Param("shopId") Long shopId);
|
||||
|
||||
List<String> getShopCodeList(@Param("lineId") Long lineId);
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createUser" column="create_user" jdbcType="VARCHAR"/>
|
||||
<result property="updateUser" column="update_user" jdbcType="VARCHAR"/>
|
||||
<result property="cShopName" column="c_shop_name" jdbcType="VARCHAR"/>
|
||||
<result property="settlerBankBackPhotoUrl" column="settler_bank_back_photo_url" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
@@ -47,6 +49,6 @@
|
||||
settler_id_card_front,settler_id_card_reverse,settler_in_hand_front_picture,settler_in_hand_back_picture,settler_id_card_no,
|
||||
settler_bank_number,settler_bank_mobile,settler_bank_name,
|
||||
create_time,update_time,create_user,
|
||||
update_user
|
||||
update_user,c_shop_name,settler_bank_back_photo_url
|
||||
</sql>
|
||||
</mapper>
|
||||
|
||||
@@ -427,6 +427,11 @@
|
||||
inner join store_${eid} b on a.shop_code = b.store_num
|
||||
where a.id = #{shopId}
|
||||
</select>
|
||||
<select id="getShopCodeList" resultType="java.lang.String">
|
||||
select shop_code
|
||||
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=";">
|
||||
@@ -441,4 +446,7 @@
|
||||
WHERE id = #{item.id}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="updateShopCode">
|
||||
update xfsg_shop_info set shop_code = #{shopCode} where id = #{shopId}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user