|
|
@@ -1003,7 +1003,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="getOrderTaskDetail" resultType="com.goafanti.order.bo.TOrderTaskDetailBo">
|
|
|
- select
|
|
|
+select
|
|
|
a.id,a.commodity_name as taskName,a.order_no as orderNo,c.cname,d.name as receiverName,a.task_comment as taskComment,
|
|
|
a.project_status as projectStatus,a.task_status as taskStatus,e.contacts,a.attachment_url as attachmentUrl,a.outsource_name outsourceName,
|
|
|
f.nickname as userName,g.name as salesmanName,date_format(a.task_start_time,'%Y-%m-%d') as startDate,a.retrieve_content as retrieveContent,
|
|
|
@@ -1013,13 +1013,10 @@
|
|
|
date_format(a.review_time,'%Y-%m-%d') as reviewDate,date_format(a.publicity_time,'%Y-%m-%d') as publicityDate,a.outsource_price outsourcePrice,
|
|
|
date_format(a.licence_time,'%Y-%m-%d') as licenceDate,date_format(a.task_distribution_time,'%Y-%m-%d') as taskDate,
|
|
|
e.contacts ,e.contact_mobile as contactMobile ,e.legal_person as legalPerson,e.legal_person_tel as legalPersonTel,
|
|
|
- a.set_up_amount as setUpAmount,a.arrival_money as arrivalMoney
|
|
|
-from t_order_task a left join business_project b on a.commodity_id=b.id
|
|
|
- left join business_category c on b.cid=c.id
|
|
|
- left join admin d on a.task_receiver=d.id
|
|
|
- left join t_order_new e on a.order_no=e.order_no
|
|
|
- left join department h on e.order_dep=h.id
|
|
|
- left join user f on e.buyer_id=f.id
|
|
|
+ a.set_up_amount as setUpAmount,a.arrival_money as arrivalMoney,a.task_receiver taskReceiver
|
|
|
+from t_order_task a left join business_project b on a.commodity_id=b.id left join business_category c on b.cid=c.id
|
|
|
+ left join admin d on a.task_receiver=d.id left join t_order_new e on a.order_no=e.order_no
|
|
|
+ left join department h on e.order_dep=h.id left join user f on e.buyer_id=f.id
|
|
|
left join admin g on e.salesman_id=g.id
|
|
|
where a.id= #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
@@ -1187,6 +1184,12 @@ from t_order_task a left join business_project b on a.commodity_id=b.id
|
|
|
</select>
|
|
|
<update id="updateDimissionTransfer" parameterType="java.lang.String">
|
|
|
update t_order_task set task_allocator= #{aid,jdbcType=VARCHAR},task_receiver= #{transferId,jdbcType=VARCHAR}
|
|
|
+ <if test="type==0">
|
|
|
+ ,consultant_id=#{transferId,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="type==1">
|
|
|
+ ,manager_id=#{transferId,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
where task_receiver=#{aid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectEstimateCost" resultType="java.lang.String">
|