From 23855599412c4d61b38d78f0f3abd3430a48b5b1 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期三, 25 六月 2025 11:51:38 +0800 Subject: [PATCH] Merge branch 'mdc_hyjs_master' --- lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/WarehouseMapper.xml | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/WarehouseMapper.xml b/lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/WarehouseMapper.xml new file mode 100644 index 0000000..879252c --- /dev/null +++ b/lxzn-module-tms/src/main/java/org/jeecg/modules/tms/mapper/xml/WarehouseMapper.xml @@ -0,0 +1,33 @@ +<?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="org.jeecg.modules.tms.mapper.WarehouseMapper"> + + <select id="queryPageList" resultType="org.jeecg.modules.tms.entity.Warehouse"> + SELECT + t.id, + t.warehouse_id warehouseId, + t.warehouse_name warehouseName, + t.parent_id parentId, + p.warehouse_id parentWarehouseId, + p.warehouse_name parentWarehouseName, + t.seq, + t.leaf_flag leafFlag, + t.status, + t.remark, + t.create_by createBy, + t.create_time createTime, + t.update_by updateBy, + t.update_time updateTime + FROM tms_warehouse t + LEFT JOIN tms_warehouse p on t.parent_id = p.id + ${ew.customSqlSegment} + </select> + <select id="queryWarehouseDictList" resultType="org.jeecg.modules.tms.entity.vo.DictVo"> + SELECT + id value, + ISNULL(warehouse_id, '') + '/' + ISNULL(warehouse_name, '') label, + ISNULL(warehouse_id, '') + '/' + ISNULL(warehouse_name, '') title + FROM tms_warehouse + WHERE status = '1' AND leaf_flag = '1' + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.3