|
@@ -2,49 +2,6 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.pj.project.tb_disinfect.TbDisinfectMapper">
|
|
<mapper namespace="com.pj.project.tb_disinfect.TbDisinfectMapper">
|
|
|
|
|
|
- <!-- 增 [G] -->
|
|
|
|
- <insert id="add">
|
|
|
|
- insert into
|
|
|
|
- tb_disinfect (id, send_people, receive_people, goods_name, origin, num, gross_weight, unit, pack, flag, phone, source_address, arrive_part, car_name, car_no, china_car_name, china_car_no, remark, apply_unit, apply_people, apply_phone, apply_time, accept_people, accept_time, money)
|
|
|
|
- values (#{id}, #{sendPeople}, #{receivePeople}, #{goodsName}, #{origin}, #{num}, #{grossWeight}, #{unit}, #{pack}, #{flag}, #{phone}, #{sourceAddress}, #{arrivePart}, #{carName}, #{carNo}, #{chinaCarName}, #{chinaCarNo}, #{remark}, #{applyUnit}, #{applyPeople}, #{applyPhone}, #{applyTime}, #{acceptPeople}, #{acceptTime}, #{money})
|
|
|
|
- </insert>
|
|
|
|
-
|
|
|
|
- <!-- 删 -->
|
|
|
|
- <delete id="delete">
|
|
|
|
- delete from tb_disinfect
|
|
|
|
- where id = #{id}
|
|
|
|
- </delete>
|
|
|
|
-
|
|
|
|
- <!-- 改 [G] -->
|
|
|
|
- <update id="update">
|
|
|
|
- update tb_disinfect set
|
|
|
|
- id = #{id},
|
|
|
|
- send_people = #{sendPeople},
|
|
|
|
- receive_people = #{receivePeople},
|
|
|
|
- goods_name = #{goodsName},
|
|
|
|
- origin = #{origin},
|
|
|
|
- num = #{num},
|
|
|
|
- gross_weight = #{grossWeight},
|
|
|
|
- unit = #{unit},
|
|
|
|
- pack = #{pack},
|
|
|
|
- flag = #{flag},
|
|
|
|
- phone = #{phone},
|
|
|
|
- source_address = #{sourceAddress},
|
|
|
|
- arrive_part = #{arrivePart},
|
|
|
|
- car_name = #{carName},
|
|
|
|
- car_no = #{carNo},
|
|
|
|
- china_car_name = #{chinaCarName},
|
|
|
|
- china_car_no = #{chinaCarNo},
|
|
|
|
- remark = #{remark},
|
|
|
|
- apply_unit = #{applyUnit},
|
|
|
|
- apply_people = #{applyPeople},
|
|
|
|
- apply_phone = #{applyPhone},
|
|
|
|
- apply_time = #{applyTime},
|
|
|
|
- accept_people = #{acceptPeople},
|
|
|
|
- accept_time = #{acceptTime},
|
|
|
|
- money = #{money}
|
|
|
|
- where id = #{id}
|
|
|
|
- </update>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ================================== 查询相关 ================================== -->
|
|
<!-- ================================== 查询相关 ================================== -->
|
|
@@ -71,8 +28,8 @@
|
|
<result property="chinaCarNo" column="china_car_no" />
|
|
<result property="chinaCarNo" column="china_car_no" />
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
<result property="applyUnit" column="apply_unit" />
|
|
<result property="applyUnit" column="apply_unit" />
|
|
- <result property="applyPeople" column="apply_people" />
|
|
|
|
- <result property="applyPhone" column="apply_phone" />
|
|
|
|
|
|
+ <result property="declarePeople" column="apply_people" />
|
|
|
|
+ <result property="declarePhone" column="apply_phone" />
|
|
<result property="applyTime" column="apply_time" />
|
|
<result property="applyTime" column="apply_time" />
|
|
<result property="acceptPeople" column="accept_people" />
|
|
<result property="acceptPeople" column="accept_people" />
|
|
<result property="acceptTime" column="accept_time" />
|
|
<result property="acceptTime" column="accept_time" />
|
|
@@ -84,13 +41,7 @@
|
|
select *
|
|
select *
|
|
from tb_disinfect
|
|
from tb_disinfect
|
|
</sql>
|
|
</sql>
|
|
-
|
|
|
|
- <!-- 查 - 根据id -->
|
|
|
|
- <select id="getById" resultMap="model">
|
|
|
|
- <include refid="select_sql"></include>
|
|
|
|
- where id = #{id}
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<!-- 查集合 - 根据条件(参数为空时代表忽略指定条件) [G] -->
|
|
<!-- 查集合 - 根据条件(参数为空时代表忽略指定条件) [G] -->
|
|
<select id="getList" resultMap="model">
|
|
<select id="getList" resultMap="model">
|
|
<include refid="select_sql"></include>
|
|
<include refid="select_sql"></include>
|