|
|
|
@ -56,16 +56,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
AND ctp.del_flag = '0'
|
|
|
|
|
<if test="projectId != null and projectId != ''"> and ctp.project_id = #{projectId}</if>
|
|
|
|
|
<if test="typeId != null and typeId != ''"> and ctp.type_id = #{typeId}</if>
|
|
|
|
|
<if test="standardValue != null "> and ctp.standard_value = #{standardValue}</if>
|
|
|
|
|
<if test="standardValue != null and standardValue != ''"> and ctp.standard_value = #{standardValue}</if>
|
|
|
|
|
<if test="upperDiff != null "> and ctp.upper_diff = #{upperDiff}</if>
|
|
|
|
|
<if test="downDiff != null "> and ctp.down_diff = #{downDiff}</if>
|
|
|
|
|
<if test="sample != null "> and ctp.sample = #{sample}</if>
|
|
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
|
|
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
|
|
|
|
<if test="groupId != null and groupId != ''"> and group_id = #{groupId}</if>
|
|
|
|
|
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
|
|
|
|
<if test="sampleNum != null and sampleNum != ''"> and sample_num = #{sampleNum}</if>
|
|
|
|
|
<if test="status != null and status != ''"> and ctp.status = #{status}</if>
|
|
|
|
|
<if test="groupId != null and groupId != ''"> and ctp.group_id = #{groupId}</if>
|
|
|
|
|
<if test="materialCode != null and materialCode != ''"> and ctp.material_code = #{materialCode}</if>
|
|
|
|
|
<if test="sampleNum != null and sampleNum != ''"> and ctp.sample_num = #{sampleNum}</if>
|
|
|
|
|
<if test="ruleName != null and ruleName != ''"> and cp.rule_name like concat('%', #{ruleName}, '%')</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|