|
@@ -15,6 +15,7 @@
|
|
a.type,
|
|
a.type,
|
|
a.container_name,
|
|
a.container_name,
|
|
a.num,
|
|
a.num,
|
|
|
|
+ a.code,
|
|
a.create_time
|
|
a.create_time
|
|
from tld_container a
|
|
from tld_container a
|
|
left join tld_department b on a.department = b.id
|
|
left join tld_department b on a.department = b.id
|
|
@@ -36,8 +37,8 @@
|
|
</select>
|
|
</select>
|
|
<!-- 新增容器内容 -->
|
|
<!-- 新增容器内容 -->
|
|
<insert id="addContainer">
|
|
<insert id="addContainer">
|
|
- insert into tld_container(department,type,container_name,num,create_time)
|
|
|
|
- values(#{department},#{type},#{containerName},#{num},DATE_FORMAT(NOW(), '%Y-%m-%d'))
|
|
|
|
|
|
+ insert into tld_container(department,type,container_name,num,code,create_time)
|
|
|
|
+ values(#{department},#{type},#{containerName},#{num},#{code},DATE_FORMAT(NOW(), '%Y-%m-%d'))
|
|
</insert>
|
|
</insert>
|
|
<!-- 修改容器内容 -->
|
|
<!-- 修改容器内容 -->
|
|
<update id="updateContainer">
|
|
<update id="updateContainer">
|
|
@@ -56,6 +57,9 @@
|
|
<if test="num != null">
|
|
<if test="num != null">
|
|
num = #{num},
|
|
num = #{num},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="code != null">
|
|
|
|
+ code = #{code},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</set>
|
|
</set>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -69,6 +73,7 @@
|
|
select
|
|
select
|
|
b.name as department,
|
|
b.name as department,
|
|
a.type,
|
|
a.type,
|
|
|
|
+ a.code as code,
|
|
a.container_name,
|
|
a.container_name,
|
|
a.num,
|
|
a.num,
|
|
a.create_time
|
|
a.create_time
|