| | |
| | | ) |
| | | ) |
| | | </if> |
| | | <if test="condition.supplierName != null and condition.supplierName != ''"> |
| | | AND s.name LIKE concat('%', #{condition.supplierName},'%') |
| | | </if> |
| | | <if test="condition.isFee != null"> |
| | | <choose> |
| | | <when test="condition.isFee == 'markup'"> |
| | | AND sp.fee > 0 |
| | | </when> |
| | | <otherwise> |
| | | AND (sp.fee is null or sp.fee = 0) |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | ORDER BY f.id |
| | | </select> |
| | | |
| | |
| | | ) |
| | | ) |
| | | </if> |
| | | <if test="condition.isFee != null"> |
| | | <choose> |
| | | <when test="condition.isFee == 'markup'"> |
| | | AND sp.fee > 0 |
| | | </when> |
| | | <otherwise> |
| | | AND (sp.fee is null or sp.fee = 0) |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | ORDER BY f.id |
| | | </select> |
| | | </mapper> |