| | |
| | | <result column="createBy" property="createBy" /> |
| | | <result column="updateBy" property="updateBy" /> |
| | | <result column="isDelete" property="isDelete" /> |
| | | <result column="inventory" property="inventory" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, brandId, supplierId, materialId, color, sale, cost, name, status, createTime, updateTime, createBy, updateBy, isDelete |
| | | id, brandId, supplierId, materialId, color, sale, cost, `name`, status, createTime, updateTime, createBy, updateBy, isDelete,inventory |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TModelVO"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from t_model |
| | | <where> |
| | | <if test="query.name != null and query.name != ''"> |
| | | and `name` like concat('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.brandId != null"> |
| | | and brandId = #{query.brandId} |
| | | </if> |
| | | <if test="query.supplierId != null"> |
| | | and supplierId = #{query.supplierId} |
| | | </if> |
| | | AND isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | GROUP BY `name` |
| | | ORDER BY createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |