Browse Source

版本问题设置

anderx 5 years ago
parent
commit
b05738a250

+ 3 - 3
GeneratorConfig.xml

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 <generatorConfiguration>
-   <classPathEntry location="C:/Users/Administrator/.dbeaver-drivers/maven/maven-central/mysql/mysql-connector-java-5.1.39.jar" /> 
+   <classPathEntry location="C:\Users\Administrator.SC-202009251130\AppData\Roaming\DBeaverData\drivers\maven\maven-central\mysql\mysql-connector-java-8.0.17.jar" /> 
    <!-- <classPathEntry location="C:\Users\Administrator\.dbeaver-drivers\maven\maven-central\mysql\mysql-connector-java-5.1.44.jar" /> -->
   <context id="context1">	
-     <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/aft"  
-    	driverClass="com.mysql.jdbc.Driver" password="123456" userId="root" />
+     <jdbcConnection connectionURL="jdbc:mysql://localhost:3306/aft?serverTimezone=UTC"  
+    	driverClass="com.mysql.cj.jdbc.Driver" password="123456" userId="root" />
     <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="kede-server" />
     <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="kede-server" />
     <javaClientGenerator  targetPackage="com.goafanti.common.dao"  type="XMLMAPPER" targetProject="kede-server"  />

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

@@ -6,7 +6,6 @@ import com.goafanti.order.bo.OrderOutsourceDtails;
 import com.goafanti.organization.bo.outProjectBo;
 
 import java.util.List;
-import java.util.Map;
 
 import org.apache.ibatis.annotations.Param;
 

+ 86 - 284
src/main/java/com/goafanti/common/model/TOrderOutsource.java

@@ -2,451 +2,253 @@ package com.goafanti.common.model;
 
 import java.math.BigDecimal;
 import java.util.Date;
+import javax.annotation.Generated;
 
 public class TOrderOutsource {
 
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.id
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.id")
 	private Integer id;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.order_no
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.order_no")
 	private String orderNo;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.refund_status
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.refund_status")
 	private Integer refundStatus;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.create_time
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.create_time")
 	private Date createTime;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.remarks
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.remarks")
 	private String remarks;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.attachment_url
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.attachment_url")
 	private String attachmentUrl;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.picture_url
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
-	private String pictureUrl;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.amount
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.amount")
 	private BigDecimal amount;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.company_name
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.company_name")
 	private String companyName;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.audit_time
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.audit_time")
 	private Date auditTime;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.unit_price
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.unit_price")
 	private BigDecimal unitPrice;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.unit_number
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.unit_number")
 	private Integer unitNumber;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.outsource_remarks
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.outsource_remarks")
 	private String outsourceRemarks;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.type")
 	private Integer type;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.tid
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.tid")
 	private Integer tid;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.start_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.start_type")
 	private Integer startType;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.patent_name_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_type")
+	private Integer patentType;
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_name_type")
 	private Integer patentNameType;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.patent_name
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_name")
 	private String patentName;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.patent_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
-	private Integer patentType;
-	
-	
-	
-	private String reason;
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.628+08:00", comments = "Source field: t_order_outsource.actual_official")
+	private Integer actualOfficial;
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.628+08:00", comments = "Source field: t_order_outsource.picture_url")
+	private String pictureUrl;
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.id
-	 * @return  the value of t_order_outsource.id
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.id")
 	public Integer getId() {
 		return id;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.id
-	 * @param id  the value for t_order_outsource.id
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.id")
 	public void setId(Integer id) {
 		this.id = id;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.order_no
-	 * @return  the value of t_order_outsource.order_no
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.order_no")
 	public String getOrderNo() {
 		return orderNo;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.order_no
-	 * @param orderNo  the value for t_order_outsource.order_no
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.order_no")
 	public void setOrderNo(String orderNo) {
 		this.orderNo = orderNo;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.refund_status
-	 * @return  the value of t_order_outsource.refund_status
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.refund_status")
 	public Integer getRefundStatus() {
 		return refundStatus;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.refund_status
-	 * @param refundStatus  the value for t_order_outsource.refund_status
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.refund_status")
 	public void setRefundStatus(Integer refundStatus) {
 		this.refundStatus = refundStatus;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.create_time
-	 * @return  the value of t_order_outsource.create_time
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.create_time")
 	public Date getCreateTime() {
 		return createTime;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.create_time
-	 * @param createTime  the value for t_order_outsource.create_time
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.create_time")
 	public void setCreateTime(Date createTime) {
 		this.createTime = createTime;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.remarks
-	 * @return  the value of t_order_outsource.remarks
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.remarks")
 	public String getRemarks() {
 		return remarks;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.remarks
-	 * @param remarks  the value for t_order_outsource.remarks
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.remarks")
 	public void setRemarks(String remarks) {
 		this.remarks = remarks;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.attachment_url
-	 * @return  the value of t_order_outsource.attachment_url
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.attachment_url")
 	public String getAttachmentUrl() {
 		return attachmentUrl;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.attachment_url
-	 * @param attachmentUrl  the value for t_order_outsource.attachment_url
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.attachment_url")
 	public void setAttachmentUrl(String attachmentUrl) {
 		this.attachmentUrl = attachmentUrl;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.picture_url
-	 * @return  the value of t_order_outsource.picture_url
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
-	public String getPictureUrl() {
-		return pictureUrl;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.picture_url
-	 * @param pictureUrl  the value for t_order_outsource.picture_url
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
-	public void setPictureUrl(String pictureUrl) {
-		this.pictureUrl = pictureUrl;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.amount
-	 * @return  the value of t_order_outsource.amount
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.amount")
 	public BigDecimal getAmount() {
 		return amount;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.amount
-	 * @param amount  the value for t_order_outsource.amount
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.amount")
 	public void setAmount(BigDecimal amount) {
 		this.amount = amount;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.company_name
-	 * @return  the value of t_order_outsource.company_name
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.company_name")
 	public String getCompanyName() {
 		return companyName;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.company_name
-	 * @param companyName  the value for t_order_outsource.company_name
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.company_name")
 	public void setCompanyName(String companyName) {
 		this.companyName = companyName;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.audit_time
-	 * @return  the value of t_order_outsource.audit_time
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.audit_time")
 	public Date getAuditTime() {
 		return auditTime;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.audit_time
-	 * @param auditTime  the value for t_order_outsource.audit_time
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.audit_time")
 	public void setAuditTime(Date auditTime) {
 		this.auditTime = auditTime;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.unit_price
-	 * @return  the value of t_order_outsource.unit_price
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.unit_price")
 	public BigDecimal getUnitPrice() {
 		return unitPrice;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.unit_price
-	 * @param unitPrice  the value for t_order_outsource.unit_price
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.unit_price")
 	public void setUnitPrice(BigDecimal unitPrice) {
 		this.unitPrice = unitPrice;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.unit_number
-	 * @return  the value of t_order_outsource.unit_number
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.unit_number")
 	public Integer getUnitNumber() {
 		return unitNumber;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.unit_number
-	 * @param unitNumber  the value for t_order_outsource.unit_number
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.unit_number")
 	public void setUnitNumber(Integer unitNumber) {
 		this.unitNumber = unitNumber;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.outsource_remarks
-	 * @return  the value of t_order_outsource.outsource_remarks
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.outsource_remarks")
 	public String getOutsourceRemarks() {
 		return outsourceRemarks;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.outsource_remarks
-	 * @param outsourceRemarks  the value for t_order_outsource.outsource_remarks
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.outsource_remarks")
 	public void setOutsourceRemarks(String outsourceRemarks) {
 		this.outsourceRemarks = outsourceRemarks;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.type
-	 * @return  the value of t_order_outsource.type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.type")
 	public Integer getType() {
 		return type;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.type
-	 * @param type  the value for t_order_outsource.type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.type")
 	public void setType(Integer type) {
 		this.type = type;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.tid
-	 * @return  the value of t_order_outsource.tid
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.tid")
 	public Integer getTid() {
 		return tid;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.tid
-	 * @param tid  the value for t_order_outsource.tid
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.tid")
 	public void setTid(Integer tid) {
 		this.tid = tid;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.start_type
-	 * @return  the value of t_order_outsource.start_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.start_type")
 	public Integer getStartType() {
 		return startType;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.start_type
-	 * @param startType  the value for t_order_outsource.start_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.start_type")
 	public void setStartType(Integer startType) {
 		this.startType = startType;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.patent_name_type
-	 * @return  the value of t_order_outsource.patent_name_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_type")
+	public Integer getPatentType() {
+		return patentType;
+	}
+
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_type")
+	public void setPatentType(Integer patentType) {
+		this.patentType = patentType;
+	}
+
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_name_type")
 	public Integer getPatentNameType() {
 		return patentNameType;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.patent_name_type
-	 * @param patentNameType  the value for t_order_outsource.patent_name_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_name_type")
 	public void setPatentNameType(Integer patentNameType) {
 		this.patentNameType = patentNameType;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.patent_name
-	 * @return  the value of t_order_outsource.patent_name
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_name")
 	public String getPatentName() {
 		return patentName;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.patent_name
-	 * @param patentName  the value for t_order_outsource.patent_name
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.627+08:00", comments = "Source field: t_order_outsource.patent_name")
 	public void setPatentName(String patentName) {
 		this.patentName = patentName;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.patent_type
-	 * @return  the value of t_order_outsource.patent_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
-	public Integer getPatentType() {
-		return patentType;
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.628+08:00", comments = "Source field: t_order_outsource.actual_official")
+	public Integer getActualOfficial() {
+		return actualOfficial;
 	}
 
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.patent_type
-	 * @param patentType  the value for t_order_outsource.patent_type
-	 * @mbg.generated  Fri Jun 12 13:38:21 CST 2020
-	 */
-	public void setPatentType(Integer patentType) {
-		this.patentType = patentType;
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.628+08:00", comments = "Source field: t_order_outsource.actual_official")
+	public void setActualOfficial(Integer actualOfficial) {
+		this.actualOfficial = actualOfficial;
 	}
 
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.628+08:00", comments = "Source field: t_order_outsource.picture_url")
+	public String getPictureUrl() {
+		return pictureUrl;
+	}
+
+	@Generated(value = "org.mybatis.generator.api.MyBatisGenerator", date = "2020-11-25T17:04:15.628+08:00", comments = "Source field: t_order_outsource.picture_url")
+	public void setPictureUrl(String pictureUrl) {
+		this.pictureUrl = pictureUrl;
+	}
+
+	private String reason;
+
 	public String getReason() {
 		return reason;
 	}

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

@@ -1329,7 +1329,7 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 			//旧项目变更,如果驳回修改成新的项目变更
 			if(o.getUnitNumber()!=null)tOrderOutsourceMapper.updateByidNull(o.getId());
 		}
-		updateOrderCostAmount(o.getTid(),o.getStartType());
+		updateOrderCostAmount(o.getTid(),o.getStartType(),o.getActualOfficial());
 		return 1;
 	}
 
@@ -1337,13 +1337,13 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 	 * 发起外包时,通过计算获取项目的成本,订单的成本
 	 * @param tid
 	 */
-	private void updateOrderCostAmount(Integer tid,Integer startType) {
+	private void updateOrderCostAmount(Integer tid,Integer startType,Integer actualOfficial) {
 		//计算项目成本
 		List<OutThirdPartyCompany>list=thirdPartyCompanyMapper.selectByTid(tid);
 		BigDecimal tCount=new BigDecimal(0);
 		for (OutThirdPartyCompany op : list) {
 			tCount=tCount.add(new BigDecimal(op.getTotalAmount()));
-			if(op.getOfficialCost()==1 && startType==1) {
+			if(op.getOfficialCost()==1 && startType==1 && actualOfficial==1) {
 				BigDecimal sum= new BigDecimal(0);
 				if (op.getCostReduction()==0) {
 					sum= new BigDecimal(op.getOfficialUnitPrice()).multiply(new BigDecimal(op.getQuantity()));