| | |
| | | </if> |
| | | LIMIT 1 |
| | | </select> |
| | | <select id="getGoodsClassAll" resultMap="BaseResultMap">SELECT * FROM |
| | | yeshi_ec_class rs ORDER BY rs.`orderby` |
| | | <select id="getGoodsClassAll" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_class c |
| | | where 1=1 |
| | | <!-- 通用版 --> |
| | | <if test="sex == 0"> |
| | | AND (c.`sex`= 120 OR c.`sex` = 0 OR c.`sex` = 10 OR c.`sex` = 20) |
| | | </if> |
| | | <!-- 女版 --> |
| | | <if test="sex == 1"> |
| | | AND (c.`sex`= 120 OR c.`sex` = 1 OR c.`sex` = 10 OR c.`sex` = 12) |
| | | </if> |
| | | <!-- 男版 --> |
| | | <if test="sex == 2"> |
| | | AND (c.`sex`= 120 OR c.`sex` = 2 OR c.`sex` = 20 OR c.`sex` = 12) |
| | | </if> |
| | | ORDER BY c.orderby |
| | | </select> |
| | | <select id="listByName" resultMap="BaseResultMap">SELECT * from yeshi_ec_class |
| | | rs WHERE rs.name like '%#{name}%' LIMIT ${start},${count}</select> |