不良类型优化

master
shaoyong 10 months ago
parent 938749cbf2
commit 65fe3d2ef1

@ -5,6 +5,7 @@ import com.op.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
@ -75,6 +76,8 @@ public class QcDefectType extends BaseEntity {
private String createTimeEnd; private String createTimeEnd;
private String checkType; private String checkType;
private BigDecimal ratio;
public String getCheckType() { public String getCheckType() {
return checkType; return checkType;
} }
@ -202,6 +205,14 @@ public class QcDefectType extends BaseEntity {
return delFlag; return delFlag;
} }
public BigDecimal getRatio() {
return ratio;
}
public void setRatio(BigDecimal ratio) {
this.ratio = ratio;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -19,12 +19,13 @@
<result property="createTime" column="create_time"/> <result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/> <result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="ratio" column="ratio" />
</resultMap> </resultMap>
<sql id="selectQcDefectTypeVo"> <sql id="selectQcDefectTypeVo">
select defect_id, defect_code, defect_type, defect_subclass, defect_remark, select defect_id, defect_code, defect_type, defect_subclass, defect_remark,
factory_code, attr1, attr2, attr3, factory_code, attr1, attr2, attr3,
del_flag, create_by, create_time, update_by, update_time del_flag, create_by, create_time, update_by, update_time,ratio
from qc_defect_type from qc_defect_type
</sql> </sql>
@ -83,6 +84,7 @@
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if> <if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="ratio != null">ratio,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="defectId != null">#{defectId},</if> <if test="defectId != null">#{defectId},</if>
@ -99,6 +101,7 @@
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="ratio != null">#{ratio},</if>
</trim> </trim>
</insert> </insert>
@ -118,12 +121,13 @@
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="ratio != null">ratio = #{ratio},</if>
</trim> </trim>
where defect_id = #{defectId} and del_flag = '0' where defect_id = #{defectId} and del_flag = '0'
</update> </update>
<delete id="deleteQcDefectTypeByDefectId" parameterType="String"> <delete id="deleteQcDefectTypeByDefectId" parameterType="String">
delete qc_defect_type set del_flag = '1' where defect_id = #{defectId} update qc_defect_type set del_flag = '1' where defect_id = #{defectId}
</delete> </delete>
<delete id="deleteQcDefectTypeByDefectIds" parameterType="String"> <delete id="deleteQcDefectTypeByDefectIds" parameterType="String">

Loading…
Cancel
Save