feat:域名切换
This commit is contained in:
@@ -76,8 +76,8 @@ public class ShopAccountDAO {
|
||||
* @param status 状态
|
||||
* @return 影响的行数
|
||||
*/
|
||||
public int updateStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status){
|
||||
return shopAccountMapper.updateStatusByShopIdAndSystemName(shopId,systemNameList,status);
|
||||
public int updateStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status,Date syncTime){
|
||||
return shopAccountMapper.updateStatusByShopIdAndSystemName(shopId,systemNameList,status,syncTime);
|
||||
}
|
||||
|
||||
public int updateEntryStatusByShopIdAndSystemName(Long shopId, List<String> systemNameList, Integer status){
|
||||
|
||||
@@ -35,7 +35,7 @@ public interface ShopAccountMapper extends Mapper<ShopAccountDO> {
|
||||
int updateStatusByShopIdAndSystemName(
|
||||
@Param("shopId") Long shopId,
|
||||
@Param("systemNameList") List<String> systemNameList,
|
||||
@Param("status") Integer status
|
||||
@Param("status") Integer status,Date lastSyncTime
|
||||
);
|
||||
|
||||
int updateEntryStatusByShopIdAndSystemName(
|
||||
|
||||
@@ -75,8 +75,14 @@
|
||||
<update id="updateStatusByShopIdAndSystemName">
|
||||
UPDATE
|
||||
xfsg_shop_account
|
||||
SET
|
||||
status = #{status,jdbcType=BIT}
|
||||
<set>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
<if test="syncTime != null">
|
||||
last_sync_time = #{syncTime},
|
||||
</if>
|
||||
</set>
|
||||
WHERE
|
||||
shop_id = #{shopId}
|
||||
and system_name in
|
||||
|
||||
Reference in New Issue
Block a user