|
@@ -0,0 +1,393 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.hcloud.microservice.goods.dao.GoodsQRCodeInfoMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.hcloud.microservice.goods.facade.entity.GoodsQRCodeInfo">
|
|
|
+ <id column="guid" jdbcType="CHAR" property="guid" />
|
|
|
+ <result column="fk_org_guid" jdbcType="CHAR" property="fkOrgGuid" />
|
|
|
+ <result column="fk_goods_guid" jdbcType="CHAR" property="fkGoodsGuid" />
|
|
|
+ <result column="fk_batch_record_guid" jdbcType="CHAR" property="fkBatchRecordGuid" />
|
|
|
+ <result column="qrcode" jdbcType="VARCHAR" property="qrcode" />
|
|
|
+ <result column="qrcode_token" jdbcType="VARCHAR" property="qrcodeToken" />
|
|
|
+ <result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl" />
|
|
|
+ <result column="qrcode_img" jdbcType="VARCHAR" property="qrcodeImg" />
|
|
|
+ <result column="scan_count" jdbcType="INTEGER" property="scanCount" />
|
|
|
+ <result column="scan_first_timed" jdbcType="TIMESTAMP" property="scanFirstTimed" />
|
|
|
+ <result column="scan_last_timed" jdbcType="TIMESTAMP" property="scanLastTimed" />
|
|
|
+ <result column="state" jdbcType="INTEGER" property="state" />
|
|
|
+ <result column="create_user" jdbcType="CHAR" property="createUser" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="modified_user" jdbcType="VARCHAR" property="modifiedUser" />
|
|
|
+ <result column="modified_time" jdbcType="TIMESTAMP" property="modifiedTime" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ guid, fk_org_guid, fk_goods_guid, fk_batch_record_guid, qrcode, qrcode_token, qrcode_url,
|
|
|
+ qrcode_img, scan_count,scan_first_timed,scan_last_timed,state, create_user, create_time,
|
|
|
+ modified_user, modified_time
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_goods_qrcode_info
|
|
|
+ where guid = #{guid,jdbcType=CHAR}
|
|
|
+ </select>
|
|
|
+ <select id="queryGoodsQRCodeInfoByRecId" resultType="com.hcloud.microservice.goods.bo.GoodsQRCodeInfoBO">
|
|
|
+ SELECT
|
|
|
+ aa.guid,
|
|
|
+ bb.goods_name AS goodsName,
|
|
|
+ aa.qrcode AS qrcode,
|
|
|
+ dd.goods_parent_qrcode AS qrcodeParentCode,
|
|
|
+ aa.qrcode_img AS qrcodeImg,
|
|
|
+ aa.qrcode_token AS qrcodeToken,
|
|
|
+ aa.qrcode_url AS qrcodeUrl,
|
|
|
+ aa.scan_count AS scanCount,
|
|
|
+ aa.scan_first_timed AS scanFirstTimed,
|
|
|
+ aa.scan_last_timed AS scanLastTimed
|
|
|
+ FROM
|
|
|
+ t_goods_qrcode_info aa
|
|
|
+ LEFT JOIN t_goods_info bb ON aa.fk_goods_guid = bb.guid
|
|
|
+ LEFT JOIN t_goods_qrcode_record dd ON aa.fk_batch_record_guid = dd.guid
|
|
|
+ WHERE
|
|
|
+ aa.state=1
|
|
|
+ AND aa.fk_batch_record_guid = #{recodeId,jdbcType=CHAR}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getGoodsQRInfoByQrToken" resultType="com.hcloud.microservice.goods.bo.GoodsQRCodeInfoBO">
|
|
|
+ SELECT
|
|
|
+ aa.guid,
|
|
|
+ aa.fk_org_guid AS fkOrgGuid,
|
|
|
+ aa.fk_batch_record_guid AS fkBatchRecordGuid,
|
|
|
+ aa.fk_goods_guid AS fkGoodsGuid,
|
|
|
+ bb.goods_name AS goodsName,
|
|
|
+ aa.qrcode AS qrcode,
|
|
|
+ dd.goods_parent_qrcode AS qrcodeParentCode,
|
|
|
+ aa.qrcode_img AS qrcodeImg,
|
|
|
+ aa.qrcode_token AS qrcodeToken,
|
|
|
+ aa.qrcode_url AS qrcodeUrl,
|
|
|
+ aa.scan_count AS scanCount,
|
|
|
+ aa.scan_first_timed AS scanFirstTimed,
|
|
|
+ aa.scan_last_timed AS scanLastTimed,
|
|
|
+ hh.company_url AS companyUrl,
|
|
|
+ hh.company_tel AS companyTel,
|
|
|
+ hh.qq_code AS qqCode,
|
|
|
+ hh.wx_qr_img AS wxQRImg,
|
|
|
+ hh.org_address AS orgAddress,
|
|
|
+ hh.org_name AS orgName,
|
|
|
+ hh.principals AS principals,
|
|
|
+ hh.tel AS tel,
|
|
|
+ hh.remark AS remark,
|
|
|
+ hh.ico AS ico,
|
|
|
+ hh.tmall_url AS tmallUrl,
|
|
|
+ hh.jd_url AS jdUrl,
|
|
|
+ hh.qualifica_imgs AS qualificaImgs
|
|
|
+ FROM
|
|
|
+ t_goods_qrcode_info aa
|
|
|
+ LEFT JOIN t_goods_info bb ON aa.fk_goods_guid = bb.guid
|
|
|
+ LEFT JOIN t_goods_qrcode_record dd ON aa.fk_batch_record_guid = dd.guid
|
|
|
+ LEFT JOIN t_base_org hh ON hh.guid = aa.fk_org_guid
|
|
|
+ WHERE
|
|
|
+ aa.state=1
|
|
|
+ AND aa.qrcode_token = #{qrToken,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from t_goods_qrcode_info
|
|
|
+ where guid = #{guid,jdbcType=CHAR}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="delQRCodeInfoByRecordId">
|
|
|
+ delete from t_goods_qrcode_info
|
|
|
+ where fk_batch_record_guid = #{recordId,jdbcType=CHAR}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="com.hcloud.microservice.goods.facade.entity.GoodsQRCodeInfo">
|
|
|
+ insert into t_goods_qrcode_info (guid, fk_org_guid, fk_goods_guid,
|
|
|
+ fk_batch_record_guid, qrcode, qrcode_token,
|
|
|
+ qrcode_url, qrcode_img, scan_count,scan_first_timed,scan_last_timed,
|
|
|
+ state,create_user, create_time, modified_user, modified_time)
|
|
|
+ values (#{guid,jdbcType=CHAR}, #{fkOrgGuid,jdbcType=CHAR}, #{fkGoodsGuid,jdbcType=CHAR},
|
|
|
+ #{fkBatchRecordGuid,jdbcType=CHAR}, #{qrcode,jdbcType=VARCHAR}, #{qrcodeToken,jdbcType=VARCHAR},
|
|
|
+ #{qrcodeUrl,jdbcType=VARCHAR}, #{qrcodeImg,jdbcType=VARCHAR},#{scanCount,jdbcType=INTEGER} ,
|
|
|
+ #{scanFirstTimed,jdbcType=TIMESTAMP},#{scanLastTimed,jdbcType=TIMESTAMP},#{state,jdbcType=INTEGER},
|
|
|
+ #{createUser,jdbcType=CHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifiedUser,jdbcType=VARCHAR},
|
|
|
+ #{modifiedTime,jdbcType=TIMESTAMP})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.hcloud.microservice.goods.facade.entity.GoodsQRCodeInfo">
|
|
|
+ insert into t_goods_qrcode_info
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="guid != null">
|
|
|
+ guid,
|
|
|
+ </if>
|
|
|
+ <if test="fkOrgGuid != null">
|
|
|
+ fk_org_guid,
|
|
|
+ </if>
|
|
|
+ <if test="fkGoodsGuid != null">
|
|
|
+ fk_goods_guid,
|
|
|
+ </if>
|
|
|
+ <if test="fkBatchRecordGuid != null">
|
|
|
+ fk_batch_record_guid,
|
|
|
+ </if>
|
|
|
+ <if test="qrcode != null">
|
|
|
+ qrcode,
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeToken != null">
|
|
|
+ qrcode_token,
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeUrl != null">
|
|
|
+ qrcode_url,
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeImg != null">
|
|
|
+ qrcode_img,
|
|
|
+ </if>
|
|
|
+ <if test="scanCount != null">
|
|
|
+ scan_count,
|
|
|
+ </if>
|
|
|
+ <if test="scanFirstTimed != null">
|
|
|
+ scan_first_timed,
|
|
|
+ </if>
|
|
|
+ <if test="scanLastTimed != null">
|
|
|
+ scan_last_timed,
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ state,
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ create_user,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="modifiedUser != null">
|
|
|
+ modified_user,
|
|
|
+ </if>
|
|
|
+ <if test="modifiedTime != null">
|
|
|
+ modified_time,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="guid != null">
|
|
|
+ #{guid,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fkOrgGuid != null">
|
|
|
+ #{fkOrgGuid,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fkGoodsGuid != null">
|
|
|
+ #{fkGoodsGuid,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fkBatchRecordGuid != null">
|
|
|
+ #{fkBatchRecordGuid,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcode != null">
|
|
|
+ #{qrcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeToken != null">
|
|
|
+ #{qrcodeToken,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeUrl != null">
|
|
|
+ #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeImg != null">
|
|
|
+ #{qrcodeImg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="scanCount != null">
|
|
|
+ #{scanCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="scanFirstTimed != null">
|
|
|
+ #{scanFirstTimed,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="scanLastTimed != null">
|
|
|
+ #{scanLastTimed,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ #{state,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ #{createUser,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="modifiedUser != null">
|
|
|
+ #{modifiedUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifiedTime != null">
|
|
|
+ #{modifiedTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <insert id="batchSaveQRCodeInfo">
|
|
|
+ insert into t_goods_qrcode_info (guid, fk_org_guid, fk_goods_guid,
|
|
|
+ fk_batch_record_guid, qrcode, qrcode_token,
|
|
|
+ qrcode_url, qrcode_img, scan_count,scan_first_timed,scan_last_timed,
|
|
|
+ state,create_user, create_time, modified_user, modified_time)
|
|
|
+ values
|
|
|
+ <foreach collection="list" item="bean" open="" separator="," close="">
|
|
|
+ (REPLACE(UUID(),'-',''), #{bean.fkOrgGuid,jdbcType=CHAR}, #{bean.fkGoodsGuid,jdbcType=CHAR},
|
|
|
+ #{bean.fkBatchRecordGuid,jdbcType=CHAR}, #{bean.qrcode,jdbcType=VARCHAR}, #{bean.qrcodeToken,jdbcType=VARCHAR},
|
|
|
+ #{bean.qrcodeUrl,jdbcType=VARCHAR}, #{bean.qrcodeImg,jdbcType=VARCHAR},#{bean.scanCount,jdbcType=INTEGER} ,
|
|
|
+ #{bean.scanFirstTimed,jdbcType=TIMESTAMP},#{bean.scanLastTimed,jdbcType=TIMESTAMP},#{bean.state,jdbcType=INTEGER},
|
|
|
+ #{bean.createUser,jdbcType=CHAR}, #{bean.createTime,jdbcType=TIMESTAMP}, #{bean.modifiedUser,jdbcType=VARCHAR},
|
|
|
+ #{bean.modifiedTime,jdbcType=TIMESTAMP})
|
|
|
+ </foreach>
|
|
|
+
|
|
|
+
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.hcloud.microservice.goods.facade.entity.GoodsQRCodeInfo">
|
|
|
+ update t_goods_qrcode_info
|
|
|
+ <set>
|
|
|
+ <if test="fkOrgGuid != null">
|
|
|
+ fk_org_guid = #{fkOrgGuid,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fkGoodsGuid != null">
|
|
|
+ fk_goods_guid = #{fkGoodsGuid,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="fkBatchRecordGuid != null">
|
|
|
+ fk_batch_record_guid = #{fkBatchRecordGuid,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcode != null">
|
|
|
+ qrcode = #{qrcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeToken != null">
|
|
|
+ qrcode_token = #{qrcodeToken,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeUrl != null">
|
|
|
+ qrcode_url = #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeImg != null">
|
|
|
+ qrcode_img = #{qrcodeImg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="scanCount != null">
|
|
|
+ scan_count=#{scanCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="scanFirstTimed != null">
|
|
|
+ scan_first_timed=#{scanFirstTimed,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="scanLastTimed != null">
|
|
|
+ scan_last_timed=#{scanLastTimed,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ state = #{state,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ create_user = #{createUser,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="modifiedUser != null">
|
|
|
+ modified_user = #{modifiedUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifiedTime != null">
|
|
|
+ modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where guid = #{guid,jdbcType=CHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.hcloud.microservice.goods.facade.entity.GoodsQRCodeInfo">
|
|
|
+ update t_goods_qrcode_info
|
|
|
+ set fk_org_guid = #{fkOrgGuid,jdbcType=CHAR},
|
|
|
+ fk_goods_guid = #{fkGoodsGuid,jdbcType=CHAR},
|
|
|
+ fk_batch_record_guid = #{fkBatchRecordGuid,jdbcType=CHAR},
|
|
|
+ qrcode = #{qrcode,jdbcType=VARCHAR},
|
|
|
+ qrcode_token = #{qrcodeToken,jdbcType=VARCHAR},
|
|
|
+ qrcode_url = #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
+ qrcode_img = #{qrcodeImg,jdbcType=VARCHAR},
|
|
|
+ scan_count=#{scanCount,jdbcType=INTEGER},
|
|
|
+ scan_first_timed=#{scanFirstTimed,jdbcType=TIMESTAMP},
|
|
|
+ scan_last_timed=#{scanLastTimed,jdbcType=TIMESTAMP},
|
|
|
+ state = #{state,jdbcType=INTEGER},
|
|
|
+ create_user = #{createUser,jdbcType=CHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ modified_user = #{modifiedUser,jdbcType=VARCHAR},
|
|
|
+ modified_time = #{modifiedTime,jdbcType=TIMESTAMP}
|
|
|
+ where guid = #{guid,jdbcType=CHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateGoodsQRCodeInfoByRecord" parameterType="com.hcloud.microservice.goods.facade.entity.GoodsQRCodeInfo">
|
|
|
+ update t_goods_qrcode_info
|
|
|
+ <set>
|
|
|
+ <if test="qrcode != null">
|
|
|
+ qrcode = #{qrcode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeToken != null">
|
|
|
+ qrcode_token = #{qrcodeToken,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeUrl != null">
|
|
|
+ qrcode_url = #{qrcodeUrl,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="qrcodeImg != null">
|
|
|
+ qrcode_img = #{qrcodeImg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="scanCount != null">
|
|
|
+ scan_count=#{scanCount,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="scanFirstTimed != null">
|
|
|
+ scan_first_timed=#{scanFirstTimed,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="scanLastTimed != null">
|
|
|
+ scan_last_timed=#{scanLastTimed,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="state != null">
|
|
|
+ state = #{state,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null">
|
|
|
+ create_user = #{createUser,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="modifiedUser != null">
|
|
|
+ modified_user = #{modifiedUser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modifiedTime != null">
|
|
|
+ modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where fk_batch_record_guid = #{fkBatchRecordGuid,jdbcType=CHAR}
|
|
|
+ </update>
|
|
|
+ <update id="batchUpdateGoodsQRCodeInfoByRecord">
|
|
|
+ update t_goods_qrcode_info
|
|
|
+ set state = 0,modified_time = NOW()
|
|
|
+ where fk_batch_record_guid in
|
|
|
+ <foreach collection="list" item="guid" open="(" separator="," close=")">
|
|
|
+ #{guid}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <!-- 通过生成记录Id查询打印溯源码信息 lym -->
|
|
|
+ <select id="getPrintGoodsQRInfo" parameterType="com.hcloud.microservice.goods.facade.forms.GoodsQRCodeInfoForm"
|
|
|
+ resultType="com.hcloud.microservice.goods.bo.GoodsQRCodeInfoBO">
|
|
|
+ SELECT
|
|
|
+ aa.guid,
|
|
|
+ bb.goods_name AS goodsName,
|
|
|
+ aa.qrcode AS qrcode,
|
|
|
+ dd.goods_parent_qrcode AS qrcodeParentCode,
|
|
|
+ aa.qrcode_img AS qrcodeImg,
|
|
|
+ aa.qrcode_token AS qrcodeToken,
|
|
|
+ aa.qrcode_url AS qrcodeUrl,
|
|
|
+ hh.company_url AS companyUrl,
|
|
|
+ hh.company_tel AS companyTel,
|
|
|
+ hh.org_address AS orgAddress,
|
|
|
+ hh.org_name AS orgName,
|
|
|
+ CONCAT("/images/",dd.goods_parent_qrcode,"/",aa.qrcode_img) AS qrImgUrl
|
|
|
+ FROM
|
|
|
+ t_goods_qrcode_info aa
|
|
|
+ LEFT JOIN t_goods_info bb ON aa.fk_goods_guid = bb.guid
|
|
|
+ LEFT JOIN t_goods_qrcode_record dd ON aa.fk_batch_record_guid = dd.guid
|
|
|
+ LEFT JOIN t_base_org hh ON hh.guid = aa.fk_org_guid
|
|
|
+ WHERE
|
|
|
+ aa.state=1 AND aa.is_print = 0
|
|
|
+ AND aa.fk_batch_record_guid = #{fkBatchRecordGuid,jdbcType=CHAR}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!-- 修改是否打印状态 lym -->
|
|
|
+ <update id="updateQRIsPrint" parameterType="list">
|
|
|
+ update t_goods_qrcode_info set is_print = 1
|
|
|
+ <where>
|
|
|
+ <if test="ids != null">
|
|
|
+ guid in
|
|
|
+ <foreach collection="ids" item="id" separator="," open="(" close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </update>
|
|
|
+</mapper>
|