Browse Source

修改订单特批类型

anderx 1 year ago
parent
commit
bbd0f5f144

+ 25 - 0
src/main/java/com/goafanti/common/dao/TOrderApprovalMapper.java

@@ -0,0 +1,25 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TOrderApproval;
+
+/**
+* @author Administrator
+* @description 针对表【t_order_approval(订单特批分类表)】的数据库操作Mapper
+* @createDate 2024-06-20 09:06:19
+* @Entity com.goafanti.common.model.TOrderApproval
+*/
+public interface TOrderApprovalMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(TOrderApproval record);
+
+    int insertSelective(TOrderApproval record);
+
+    TOrderApproval selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(TOrderApproval record);
+
+    int updateByPrimaryKey(TOrderApproval record);
+
+}

+ 75 - 0
src/main/java/com/goafanti/common/mapper/TOrderApprovalMapper.xml

@@ -0,0 +1,75 @@
+<?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.TOrderApprovalMapper">
+
+    <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderApproval">
+            <id property="id" column="id" jdbcType="INTEGER"/>
+            <result property="orderNo" column="order_no" jdbcType="VARCHAR"/>
+            <result property="type" column="type" jdbcType="INTEGER"/>
+            <result property="typeExplain" column="type_explain" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,order_no,type,
+        type_explain
+    </sql>
+
+    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List" />
+        from t_order_approval
+        where  id = #{id,jdbcType=INTEGER} 
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from t_order_approval
+        where  id = #{id,jdbcType=INTEGER} 
+    </delete>
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderApproval" useGeneratedKeys="true">
+        insert into t_order_approval
+        ( id,order_no,type
+        ,type_explain)
+        values (#{id,jdbcType=INTEGER},#{orderNo,jdbcType=VARCHAR},#{type,jdbcType=INTEGER}
+        ,#{typeExplain,jdbcType=VARCHAR})
+    </insert>
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderApproval" useGeneratedKeys="true">
+        insert into t_order_approval
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                <if test="id != null">id,</if>
+                <if test="orderNo != null">order_no,</if>
+                <if test="type != null">type,</if>
+                <if test="typeExplain != null">type_explain,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                <if test="id != null">#{id,jdbcType=INTEGER},</if>
+                <if test="orderNo != null">#{orderNo,jdbcType=VARCHAR},</if>
+                <if test="type != null">#{type,jdbcType=INTEGER},</if>
+                <if test="typeExplain != null">#{typeExplain,jdbcType=VARCHAR},</if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderApproval">
+        update t_order_approval
+        <set>
+                <if test="orderNo != null">
+                    order_no = #{orderNo,jdbcType=VARCHAR},
+                </if>
+                <if test="type != null">
+                    type = #{type,jdbcType=INTEGER},
+                </if>
+                <if test="typeExplain != null">
+                    type_explain = #{typeExplain,jdbcType=VARCHAR},
+                </if>
+        </set>
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+    <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderApproval">
+        update t_order_approval
+        set 
+            order_no =  #{orderNo,jdbcType=VARCHAR},
+            type =  #{type,jdbcType=INTEGER},
+            type_explain =  #{typeExplain,jdbcType=VARCHAR}
+        where   id = #{id,jdbcType=INTEGER} 
+    </update>
+</mapper>

+ 87 - 0
src/main/java/com/goafanti/common/model/TOrderApproval.java

@@ -0,0 +1,87 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+
+/**
+ * 订单特批分类表
+ * @TableName t_order_approval
+ */
+public class TOrderApproval implements Serializable {
+    /**
+     * 
+     */
+    private Integer id;
+
+    /**
+     * 订单编号
+     */
+    private String orderNo;
+
+    /**
+     * 特批类型 0其他,1=无前期款,2=暂无合同款,3=含高风险条款,4=新产品首单,5=通过率低于80%,6=3万以下会员,7=认证首期5K以下
+     */
+    private Integer type;
+
+    /**
+     * 特批其他说明
+     */
+    private String typeExplain;
+
+    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;
+    }
+
+    /**
+     * 特批类型 0其他,1=无前期款,2=暂无合同款,3=含高风险条款,4=新产品首单,5=通过率低于80%,6=3万以下会员,7=认证首期5K以下
+     */
+    public Integer getType() {
+        return type;
+    }
+
+    /**
+     * 特批类型 0其他,1=无前期款,2=暂无合同款,3=含高风险条款,4=新产品首单,5=通过率低于80%,6=3万以下会员,7=认证首期5K以下
+     */
+    public void setType(Integer type) {
+        this.type = type;
+    }
+
+    /**
+     * 特批其他说明
+     */
+    public String getTypeExplain() {
+        return typeExplain;
+    }
+
+    /**
+     * 特批其他说明
+     */
+    public void setTypeExplain(String typeExplain) {
+        this.typeExplain = typeExplain;
+    }
+}

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

@@ -519,6 +519,8 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 		if (StringUtils.isBlank(t.getOrderDep())) {
 			t.setOrderDep(a.getDepartmentId());
 		}
+		if (t.getType() == null){
+		}
 		if (t.getKnowledgeServices()!=null||t.getAuditServices()!=null||t.getAddDeductionServices()!=null){
 			TOrderHighTech tighTech=new TOrderHighTech();
 			tighTech.setOrderNo(t.getOrderNo());