|
|
@@ -5,7 +5,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
|
@@ -13,7 +13,6 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
<result column="attachment_url" jdbcType="VARCHAR" property="attachmentUrl" />
|
|
|
- <result column="picture_url" jdbcType="VARCHAR" property="pictureUrl" />
|
|
|
<result column="amount" jdbcType="DECIMAL" property="amount" />
|
|
|
<result column="company_name" jdbcType="VARCHAR" property="companyName" />
|
|
|
<result column="audit_time" jdbcType="TIMESTAMP" property="auditTime" />
|
|
|
@@ -23,115 +22,47 @@
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
<result column="tid" jdbcType="INTEGER" property="tid" />
|
|
|
<result column="start_type" jdbcType="INTEGER" property="startType" />
|
|
|
+ <result column="patent_type" jdbcType="INTEGER" property="patentType" />
|
|
|
<result column="patent_name_type" jdbcType="INTEGER" property="patentNameType" />
|
|
|
<result column="patent_name" jdbcType="VARCHAR" property="patentName" />
|
|
|
- <result column="patent_type" jdbcType="INTEGER" property="patentType" />
|
|
|
+ <result column="actual_official" jdbcType="INTEGER" property="actualOfficial" />
|
|
|
</resultMap>
|
|
|
- <sql id="Example_Where_Clause">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
- -->
|
|
|
- <where>
|
|
|
- <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
- <if test="criteria.valid">
|
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
|
- <choose>
|
|
|
- <when test="criterion.noValue">
|
|
|
- and ${criterion.condition}
|
|
|
- </when>
|
|
|
- <when test="criterion.singleValue">
|
|
|
- and ${criterion.condition} #{criterion.value}
|
|
|
- </when>
|
|
|
- <when test="criterion.betweenValue">
|
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
- </when>
|
|
|
- <when test="criterion.listValue">
|
|
|
- and ${criterion.condition}
|
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
- #{listItem}
|
|
|
- </foreach>
|
|
|
- </when>
|
|
|
- </choose>
|
|
|
- </foreach>
|
|
|
- </trim>
|
|
|
- </if>
|
|
|
- </foreach>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.TOrderOutsource">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
- <where>
|
|
|
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
- <if test="criteria.valid">
|
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
|
- <choose>
|
|
|
- <when test="criterion.noValue">
|
|
|
- and ${criterion.condition}
|
|
|
- </when>
|
|
|
- <when test="criterion.singleValue">
|
|
|
- and ${criterion.condition} #{criterion.value}
|
|
|
- </when>
|
|
|
- <when test="criterion.betweenValue">
|
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
- </when>
|
|
|
- <when test="criterion.listValue">
|
|
|
- and ${criterion.condition}
|
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
- #{listItem}
|
|
|
- </foreach>
|
|
|
- </when>
|
|
|
- </choose>
|
|
|
- </foreach>
|
|
|
- </trim>
|
|
|
- </if>
|
|
|
- </foreach>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
+ <result column="picture_url" jdbcType="LONGVARCHAR" property="pictureUrl" />
|
|
|
+ </resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
- id, order_no, refund_status, create_time, remarks, attachment_url, picture_url, amount,
|
|
|
- company_name, audit_time, unit_price, unit_number, outsource_remarks, type, tid,
|
|
|
- start_type, patent_name_type, patent_name, patent_type
|
|
|
+ id, order_no, refund_status, create_time, remarks, attachment_url, amount, company_name,
|
|
|
+ audit_time, unit_price, unit_number, outsource_remarks, `type`, tid, start_type,
|
|
|
+ patent_type, patent_name_type, patent_name, actual_official
|
|
|
</sql>
|
|
|
- <select id="selectByExample" parameterType="com.goafanti.common.model.TOrderOutsourceExample" resultMap="BaseResultMap">
|
|
|
+ <sql id="Blob_Column_List">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
- select
|
|
|
- <if test="distinct">
|
|
|
- distinct
|
|
|
- </if>
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from t_order_outsource
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- <if test="orderByClause != null">
|
|
|
- order by ${orderByClause}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ picture_url
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
+ ,
|
|
|
+ <include refid="Blob_Column_List" />
|
|
|
from t_order_outsource
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
@@ -139,48 +70,37 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
delete from t_order_outsource
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderOutsourceExample">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
- -->
|
|
|
- delete from t_order_outsource
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.TOrderOutsource">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
insert into t_order_outsource (id, order_no, refund_status,
|
|
|
create_time, remarks, attachment_url,
|
|
|
- picture_url, amount, company_name,
|
|
|
- audit_time, unit_price, unit_number,
|
|
|
- outsource_remarks, type, tid,
|
|
|
- start_type, patent_name_type, patent_name,
|
|
|
- patent_type)
|
|
|
+ amount, company_name, audit_time,
|
|
|
+ unit_price, unit_number, outsource_remarks,
|
|
|
+ `type`, tid, start_type,
|
|
|
+ patent_type, patent_name_type, patent_name,
|
|
|
+ actual_official, picture_url)
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{refundStatus,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}, #{attachmentUrl,jdbcType=VARCHAR},
|
|
|
- #{pictureUrl,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{companyName,jdbcType=VARCHAR},
|
|
|
- #{auditTime,jdbcType=TIMESTAMP}, #{unitPrice,jdbcType=DECIMAL}, #{unitNumber,jdbcType=INTEGER},
|
|
|
- #{outsourceRemarks,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER},
|
|
|
- #{startType,jdbcType=INTEGER}, #{patentNameType,jdbcType=INTEGER}, #{patentName,jdbcType=VARCHAR},
|
|
|
- #{patentType,jdbcType=INTEGER})
|
|
|
+ #{amount,jdbcType=DECIMAL}, #{companyName,jdbcType=VARCHAR}, #{auditTime,jdbcType=TIMESTAMP},
|
|
|
+ #{unitPrice,jdbcType=DECIMAL}, #{unitNumber,jdbcType=INTEGER}, #{outsourceRemarks,jdbcType=VARCHAR},
|
|
|
+ #{type,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{startType,jdbcType=INTEGER},
|
|
|
+ #{patentType,jdbcType=INTEGER}, #{patentNameType,jdbcType=INTEGER}, #{patentName,jdbcType=VARCHAR},
|
|
|
+ #{actualOfficial,jdbcType=INTEGER}, #{pictureUrl,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderOutsource">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
insert into t_order_outsource
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -202,9 +122,6 @@
|
|
|
<if test="attachmentUrl != null">
|
|
|
attachment_url,
|
|
|
</if>
|
|
|
- <if test="pictureUrl != null">
|
|
|
- picture_url,
|
|
|
- </if>
|
|
|
<if test="amount != null">
|
|
|
amount,
|
|
|
</if>
|
|
|
@@ -224,7 +141,7 @@
|
|
|
outsource_remarks,
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type,
|
|
|
+ `type`,
|
|
|
</if>
|
|
|
<if test="tid != null">
|
|
|
tid,
|
|
|
@@ -232,18 +149,21 @@
|
|
|
<if test="startType != null">
|
|
|
start_type,
|
|
|
</if>
|
|
|
+ <if test="patentType != null">
|
|
|
+ patent_type,
|
|
|
+ </if>
|
|
|
<if test="patentNameType != null">
|
|
|
patent_name_type,
|
|
|
</if>
|
|
|
<if test="patentName != null">
|
|
|
patent_name,
|
|
|
</if>
|
|
|
- <if test="patentType != null">
|
|
|
- patent_type,
|
|
|
- </if>
|
|
|
<if test="actualOfficial != null">
|
|
|
actual_official,
|
|
|
</if>
|
|
|
+ <if test="pictureUrl != null">
|
|
|
+ picture_url,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -264,9 +184,6 @@
|
|
|
<if test="attachmentUrl != null">
|
|
|
#{attachmentUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pictureUrl != null">
|
|
|
- #{pictureUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="amount != null">
|
|
|
#{amount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
@@ -294,136 +211,28 @@
|
|
|
<if test="startType != null">
|
|
|
#{startType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="patentType != null">
|
|
|
+ #{patentType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="patentNameType != null">
|
|
|
#{patentNameType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="patentName != null">
|
|
|
#{patentName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="patentType != null">
|
|
|
- #{patentType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="actualOfficial != null">
|
|
|
#{actualOfficial,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="pictureUrl != null">
|
|
|
+ #{pictureUrl,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.goafanti.common.model.TOrderOutsourceExample" resultType="java.lang.Long">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
- -->
|
|
|
- select count(*) from t_order_outsource
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <update id="updateByExampleSelective" parameterType="map">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
- -->
|
|
|
- update t_order_outsource
|
|
|
- <set>
|
|
|
- <if test="record.id != null">
|
|
|
- id = #{record.id,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.orderNo != null">
|
|
|
- order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.refundStatus != null">
|
|
|
- refund_status = #{record.refundStatus,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.createTime != null">
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="record.remarks != null">
|
|
|
- remarks = #{record.remarks,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.attachmentUrl != null">
|
|
|
- attachment_url = #{record.attachmentUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.pictureUrl != null">
|
|
|
- picture_url = #{record.pictureUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.amount != null">
|
|
|
- amount = #{record.amount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.companyName != null">
|
|
|
- company_name = #{record.companyName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.auditTime != null">
|
|
|
- audit_time = #{record.auditTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="record.unitPrice != null">
|
|
|
- unit_price = #{record.unitPrice,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.unitNumber != null">
|
|
|
- unit_number = #{record.unitNumber,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.outsourceRemarks != null">
|
|
|
- outsource_remarks = #{record.outsourceRemarks,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.type != null">
|
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.tid != null">
|
|
|
- tid = #{record.tid,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.startType != null">
|
|
|
- start_type = #{record.startType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.patentNameType != null">
|
|
|
- patent_name_type = #{record.patentNameType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.patentName != null">
|
|
|
- patent_name = #{record.patentName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.patentType != null">
|
|
|
- patent_type = #{record.patentType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByExample" parameterType="map">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
- -->
|
|
|
- update t_order_outsource
|
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
|
- order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
- refund_status = #{record.refundStatus,jdbcType=INTEGER},
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- remarks = #{record.remarks,jdbcType=VARCHAR},
|
|
|
- attachment_url = #{record.attachmentUrl,jdbcType=VARCHAR},
|
|
|
- picture_url = #{record.pictureUrl,jdbcType=VARCHAR},
|
|
|
- amount = #{record.amount,jdbcType=DECIMAL},
|
|
|
- company_name = #{record.companyName,jdbcType=VARCHAR},
|
|
|
- audit_time = #{record.auditTime,jdbcType=TIMESTAMP},
|
|
|
- unit_price = #{record.unitPrice,jdbcType=DECIMAL},
|
|
|
- unit_number = #{record.unitNumber,jdbcType=INTEGER},
|
|
|
- outsource_remarks = #{record.outsourceRemarks,jdbcType=VARCHAR},
|
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
- tid = #{record.tid,jdbcType=INTEGER},
|
|
|
- start_type = #{record.startType,jdbcType=INTEGER},
|
|
|
- patent_name_type = #{record.patentNameType,jdbcType=INTEGER},
|
|
|
- patent_name = #{record.patentName,jdbcType=VARCHAR},
|
|
|
- patent_type = #{record.patentType,jdbcType=INTEGER}
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderOutsource">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
update t_order_outsource
|
|
|
<set>
|
|
|
@@ -442,9 +251,6 @@
|
|
|
<if test="attachmentUrl != null">
|
|
|
attachment_url = #{attachmentUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="pictureUrl != null">
|
|
|
- picture_url = #{pictureUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="amount != null">
|
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
@@ -464,7 +270,7 @@
|
|
|
outsource_remarks = #{outsourceRemarks,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="tid != null">
|
|
|
tid = #{tid,jdbcType=INTEGER},
|
|
|
@@ -472,26 +278,57 @@
|
|
|
<if test="startType != null">
|
|
|
start_type = #{startType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="patentType != null">
|
|
|
+ patent_type = #{patentType,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="patentNameType != null">
|
|
|
patent_name_type = #{patentNameType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="patentName != null">
|
|
|
patent_name = #{patentName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="patentType != null">
|
|
|
- patent_type = #{patentType,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
<if test="actualOfficial != null">
|
|
|
actual_official = #{actualOfficial,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="pictureUrl != null">
|
|
|
+ picture_url = #{pictureUrl,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.goafanti.common.model.TOrderOutsource">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
+ -->
|
|
|
+ update t_order_outsource
|
|
|
+ set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
+ refund_status = #{refundStatus,jdbcType=INTEGER},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ attachment_url = #{attachmentUrl,jdbcType=VARCHAR},
|
|
|
+ amount = #{amount,jdbcType=DECIMAL},
|
|
|
+ company_name = #{companyName,jdbcType=VARCHAR},
|
|
|
+ audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
+ unit_price = #{unitPrice,jdbcType=DECIMAL},
|
|
|
+ unit_number = #{unitNumber,jdbcType=INTEGER},
|
|
|
+ outsource_remarks = #{outsourceRemarks,jdbcType=VARCHAR},
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
+ tid = #{tid,jdbcType=INTEGER},
|
|
|
+ start_type = #{startType,jdbcType=INTEGER},
|
|
|
+ patent_type = #{patentType,jdbcType=INTEGER},
|
|
|
+ patent_name_type = #{patentNameType,jdbcType=INTEGER},
|
|
|
+ patent_name = #{patentName,jdbcType=VARCHAR},
|
|
|
+ actual_official = #{actualOfficial,jdbcType=INTEGER},
|
|
|
+ picture_url = #{pictureUrl,jdbcType=LONGVARCHAR}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderOutsource">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jun 12 13:38:21 CST 2020.
|
|
|
+ This element was generated on Fri Jul 23 15:28:48 CST 2021.
|
|
|
-->
|
|
|
update t_order_outsource
|
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
@@ -499,19 +336,19 @@
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
attachment_url = #{attachmentUrl,jdbcType=VARCHAR},
|
|
|
- picture_url = #{pictureUrl,jdbcType=VARCHAR},
|
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
|
company_name = #{companyName,jdbcType=VARCHAR},
|
|
|
audit_time = #{auditTime,jdbcType=TIMESTAMP},
|
|
|
unit_price = #{unitPrice,jdbcType=DECIMAL},
|
|
|
unit_number = #{unitNumber,jdbcType=INTEGER},
|
|
|
outsource_remarks = #{outsourceRemarks,jdbcType=VARCHAR},
|
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
tid = #{tid,jdbcType=INTEGER},
|
|
|
start_type = #{startType,jdbcType=INTEGER},
|
|
|
+ patent_type = #{patentType,jdbcType=INTEGER},
|
|
|
patent_name_type = #{patentNameType,jdbcType=INTEGER},
|
|
|
patent_name = #{patentName,jdbcType=VARCHAR},
|
|
|
- patent_type = #{patentType,jdbcType=INTEGER}
|
|
|
+ actual_official = #{actualOfficial,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<select id="selectByOrderNo" resultType="com.goafanti.order.bo.OrderOutsourceDtails">
|
|
|
@@ -644,7 +481,7 @@
|
|
|
and b.create_time between #{starTime} and #{endTime}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByTid" parameterType="java.lang.Integer" resultType="com.goafanti.organization.bo.outProjectBo">
|
|
|
+ <select id="selectByTid" parameterType="java.lang.Integer" resultType="com.goafanti.organization.bo.outProjectBo">
|
|
|
select a.id,a.start_type startType,a.patent_type patentType,c.`type` projectType
|
|
|
from t_order_task b left join t_order_outsource a on a.tid=b.id
|
|
|
left join business_project c on b.commodity_id=c.id
|