|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<?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.dxhy.order.invoice.module.invoice.dao.OrderInfoMapper"> |
|
|
|
|
<resultMap id="BaseResultMap" type="com.dxhy.order.model.OrderInfo"> |
|
|
|
|
<resultMap id="BaseResultMap" type="com.dxhy.order.model.OrderInfo"> |
|
|
|
|
<id column="id" property="id" jdbcType="VARCHAR"/> |
|
|
|
|
<result column="process_id" property="processId" jdbcType="VARCHAR"/> |
|
|
|
|
<result column="fpqqlsh" property="fpqqlsh" jdbcType="VARCHAR"/> |
|
|
|
@ -74,9 +74,9 @@ |
|
|
|
|
<result column="byzd5" property="byzd5" jdbcType="VARCHAR"/> |
|
|
|
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/> |
|
|
|
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/> |
|
|
|
|
</resultMap> |
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
<sql id="Base_Column_List"> |
|
|
|
|
<sql id="Base_Column_List"> |
|
|
|
|
id, process_id, fpqqlsh, ddh, thdh, ddlx, dsptbm, nsrsbh, nsrmc, |
|
|
|
|
nsrdzdah, swjg_dm, |
|
|
|
|
dkbz, pydm, kpxm, bbm_bbh, xhf_mc, xhf_nsrsbh, xhf_dz, |
|
|
|
@ -90,8 +90,8 @@ |
|
|
|
|
qd_bz, qd_xmmc, kphjje, hjbhsje, hjse, mdh, ywlx, tqm,bz, kpjh, sld,hzxxbbh,ent_id,sksbdm, |
|
|
|
|
slkjly,byzd1, byzd2, byzd3, byzd4, byzd5, create_time, |
|
|
|
|
update_time |
|
|
|
|
</sql> |
|
|
|
|
<select id="selectOrderInfoByOrderId" resultMap="BaseResultMap" |
|
|
|
|
</sql> |
|
|
|
|
<select id="selectOrderInfoByOrderId" resultMap="BaseResultMap" |
|
|
|
|
parameterType="java.lang.String"> |
|
|
|
|
select |
|
|
|
|
<include refid="Base_Column_List"/> |
|
|
|
@ -113,8 +113,8 @@ |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
<insert id="insertOrderInfo" parameterType="com.dxhy.order.model.OrderInfo"> |
|
|
|
|
</select> |
|
|
|
|
<insert id="insertOrderInfo" parameterType="com.dxhy.order.model.OrderInfo"> |
|
|
|
|
insert into order_info (id, |
|
|
|
|
process_id, |
|
|
|
|
fpqqlsh, |
|
|
|
@ -259,9 +259,9 @@ |
|
|
|
|
#{byzd5,jdbcType=VARCHAR}, |
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, |
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP}) |
|
|
|
|
</insert> |
|
|
|
|
</insert> |
|
|
|
|
|
|
|
|
|
<update id="updateOrderInfoByOrderId" parameterType="com.dxhy.order.model.OrderInfo"> |
|
|
|
|
<update id="updateOrderInfoByOrderId" parameterType="com.dxhy.order.model.OrderInfo"> |
|
|
|
|
update order_info |
|
|
|
|
<set> |
|
|
|
|
<if test="orderInfo.processId != null"> |
|
|
|
@ -495,10 +495,59 @@ |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
</update> |
|
|
|
|
</update> |
|
|
|
|
<update id="updateOrderBuyerInfo" > |
|
|
|
|
update order_info oi |
|
|
|
|
LEFT JOIN order_process_info op on oi.id = op.order_info_id |
|
|
|
|
left join order_invoice_info oii on oii.order_info_id = oi.id |
|
|
|
|
<set> |
|
|
|
|
<if test="orderInfo.ghfMc != null"> |
|
|
|
|
oi.ghf_mc = #{orderInfo.ghfMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfNsrsbh != null"> |
|
|
|
|
oi.ghf_nsrsbh = #{orderInfo.ghfNsrsbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfDz != null"> |
|
|
|
|
oi.ghf_dz = #{orderInfo.ghfDz,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfDh != null"> |
|
|
|
|
oi.ghf_dh = #{orderInfo.ghfDh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfYh != null"> |
|
|
|
|
oi.ghf_yh = #{orderInfo.ghfYh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfZh != null"> |
|
|
|
|
oi.ghf_zh = #{orderInfo.ghfZh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="orderInfo.ghfSj != null"> |
|
|
|
|
oi.ghf_sj = #{orderInfo.ghfSj,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfEmail != null"> |
|
|
|
|
oi.ghf_email = #{orderInfo.ghfEmail,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="orderInfo.ghfMc != null"> |
|
|
|
|
op.ghf_mc = #{orderInfo.ghfMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfNsrsbh != null"> |
|
|
|
|
op.ghf_nsrsbh = #{orderInfo.ghfNsrsbh,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="orderInfo.ghfMc != null"> |
|
|
|
|
oii.ghf_mc = #{orderInfo.ghfMc,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
<if test="orderInfo.ghfSj != null"> |
|
|
|
|
oii.ghf_sj = #{orderInfo.ghfSj,jdbcType=VARCHAR}, |
|
|
|
|
</if> |
|
|
|
|
</set> |
|
|
|
|
where oi.ent_id = #{orderInfo.entId,jdbcType=VARCHAR} and op.ddzt in ('0','1','2','3') and op.order_status = '0' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<!-- selectOrderInfoByYfpdmhm --> |
|
|
|
|
<select id="selectOrderInfoByYfpdmhm" resultMap="BaseResultMap" |
|
|
|
|
<!-- selectOrderInfoByYfpdmhm --> |
|
|
|
|
<select id="selectOrderInfoByYfpdmhm" resultMap="BaseResultMap" |
|
|
|
|
parameterType="java.lang.String"> |
|
|
|
|
select |
|
|
|
|
<include refid="Base_Column_List"/> |
|
|
|
@ -521,10 +570,10 @@ |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<!-- selectOrderInfoByDdqqlsh --> |
|
|
|
|
<select id="selectOrderInfoByDdqqlsh" resultMap="BaseResultMap" |
|
|
|
|
<!-- selectOrderInfoByDdqqlsh --> |
|
|
|
|
<select id="selectOrderInfoByDdqqlsh" resultMap="BaseResultMap" |
|
|
|
|
parameterType="java.lang.String"> |
|
|
|
|
select |
|
|
|
|
<include refid="Base_Column_List"/> |
|
|
|
@ -546,6 +595,6 @@ |
|
|
|
|
#{item} |
|
|
|
|
</foreach> |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|