parent
62b98c0420
commit
6610b396e9
@ -0,0 +1,44 @@
|
||||
package com.hw.common.core.constant;
|
||||
|
||||
/**
|
||||
* @Description: 打印常量定义
|
||||
* @ClassName: PrintConstants
|
||||
* @Author : xins
|
||||
* @Date :2024-11-7 13:51
|
||||
* @Version :1.0
|
||||
*/
|
||||
public class PrintConstants {
|
||||
|
||||
public static final int TYPE_TEXT = 1;
|
||||
public static final int TYPE_CHECKBOX = 2;
|
||||
public static final int TYPE_QRCODE = 3;
|
||||
|
||||
public static final String PRINT_TYPE_RAW_LABEL = "1";
|
||||
public static final String PRINT_TYPE_PRODUCT_LABEL = "3";
|
||||
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_MATERIAL_NAME = "materialName";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_MATERIAL_CODE = "materialCode";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_PO_NO = "poNo";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_MATERIAL_SPEC = "materialSpec";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_PRE_MATERIAL_YES = "preMaterialYes";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_PRE_MATERIAL_NO = "preMaterialNo";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_SALE_ORDER_CODE = "saleOrderCode";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_QTY = "qty";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_BATCH_CODE = "batchCode";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_QC_RESULT_YES = "qcResultYes";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_QC_RESULT_NO = "qcResultNo";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_QRCODE = "qrcode";
|
||||
public static final String RAW_MATERIAL_LABEL_KEY_BARCODE = "barcode";
|
||||
|
||||
public static final String PRODUCT_PLAN_CODE = "productPlanCode";
|
||||
|
||||
|
||||
public static final String PRINT_TEMPLATE_RAW = "raw";
|
||||
public static final String PRINT_TEMPLATE_PRODUCT = "product";
|
||||
public static final String PRINT_TEMPLATE_BIND = "bind";
|
||||
public static final String PRINT_TEMPLATE_SMALL = "small";
|
||||
|
||||
public static final String SMALL_LABEL_KEY_TEXT = "text";
|
||||
public static final String SMALL_LABEL_KEY_QRCODE = "qrcode";
|
||||
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.hw.mes.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.hw.mes.domain.MesPrdBarcodeInfo;
|
||||
|
||||
/**
|
||||
* 小包条码Mapper接口
|
||||
*
|
||||
* @author xins
|
||||
* @date 2024-11-07
|
||||
*/
|
||||
public interface MesPrdBarcodeInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询小包条码
|
||||
*
|
||||
* @param prdBarcodeId 小包条码主键
|
||||
* @return 小包条码
|
||||
*/
|
||||
public MesPrdBarcodeInfo selectMesPrdBarcodeInfoByPrdBarcodeId(Long prdBarcodeId);
|
||||
|
||||
/**
|
||||
* 查询小包条码列表
|
||||
*
|
||||
* @param mesPrdBarcodeInfo 小包条码
|
||||
* @return 小包条码集合
|
||||
*/
|
||||
public List<MesPrdBarcodeInfo> selectMesPrdBarcodeInfoList(MesPrdBarcodeInfo mesPrdBarcodeInfo);
|
||||
|
||||
/**
|
||||
* 新增小包条码
|
||||
*
|
||||
* @param mesPrdBarcodeInfo 小包条码
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMesPrdBarcodeInfo(MesPrdBarcodeInfo mesPrdBarcodeInfo);
|
||||
|
||||
/**
|
||||
* 修改小包条码
|
||||
*
|
||||
* @param mesPrdBarcodeInfo 小包条码
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMesPrdBarcodeInfo(MesPrdBarcodeInfo mesPrdBarcodeInfo);
|
||||
|
||||
/**
|
||||
* 删除小包条码
|
||||
*
|
||||
* @param prdBarcodeId 小包条码主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesPrdBarcodeInfoByPrdBarcodeId(Long prdBarcodeId);
|
||||
|
||||
/**
|
||||
* 批量删除小包条码
|
||||
*
|
||||
* @param prdBarcodeIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMesPrdBarcodeInfoByPrdBarcodeIds(Long[] prdBarcodeIds);
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
<?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.hw.mes.mapper.MesPrdBarcodeInfoMapper">
|
||||
|
||||
<resultMap type="MesPrdBarcodeInfo" id="MesPrdBarcodeInfoResult">
|
||||
<result property="prdBarcodeId" column="prd_barcode_id" />
|
||||
<result property="prdBarcodeInfo" column="prd_barcode_info" />
|
||||
<result property="printFlag" column="print_flag" />
|
||||
<result property="mesBarcodeInfo" column="mes_barcode_info" />
|
||||
<result property="palletInfoCode" column="pallet_info_code" />
|
||||
<result property="creatTime" column="creat_time" />
|
||||
<result property="printTime" column="print_time" />
|
||||
<result property="bindTime" column="bind_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMesPrdBarcodeInfoVo">
|
||||
select prd_barcode_id, prd_barcode_info, print_flag, mes_barcode_info, pallet_info_code, creat_time, print_time, bind_time from mes_prd_barcode_info
|
||||
</sql>
|
||||
|
||||
<select id="selectMesPrdBarcodeInfoList" parameterType="MesPrdBarcodeInfo" resultMap="MesPrdBarcodeInfoResult">
|
||||
<include refid="selectMesPrdBarcodeInfoVo"/>
|
||||
<where>
|
||||
<if test="prdBarcodeInfo != null and prdBarcodeInfo != ''"> and prd_barcode_info = #{prdBarcodeInfo}</if>
|
||||
<if test="printFlag != null and printFlag != ''"> and print_flag = #{printFlag}</if>
|
||||
<if test="mesBarcodeInfo != null and mesBarcodeInfo != ''"> and mes_barcode_info = #{mesBarcodeInfo}</if>
|
||||
<if test="palletInfoCode != null and palletInfoCode != ''"> and pallet_info_code = #{palletInfoCode}</if>
|
||||
<if test="creatTime != null "> and creat_time = #{creatTime}</if>
|
||||
<if test="printTime != null "> and print_time = #{printTime}</if>
|
||||
<if test="bindTime != null "> and bind_time = #{bindTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMesPrdBarcodeInfoByPrdBarcodeId" parameterType="Long" resultMap="MesPrdBarcodeInfoResult">
|
||||
<include refid="selectMesPrdBarcodeInfoVo"/>
|
||||
where prd_barcode_id = #{prdBarcodeId}
|
||||
</select>
|
||||
|
||||
<insert id="insertMesPrdBarcodeInfo" parameterType="MesPrdBarcodeInfo" useGeneratedKeys="true" keyProperty="prdBarcodeId">
|
||||
insert into mes_prd_barcode_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="prdBarcodeInfo != null and prdBarcodeInfo != ''">prd_barcode_info,</if>
|
||||
<if test="printFlag != null and printFlag != ''">print_flag,</if>
|
||||
<if test="mesBarcodeInfo != null">mes_barcode_info,</if>
|
||||
<if test="palletInfoCode != null">pallet_info_code,</if>
|
||||
<if test="creatTime != null">creat_time,</if>
|
||||
<if test="printTime != null">print_time,</if>
|
||||
<if test="bindTime != null">bind_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="prdBarcodeInfo != null and prdBarcodeInfo != ''">#{prdBarcodeInfo},</if>
|
||||
<if test="printFlag != null and printFlag != ''">#{printFlag},</if>
|
||||
<if test="mesBarcodeInfo != null">#{mesBarcodeInfo},</if>
|
||||
<if test="palletInfoCode != null">#{palletInfoCode},</if>
|
||||
<if test="creatTime != null">#{creatTime},</if>
|
||||
<if test="printTime != null">#{printTime},</if>
|
||||
<if test="bindTime != null">#{bindTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMesPrdBarcodeInfo" parameterType="MesPrdBarcodeInfo">
|
||||
update mes_prd_barcode_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="prdBarcodeInfo != null and prdBarcodeInfo != ''">prd_barcode_info = #{prdBarcodeInfo},</if>
|
||||
<if test="printFlag != null and printFlag != ''">print_flag = #{printFlag},</if>
|
||||
<if test="mesBarcodeInfo != null">mes_barcode_info = #{mesBarcodeInfo},</if>
|
||||
<if test="palletInfoCode != null">pallet_info_code = #{palletInfoCode},</if>
|
||||
<if test="creatTime != null">creat_time = #{creatTime},</if>
|
||||
<if test="printTime != null">print_time = #{printTime},</if>
|
||||
<if test="bindTime != null">bind_time = #{bindTime},</if>
|
||||
</trim>
|
||||
where prd_barcode_id = #{prdBarcodeId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMesPrdBarcodeInfoByPrdBarcodeId" parameterType="Long">
|
||||
delete from mes_prd_barcode_info where prd_barcode_id = #{prdBarcodeId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMesPrdBarcodeInfoByPrdBarcodeIds" parameterType="String">
|
||||
delete from mes_prd_barcode_info where prd_barcode_id in
|
||||
<foreach item="prdBarcodeId" collection="array" open="(" separator="," close=")">
|
||||
#{prdBarcodeId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue