打印条码

This commit is contained in:
猫猫guowen
2025-09-11 18:02:29 +08:00
parent e99d4346b2
commit cf00d0d5ff
8 changed files with 1074 additions and 0 deletions

View File

@@ -0,0 +1,110 @@
<?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.ruoyi.bas.BasProductCode.mapper.BasProductCodeMapper">
<resultMap type="BasProductCode" id="BasProductCodeResult">
<result property="id" column="id" />
<result property="model" column="model" />
<result property="color" column="color" />
<result property="serial" column="serial" />
<result property="v" column="v" />
<result property="hz" column="hz" />
<result property="ph" column="ph" />
<result property="nW" column="n_w" />
<result property="gW" column="g_w" />
<result property="type" column="type" />
<result property="spare1" column="spare1" />
<result property="spare2" column="spare2" />
<result property="spare3" column="spare3" />
</resultMap>
<sql id="selectBasProductCodeVo">
select id, model, color, serial, v, hz, ph, n_w, g_w, type, spare1, spare2, spare3 from bas_product_code
</sql>
<select id="selectBasProductCodeList" parameterType="BasProductCode" resultMap="BasProductCodeResult">
<include refid="selectBasProductCodeVo"/>
<where>
<if test="model != null and model != ''"> and model = #{model}</if>
<if test="color != null and color != ''"> and color like concat('%', #{color}, '%')</if>
<if test="serial != null and serial != ''"> and serial like concat('%', #{serial}, '%')</if>
<if test="v != null and v != ''"> and v like concat('%', #{v}, '%')</if>
<if test="hz != null and hz != ''"> and hz like concat('%', #{hz}, '%')</if>
<if test="ph != null and ph != ''"> and ph like concat('%', #{ph}, '%')</if>
<if test="nW != null and nW != ''"> and n_w like concat('%', #{nW}, '%')</if>
<if test="gW != null and gW != ''"> and g_w like concat('%', #{gW}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
</where>
</select>
<select id="selectBasProductCodeById" parameterType="String" resultMap="BasProductCodeResult">
<include refid="selectBasProductCodeVo"/>
where id = #{id}
</select>
<insert id="insertBasProductCode" parameterType="BasProductCode">
insert into bas_product_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="model != null and model != ''">model,</if>
<if test="color != null and color != ''">color,</if>
<if test="serial != null and serial != ''">serial,</if>
<if test="v != null and v != ''">v,</if>
<if test="hz != null and hz != ''">hz,</if>
<if test="ph != null and ph != ''">ph,</if>
<if test="nW != null and nW != ''">n_w,</if>
<if test="gW != null and gW != ''">g_w,</if>
<if test="type != null">type,</if>
<if test="spare1 != null">spare1,</if>
<if test="spare2 != null">spare2,</if>
<if test="spare3 != null">spare3,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="model != null and model != ''">#{model},</if>
<if test="color != null and color != ''">#{color},</if>
<if test="serial != null and serial != ''">#{serial},</if>
<if test="v != null and v != ''">#{v},</if>
<if test="hz != null and hz != ''">#{hz},</if>
<if test="ph != null and ph != ''">#{ph},</if>
<if test="nW != null and nW != ''">#{nW},</if>
<if test="gW != null and gW != ''">#{gW},</if>
<if test="type != null">#{type},</if>
<if test="spare1 != null">#{spare1},</if>
<if test="spare2 != null">#{spare2},</if>
<if test="spare3 != null">#{spare3},</if>
</trim>
</insert>
<update id="updateBasProductCode" parameterType="BasProductCode">
update bas_product_code
<trim prefix="SET" suffixOverrides=",">
<if test="model != null and model != ''">model = #{model},</if>
<if test="color != null and color != ''">color = #{color},</if>
<if test="serial != null and serial != ''">serial = #{serial},</if>
<if test="v != null and v != ''">v = #{v},</if>
<if test="hz != null and hz != ''">hz = #{hz},</if>
<if test="ph != null and ph != ''">ph = #{ph},</if>
<if test="nW != null and nW != ''">n_w = #{nW},</if>
<if test="gW != null and gW != ''">g_w = #{gW},</if>
<if test="type != null">type = #{type},</if>
<if test="spare1 != null">spare1 = #{spare1},</if>
<if test="spare2 != null">spare2 = #{spare2},</if>
<if test="spare3 != null">spare3 = #{spare3},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBasProductCodeById" parameterType="String">
delete from bas_product_code where id = #{id}
</delete>
<delete id="deleteBasProductCodeByIds" parameterType="String">
delete from bas_product_code where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>