批量处理云流水订货阶段接口
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user