|
|
@@ -64,19 +64,19 @@
|
|
|
<result column="pubicity_url" jdbcType="VARCHAR" property="pubicityUrl" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, order_no, main, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode,
|
|
|
- commodity_price, task_status, task_distribution_time, task_allocator, task_receiver,
|
|
|
- task_comment, task_start_time, task_end_time, attachment_url, project_status, accept_time,
|
|
|
- review_time, publicity_time, licence_time, certificate_number, `status`, form_retrieve,
|
|
|
- task_refund, refund_content, retrieve_content, declare_user, declare_pwd, set_up_amount,
|
|
|
- arrival_money, outsource_name, outsource_price, consultant_id, manager_id, outsource,
|
|
|
- split_super, split_status, split_id, split_aid, split_time, cname, receiver_name,
|
|
|
- declaration_batch, cost_reduction, official_cost, set_up_status, set_up_time, spot_check_status,
|
|
|
- high_tech_status, special_comment, if_certification_fee, certification_fee, certification_corporate,
|
|
|
+ id, order_no, main, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode,
|
|
|
+ commodity_price, task_status, task_distribution_time, task_allocator, task_receiver,
|
|
|
+ task_comment, task_start_time, task_end_time, attachment_url, project_status, accept_time,
|
|
|
+ review_time, publicity_time, licence_time, certificate_number, `status`, form_retrieve,
|
|
|
+ task_refund, refund_content, retrieve_content, declare_user, declare_pwd, set_up_amount,
|
|
|
+ arrival_money, outsource_name, outsource_price, consultant_id, manager_id, outsource,
|
|
|
+ split_super, split_status, split_id, split_aid, split_time, cname, receiver_name,
|
|
|
+ declaration_batch, cost_reduction, official_cost, set_up_status, set_up_time, spot_check_status,
|
|
|
+ high_tech_status, special_comment, if_certification_fee, certification_fee, certification_corporate,
|
|
|
time_record, if_publicity, check_status, patent_type, pubicity_url
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from t_order_task
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -86,46 +86,46 @@
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderTask" useGeneratedKeys="true">
|
|
|
- insert into t_order_task (order_no, main, super_id,
|
|
|
- commodity_id, commodity_name, commodity_quantity,
|
|
|
- commodity_mode, commodity_price, task_status,
|
|
|
- task_distribution_time, task_allocator,
|
|
|
- task_receiver, task_comment, task_start_time,
|
|
|
- task_end_time, attachment_url, project_status,
|
|
|
- accept_time, review_time, publicity_time,
|
|
|
- licence_time, certificate_number, `status`,
|
|
|
- form_retrieve, task_refund, refund_content,
|
|
|
- retrieve_content, declare_user, declare_pwd,
|
|
|
- set_up_amount, arrival_money, outsource_name,
|
|
|
- outsource_price, consultant_id, manager_id,
|
|
|
- outsource, split_super, split_status,
|
|
|
- split_id, split_aid, split_time,
|
|
|
- cname, receiver_name, declaration_batch,
|
|
|
- cost_reduction, official_cost, set_up_status,
|
|
|
- set_up_time, spot_check_status, high_tech_status,
|
|
|
- special_comment, if_certification_fee, certification_fee,
|
|
|
- certification_corporate, time_record, if_publicity,
|
|
|
+ insert into t_order_task (order_no, main, super_id,
|
|
|
+ commodity_id, commodity_name, commodity_quantity,
|
|
|
+ commodity_mode, commodity_price, task_status,
|
|
|
+ task_distribution_time, task_allocator,
|
|
|
+ task_receiver, task_comment, task_start_time,
|
|
|
+ task_end_time, attachment_url, project_status,
|
|
|
+ accept_time, review_time, publicity_time,
|
|
|
+ licence_time, certificate_number, `status`,
|
|
|
+ form_retrieve, task_refund, refund_content,
|
|
|
+ retrieve_content, declare_user, declare_pwd,
|
|
|
+ set_up_amount, arrival_money, outsource_name,
|
|
|
+ outsource_price, consultant_id, manager_id,
|
|
|
+ outsource, split_super, split_status,
|
|
|
+ split_id, split_aid, split_time,
|
|
|
+ cname, receiver_name, declaration_batch,
|
|
|
+ cost_reduction, official_cost, set_up_status,
|
|
|
+ set_up_time, spot_check_status, high_tech_status,
|
|
|
+ special_comment, if_certification_fee, certification_fee,
|
|
|
+ certification_corporate, time_record, if_publicity,
|
|
|
check_status, patent_type, pubicity_url
|
|
|
)
|
|
|
- values (#{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{superId,jdbcType=VARCHAR},
|
|
|
- #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER},
|
|
|
- #{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL}, #{taskStatus,jdbcType=INTEGER},
|
|
|
- #{taskDistributionTime,jdbcType=TIMESTAMP}, #{taskAllocator,jdbcType=VARCHAR},
|
|
|
- #{taskReceiver,jdbcType=VARCHAR}, #{taskComment,jdbcType=VARCHAR}, #{taskStartTime,jdbcType=TIMESTAMP},
|
|
|
- #{taskEndTime,jdbcType=TIMESTAMP}, #{attachmentUrl,jdbcType=VARCHAR}, #{projectStatus,jdbcType=INTEGER},
|
|
|
- #{acceptTime,jdbcType=DATE}, #{reviewTime,jdbcType=DATE}, #{publicityTime,jdbcType=DATE},
|
|
|
- #{licenceTime,jdbcType=DATE}, #{certificateNumber,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
- #{formRetrieve,jdbcType=INTEGER}, #{taskRefund,jdbcType=INTEGER}, #{refundContent,jdbcType=VARCHAR},
|
|
|
- #{retrieveContent,jdbcType=VARCHAR}, #{declareUser,jdbcType=VARCHAR}, #{declarePwd,jdbcType=VARCHAR},
|
|
|
- #{setUpAmount,jdbcType=DECIMAL}, #{arrivalMoney,jdbcType=INTEGER}, #{outsourceName,jdbcType=VARCHAR},
|
|
|
- #{outsourcePrice,jdbcType=DECIMAL}, #{consultantId,jdbcType=VARCHAR}, #{managerId,jdbcType=VARCHAR},
|
|
|
- #{outsource,jdbcType=INTEGER}, #{splitSuper,jdbcType=INTEGER}, #{splitStatus,jdbcType=INTEGER},
|
|
|
- #{splitId,jdbcType=INTEGER}, #{splitAid,jdbcType=VARCHAR}, #{splitTime,jdbcType=TIMESTAMP},
|
|
|
- #{cname,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR}, #{declarationBatch,jdbcType=INTEGER},
|
|
|
- #{costReduction,jdbcType=INTEGER}, #{officialCost,jdbcType=INTEGER}, #{setUpStatus,jdbcType=INTEGER},
|
|
|
- #{setUpTime,jdbcType=TIMESTAMP}, #{spotCheckStatus,jdbcType=INTEGER}, #{highTechStatus,jdbcType=INTEGER},
|
|
|
- #{specialComment,jdbcType=VARCHAR}, #{ifCertificationFee,jdbcType=INTEGER}, #{certificationFee,jdbcType=DECIMAL},
|
|
|
- #{certificationCorporate,jdbcType=VARCHAR}, #{timeRecord,jdbcType=VARCHAR}, #{ifPublicity,jdbcType=INTEGER},
|
|
|
+ values (#{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{superId,jdbcType=VARCHAR},
|
|
|
+ #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER},
|
|
|
+ #{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL}, #{taskStatus,jdbcType=INTEGER},
|
|
|
+ #{taskDistributionTime,jdbcType=TIMESTAMP}, #{taskAllocator,jdbcType=VARCHAR},
|
|
|
+ #{taskReceiver,jdbcType=VARCHAR}, #{taskComment,jdbcType=VARCHAR}, #{taskStartTime,jdbcType=TIMESTAMP},
|
|
|
+ #{taskEndTime,jdbcType=TIMESTAMP}, #{attachmentUrl,jdbcType=VARCHAR}, #{projectStatus,jdbcType=INTEGER},
|
|
|
+ #{acceptTime,jdbcType=DATE}, #{reviewTime,jdbcType=DATE}, #{publicityTime,jdbcType=DATE},
|
|
|
+ #{licenceTime,jdbcType=DATE}, #{certificateNumber,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
+ #{formRetrieve,jdbcType=INTEGER}, #{taskRefund,jdbcType=INTEGER}, #{refundContent,jdbcType=VARCHAR},
|
|
|
+ #{retrieveContent,jdbcType=VARCHAR}, #{declareUser,jdbcType=VARCHAR}, #{declarePwd,jdbcType=VARCHAR},
|
|
|
+ #{setUpAmount,jdbcType=DECIMAL}, #{arrivalMoney,jdbcType=INTEGER}, #{outsourceName,jdbcType=VARCHAR},
|
|
|
+ #{outsourcePrice,jdbcType=DECIMAL}, #{consultantId,jdbcType=VARCHAR}, #{managerId,jdbcType=VARCHAR},
|
|
|
+ #{outsource,jdbcType=INTEGER}, #{splitSuper,jdbcType=INTEGER}, #{splitStatus,jdbcType=INTEGER},
|
|
|
+ #{splitId,jdbcType=INTEGER}, #{splitAid,jdbcType=VARCHAR}, #{splitTime,jdbcType=TIMESTAMP},
|
|
|
+ #{cname,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR}, #{declarationBatch,jdbcType=INTEGER},
|
|
|
+ #{costReduction,jdbcType=INTEGER}, #{officialCost,jdbcType=INTEGER}, #{setUpStatus,jdbcType=INTEGER},
|
|
|
+ #{setUpTime,jdbcType=TIMESTAMP}, #{spotCheckStatus,jdbcType=INTEGER}, #{highTechStatus,jdbcType=INTEGER},
|
|
|
+ #{specialComment,jdbcType=VARCHAR}, #{ifCertificationFee,jdbcType=INTEGER}, #{certificationFee,jdbcType=DECIMAL},
|
|
|
+ #{certificationCorporate,jdbcType=VARCHAR}, #{timeRecord,jdbcType=VARCHAR}, #{ifPublicity,jdbcType=INTEGER},
|
|
|
#{checkStatus,jdbcType=INTEGER}, #{patentType,jdbcType=INTEGER}, #{pubicityUrl,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
@@ -2034,7 +2034,7 @@
|
|
|
</update>
|
|
|
<select id="selectAidByParam" resultType="com.goafanti.common.bo.OrderOperator">
|
|
|
select a.id tid,b.order_no orderNo ,b.salesman_id salesmanId,b.finance_id financeId ,a.task_receiver techId,
|
|
|
- b.salesman_name salesmanName ,b.finance_name financeName ,d.name techName
|
|
|
+ b.salesman_name salesmanName ,b.finance_name financeName ,d.name techName,b.buyer_name buyerName
|
|
|
from t_order_task a left join t_order_mid b on a.order_no=b.order_no
|
|
|
left join t_task_mid c on a.id =c.tid left join admin d on a.task_receiver=d.id
|
|
|
where 1=1
|
|
|
@@ -2101,4 +2101,4 @@
|
|
|
</if>
|
|
|
desc
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+</mapper>
|