Browse Source

修改开票为最后流程

anderx 3 years ago
parent
commit
5f861111c1

+ 17 - 0
src/main/java/com/goafanti/common/dao/TOrderHighTechMapper.java

@@ -0,0 +1,17 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TOrderHighTech;
+
+public interface TOrderHighTechMapper {
+    int deleteByPrimaryKey(Integer id);
+
+    int insert(TOrderHighTech record);
+
+    int insertSelective(TOrderHighTech record);
+
+    TOrderHighTech selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(TOrderHighTech record);
+
+    int updateByPrimaryKey(TOrderHighTech record);
+}

+ 134 - 0
src/main/java/com/goafanti/common/mapper/TOrderHighTechMapper.xml

@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.goafanti.common.dao.TOrderHighTechMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderHighTech">
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="order_no" jdbcType="VARCHAR" property="orderNo" />
+    <result column="knowledge_services" jdbcType="INTEGER" property="knowledgeServices" />
+    <result column="audit_services" jdbcType="INTEGER" property="auditServices" />
+    <result column="add_deduction_services" jdbcType="INTEGER" property="addDeductionServices" />
+    <result column="knowledge_other" jdbcType="VARCHAR" property="knowledgeOther" />
+    <result column="audit_other" jdbcType="VARCHAR" property="auditOther" />
+    <result column="add_deduction_other" jdbcType="VARCHAR" property="addDeductionOther" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    id, order_no, knowledge_services, audit_services, add_deduction_services, knowledge_other, 
+    audit_other, add_deduction_other, create_time
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from t_order_high_tech
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from t_order_high_tech
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderHighTech" useGeneratedKeys="true">
+    insert into t_order_high_tech (order_no, knowledge_services, audit_services, 
+      add_deduction_services, knowledge_other, audit_other, 
+      add_deduction_other, create_time)
+    values (#{orderNo,jdbcType=VARCHAR}, #{knowledgeServices,jdbcType=INTEGER}, #{auditServices,jdbcType=INTEGER}, 
+      #{addDeductionServices,jdbcType=INTEGER}, #{knowledgeOther,jdbcType=VARCHAR}, #{auditOther,jdbcType=VARCHAR}, 
+      #{addDeductionOther,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderHighTech" useGeneratedKeys="true">
+    insert into t_order_high_tech
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="orderNo != null">
+        order_no,
+      </if>
+      <if test="knowledgeServices != null">
+        knowledge_services,
+      </if>
+      <if test="auditServices != null">
+        audit_services,
+      </if>
+      <if test="addDeductionServices != null">
+        add_deduction_services,
+      </if>
+      <if test="knowledgeOther != null">
+        knowledge_other,
+      </if>
+      <if test="auditOther != null">
+        audit_other,
+      </if>
+      <if test="addDeductionOther != null">
+        add_deduction_other,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="orderNo != null">
+        #{orderNo,jdbcType=VARCHAR},
+      </if>
+      <if test="knowledgeServices != null">
+        #{knowledgeServices,jdbcType=INTEGER},
+      </if>
+      <if test="auditServices != null">
+        #{auditServices,jdbcType=INTEGER},
+      </if>
+      <if test="addDeductionServices != null">
+        #{addDeductionServices,jdbcType=INTEGER},
+      </if>
+      <if test="knowledgeOther != null">
+        #{knowledgeOther,jdbcType=VARCHAR},
+      </if>
+      <if test="auditOther != null">
+        #{auditOther,jdbcType=VARCHAR},
+      </if>
+      <if test="addDeductionOther != null">
+        #{addDeductionOther,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderHighTech">
+    update t_order_high_tech
+    <set>
+      <if test="orderNo != null">
+        order_no = #{orderNo,jdbcType=VARCHAR},
+      </if>
+      <if test="knowledgeServices != null">
+        knowledge_services = #{knowledgeServices,jdbcType=INTEGER},
+      </if>
+      <if test="auditServices != null">
+        audit_services = #{auditServices,jdbcType=INTEGER},
+      </if>
+      <if test="addDeductionServices != null">
+        add_deduction_services = #{addDeductionServices,jdbcType=INTEGER},
+      </if>
+      <if test="knowledgeOther != null">
+        knowledge_other = #{knowledgeOther,jdbcType=VARCHAR},
+      </if>
+      <if test="auditOther != null">
+        audit_other = #{auditOther,jdbcType=VARCHAR},
+      </if>
+      <if test="addDeductionOther != null">
+        add_deduction_other = #{addDeductionOther,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderHighTech">
+    update t_order_high_tech
+    set order_no = #{orderNo,jdbcType=VARCHAR},
+      knowledge_services = #{knowledgeServices,jdbcType=INTEGER},
+      audit_services = #{auditServices,jdbcType=INTEGER},
+      add_deduction_services = #{addDeductionServices,jdbcType=INTEGER},
+      knowledge_other = #{knowledgeOther,jdbcType=VARCHAR},
+      audit_other = #{auditOther,jdbcType=VARCHAR},
+      add_deduction_other = #{addDeductionOther,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 126 - 0
src/main/java/com/goafanti/common/model/TOrderHighTech.java

@@ -0,0 +1,126 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * t_order_high_tech
+ * @author 
+ */
+public class TOrderHighTech implements Serializable {
+    private Integer id;
+
+    /**
+     * 订单编号
+     */
+    private String orderNo;
+
+    /**
+     * 知识产权服务 1已签 2企业已经拥有可申报高新的知识产权 3企业自行申报/已有其他合作的代理机构申报 0其他
+     */
+    private Integer knowledgeServices;
+
+    /**
+     * 审计服务 1已签 2企业已经有符合申报的年审/专审 3 业自行找会计事务所出具报告 0其他
+     */
+    private Integer auditServices;
+
+    /**
+     * 加计扣除服务 1已签 2企业不符合加计扣除范围 3企业自己已经做了加计扣除 4企业自行找其他机构做了加计扣除 0其他
+     */
+    private Integer addDeductionServices;
+
+    /**
+     * 知识产权服务其他描述
+     */
+    private String knowledgeOther;
+
+    /**
+     * 审计服务其他描述
+     */
+    private String auditOther;
+
+    /**
+     * 加计扣除服务其他描述
+     */
+    private String addDeductionOther;
+
+    /**
+     * 时间戳
+     */
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getOrderNo() {
+        return orderNo;
+    }
+
+    public void setOrderNo(String orderNo) {
+        this.orderNo = orderNo;
+    }
+
+    public Integer getKnowledgeServices() {
+        return knowledgeServices;
+    }
+
+    public void setKnowledgeServices(Integer knowledgeServices) {
+        this.knowledgeServices = knowledgeServices;
+    }
+
+    public Integer getAuditServices() {
+        return auditServices;
+    }
+
+    public void setAuditServices(Integer auditServices) {
+        this.auditServices = auditServices;
+    }
+
+    public Integer getAddDeductionServices() {
+        return addDeductionServices;
+    }
+
+    public void setAddDeductionServices(Integer addDeductionServices) {
+        this.addDeductionServices = addDeductionServices;
+    }
+
+    public String getKnowledgeOther() {
+        return knowledgeOther;
+    }
+
+    public void setKnowledgeOther(String knowledgeOther) {
+        this.knowledgeOther = knowledgeOther;
+    }
+
+    public String getAuditOther() {
+        return auditOther;
+    }
+
+    public void setAuditOther(String auditOther) {
+        this.auditOther = auditOther;
+    }
+
+    public String getAddDeductionOther() {
+        return addDeductionOther;
+    }
+
+    public void setAddDeductionOther(String addDeductionOther) {
+        this.addDeductionOther = addDeductionOther;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}