Browse Source

update

Signed-off-by: anderx <312518615@qq.com>
anderx 5 years ago
parent
commit
27ebc83711

+ 11 - 11
src/main/java/com/goafanti/common/dao/ThirdPartyCompanyMapper.java

@@ -11,68 +11,68 @@ public interface ThirdPartyCompanyMapper {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	long countByExample(ThirdPartyCompanyExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int deleteByExample(ThirdPartyCompanyExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int deleteByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int insert(ThirdPartyCompany record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int insertSelective(ThirdPartyCompany record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	List<ThirdPartyCompany> selectByExample(ThirdPartyCompanyExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	ThirdPartyCompany selectByPrimaryKey(Integer id);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int updateByExampleSelective(@Param("record") ThirdPartyCompany record,
 			@Param("example") ThirdPartyCompanyExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int updateByExample(@Param("record") ThirdPartyCompany record, @Param("example") ThirdPartyCompanyExample example);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int updateByPrimaryKeySelective(ThirdPartyCompany record);
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	int updateByPrimaryKey(ThirdPartyCompany record);
 

+ 37 - 22
src/main/java/com/goafanti/common/mapper/ThirdPartyCompanyMapper.xml

@@ -5,7 +5,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="tid" jdbcType="INTEGER" property="tid" />
@@ -26,12 +26,13 @@
     <result column="patent_name_type" jdbcType="INTEGER" property="patentNameType" />
     <result column="official_amount" jdbcType="DECIMAL" property="officialAmount" />
     <result column="start_type" jdbcType="INTEGER" property="startType" />
+    <result column="patent_type" jdbcType="INTEGER" property="patentType" />
   </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 Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -65,7 +66,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -99,17 +100,17 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     id, tid, company_name, unit_price, quantity, total_amount, material, urgent, audit, 
     assets, income, remarks, create_time, cid, party_amount, type, patent_name_type, 
-    official_amount, start_type
+    official_amount, start_type, patent_type
   </sql>
   <select id="selectByExample" parameterType="com.goafanti.common.model.ThirdPartyCompanyExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     select
     <if test="distinct">
@@ -128,7 +129,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -139,7 +140,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     delete from third_party_company
     where id = #{id,jdbcType=INTEGER}
@@ -148,7 +149,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     delete from third_party_company
     <if test="_parameter != null">
@@ -159,7 +160,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     insert into third_party_company (id, tid, company_name, 
       unit_price, quantity, total_amount, 
@@ -167,20 +168,20 @@
       assets, income, remarks, 
       create_time, cid, party_amount, 
       type, patent_name_type, official_amount, 
-      start_type)
+      start_type, patent_type)
     values (#{id,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR}, 
       #{unitPrice,jdbcType=DECIMAL}, #{quantity,jdbcType=INTEGER}, #{totalAmount,jdbcType=DECIMAL}, 
       #{material,jdbcType=INTEGER}, #{urgent,jdbcType=INTEGER}, #{audit,jdbcType=INTEGER}, 
       #{assets,jdbcType=VARCHAR}, #{income,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, 
       #{createTime,jdbcType=TIMESTAMP}, #{cid,jdbcType=INTEGER}, #{partyAmount,jdbcType=DECIMAL}, 
       #{type,jdbcType=INTEGER}, #{patentNameType,jdbcType=INTEGER}, #{officialAmount,jdbcType=DECIMAL}, 
-      #{startType,jdbcType=INTEGER})
+      #{startType,jdbcType=INTEGER}, #{patentType,jdbcType=INTEGER})
   </insert>
   <insert id="insertSelective" parameterType="com.goafanti.common.model.ThirdPartyCompany">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     insert into third_party_company
     <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -241,6 +242,9 @@
       <if test="startType != null">
         start_type,
       </if>
+      <if test="patentType != null">
+        patent_type,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -300,13 +304,16 @@
       <if test="startType != null">
         #{startType,jdbcType=INTEGER},
       </if>
+      <if test="patentType != null">
+        #{patentType,jdbcType=INTEGER},
+      </if>
     </trim>
   </insert>
   <select id="countByExample" parameterType="com.goafanti.common.model.ThirdPartyCompanyExample" resultType="java.lang.Long">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     select count(*) from third_party_company
     <if test="_parameter != null">
@@ -317,7 +324,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     update third_party_company
     <set>
@@ -378,6 +385,9 @@
       <if test="record.startType != null">
         start_type = #{record.startType,jdbcType=INTEGER},
       </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" />
@@ -387,7 +397,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     update third_party_company
     set id = #{record.id,jdbcType=INTEGER},
@@ -408,7 +418,8 @@
       type = #{record.type,jdbcType=INTEGER},
       patent_name_type = #{record.patentNameType,jdbcType=INTEGER},
       official_amount = #{record.officialAmount,jdbcType=DECIMAL},
-      start_type = #{record.startType,jdbcType=INTEGER}
+      start_type = #{record.startType,jdbcType=INTEGER},
+      patent_type = #{record.patentType,jdbcType=INTEGER}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -417,7 +428,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     update third_party_company
     <set>
@@ -475,6 +486,9 @@
       <if test="startType != null">
         start_type = #{startType,jdbcType=INTEGER},
       </if>
+      <if test="patentType != null">
+        patent_type = #{patentType,jdbcType=INTEGER},
+      </if>
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
@@ -482,7 +496,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Oct 21 11:29:02 CST 2020.
+      This element was generated on Thu Oct 22 16:26:31 CST 2020.
     -->
     update third_party_company
     set tid = #{tid,jdbcType=INTEGER},
@@ -502,13 +516,14 @@
       type = #{type,jdbcType=INTEGER},
       patent_name_type = #{patentNameType,jdbcType=INTEGER},
       official_amount = #{officialAmount,jdbcType=DECIMAL},
-      start_type = #{startType,jdbcType=INTEGER}
+      start_type = #{startType,jdbcType=INTEGER},
+      patent_type = #{patentType,jdbcType=INTEGER}
     where id = #{id,jdbcType=INTEGER}
   </update>
   <select id="selectByTid" resultType="com.goafanti.organization.bo.OutThirdPartyCompany">
-   select a.id,a.tid,a.company_name companyName,a.unit_price unitPrice,a.quantity,a.total_amount totalAmount,a.material,a.urgent,
+	 select a.id,a.tid,a.company_name companyName,a.unit_price unitPrice,a.quantity,a.total_amount totalAmount,a.material,a.urgent,
 	a.patent_name_type patentNameType,a.audit,a.assets,a.income,a.remarks,a.cid,b.cost_reduction costReduction,b.official_cost officialCost,
-	a.type,a.party_amount partyAmount ,op.amount officialUnitPrice,op.proportion85 reductionAmount,a.start_type startType
+	a.type,a.party_amount partyAmount ,op.amount officialUnitPrice,op.proportion85 reductionAmount,a.start_type startType,a.patent_type patentType
 	from third_party_company a left join t_order_task b on a.tid=b.id  left join official_fee_price op on a.patent_name_type=op.`type` 
  where tid= #{tid}
   </select>

+ 80 - 57
src/main/java/com/goafanti/common/model/ThirdPartyCompany.java

@@ -12,108 +12,113 @@ public class ThirdPartyCompany {
 
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.id
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer id;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.tid
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer tid;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.company_name
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private String companyName;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.unit_price
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	@DecimalMax(value = "999999", message = "{" + ErrorConstants.DECIMAL_PARAM_MAX_ERROR + "}")
 	@DecimalMin(value = "0", message = "{" + ErrorConstants.DECIMAL_PARAM_MIN_ERROR + "}")
 	private BigDecimal unitPrice;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.quantity
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer quantity;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.total_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	@DecimalMax(value = "999999", message = "{" + ErrorConstants.DECIMAL_PARAM_MAX_ERROR + "}")
 	@DecimalMin(value = "0", message = "{" + ErrorConstants.DECIMAL_PARAM_MIN_ERROR + "}")
 	private BigDecimal totalAmount;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.material
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer material;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.urgent
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer urgent;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.audit
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer audit;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.assets
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private String assets;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.income
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private String income;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.remarks
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private String remarks;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.create_time
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Date createTime;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.cid
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer cid;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.party_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private BigDecimal partyAmount;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer type;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.patent_name_type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer patentNameType;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.official_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private BigDecimal officialAmount;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.start_type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	private Integer startType;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column third_party_company.patent_type
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
+	 */
+	private Integer patentType;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.id
 	 * @return  the value of third_party_company.id
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getId() {
 		return id;
@@ -122,7 +127,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.id
 	 * @param id  the value for third_party_company.id
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setId(Integer id) {
 		this.id = id;
@@ -131,7 +136,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.tid
 	 * @return  the value of third_party_company.tid
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getTid() {
 		return tid;
@@ -140,7 +145,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.tid
 	 * @param tid  the value for third_party_company.tid
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setTid(Integer tid) {
 		this.tid = tid;
@@ -149,7 +154,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.company_name
 	 * @return  the value of third_party_company.company_name
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public String getCompanyName() {
 		return companyName;
@@ -158,7 +163,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.company_name
 	 * @param companyName  the value for third_party_company.company_name
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setCompanyName(String companyName) {
 		this.companyName = companyName;
@@ -167,7 +172,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.unit_price
 	 * @return  the value of third_party_company.unit_price
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public BigDecimal getUnitPrice() {
 		return unitPrice;
@@ -176,7 +181,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.unit_price
 	 * @param unitPrice  the value for third_party_company.unit_price
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setUnitPrice(BigDecimal unitPrice) {
 		this.unitPrice = unitPrice;
@@ -185,7 +190,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.quantity
 	 * @return  the value of third_party_company.quantity
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getQuantity() {
 		return quantity;
@@ -194,7 +199,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.quantity
 	 * @param quantity  the value for third_party_company.quantity
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setQuantity(Integer quantity) {
 		this.quantity = quantity;
@@ -203,7 +208,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.total_amount
 	 * @return  the value of third_party_company.total_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public BigDecimal getTotalAmount() {
 		return totalAmount;
@@ -212,7 +217,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.total_amount
 	 * @param totalAmount  the value for third_party_company.total_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setTotalAmount(BigDecimal totalAmount) {
 		this.totalAmount = totalAmount;
@@ -221,7 +226,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.material
 	 * @return  the value of third_party_company.material
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getMaterial() {
 		return material;
@@ -230,7 +235,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.material
 	 * @param material  the value for third_party_company.material
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setMaterial(Integer material) {
 		this.material = material;
@@ -239,7 +244,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.urgent
 	 * @return  the value of third_party_company.urgent
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getUrgent() {
 		return urgent;
@@ -248,7 +253,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.urgent
 	 * @param urgent  the value for third_party_company.urgent
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setUrgent(Integer urgent) {
 		this.urgent = urgent;
@@ -257,7 +262,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.audit
 	 * @return  the value of third_party_company.audit
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getAudit() {
 		return audit;
@@ -266,7 +271,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.audit
 	 * @param audit  the value for third_party_company.audit
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setAudit(Integer audit) {
 		this.audit = audit;
@@ -275,7 +280,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.assets
 	 * @return  the value of third_party_company.assets
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public String getAssets() {
 		return assets;
@@ -284,7 +289,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.assets
 	 * @param assets  the value for third_party_company.assets
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setAssets(String assets) {
 		this.assets = assets;
@@ -293,7 +298,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.income
 	 * @return  the value of third_party_company.income
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public String getIncome() {
 		return income;
@@ -302,7 +307,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.income
 	 * @param income  the value for third_party_company.income
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setIncome(String income) {
 		this.income = income;
@@ -311,7 +316,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.remarks
 	 * @return  the value of third_party_company.remarks
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public String getRemarks() {
 		return remarks;
@@ -320,7 +325,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.remarks
 	 * @param remarks  the value for third_party_company.remarks
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setRemarks(String remarks) {
 		this.remarks = remarks;
@@ -329,7 +334,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.create_time
 	 * @return  the value of third_party_company.create_time
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Date getCreateTime() {
 		return createTime;
@@ -338,7 +343,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.create_time
 	 * @param createTime  the value for third_party_company.create_time
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setCreateTime(Date createTime) {
 		this.createTime = createTime;
@@ -347,7 +352,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.cid
 	 * @return  the value of third_party_company.cid
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getCid() {
 		return cid;
@@ -356,7 +361,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.cid
 	 * @param cid  the value for third_party_company.cid
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setCid(Integer cid) {
 		this.cid = cid;
@@ -365,7 +370,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.party_amount
 	 * @return  the value of third_party_company.party_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public BigDecimal getPartyAmount() {
 		return partyAmount;
@@ -374,7 +379,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.party_amount
 	 * @param partyAmount  the value for third_party_company.party_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setPartyAmount(BigDecimal partyAmount) {
 		this.partyAmount = partyAmount;
@@ -383,7 +388,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.type
 	 * @return  the value of third_party_company.type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getType() {
 		return type;
@@ -392,7 +397,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.type
 	 * @param type  the value for third_party_company.type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setType(Integer type) {
 		this.type = type;
@@ -401,7 +406,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.patent_name_type
 	 * @return  the value of third_party_company.patent_name_type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getPatentNameType() {
 		return patentNameType;
@@ -410,7 +415,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.patent_name_type
 	 * @param patentNameType  the value for third_party_company.patent_name_type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setPatentNameType(Integer patentNameType) {
 		this.patentNameType = patentNameType;
@@ -419,7 +424,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.official_amount
 	 * @return  the value of third_party_company.official_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public BigDecimal getOfficialAmount() {
 		return officialAmount;
@@ -428,7 +433,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.official_amount
 	 * @param officialAmount  the value for third_party_company.official_amount
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setOfficialAmount(BigDecimal officialAmount) {
 		this.officialAmount = officialAmount;
@@ -437,7 +442,7 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.start_type
 	 * @return  the value of third_party_company.start_type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Integer getStartType() {
 		return startType;
@@ -446,9 +451,27 @@ public class ThirdPartyCompany {
 	/**
 	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.start_type
 	 * @param startType  the value for third_party_company.start_type
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setStartType(Integer startType) {
 		this.startType = startType;
 	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column third_party_company.patent_type
+	 * @return  the value of third_party_company.patent_type
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
+	 */
+	public Integer getPatentType() {
+		return patentType;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column third_party_company.patent_type
+	 * @param patentType  the value for third_party_company.patent_type
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
+	 */
+	public void setPatentType(Integer patentType) {
+		this.patentType = patentType;
+	}
 }

+ 76 - 16
src/main/java/com/goafanti/common/model/ThirdPartyCompanyExample.java

@@ -8,23 +8,23 @@ import java.util.List;
 public class ThirdPartyCompanyExample {
     /**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	protected String orderByClause;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	protected boolean distinct;
 	/**
 	 * This field was generated by MyBatis Generator. This field corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	protected List<Criteria> oredCriteria;
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public ThirdPartyCompanyExample() {
 		oredCriteria = new ArrayList<Criteria>();
@@ -32,7 +32,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setOrderByClause(String orderByClause) {
 		this.orderByClause = orderByClause;
@@ -40,7 +40,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public String getOrderByClause() {
 		return orderByClause;
@@ -48,7 +48,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void setDistinct(boolean distinct) {
 		this.distinct = distinct;
@@ -56,7 +56,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public boolean isDistinct() {
 		return distinct;
@@ -64,7 +64,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public List<Criteria> getOredCriteria() {
 		return oredCriteria;
@@ -72,7 +72,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void or(Criteria criteria) {
 		oredCriteria.add(criteria);
@@ -80,7 +80,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Criteria or() {
 		Criteria criteria = createCriteriaInternal();
@@ -90,7 +90,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public Criteria createCriteria() {
 		Criteria criteria = createCriteriaInternal();
@@ -102,7 +102,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	protected Criteria createCriteriaInternal() {
 		Criteria criteria = new Criteria();
@@ -111,7 +111,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This method was generated by MyBatis Generator. This method corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public void clear() {
 		oredCriteria.clear();
@@ -121,7 +121,7 @@ public class ThirdPartyCompanyExample {
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	protected abstract static class GeneratedCriteria {
 		protected List<Criterion> criteria;
@@ -1343,11 +1343,71 @@ public class ThirdPartyCompanyExample {
 			addCriterion("start_type not between", value1, value2, "startType");
 			return (Criteria) this;
 		}
+
+		public Criteria andPatentTypeIsNull() {
+			addCriterion("patent_type is null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeIsNotNull() {
+			addCriterion("patent_type is not null");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeEqualTo(Integer value) {
+			addCriterion("patent_type =", value, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeNotEqualTo(Integer value) {
+			addCriterion("patent_type <>", value, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeGreaterThan(Integer value) {
+			addCriterion("patent_type >", value, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeGreaterThanOrEqualTo(Integer value) {
+			addCriterion("patent_type >=", value, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeLessThan(Integer value) {
+			addCriterion("patent_type <", value, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeLessThanOrEqualTo(Integer value) {
+			addCriterion("patent_type <=", value, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeIn(List<Integer> values) {
+			addCriterion("patent_type in", values, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeNotIn(List<Integer> values) {
+			addCriterion("patent_type not in", values, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeBetween(Integer value1, Integer value2) {
+			addCriterion("patent_type between", value1, value2, "patentType");
+			return (Criteria) this;
+		}
+
+		public Criteria andPatentTypeNotBetween(Integer value1, Integer value2) {
+			addCriterion("patent_type not between", value1, value2, "patentType");
+			return (Criteria) this;
+		}
 	}
 
 	/**
 	 * This class was generated by MyBatis Generator. This class corresponds to the database table third_party_company
-	 * @mbg.generated  Wed Oct 21 11:29:02 CST 2020
+	 * @mbg.generated  Thu Oct 22 16:26:31 CST 2020
 	 */
 	public static class Criterion {
 		private String condition;

+ 19 - 1
src/main/java/com/goafanti/organization/bo/OutThirdPartyCompany.java

@@ -12,7 +12,7 @@ public class OutThirdPartyCompany  {
 	private String officialUnitPrice; 
 	private String reductionAmount;
 	
-
+	private Integer  patentType;
 
 	
 	
@@ -414,6 +414,24 @@ public class OutThirdPartyCompany  {
 	public void setStartType(Integer startType) {
 		this.startType = startType;
 	}
+
+
+
+
+
+
+	public Integer getPatentType() {
+		return patentType;
+	}
+
+
+
+
+
+
+	public void setPatentType(Integer patentType) {
+		this.patentType = patentType;
+	}
 	
 	
 

+ 6 - 6
src/main/java/com/goafanti/organization/service/impl/ThirdPartyCompanyServiceImpl.java

@@ -220,15 +220,15 @@ public class ThirdPartyCompanyServiceImpl extends  BaseMybatisDao<ThirdPartyComp
 			outProjectBo op =null;
 			if(!list.isEmpty()) op=tOrderOutsourceMapper.selectByTid(tid);
 			//外包type
-			if (op!=null && op.getStartType()!=null&&op.getStartType()==1) {
 				for (OutThirdPartyCompany oc : list) {
-					if(op.getProjectType()==null)op.setProjectType(0);
-					if((op.getProjectType()==1&&oc.getType()==1)||(op.getProjectType()==2)) {
-						oc.setUnitPrice("***");
-						oc.setTotalAmount("***");
+					if (oc.getStartType()==1) {
+						if(op.getProjectType()==null)op.setProjectType(0);
+						if((op.getProjectType()==1&&oc.getType()==1)||(op.getProjectType()==2)||oc.getPatentType()==0) {
+							oc.setUnitPrice("***");
+							oc.setTotalAmount("***");
+						}
 					}
 				}
-			}
 		}
 		return list;
 	}

+ 1 - 1
src/main/resources/props/config_local.properties

@@ -5,7 +5,7 @@ jdbc.driverClassName=com.mysql.jdbc.Driver
 #jdbc.username=dev
 #jdbc.password=123456
 #测试
-jdbc.url=jdbc:mysql://101.37.32.31:3306/aft20201022?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
+jdbc.url=jdbc:mysql://101.37.32.31:3306/aft?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
 jdbc.username=root
 jdbc.password=aftdev
 #\u68c0\u6d4b\u6570\u636e\u5e93\u94fe\u63a5\u662f\u5426\u6709\u6548\uff0c\u5fc5\u987b\u914d\u7f6e