| | |
| | | FROM quality_test_standard |
| | | where |
| | | 1=1 |
| | | <if test="qualityTestStandard.standardNo != null and qualityTestStandard.standardNo != '' "> |
| | | AND standard_no like concat('%',#{qualityTestStandard.standardNo},'%') |
| | | <if test="c.standardNo != null and c.standardNo != '' "> |
| | | AND standard_no like concat('%',#{c.standardNo},'%') |
| | | </if> |
| | | <if test="qualityTestStandard.standardName != null and qualityTestStandard.standardName != '' "> |
| | | AND standard_name like concat('%',#{qualityTestStandard.standardName},'%') |
| | | <if test="c.standardName != null and c.standardName != '' "> |
| | | AND standard_name like concat('%',#{c.standardName},'%') |
| | | </if> |
| | | <if test="qualityTestStandard.state != null and qualityTestStandard.state != '' "> |
| | | AND state = #{qualityTestStandard.state} |
| | | <if test="c.state != null and c.state != '' "> |
| | | AND state = #{c.state} |
| | | </if> |
| | | <if test="qualityTestStandard.inspectType != null and qualityTestStandard.inspectType != '' "> |
| | | AND inspect_type = #{qualityTestStandard.inspectType} |
| | | <if test="c.inspectType != null and c.inspectType != '' "> |
| | | AND inspect_type = #{c.inspectType} |
| | | </if> |
| | | </select> |
| | | </mapper> |