|
|
@@ -1,5 +1,5 @@
|
|
1
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
|
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
3
|
3
|
<mapper namespace="com.chinaitop.depot.basic.mapper.BasicStorehouseMapper">
|
|
4
|
4
|
<resultMap id="BaseResultMap" type="com.chinaitop.depot.basic.model.BasicStorehouse">
|
|
5
|
5
|
<id column="storehouse_id" jdbcType="INTEGER" property="storehouseId" />
|
|
|
@@ -153,7 +153,7 @@
|
|
153
|
153
|
</if>
|
|
154
|
154
|
</select>
|
|
155
|
155
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
156
|
|
- select
|
|
|
156
|
+ select
|
|
157
|
157
|
<include refid="Base_Column_List" />
|
|
158
|
158
|
from basic_storehouse
|
|
159
|
159
|
where storehouse_id = #{storehouseId,jdbcType=INTEGER}
|
|
|
@@ -1165,14 +1165,17 @@
|
|
1165
|
1165
|
INSERT INTO basic_storehouse (createDate, del_flag, uuid, depot_id, depot_name, storehouse_code, storehouse_name, storehouse_type) VALUES
|
|
1166
|
1166
|
${sql}
|
|
1167
|
1167
|
</insert>
|
|
1168
|
|
-
|
|
|
1168
|
+
|
|
1169
|
1169
|
<select id="getThreeTempCheckList" parameterType="java.util.Map" resultMap="BaseResultMap">
|
|
1170
|
|
- select DISTINCT storehouse_id
|
|
|
1170
|
+ select DISTINCT storehouse.storehouse_id,storehouse.storehouse_name
|
|
1171
|
1171
|
from basic_storehouse storehouse
|
|
1172
|
|
- inner join t_testdata testdata on testdata.org_id = storehouse.org_id and testdata.storehouse = storehouse.storehouse_code
|
|
|
1172
|
+ LEFT JOIN basic_warehouse warehouse ON warehouse.storehouse_id = storehouse.storehouse_id
|
|
1173
|
1173
|
<where>
|
|
|
1174
|
+ warehouse.crk_status = 1
|
|
|
1175
|
+ OR warehouse.crk_status = 3
|
|
|
1176
|
+ OR warehouse.crk_status = 9
|
|
1174
|
1177
|
<if test="orgId != null">
|
|
1175
|
|
- storehouse.org_id = #{orgId}
|
|
|
1178
|
+ AND storehouse.org_id = #{orgId}
|
|
1176
|
1179
|
</if>
|
|
1177
|
1180
|
<if test="libraryType != null">
|
|
1178
|
1181
|
AND storehouse.library_type = #{libraryType}
|
|
|
@@ -1180,7 +1183,7 @@
|
|
1180
|
1183
|
<if test="delFlag != null">
|
|
1181
|
1184
|
AND storehouse.del_flag = #{delFlag}
|
|
1182
|
1185
|
</if>
|
|
1183
|
|
- </where>
|
|
|
1186
|
+ </where>
|
|
1184
|
1187
|
</select>
|
|
1185
|
1188
|
<select id="getAgentDepotId" parameterType="java.util.Map" resultType="java.util.Map">
|
|
1186
|
1189
|
SELECT id
|