| | |
| | | <sql id="Base_Column_List"> |
| | | id, status, type, storeId, remark, createTime, updateTime, createBy, updateBy, isDelete |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TInventoryVO"> |
| | | select t1.*,t2.name as store from |
| | | t_inventory t1 |
| | | left join t_store t2 on t1.storeId = t2.id |
| | | where 1=1 |
| | | <if test="query.status != null "> |
| | | and t1.status = #{query.status} |
| | | </if> |
| | | <if test="query.createBy != null "> |
| | | and t1.createBy = #{query.createBy} |
| | | </if> |
| | | <if test="query.type != null "> |
| | | and t1.type = #{query.type} |
| | | </if> |
| | | <if test="query.storeId != null "> |
| | | and t1.storeId = #{query.storeId} |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != ''"> |
| | | and t1.createTime between #{query.startTime} and #{query.endTime} |
| | | </if> |
| | | and t1.isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | |
| | | </select> |
| | | |
| | | </mapper> |