| | |
| | | <result column="createBy" property="createBy" /> |
| | | <result column="updateBy" property="updateBy" /> |
| | | <result column="isDelete" property="isDelete" /> |
| | | <result column="status" property="status" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, name, brandId, supplierId, type, sphere, asphericSurface, doubleNon, createTime, updateTime, createBy, updateBy, isDelete |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TLensSeriesVO"> |
| | | select t1.*,t2.name as brandName |
| | | from t_lens_series t1 |
| | | left join t_brand t2 on t1.brandId = t2.id |
| | | where 1=1 |
| | | <if test="query.brandId != null and query.brandId != ''"> |
| | | and t1.brandId = #{query.brandId} |
| | | </if> |
| | | <if test="query.type != null and query.type != ''"> |
| | | and t1.type = #{query.type} |
| | | </if> |
| | | and t2.type = 2 |
| | | and t2.status = 1 |
| | | and t1.isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | and t2.isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | order by t1.id asc |
| | | </select> |
| | | |
| | | </mapper> |