| | |
| | | type, |
| | | DATE_FORMAT(delTime, '%Y-%m-%d') '交货日期' |
| | | from mom_ocean.sale |
| | | <where> |
| | | state=1 |
| | | <if test="orderNumber!=null and orderNumber!=''"> |
| | | and order_number LIKE CONCAT('%',#{orderNumber},'%') |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and name LIKE CONCAT('%',#{name},'%') |
| | | </if> |
| | | <if test="type!=null and type!=''"> |
| | | and type=#{type} |
| | | </if> |
| | | <if test="delTime!=null and delTime!=''"> |
| | | and DATE_FORMAT(delTime, '%Y-%m-%d')=#{delTime} |
| | | </if> |
| | | </where> |
| | | where state=1 |
| | | <if test="orderNumber!=null and orderNumber!=''"> |
| | | and order_number like concat('%',#{orderNumber},'%') |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and name LIKE CONCAT('%',#{name},'%') |
| | | </if> |
| | | <if test="type!=null and type!=''"> |
| | | and type=#{type} |
| | | </if> |
| | | <if test="delTime!=null and delTime!=''"> |
| | | and DATE_FORMAT(delTime, '%Y-%m-%d')=#{delTime} |
| | | </if> |
| | | order by id desc |
| | | </select> |
| | | |
| | | </mapper> |