Bläddra i källkod

sz 添加电子发票

xiao547607 5 år sedan
förälder
incheckning
5400c60b7f

+ 2 - 0
picc-common/src/main/java/com/jpsoft/picc/modules/business/entity/InsurancePolicy.java

@@ -66,6 +66,8 @@ public class InsurancePolicy {
     private InsuranceAgent agent;
     @ApiModelProperty(value = "投保单附件")
     private String insurancePolicyFile;
+    @ApiModelProperty(value = "电子发票附件")
+    private String electronicInvoiceFile;
     @ApiModelProperty(value = "当前第几份")
     private Integer no;
     @ApiModelProperty(value = "生效年月(yyyyMM)")

+ 6 - 1
picc-common/src/main/resources/mapper/business/InsurancePolicy.xml

@@ -19,6 +19,7 @@
         <result property="transferTime" column="transfer_time" />
         <result property="agentId" column="agent_id" />
         <result property="insurancePolicyFile" column="insurance_policy_file" />
+        <result property="electronicInvoiceFile" column="electronic_invoice_file" />
         <result property="no" column="no_" />
         <result property="effectiveDate" column="effective_date" />
         <result property="delFlag" column="del_flag" />
@@ -48,7 +49,7 @@
 	    (id_,definition_id,status_,process_status,insurance_fee,start_time,end_time,
 	    number_,account_bank,issuing_bank,singl_number,transfer_time,
 	    agent_id,insurance_policy_file,no_,effective_date,del_flag,create_by,create_time,update_by,update_time,
-	    company_id,latest_application_id,policy_no,finish_time,commission_,commission_time,promoter_)
+	    company_id,latest_application_id,policy_no,finish_time,commission_,commission_time,promoter_,electronic_invoice_file)
 		values
 		(
             #{id,jdbcType=VARCHAR}
@@ -79,6 +80,7 @@
             ,#{commission,jdbcType= NUMERIC }
             ,#{commissionTime,jdbcType= TIMESTAMP }
             ,#{promoter,jdbcType=VARCHAR}
+            ,#{electronicInvoiceFile,jdbcType=VARCHAR}
 		)
 	]]>
     </insert>
@@ -169,6 +171,9 @@
             <if test="promoter!=null">
                 promoter_=#{promoter,jdbcType= VARCHAR },
             </if>
+            <if test="electronicInvoiceFile!=null">
+                electronic_invoice_file=#{electronicInvoiceFile,jdbcType= VARCHAR },
+            </if>
         </set>
         where id_=#{id}
     </update>