2024-06-07 质量模块-抽样方案改版

master
A0010407 8 months ago
parent 67db458c5d
commit 52c9c41a6d

@ -17,139 +17,139 @@ private static final long serialVersionUID=1L;
/** id */ /** id */
private String id; private String id;
/** 样品量字码开始 */ /** 样品量字码 */
@Excel(name = "样品量字码开始") @Excel(name = "样品量字码")
private String sampleCode; private String sampleCode;
/** 样品量字码结束 */ /** 样品量字码结束 */
@Excel(name = "样品量字码结束") @Excel(name = "样品量字码")
private String sampleAql; private String sampleAql;
/** 预留字段1 */ /** 预留字段1 */
@Excel(name = "预留字段1") @Excel(name = "预留字段1")
private String attr1; private String attr1;
/** 工厂编码 */ /** 工厂编码 */
@Excel(name = "工厂编码") @Excel(name = "工厂编码")
private String factoryCode; private String factoryCode;
/** 删除标识1删除0正常 */ /** 删除标识1删除0正常 */
private String delFlag; private String delFlag;
/** 最大坏量 */ /** 最大坏量 */
@Excel(name = "最大坏量") @Excel(name = "最大坏量")
private Long maxBadQuality; private Long maxBadQuality;
/** 小节点 */ /** 小节点 */
@Excel(name = "小节点") @Excel(name = "小节点")
private String checkType; private String checkType;
/** 大节点 */ /** 大节点 */
@Excel(name = "大节点") @Excel(name = "大节点")
private String typeCode; private String typeCode;
/** 0.010 */ /** 0.010 */
@Excel(name = "0.010") @Excel(name = "0.010")
private Long aql1; private Long aql1;
/** 0.015 */ /** 0.015 */
@Excel(name = "0.015") @Excel(name = "0.015")
private Long aql2; private Long aql2;
/** 0.025 */ /** 0.025 */
@Excel(name = "0.025") @Excel(name = "0.025")
private Long aql3; private Long aql3;
/** 0.040 */ /** 0.040 */
@Excel(name = "0.040") @Excel(name = "0.040")
private Long aql4; private Long aql4;
/** 0.065 */ /** 0.065 */
@Excel(name = "0.065") @Excel(name = "0.065")
private Long aql5; private Long aql5;
/** 0.10 */ /** 0.10 */
@Excel(name = "0.10") @Excel(name = "0.10")
private Long aql6; private Long aql6;
/** 0.15 */ /** 0.15 */
@Excel(name = "0.15") @Excel(name = "0.15")
private Long aql7; private Long aql7;
/** 0.25 */ /** 0.25 */
@Excel(name = "0.25") @Excel(name = "0.25")
private Long aql8; private Long aql8;
/** 0.40 */ /** 0.40 */
@Excel(name = "0.40") @Excel(name = "0.40")
private Long aql9; private Long aql9;
/** 0.65 */ /** 0.65 */
@Excel(name = "0.65") @Excel(name = "0.65")
private Long aql10; private Long aql10;
/** 1.0 */ /** 1.0 */
@Excel(name = "1.0") @Excel(name = "1.0")
private Long aql11; private Long aql11;
/** 1.5 */ /** 1.5 */
@Excel(name = "1.5") @Excel(name = "1.5")
private Long aql12; private Long aql12;
/** 2.5 */ /** 2.5 */
@Excel(name = "2.5") @Excel(name = "2.5")
private Long aql13; private Long aql13;
/** 4.0 */ /** 4.0 */
@Excel(name = "4.0") @Excel(name = "4.0")
private Long aql14; private Long aql14;
/** 6.5 */ /** 6.5 */
@Excel(name = "6.5") @Excel(name = "6.5")
private Long aql15; private Long aql15;
/** 10 */ /** 10 */
@Excel(name = "10") @Excel(name = "10")
private Long aql16; private Long aql16;
/** 15 */ /** 15 */
@Excel(name = "15") @Excel(name = "15")
private Long aql17; private Long aql17;
/** 25 */ /** 25 */
@Excel(name = "25") @Excel(name = "25")
private Long aql18; private Long aql18;
/** 40 */ /** 40 */
@Excel(name = "40") @Excel(name = "40")
private Long aql19; private Long aql19;
/** 65 */ /** 65 */
@Excel(name = "65") @Excel(name = "65")
private Long aql20; private Long aql20;
/** 100 */ /** 100 */
@Excel(name = "100") @Excel(name = "100")
private Long aql21; private Long aql21;
/** 150 */ /** 150 */
@Excel(name = "150") @Excel(name = "150")
private Long aql22; private Long aql22;
/** 250 */ /** 250 */
@Excel(name = "250") @Excel(name = "250")
private Long aql23; private Long aql23;
/** 400 */ /** 400 */
@Excel(name = "400") @Excel(name = "400")
private Long aql24; private Long aql24;
/** 650 */ /** 650 */
@Excel(name = "650") @Excel(name = "650")
private Long aql25; private Long aql25;
/** 1000 */ /** 1000 */
@Excel(name = "1000") @Excel(name = "1000")
private Long aql26; private Long aql26;
public void setId(String id){ public void setId(String id){

@ -17,41 +17,41 @@ private static final long serialVersionUID=1L;
/** id */ /** id */
private String id; private String id;
/** 检测水平 */
@Excel(name = "检测水平")
private String checkLevel;
/** 开始值 */ /** 开始值 */
@Excel(name = "开始值") @Excel(name = "开始值")
private Long startValue; private Long startValue;
/** 结束值 */ /** 结束值 */
@Excel(name = "结束值") @Excel(name = "结束值")
private Long endValue; private Long endValue;
/** 预留字段1 */ /** 预留字段1 */
@Excel(name = "预留字段1") @Excel(name = "预留字段1")
private String attr1; private String attr1;
/** 工厂编码 */ /** 工厂编码 */
@Excel(name = "工厂编码") @Excel(name = "工厂编码")
private String factoryCode; private String factoryCode;
/** 删除标识1删除0正常 */ /** 删除标识1删除0正常 */
private String delFlag; private String delFlag;
/** 样品量字码 */ /** 样品量字码 */
@Excel(name = "样品量字码") @Excel(name = "样品量字码")
private String sampleCode; private String sampleCode;
/** 小节点 */ /** 小节点 */
@Excel(name = "小节点") @Excel(name = "小节点")
private String checkType; private String checkType;
/** 大节点 */ /** 大节点 */
@Excel(name = "大节点") @Excel(name = "大节点")
private String typeCode; private String typeCode;
/** 检测水平 */
@Excel(name = "检测水平")
private String checkLevel;
public void setId(String id){ public void setId(String id){
this.id = id; this.id = id;
} }

@ -5,6 +5,7 @@ import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
import com.op.common.core.utils.DateUtils; import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.uuid.IdUtils; import com.op.common.core.utils.uuid.IdUtils;
import com.op.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.op.quality.mapper.QcSampleRuleAqlMapper; import com.op.quality.mapper.QcSampleRuleAqlMapper;
@ -56,6 +57,7 @@ public class QcSampleRuleAqlServiceImpl implements IQcSampleRuleAqlService {
@DS("#header.poolName") @DS("#header.poolName")
public int insertQcSampleRuleAql(QcSampleRuleAql qcSampleRuleAql) { public int insertQcSampleRuleAql(QcSampleRuleAql qcSampleRuleAql) {
qcSampleRuleAql.setCreateTime(DateUtils.getNowDate()); qcSampleRuleAql.setCreateTime(DateUtils.getNowDate());
qcSampleRuleAql.setCreateBy(SecurityUtils.getUsername());
qcSampleRuleAql.setId(IdUtils.fastSimpleUUID()); qcSampleRuleAql.setId(IdUtils.fastSimpleUUID());
return qcSampleRuleAqlMapper.insertQcSampleRuleAql(qcSampleRuleAql); return qcSampleRuleAqlMapper.insertQcSampleRuleAql(qcSampleRuleAql);
} }
@ -69,7 +71,8 @@ public class QcSampleRuleAqlServiceImpl implements IQcSampleRuleAqlService {
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
public int updateQcSampleRuleAql(QcSampleRuleAql qcSampleRuleAql) { public int updateQcSampleRuleAql(QcSampleRuleAql qcSampleRuleAql) {
qcSampleRuleAql.setUpdateTime(DateUtils.getNowDate()); qcSampleRuleAql.setUpdateTime(DateUtils.getNowDate());
qcSampleRuleAql.setUpdateBy(SecurityUtils.getUsername());
return qcSampleRuleAqlMapper.updateQcSampleRuleAql(qcSampleRuleAql); return qcSampleRuleAqlMapper.updateQcSampleRuleAql(qcSampleRuleAql);
} }

@ -5,6 +5,7 @@ import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS; import com.baomidou.dynamic.datasource.annotation.DS;
import com.op.common.core.utils.DateUtils; import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.uuid.IdUtils; import com.op.common.core.utils.uuid.IdUtils;
import com.op.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.op.quality.mapper.QcSampleRuleCodeMapper; import com.op.quality.mapper.QcSampleRuleCodeMapper;
@ -57,6 +58,7 @@ public class QcSampleRuleCodeServiceImpl implements IQcSampleRuleCodeService {
public int insertQcSampleRuleCode(QcSampleRuleCode qcSampleRuleCode) { public int insertQcSampleRuleCode(QcSampleRuleCode qcSampleRuleCode) {
qcSampleRuleCode.setId(IdUtils.fastSimpleUUID()); qcSampleRuleCode.setId(IdUtils.fastSimpleUUID());
qcSampleRuleCode.setCreateTime(DateUtils.getNowDate()); qcSampleRuleCode.setCreateTime(DateUtils.getNowDate());
qcSampleRuleCode.setCreateBy(SecurityUtils.getUsername());
return qcSampleRuleCodeMapper.insertQcSampleRuleCode(qcSampleRuleCode); return qcSampleRuleCodeMapper.insertQcSampleRuleCode(qcSampleRuleCode);
} }
@ -69,7 +71,8 @@ public class QcSampleRuleCodeServiceImpl implements IQcSampleRuleCodeService {
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
public int updateQcSampleRuleCode(QcSampleRuleCode qcSampleRuleCode) { public int updateQcSampleRuleCode(QcSampleRuleCode qcSampleRuleCode) {
qcSampleRuleCode.setUpdateTime(DateUtils.getNowDate()); qcSampleRuleCode.setUpdateTime(DateUtils.getNowDate());
qcSampleRuleCode.setUpdateBy(SecurityUtils.getUsername());
return qcSampleRuleCodeMapper.updateQcSampleRuleCode(qcSampleRuleCode); return qcSampleRuleCodeMapper.updateQcSampleRuleCode(qcSampleRuleCode);
} }

@ -53,407 +53,413 @@
<select id="selectQcSampleRuleAqlList" parameterType="QcSampleRuleAql" resultMap="QcSampleRuleAqlResult"> <select id="selectQcSampleRuleAqlList" parameterType="QcSampleRuleAql" resultMap="QcSampleRuleAqlResult">
<include refid="selectQcSampleRuleAqlVo"/> <include refid="selectQcSampleRuleAqlVo"/>
<where> <where>
<if test="sampleCode != null and sampleCode != ''"> <if test="sampleCode != null and sampleCode != ''">
and sample_code = #{sampleCode} and sample_code = #{sampleCode}
</if> </if>
<if test="sampleAql != null and sampleAql != ''"> <if test="sampleAql != null and sampleAql != ''">
and sample_aql = #{sampleAql} and sample_aql = #{sampleAql}
</if> </if>
<if test="attr1 != null and attr1 != ''"> <if test="attr1 != null and attr1 != ''">
and attr1 = #{attr1} and attr1 = #{attr1}
</if> </if>
<if test="factoryCode != null and factoryCode != ''"> <if test="factoryCode != null and factoryCode != ''">
and factory_code = #{factoryCode} and factory_code = #{factoryCode}
</if> </if>
<if test="maxBadQuality != null "> <if test="maxBadQuality != null ">
and max_bad_quality = #{maxBadQuality} and max_bad_quality = #{maxBadQuality}
</if> </if>
<if test="checkType != null and checkType != ''"> <if test="checkType != null and checkType != ''">
and check_type = #{checkType} and check_type = #{checkType}
</if> </if>
<if test="typeCode != null and typeCode != ''"> <if test="typeCode != null and typeCode != ''">
and type_code = #{typeCode} and type_code = #{typeCode}
</if> </if>
<if test="aql1 != null "> <if test="aql1 != null ">
and aql1 = #{aql1} and aql1 = #{aql1}
</if> </if>
<if test="aql2 != null "> <if test="aql2 != null ">
and aql2 = #{aql2} and aql2 = #{aql2}
</if> </if>
<if test="aql3 != null "> <if test="aql3 != null ">
and aql3 = #{aql3} and aql3 = #{aql3}
</if> </if>
<if test="aql4 != null "> <if test="aql4 != null ">
and aql4 = #{aql4} and aql4 = #{aql4}
</if> </if>
<if test="aql5 != null "> <if test="aql5 != null ">
and aql5 = #{aql5} and aql5 = #{aql5}
</if> </if>
<if test="aql6 != null "> <if test="aql6 != null ">
and aql6 = #{aql6} and aql6 = #{aql6}
</if> </if>
<if test="aql7 != null "> <if test="aql7 != null ">
and aql7 = #{aql7} and aql7 = #{aql7}
</if> </if>
<if test="aql8 != null "> <if test="aql8 != null ">
and aql8 = #{aql8} and aql8 = #{aql8}
</if> </if>
<if test="aql9 != null "> <if test="aql9 != null ">
and aql9 = #{aql9} and aql9 = #{aql9}
</if> </if>
<if test="aql10 != null "> <if test="aql10 != null ">
and aql10 = #{aql10} and aql10 = #{aql10}
</if> </if>
<if test="aql11 != null "> <if test="aql11 != null ">
and aql11 = #{aql11} and aql11 = #{aql11}
</if> </if>
<if test="aql12 != null "> <if test="aql12 != null ">
and aql12 = #{aql12} and aql12 = #{aql12}
</if> </if>
<if test="aql13 != null "> <if test="aql13 != null ">
and aql13 = #{aql13} and aql13 = #{aql13}
</if> </if>
<if test="aql14 != null "> <if test="aql14 != null ">
and aql14 = #{aql14} and aql14 = #{aql14}
</if> </if>
<if test="aql15 != null "> <if test="aql15 != null ">
and aql15 = #{aql15} and aql15 = #{aql15}
</if> </if>
<if test="aql16 != null "> <if test="aql16 != null ">
and aql16 = #{aql16} and aql16 = #{aql16}
</if> </if>
<if test="aql17 != null "> <if test="aql17 != null ">
and aql17 = #{aql17} and aql17 = #{aql17}
</if> </if>
<if test="aql18 != null "> <if test="aql18 != null ">
and aql18 = #{aql18} and aql18 = #{aql18}
</if> </if>
<if test="aql19 != null "> <if test="aql19 != null ">
and aql19 = #{aql19} and aql19 = #{aql19}
</if> </if>
<if test="aql20 != null "> <if test="aql20 != null ">
and aql20 = #{aql20} and aql20 = #{aql20}
</if> </if>
<if test="aql21 != null "> <if test="aql21 != null ">
and aql21 = #{aql21} and aql21 = #{aql21}
</if> </if>
<if test="aql22 != null "> <if test="aql22 != null ">
and aql22 = #{aql22} and aql22 = #{aql22}
</if> </if>
<if test="aql23 != null "> <if test="aql23 != null ">
and aql23 = #{aql23} and aql23 = #{aql23}
</if> </if>
<if test="aql24 != null "> <if test="aql24 != null ">
and aql24 = #{aql24} and aql24 = #{aql24}
</if> </if>
<if test="aql25 != null "> <if test="aql25 != null ">
and aql25 = #{aql25} and aql25 = #{aql25}
</if> </if>
<if test="aql26 != null "> <if test="aql26 != null ">
and aql26 = #{aql26} and aql26 = #{aql26}
</if> </if>
and del_flag = '0'
</where> </where>
order by sample_code asc
</select> </select>
<select id="selectQcSampleRuleAqlById" parameterType="String" <select id="selectQcSampleRuleAqlById" parameterType="String" resultMap="QcSampleRuleAqlResult">
resultMap="QcSampleRuleAqlResult"> <include refid="selectQcSampleRuleAqlVo"/>
<include refid="selectQcSampleRuleAqlVo"/> where id = #{id}
where id = #{id} and del_flag = '0'
</select> </select>
<insert id="insertQcSampleRuleAql" parameterType="QcSampleRuleAql"> <insert id="insertQcSampleRuleAql" parameterType="QcSampleRuleAql">
insert into qc_sample_rule_aql insert into qc_sample_rule_aql
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id, <if test="id != null">id,
</if> </if>
<if test="sampleCode != null">sample_code, <if test="sampleCode != null">sample_code,
</if> </if>
<if test="sampleAql != null">sample_aql, <if test="sampleAql != null">sample_aql,
</if> </if>
<if test="attr1 != null">attr1, <if test="attr1 != null">attr1,
</if> </if>
<if test="createBy != null">create_by, <if test="createBy != null">create_by,
</if> </if>
<if test="createTime != null">create_time, <if test="createTime != null">create_time,
</if> </if>
<if test="updateBy != null">update_by, <if test="updateBy != null">update_by,
</if> </if>
<if test="updateTime != null">update_time, <if test="updateTime != null">update_time,
</if> </if>
<if test="factoryCode != null">factory_code, <if test="factoryCode != null">factory_code,
</if> </if>
<if test="delFlag != null">del_flag, <if test="delFlag != null">del_flag,
</if> </if>
<if test="maxBadQuality != null">max_bad_quality, <if test="maxBadQuality != null">max_bad_quality,
</if> </if>
<if test="checkType != null">check_type, <if test="checkType != null">check_type,
</if> </if>
<if test="typeCode != null">type_code, <if test="typeCode != null">type_code,
</if> </if>
<if test="aql1 != null">aql1, <if test="aql1 != null">aql1,
</if> </if>
<if test="aql2 != null">aql2, <if test="aql2 != null">aql2,
</if> </if>
<if test="aql3 != null">aql3, <if test="aql3 != null">aql3,
</if> </if>
<if test="aql4 != null">aql4, <if test="aql4 != null">aql4,
</if> </if>
<if test="aql5 != null">aql5, <if test="aql5 != null">aql5,
</if> </if>
<if test="aql6 != null">aql6, <if test="aql6 != null">aql6,
</if> </if>
<if test="aql7 != null">aql7, <if test="aql7 != null">aql7,
</if> </if>
<if test="aql8 != null">aql8, <if test="aql8 != null">aql8,
</if> </if>
<if test="aql9 != null">aql9, <if test="aql9 != null">aql9,
</if> </if>
<if test="aql10 != null">aql10, <if test="aql10 != null">aql10,
</if> </if>
<if test="aql11 != null">aql11, <if test="aql11 != null">aql11,
</if> </if>
<if test="aql12 != null">aql12, <if test="aql12 != null">aql12,
</if> </if>
<if test="aql13 != null">aql13, <if test="aql13 != null">aql13,
</if> </if>
<if test="aql14 != null">aql14, <if test="aql14 != null">aql14,
</if> </if>
<if test="aql15 != null">aql15, <if test="aql15 != null">aql15,
</if> </if>
<if test="aql16 != null">aql16, <if test="aql16 != null">aql16,
</if> </if>
<if test="aql17 != null">aql17, <if test="aql17 != null">aql17,
</if> </if>
<if test="aql18 != null">aql18, <if test="aql18 != null">aql18,
</if> </if>
<if test="aql19 != null">aql19, <if test="aql19 != null">aql19,
</if> </if>
<if test="aql20 != null">aql20, <if test="aql20 != null">aql20,
</if> </if>
<if test="aql21 != null">aql21, <if test="aql21 != null">aql21,
</if> </if>
<if test="aql22 != null">aql22, <if test="aql22 != null">aql22,
</if> </if>
<if test="aql23 != null">aql23, <if test="aql23 != null">aql23,
</if> </if>
<if test="aql24 != null">aql24, <if test="aql24 != null">aql24,
</if> </if>
<if test="aql25 != null">aql25, <if test="aql25 != null">aql25,
</if> </if>
<if test="aql26 != null">aql26, <if test="aql26 != null">aql26,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id}, <if test="id != null">#{id},
</if> </if>
<if test="sampleCode != null">#{sampleCode}, <if test="sampleCode != null">#{sampleCode},
</if> </if>
<if test="sampleAql != null">#{sampleAql}, <if test="sampleAql != null">#{sampleAql},
</if> </if>
<if test="attr1 != null">#{attr1}, <if test="attr1 != null">#{attr1},
</if> </if>
<if test="createBy != null">#{createBy}, <if test="createBy != null">#{createBy},
</if> </if>
<if test="createTime != null">#{createTime}, <if test="createTime != null">#{createTime},
</if> </if>
<if test="updateBy != null">#{updateBy}, <if test="updateBy != null">#{updateBy},
</if> </if>
<if test="updateTime != null">#{updateTime}, <if test="updateTime != null">#{updateTime},
</if> </if>
<if test="factoryCode != null">#{factoryCode}, <if test="factoryCode != null">#{factoryCode},
</if> </if>
<if test="delFlag != null">#{delFlag}, <if test="delFlag != null">#{delFlag},
</if> </if>
<if test="maxBadQuality != null">#{maxBadQuality}, <if test="maxBadQuality != null">#{maxBadQuality},
</if> </if>
<if test="checkType != null">#{checkType}, <if test="checkType != null">#{checkType},
</if> </if>
<if test="typeCode != null">#{typeCode}, <if test="typeCode != null">#{typeCode},
</if> </if>
<if test="aql1 != null">#{aql1}, <if test="aql1 != null">#{aql1},
</if> </if>
<if test="aql2 != null">#{aql2}, <if test="aql2 != null">#{aql2},
</if> </if>
<if test="aql3 != null">#{aql3}, <if test="aql3 != null">#{aql3},
</if> </if>
<if test="aql4 != null">#{aql4}, <if test="aql4 != null">#{aql4},
</if> </if>
<if test="aql5 != null">#{aql5}, <if test="aql5 != null">#{aql5},
</if> </if>
<if test="aql6 != null">#{aql6}, <if test="aql6 != null">#{aql6},
</if> </if>
<if test="aql7 != null">#{aql7}, <if test="aql7 != null">#{aql7},
</if> </if>
<if test="aql8 != null">#{aql8}, <if test="aql8 != null">#{aql8},
</if> </if>
<if test="aql9 != null">#{aql9}, <if test="aql9 != null">#{aql9},
</if> </if>
<if test="aql10 != null">#{aql10}, <if test="aql10 != null">#{aql10},
</if> </if>
<if test="aql11 != null">#{aql11}, <if test="aql11 != null">#{aql11},
</if> </if>
<if test="aql12 != null">#{aql12}, <if test="aql12 != null">#{aql12},
</if> </if>
<if test="aql13 != null">#{aql13}, <if test="aql13 != null">#{aql13},
</if> </if>
<if test="aql14 != null">#{aql14}, <if test="aql14 != null">#{aql14},
</if> </if>
<if test="aql15 != null">#{aql15}, <if test="aql15 != null">#{aql15},
</if> </if>
<if test="aql16 != null">#{aql16}, <if test="aql16 != null">#{aql16},
</if> </if>
<if test="aql17 != null">#{aql17}, <if test="aql17 != null">#{aql17},
</if> </if>
<if test="aql18 != null">#{aql18}, <if test="aql18 != null">#{aql18},
</if> </if>
<if test="aql19 != null">#{aql19}, <if test="aql19 != null">#{aql19},
</if> </if>
<if test="aql20 != null">#{aql20}, <if test="aql20 != null">#{aql20},
</if> </if>
<if test="aql21 != null">#{aql21}, <if test="aql21 != null">#{aql21},
</if> </if>
<if test="aql22 != null">#{aql22}, <if test="aql22 != null">#{aql22},
</if> </if>
<if test="aql23 != null">#{aql23}, <if test="aql23 != null">#{aql23},
</if> </if>
<if test="aql24 != null">#{aql24}, <if test="aql24 != null">#{aql24},
</if> </if>
<if test="aql25 != null">#{aql25}, <if test="aql25 != null">#{aql25},
</if> </if>
<if test="aql26 != null">#{aql26}, <if test="aql26 != null">#{aql26},
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateQcSampleRuleAql" parameterType="QcSampleRuleAql"> <update id="updateQcSampleRuleAql" parameterType="QcSampleRuleAql">
update qc_sample_rule_aql update qc_sample_rule_aql
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="sampleCode != null">sample_code = <if test="sampleCode != null">sample_code =
#{sampleCode}, #{sampleCode},
</if> </if>
<if test="sampleAql != null">sample_aql = <if test="sampleAql != null">sample_aql =
#{sampleAql}, #{sampleAql},
</if> </if>
<if test="attr1 != null">attr1 = <if test="attr1 != null">attr1 =
#{attr1}, #{attr1},
</if> </if>
<if test="createBy != null">create_by = <if test="createBy != null">create_by =
#{createBy}, #{createBy},
</if> </if>
<if test="createTime != null">create_time = <if test="createTime != null">create_time =
#{createTime}, #{createTime},
</if> </if>
<if test="updateBy != null">update_by = <if test="updateBy != null">update_by =
#{updateBy}, #{updateBy},
</if> </if>
<if test="updateTime != null">update_time = <if test="updateTime != null">update_time =
#{updateTime}, #{updateTime},
</if> </if>
<if test="factoryCode != null">factory_code = <if test="factoryCode != null">factory_code =
#{factoryCode}, #{factoryCode},
</if> </if>
<if test="delFlag != null">del_flag = <if test="delFlag != null">del_flag =
#{delFlag}, #{delFlag},
</if> </if>
<if test="maxBadQuality != null">max_bad_quality = <if test="maxBadQuality != null">max_bad_quality =
#{maxBadQuality}, #{maxBadQuality},
</if> </if>
<if test="checkType != null">check_type = <if test="checkType != null">check_type =
#{checkType}, #{checkType},
</if> </if>
<if test="typeCode != null">type_code = <if test="typeCode != null">type_code =
#{typeCode}, #{typeCode},
</if> </if>
<if test="aql1 != null">aql1 = <if test="aql1 != null">aql1 =
#{aql1}, #{aql1},
</if> </if>
<if test="aql2 != null">aql2 = <if test="aql2 != null">aql2 =
#{aql2}, #{aql2},
</if> </if>
<if test="aql3 != null">aql3 = <if test="aql3 != null">aql3 =
#{aql3}, #{aql3},
</if> </if>
<if test="aql4 != null">aql4 = <if test="aql4 != null">aql4 =
#{aql4}, #{aql4},
</if> </if>
<if test="aql5 != null">aql5 = <if test="aql5 != null">aql5 =
#{aql5}, #{aql5},
</if> </if>
<if test="aql6 != null">aql6 = <if test="aql6 != null">aql6 =
#{aql6}, #{aql6},
</if> </if>
<if test="aql7 != null">aql7 = <if test="aql7 != null">aql7 =
#{aql7}, #{aql7},
</if> </if>
<if test="aql8 != null">aql8 = <if test="aql8 != null">aql8 =
#{aql8}, #{aql8},
</if> </if>
<if test="aql9 != null">aql9 = <if test="aql9 != null">aql9 =
#{aql9}, #{aql9},
</if> </if>
<if test="aql10 != null">aql10 = <if test="aql10 != null">aql10 =
#{aql10}, #{aql10},
</if> </if>
<if test="aql11 != null">aql11 = <if test="aql11 != null">aql11 =
#{aql11}, #{aql11},
</if> </if>
<if test="aql12 != null">aql12 = <if test="aql12 != null">aql12 =
#{aql12}, #{aql12},
</if> </if>
<if test="aql13 != null">aql13 = <if test="aql13 != null">aql13 =
#{aql13}, #{aql13},
</if> </if>
<if test="aql14 != null">aql14 = <if test="aql14 != null">aql14 =
#{aql14}, #{aql14},
</if> </if>
<if test="aql15 != null">aql15 = <if test="aql15 != null">aql15 =
#{aql15}, #{aql15},
</if> </if>
<if test="aql16 != null">aql16 = <if test="aql16 != null">aql16 =
#{aql16}, #{aql16},
</if> </if>
<if test="aql17 != null">aql17 = <if test="aql17 != null">aql17 =
#{aql17}, #{aql17},
</if> </if>
<if test="aql18 != null">aql18 = <if test="aql18 != null">aql18 =
#{aql18}, #{aql18},
</if> </if>
<if test="aql19 != null">aql19 = <if test="aql19 != null">aql19 =
#{aql19}, #{aql19},
</if> </if>
<if test="aql20 != null">aql20 = <if test="aql20 != null">aql20 =
#{aql20}, #{aql20},
</if> </if>
<if test="aql21 != null">aql21 = <if test="aql21 != null">aql21 =
#{aql21}, #{aql21},
</if> </if>
<if test="aql22 != null">aql22 = <if test="aql22 != null">aql22 =
#{aql22}, #{aql22},
</if> </if>
<if test="aql23 != null">aql23 = <if test="aql23 != null">aql23 =
#{aql23}, #{aql23},
</if> </if>
<if test="aql24 != null">aql24 = <if test="aql24 != null">aql24 =
#{aql24}, #{aql24},
</if> </if>
<if test="aql25 != null">aql25 = <if test="aql25 != null">aql25 =
#{aql25}, #{aql25},
</if> </if>
<if test="aql26 != null">aql26 = <if test="aql26 != null">aql26 =
#{aql26}, #{aql26},
</if> </if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
<delete id="deleteQcSampleRuleAqlById" parameterType="String"> <update id="deleteQcSampleRuleAqlById" parameterType="String">
delete from qc_sample_rule_aql where id = #{id} update qc_sample_rule_aql
</delete> set del_flag = '1'
where id = #{id}
</update>
<delete id="deleteQcSampleRuleAqlByIds" parameterType="String"> <update id="deleteQcSampleRuleAqlByIds" parameterType="String">
delete from qc_sample_rule_aql where id in update qc_sample_rule_aql
set del_flag = '1'
where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</delete> </update>
</mapper> </mapper>

@ -28,101 +28,103 @@
<select id="selectQcSampleRuleCodeList" parameterType="QcSampleRuleCode" resultMap="QcSampleRuleCodeResult"> <select id="selectQcSampleRuleCodeList" parameterType="QcSampleRuleCode" resultMap="QcSampleRuleCodeResult">
<include refid="selectQcSampleRuleCodeVo"/> <include refid="selectQcSampleRuleCodeVo"/>
<where> <where>
<if test="startValue != null "> <if test="startValue != null ">
and start_value = #{startValue} and start_value = #{startValue}
</if> </if>
<if test="endValue != null "> <if test="endValue != null ">
and end_value = #{endValue} and end_value = #{endValue}
</if> </if>
<if test="attr1 != null and attr1 != ''"> <if test="attr1 != null and attr1 != ''">
and attr1 = #{attr1} and attr1 = #{attr1}
</if> </if>
<if test="factoryCode != null and factoryCode != ''"> <if test="factoryCode != null and factoryCode != ''">
and factory_code = #{factoryCode} and factory_code = #{factoryCode}
</if> </if>
<if test="sampleCode != null and sampleCode != ''"> <if test="sampleCode != null and sampleCode != ''">
and sample_code = #{sampleCode} and sample_code = #{sampleCode}
</if> </if>
<if test="checkType != null and checkType != ''"> <if test="checkType != null and checkType != ''">
and check_type = #{checkType} and check_type = #{checkType}
</if> </if>
<if test="typeCode != null and typeCode != ''"> <if test="typeCode != null and typeCode != ''">
and type_code = #{typeCode} and type_code = #{typeCode}
</if> </if>
<if test="checkLevel != null and checkLevel != ''"> <if test="checkLevel != null and checkLevel != ''">
and check_level = #{checkLevel} and check_level = #{checkLevel}
</if> </if>
and del_flag = '0'
</where> </where>
order by check_level order by check_level,start_value,end_value
</select> </select>
<select id="selectQcSampleRuleCodeById" parameterType="String" <select id="selectQcSampleRuleCodeById" parameterType="String"
resultMap="QcSampleRuleCodeResult"> resultMap="QcSampleRuleCodeResult">
<include refid="selectQcSampleRuleCodeVo"/> <include refid="selectQcSampleRuleCodeVo"/>
where id = #{id} where id = #{id}
and del_flag = '0'
</select> </select>
<insert id="insertQcSampleRuleCode" parameterType="QcSampleRuleCode"> <insert id="insertQcSampleRuleCode" parameterType="QcSampleRuleCode">
insert into qc_sample_rule_code insert into qc_sample_rule_code
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id, <if test="id != null">id,
</if> </if>
<if test="startValue != null">start_value, <if test="startValue != null">start_value,
</if> </if>
<if test="endValue != null">end_value, <if test="endValue != null">end_value,
</if> </if>
<if test="attr1 != null">attr1, <if test="attr1 != null">attr1,
</if> </if>
<if test="createBy != null">create_by, <if test="createBy != null">create_by,
</if> </if>
<if test="createTime != null">create_time, <if test="createTime != null">create_time,
</if> </if>
<if test="updateBy != null">update_by, <if test="updateBy != null">update_by,
</if> </if>
<if test="updateTime != null">update_time, <if test="updateTime != null">update_time,
</if> </if>
<if test="factoryCode != null">factory_code, <if test="factoryCode != null">factory_code,
</if> </if>
<if test="delFlag != null">del_flag, <if test="delFlag != null">del_flag,
</if> </if>
<if test="sampleCode != null">sample_code, <if test="sampleCode != null">sample_code,
</if> </if>
<if test="checkType != null">check_type, <if test="checkType != null">check_type,
</if> </if>
<if test="typeCode != null">type_code, <if test="typeCode != null">type_code,
</if> </if>
<if test="checkLevel != null">check_level, <if test="checkLevel != null">check_level,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id}, <if test="id != null">#{id},
</if> </if>
<if test="startValue != null">#{startValue}, <if test="startValue != null">#{startValue},
</if> </if>
<if test="endValue != null">#{endValue}, <if test="endValue != null">#{endValue},
</if> </if>
<if test="attr1 != null">#{attr1}, <if test="attr1 != null">#{attr1},
</if> </if>
<if test="createBy != null">#{createBy}, <if test="createBy != null">#{createBy},
</if> </if>
<if test="createTime != null">#{createTime}, <if test="createTime != null">#{createTime},
</if> </if>
<if test="updateBy != null">#{updateBy}, <if test="updateBy != null">#{updateBy},
</if> </if>
<if test="updateTime != null">#{updateTime}, <if test="updateTime != null">#{updateTime},
</if> </if>
<if test="factoryCode != null">#{factoryCode}, <if test="factoryCode != null">#{factoryCode},
</if> </if>
<if test="delFlag != null">#{delFlag}, <if test="delFlag != null">#{delFlag},
</if> </if>
<if test="sampleCode != null">#{sampleCode}, <if test="sampleCode != null">#{sampleCode},
</if> </if>
<if test="checkType != null">#{checkType}, <if test="checkType != null">#{checkType},
</if> </if>
<if test="typeCode != null">#{typeCode}, <if test="typeCode != null">#{typeCode},
</if> </if>
<if test="checkLevel != null">#{checkLevel}, <if test="checkLevel != null">#{checkLevel},
</if> </if>
</trim> </trim>
</insert> </insert>
@ -172,14 +174,18 @@
where id = #{id} where id = #{id}
</update> </update>
<delete id="deleteQcSampleRuleCodeById" parameterType="String"> <update id="deleteQcSampleRuleCodeById" parameterType="String">
delete from qc_sample_rule_code where id = #{id} update qc_sample_rule_code
</delete> set del_flag = '1'
where id = #{id}
</update>
<delete id="deleteQcSampleRuleCodeByIds" parameterType="String"> <update id="deleteQcSampleRuleCodeByIds" parameterType="String">
delete from qc_sample_rule_code where id in update qc_sample_rule_code
set del_flag = '1'
where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</delete> </update>
</mapper> </mapper>

Loading…
Cancel
Save