| | |
| | | <if test="product.creator != null and product.creator != ''"> |
| | | and a.creator like concat('%',#{product.creator},'%') |
| | | </if> |
| | | <if test="product.state != null"> |
| | | and a.state = #{product.state} |
| | | </if> |
| | | <if test="product.createTime != null and product.createTime != ''"> |
| | | and date(a.create_time) like concat('%',#{product.createTime},'%') |
| | | </if> |
| | |
| | | ; |
| | | </select> |
| | | |
| | | <select id="selectProduct"> |
| | | select * from sd.product where ${productName}=#{productNameValue} |
| | | </select> |
| | | |
| | | <select id="selectProductId"> |
| | | select * from sd.product where ${productName}=#{productNameValue} and id != #{id} |
| | | </select> |
| | | |
| | | <select id="getPageTotal" > |
| | | select |
| | | CEILING(count(a.id)/#{pageSize}) |