Browse Source

新增修改上级同步修改子集

anderx 3 years ago
parent
commit
8e52d66a4f

+ 1 - 0
src/main/java/com/goafanti/common/dao/TOrderTaskMapper.java

@@ -82,4 +82,5 @@ public interface TOrderTaskMapper {
     Integer getSplitCount(Integer tid);
 
 
+    void updateBySuperId(Integer splitSuper);
 }

+ 191 - 0
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -1759,6 +1759,7 @@
     set cost_amount =cost_amount + #{cost}
     where tid= #{tid}
   </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.buyer_name buyerName
@@ -2096,4 +2097,194 @@
     </if>
   </select>
 
+  <update id="updateBySuperId">
+    update t_order_task
+    <set>
+      <if test="orderNo != null">
+        order_no = #{orderNo,jdbcType=VARCHAR},
+      </if>
+      <if test="main != null">
+        main = #{main,jdbcType=INTEGER},
+      </if>
+      <if test="superId != null">
+        super_id = #{superId,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityId != null">
+        commodity_id = #{commodityId,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityName != null">
+        commodity_name = #{commodityName,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityQuantity != null">
+        commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
+      </if>
+      <if test="commodityMode != null">
+        commodity_mode = #{commodityMode,jdbcType=VARCHAR},
+      </if>
+      <if test="commodityPrice != null">
+        commodity_price = #{commodityPrice,jdbcType=DECIMAL},
+      </if>
+      <if test="taskStatus != null">
+        task_status = #{taskStatus,jdbcType=INTEGER},
+      </if>
+      <if test="taskDistributionTime != null">
+        task_distribution_time = #{taskDistributionTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskAllocator != null">
+        task_allocator = #{taskAllocator,jdbcType=VARCHAR},
+      </if>
+      <if test="taskReceiver != null">
+        task_receiver = #{taskReceiver,jdbcType=VARCHAR},
+      </if>
+      <if test="taskComment != null">
+        task_comment = #{taskComment,jdbcType=VARCHAR},
+      </if>
+      <if test="taskStartTime != null">
+        task_start_time = #{taskStartTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="taskEndTime != null">
+        task_end_time = #{taskEndTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="attachmentUrl != null">
+        attachment_url = #{attachmentUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="projectStatus != null">
+        project_status = #{projectStatus,jdbcType=INTEGER},
+      </if>
+      <if test="acceptTime != null">
+        accept_time = #{acceptTime,jdbcType=DATE},
+      </if>
+      <if test="reviewTime != null">
+        review_time = #{reviewTime,jdbcType=DATE},
+      </if>
+      <if test="publicityTime != null">
+        publicity_time = #{publicityTime,jdbcType=DATE},
+      </if>
+      <if test="licenceTime != null">
+        licence_time = #{licenceTime,jdbcType=DATE},
+      </if>
+      <if test="certificateNumber != null">
+        certificate_number = #{certificateNumber,jdbcType=VARCHAR},
+      </if>
+      <if test="status != null">
+        `status` = #{status,jdbcType=INTEGER},
+      </if>
+      <if test="formRetrieve != null">
+        form_retrieve = #{formRetrieve,jdbcType=INTEGER},
+      </if>
+      <if test="taskRefund != null">
+        task_refund = #{taskRefund,jdbcType=INTEGER},
+      </if>
+      <if test="refundContent != null">
+        refund_content = #{refundContent,jdbcType=VARCHAR},
+      </if>
+      <if test="retrieveContent != null">
+        retrieve_content = #{retrieveContent,jdbcType=VARCHAR},
+      </if>
+      <if test="declareUser != null">
+        declare_user = #{declareUser,jdbcType=VARCHAR},
+      </if>
+      <if test="declarePwd != null">
+        declare_pwd = #{declarePwd,jdbcType=VARCHAR},
+      </if>
+      <if test="setUpAmount != null">
+        set_up_amount = #{setUpAmount,jdbcType=DECIMAL},
+      </if>
+      <if test="arrivalMoney != null">
+        arrival_money = #{arrivalMoney,jdbcType=INTEGER},
+      </if>
+      <if test="outsourceName != null">
+        outsource_name = #{outsourceName,jdbcType=VARCHAR},
+      </if>
+      <if test="outsourcePrice != null">
+        outsource_price = #{outsourcePrice,jdbcType=DECIMAL},
+      </if>
+      <if test="consultantId != null">
+        consultant_id = #{consultantId,jdbcType=VARCHAR},
+      </if>
+      <if test="managerId != null">
+        manager_id = #{managerId,jdbcType=VARCHAR},
+      </if>
+      <if test="outsource != null">
+        outsource = #{outsource,jdbcType=INTEGER},
+      </if>
+      <if test="splitStatus != null">
+        split_status = #{splitStatus,jdbcType=INTEGER},
+      </if>
+      <if test="splitId != null">
+        split_id = #{splitId,jdbcType=INTEGER},
+      </if>
+      <if test="splitAid != null">
+        split_aid = #{splitAid,jdbcType=VARCHAR},
+      </if>
+      <if test="splitTime != null">
+        split_time = #{splitTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="cname != null">
+        cname = #{cname,jdbcType=VARCHAR},
+      </if>
+      <if test="receiverName != null">
+        receiver_name = #{receiverName,jdbcType=VARCHAR},
+      </if>
+      <if test="declarationBatch != null">
+        declaration_batch = #{declarationBatch,jdbcType=INTEGER},
+      </if>
+      <if test="costReduction != null">
+        cost_reduction = #{costReduction,jdbcType=INTEGER},
+      </if>
+      <if test="officialCost != null">
+        official_cost = #{officialCost,jdbcType=INTEGER},
+      </if>
+      <if test="setUpStatus != null">
+        set_up_status = #{setUpStatus,jdbcType=INTEGER},
+      </if>
+      <if test="setUpTime != null">
+        set_up_time = #{setUpTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="spotCheckStatus != null">
+        spot_check_status = #{spotCheckStatus,jdbcType=INTEGER},
+      </if>
+      <if test="highTechStatus != null">
+        high_tech_status = #{highTechStatus,jdbcType=INTEGER},
+      </if>
+      <if test="specialComment != null">
+        special_comment = #{specialComment,jdbcType=VARCHAR},
+      </if>
+      <if test="ifCertificationFee != null">
+        if_certification_fee = #{ifCertificationFee,jdbcType=INTEGER},
+      </if>
+      <if test="certificationFee != null">
+        certification_fee = #{certificationFee,jdbcType=DECIMAL},
+      </if>
+      <if test="certificationCorporate != null">
+        certification_corporate = #{certificationCorporate,jdbcType=VARCHAR},
+      </if>
+      <if test="timeRecord != null">
+        time_record = #{timeRecord,jdbcType=VARCHAR},
+      </if>
+      <if test="ifPublicity != null">
+        if_publicity = #{ifPublicity,jdbcType=INTEGER},
+      </if>
+      <if test="checkStatus != null">
+        check_status = #{checkStatus,jdbcType=INTEGER},
+      </if>
+      <if test="patentType != null">
+        patent_type = #{patentType,jdbcType=INTEGER},
+      </if>
+      <if test="pubicityUrl != null">
+        pubicity_url = #{pubicityUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="processStatus != null">
+        process_status = #{processStatus,jdbcType=INTEGER},
+      </if>
+      <if test="memberType != null">
+        member_type = #{memberType,jdbcType=INTEGER},
+      </if>
+      <if test="pictureUrl != null">
+        picture_url = #{pictureUrl,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where split_super = #{splitSuper,jdbcType=INTEGER}
+  </update>
+
 </mapper>

+ 3 - 0
src/main/java/com/goafanti/order/service/impl/OrderProjectServiceImpl.java

@@ -1590,6 +1590,9 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 			tOrderMid.setOrderNo(task.getOrderNo());
 			tOrderMid.setStopProject(stopProject);
 			tOrderMidMapper.updateByOrderNo(tOrderMid);
+			if (task.getSplitStatus()==1){
+				tOrderTaskMapper.updateBySuperId(task.getId());
+			}
 			examineProjectSotpAddNotice(task,1,use.getType());
 		}else if(in.getStatus()==2) {
 			t.setStatus(2);