From 4be7d863a161b64f8592a789d699e807545e7dc6 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 15 十一月 2024 16:46:12 +0800 Subject: [PATCH] 计划数据 --- iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemDao.xml | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemDao.xml b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemDao.xml new file mode 100644 index 0000000..556b99f --- /dev/null +++ b/iailab-module-data/iailab-module-data-biz/src/main/resources/mapper/ind/IndItemDao.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> + +<mapper namespace="com.iailab.module.data.ind.item.dao.IndItemDao"> + + <select id="getItemList" resultType="com.iailab.module.data.ind.item.vo.IndItemRespVO"> + select + t1.*, + t2.item_id as atomItemId + from t_ind_item t1 + left join t_ind_item_atom t2 on t2.item_id = t1.id + <where> + <if test="params.itemNo != null and params.itemNo != ''"> + and t1.item_no like concat('%', #{params.itemNo}, '%') + </if> + <if test="params.itemName != null and params.itemName != ''"> + and t1.item_name like concat('%', #{params.itemName}, '%') + </if> + <if test="params.itemType != null and params.itemType != ''"> + and t1.item_type = #{params.itemType} + </if> + <if test="params.itemCategory != null and params.itemCategory != ''"> + and t1.item_category = #{params.itemCategory} + </if> + </where> + </select> + +</mapper> \ No newline at end of file -- Gitblit v1.9.3