批量处理云流水订货阶段接口

This commit is contained in:
shuo.wang
2025-05-23 16:33:52 +08:00
parent 7b30396dae
commit ad7c879a78
9 changed files with 110 additions and 5 deletions

View File

@@ -54,4 +54,11 @@ public class PosAndOrderInfoDAO {
}
return posAndOrderInfoMapper.batchInsert(posAndOrderInfoDOList);
}
//不通用只用于批量云流水修改备注
public Integer batchUpdateYlsRemarkByShopCode(List<String> shopCodeList, String remark){
if(CollectionUtils.isEmpty(shopCodeList)){
return 0;
}
return posAndOrderInfoMapper.batchUpdateYlsRemarkByShopCode(shopCodeList,remark);
}
}

View File

@@ -16,6 +16,8 @@ import java.util.List;
public interface PosAndOrderInfoMapper extends Mapper<PosAndOrderInfoDO> {
Integer batchInsert(@Param("list") List<PosAndOrderInfoDO> posAndOrderInfoDOList);
Integer batchUpdateYlsRemarkByShopCode( @Param("list") List<String> shopCodeList, @Param("remark") String remark);
}

View File

@@ -26,4 +26,15 @@
values (#{item.shopId},#{item.type},#{item.account},#{item.password},#{item.remark},#{item.createTime},#{item.createUser})
</foreach>
</insert>
<update id="batchUpdateYlsRemarkByShopCode">
UPDATE xfsg_pos_and_order_info a LEFT JOIN xfsg_shop_info b on a.`shop_id` = b.id
SET
a.remark = #{remark}
WHERE
b.`shop_code` in(
<foreach collection="list" item="item" separator=",">
#{item}
</foreach>
) AND a.type = 2
</update>
</mapper>