cxd 7 сар өмнө
parent
commit
77a102f7de

+ 3 - 0
gqy-system/src/main/java/com/gqy/document/domain/DcPsParam.java

@@ -20,9 +20,12 @@ public class DcPsParam extends BaseEntity {
     /** 参数值 */
     private String psp_value;
 
+
     /** 文档块id */
     private Integer dcb_id;
 
+
+
     public Integer getPsp_id() {
         return psp_id;
     }

+ 13 - 0
gqy-system/src/main/java/com/gqy/document/domain/DcSpec.java

@@ -32,6 +32,19 @@ public class DcSpec extends BaseEntity {
     /** 状态  0正常,1停用,2删除  */
     private Integer ps_status;
 
+
+    /** 所属分类*/
+    private String ps_category;
+
+    public String getPs_category() {
+        return ps_category;
+    }
+    public void setPs_category(String ps_category) {
+        this.ps_category = ps_category;
+    }
+
+
+
     public Integer getPs_status() {
         return ps_status;
     }

+ 1 - 0
gqy-system/src/main/java/com/gqy/document/service/impl/DcSpecServiceImpl.java

@@ -64,6 +64,7 @@ public class DcSpecServiceImpl implements IDcSpecService {
             dcSpec.setPs_no(ps_no);
             dcSpec.setPs_name(maps.get("ps_name").toString());
             dcSpec.setPs_status(Integer.valueOf(UserStatus.OK.getCode()));
+            dcSpec.setPs_category(maps.get("ps_category").toString());
             dcSpecMapper.insertDcSpec(dcSpec);
 
             //规格参数

+ 5 - 1
gqy-system/src/main/resources/mapper/document/DcSpecMapper.xml

@@ -9,10 +9,11 @@
         <result property="ps_name"   column="ps_name"   />
         <result property="ps_status"   column="ps_status"   />
         <result property="ps_dck_id" column="ps_dck_id" />
+        <result property="ps_category" column="ps_category" />
     </resultMap>
 
     <sql id="selectDcSpecVo">
-        select ps_id, ps_p_id, ps_no, ps_name, ps_dck_id from dc_spec
+        select ps_id, ps_p_id, ps_no, ps_name, ps_dck_id,ps_category from dc_spec
     </sql>
 
     <select id="selectDcSpecList" parameterType="DcSpec" resultMap="DcSpecResult">
@@ -35,12 +36,15 @@
             <if test="ps_no != null and ps_no != ''">ps_no,</if>
             <if test="ps_name != null and ps_name != ''">ps_name,</if>
             <if test="ps_dck_id != null">ps_dck_id,</if>
+            <if test="ps_category != null">ps_category,</if>
+
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="ps_p_id != null and ps_p_id != ''">#{ps_p_id},</if>
             <if test="ps_no != null and ps_no != ''">#{ps_no},</if>
             <if test="ps_name != null and ps_name != ''">#{ps_name},</if>
             <if test="ps_dck_id != null">#{ps_dck_id},</if>
+            <if test="ps_category != null">#{ps_category},</if>
         </trim>
     </insert>