chenw 7 жил өмнө
parent
commit
ba9068a911

+ 66 - 0
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/Vendorkind.java

@@ -0,0 +1,66 @@
+package com.usoftchina.saas.document.entities;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 供应商类型
+ * @author chenwei
+ * @date 2018/20/19
+ */
+public class Vendorkind extends CommonBaseEntity implements Serializable {
+
+    /**
+     * 类型名
+     */
+    private String vk_name;
+
+    /**
+     * 录入人ID
+     */
+    private Integer vk_recordid;
+
+    /**
+     * 录入人
+     */
+    private String vk_recorder;
+
+    /**
+     * 录入日期
+     */
+    private Date vk_date;
+
+    public String getVk_name() {
+        return vk_name;
+    }
+
+    public void setVk_name(String vk_name) {
+        this.vk_name = vk_name == null ? null : vk_name.trim();
+    }
+
+    public Integer getVk_recordid() {
+        return vk_recordid;
+    }
+
+    public void setVk_recordid(Integer vk_recordid) {
+        this.vk_recordid = vk_recordid;
+    }
+
+    public String getVk_recorder() {
+        return vk_recorder;
+    }
+
+    public void setVk_recorder(String vk_recorder) {
+        this.vk_recorder = vk_recorder == null ? null : vk_recorder.trim();
+    }
+
+    public Date getVk_date() {
+        return vk_date;
+    }
+
+    public void setVk_date(Date vk_date) {
+        this.vk_date = vk_date;
+    }
+}

+ 39 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/VendorkindController.java

@@ -0,0 +1,39 @@
+package com.usoftchina.saas.document.controller;
+
+import com.usoftchina.saas.base.Result;
+import com.usoftchina.saas.document.entities.Vendorkind;
+import com.usoftchina.saas.document.service.VendorkindService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/vendorkind")
+public class VendorkindController {
+
+    @Autowired
+    private VendorkindService vendorkindService;
+
+    @PostMapping("/save")
+    public Result save(Vendorkind vendorkind){
+        vendorkindService.save(vendorkind);
+        return Result.success();
+    }
+
+    @PostMapping("/delete/{id}")
+    public Result delete(long id){
+        vendorkindService.removeByPrimaryKey(id);
+        return Result.success();
+    }
+
+    @GetMapping
+    public Result<Vendorkind> getAll(){
+        List<Vendorkind> vendorkindList = vendorkindService.findAll();
+        return Result.success(vendorkindList);
+    }
+
+}

+ 19 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/mapper/VendorkindMapper.java

@@ -0,0 +1,19 @@
+package com.usoftchina.saas.document.mapper;
+
+import com.usoftchina.saas.base.mapper.CommonBaseMapper;
+import com.usoftchina.saas.document.entities.Vendorkind;
+
+public interface VendorkindMapper extends CommonBaseMapper<Vendorkind> {
+
+    int deleteByPrimaryKey(Integer vk_id);
+
+    int insert(Vendorkind record);
+
+    int insertSelective(Vendorkind record);
+
+    Vendorkind selectByPrimaryKey(Long vk_id);
+
+    int updateByPrimaryKeySelective(Vendorkind record);
+
+    int updateByPrimaryKey(Vendorkind record);
+}

+ 11 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/VendorkindService.java

@@ -0,0 +1,11 @@
+package com.usoftchina.saas.document.service;
+
+import com.usoftchina.saas.base.service.CommonBaseService;
+import com.usoftchina.saas.document.entities.Vendorkind;
+import com.usoftchina.saas.document.mapper.VendorkindMapper;
+
+public interface VendorkindService extends CommonBaseService<VendorkindMapper, Vendorkind> {
+
+
+
+}

+ 28 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/VendorkindServiceImpl.java

@@ -0,0 +1,28 @@
+package com.usoftchina.saas.document.service.impl;
+
+import com.usoftchina.saas.base.service.CommonBaseServiceImpl;
+import com.usoftchina.saas.document.entities.Vendorkind;
+import com.usoftchina.saas.document.mapper.VendorkindMapper;
+import com.usoftchina.saas.document.service.VendorkindService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class VendorkindServiceImpl extends CommonBaseServiceImpl<VendorkindMapper, Vendorkind> implements VendorkindService {
+
+    @Autowired
+    private VendorkindMapper vendorkindMapper;
+
+    @Override
+    public boolean save(Vendorkind vendorkind){
+        vendorkindMapper.insertSelective(vendorkind);
+        return true;
+    }
+
+    @Override
+    public boolean removeByPrimaryKey(Long id){
+        vendorkindMapper.deleteByPrimaryKey(id);
+        return true;
+    }
+
+}

+ 2 - 2
applications/document/document-server/src/main/resources/mapper/ProductMapper.xml

@@ -45,7 +45,7 @@
         <result column="pr_brand" property="pr_brand" jdbcType="VARCHAR" />
     </resultMap>
     <!--查询所有物料信息-->
-    <select id="getProductsByCondition" resultMap="ProductDTOResultMapper" parameterType="com.usoftchina.saas.common.dto.DocReqDTO">
+    <select id="getProductsByCondition" resultMap="ProductDTOResultMapper" parameterType="com.usoftchina.saas.commons.dto.DocReqDTO">
         SELECT * FROM PRODUCT
         <where>
             <if test="condition!=null">
@@ -58,7 +58,7 @@
         SELECT * FROM PRODUCT where pr_id = #{pr_id}
     </select>
 
-    <select id="getProdUnit" resultType="com.usoftchina.saas.common.dto.ComboDTO">
+    <select id="getProdUnit" resultType="com.usoftchina.saas.commons.dto.ComboDTO">
         SELECT PR_UNIT as display, pr_unit as value FROM PRODUCT
     </select>
     <update id="updateLatestPurchasePrice" parameterType="long">

+ 1 - 1
applications/document/document-server/src/main/resources/mapper/VendorMapper.xml

@@ -37,7 +37,7 @@
         <result column="ve_status" property="ve_status" jdbcType="VARCHAR" />
     </resultMap>
 
-    <select id="getVendorsByCondition" resultMap="VendorDTOResultMapper" parameterType="com.usoftchina.saas.common.dto.DocReqDTO">
+    <select id="getVendorsByCondition" resultMap="VendorDTOResultMapper" parameterType="com.usoftchina.saas.commons.dto.DocReqDTO">
         SELECT * FROM VENDOR
         <where>
             <if test="condition!=null">

+ 128 - 0
applications/document/document-server/src/main/resources/mapper/VendorkindMapper.xml

@@ -0,0 +1,128 @@
+<?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.usoftchina.saas.document.mapper.VendorkindMapper">
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Vendorkind">
+    <id column="vk_id" jdbcType="INTEGER" property="id" />
+    <result column="vk_name" jdbcType="VARCHAR" property="vk_name" />
+    <result column="vk_recordid" jdbcType="INTEGER" property="vk_recordid" />
+    <result column="vk_recorder" jdbcType="VARCHAR" property="vk_recorder" />
+    <result column="vk_date" jdbcType="TIMESTAMP" property="vk_date" />
+    <result column="companyId" jdbcType="INTEGER" property="companyId" />
+    <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
+    <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    vk_id, vk_name, vk_recordid, vk_recorder, vk_date, companyId, updaterId, updateTime
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select
+    <include refid="Base_Column_List" />
+    from vendorkind
+    where vk_id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from vendorkind
+    where vk_id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Vendorkind">
+    insert into vendorkind (vk_id, vk_name, vk_recordid,
+    vk_recorder, vk_date, companyId,
+    updaterId, updateTime)
+    values (#{id,jdbcType=INTEGER}, #{vk_name,jdbcType=VARCHAR}, #{vk_recordid,jdbcType=INTEGER},
+    #{vk_recorder,jdbcType=VARCHAR}, #{vk_date,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER},
+    #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Vendorkind">
+    insert into vendorkind
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        vk_id,
+      </if>
+      <if test="vk_name != null">
+        vk_name,
+      </if>
+      <if test="vk_recordid != null">
+        vk_recordid,
+      </if>
+      <if test="vk_recorder != null">
+        vk_recorder,
+      </if>
+      <if test="vk_date != null">
+        vk_date,
+      </if>
+      <if test="companyId != null">
+        companyId,
+      </if>
+      <if test="updaterId != null">
+        updaterId,
+      </if>
+      <if test="updateTime != null">
+        updateTime,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="vk_name != null">
+        #{vk_name,jdbcType=VARCHAR},
+      </if>
+      <if test="vk_recordid != null">
+        #{vk_recordid,jdbcType=INTEGER},
+      </if>
+      <if test="vk_recorder != null">
+        #{vk_recorder,jdbcType=VARCHAR},
+      </if>
+      <if test="vk_date != null">
+        #{vk_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="companyId != null">
+        #{companyId,jdbcType=INTEGER},
+      </if>
+      <if test="updaterId != null">
+        #{updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Vendorkind">
+    update vendorkind
+    <set>
+      <if test="vk_name != null">
+        vk_name = #{vk_name,jdbcType=VARCHAR},
+      </if>
+      <if test="vk_recordid != null">
+        vk_recordid = #{vk_recordid,jdbcType=INTEGER},
+      </if>
+      <if test="vk_recorder != null">
+        vk_recorder = #{vk_recorder,jdbcType=VARCHAR},
+      </if>
+      <if test="vk_date != null">
+        vk_date = #{vk_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="companyId != null">
+        companyId = #{companyId,jdbcType=INTEGER},
+      </if>
+      <if test="updaterId != null">
+        updaterId = #{updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        updateTime = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where vk_id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Vendorkind">
+    update vendorkind
+    set vk_name = #{vk_name,jdbcType=VARCHAR},
+    vk_recordid = #{vk_recordid,jdbcType=INTEGER},
+    vk_recorder = #{vk_recorder,jdbcType=VARCHAR},
+    vk_date = #{vk_date,jdbcType=TIMESTAMP},
+    companyId = #{companyId,jdbcType=INTEGER},
+    updaterId = #{updaterId,jdbcType=INTEGER},
+    updateTime = #{updateTime,jdbcType=TIMESTAMP}
+    where vk_id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 0 - 565
applications/document/document-server/src/main/resources/mapper/WarehouseMapper.xml

@@ -34,84 +34,11 @@
     <select id="validPeriod" parameterType="map" resultType="java.lang.Short">
         SELECT IFNULL(PD_STATUS,0) PD_STATUS FROM PERIODSDETAIL WHERE COMPANYID=#{companyId} AND PD_DETNO=#{period}
     </select>
-
-    <sql id="Example_Where_Clause">
-        <where>
-            <foreach collection="oredCriteria" item="criteria" separator="or">
-                <if test="criteria.valid">
-                    <trim prefix="(" prefixOverrides="and" suffix=")">
-                        <foreach collection="criteria.criteria" item="criterion">
-                            <choose>
-                                <when test="criterion.noValue">
-                                    and ${criterion.condition}
-                                </when>
-                                <when test="criterion.singleValue">
-                                    and ${criterion.condition} #{criterion.value}
-                                </when>
-                                <when test="criterion.betweenValue">
-                                    and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                                </when>
-                                <when test="criterion.listValue">
-                                    and ${criterion.condition}
-                                    <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                                        #{listItem}
-                                    </foreach>
-                                </when>
-                            </choose>
-                        </foreach>
-                    </trim>
-                </if>
-            </foreach>
-        </where>
-    </sql>
-    <sql id="Update_By_Example_Where_Clause">
-        <where>
-            <foreach collection="example.oredCriteria" item="criteria" separator="or">
-                <if test="criteria.valid">
-                    <trim prefix="(" prefixOverrides="and" suffix=")">
-                        <foreach collection="criteria.criteria" item="criterion">
-                            <choose>
-                                <when test="criterion.noValue">
-                                    and ${criterion.condition}
-                                </when>
-                                <when test="criterion.singleValue">
-                                    and ${criterion.condition} #{criterion.value}
-                                </when>
-                                <when test="criterion.betweenValue">
-                                    and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                                </when>
-                                <when test="criterion.listValue">
-                                    and ${criterion.condition}
-                                    <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                                        #{listItem}
-                                    </foreach>
-                                </when>
-                            </choose>
-                        </foreach>
-                    </trim>
-                </if>
-            </foreach>
-        </where>
-    </sql>
     <sql id="Base_Column_List">
         wh_id, wh_code, wh_type, wh_description, wh_statuscode, wh_status, wh_recorderid,
         wh_recorder, wh_date, companyid, updaterId, updatetime, wh_text1, wh_text2, wh_text3,
         wh_text4, wh_text5
     </sql>
-    <select id="selectByExample" parameterType="com.usoftchina.saas.document.entities.WarehouseExample" resultMap="BaseResultMap">
-        select
-        <if test="distinct">
-            distinct
-        </if>
-        <include refid="Base_Column_List" />
-        from warehouse
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause" />
-        </if>
-        <if test="orderByClause != null">
-            order by ${orderByClause}
-        </if>
-    </select>
     <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
         select
         <include refid="Base_Column_List" />
@@ -122,12 +49,6 @@
         delete from warehouse
         where wh_id = #{wh_id,jdbcType=INTEGER}
     </delete>
-    <delete id="deleteByExample" parameterType="com.usoftchina.saas.document.entities.WarehouseExample">
-        delete from warehouse
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause" />
-        </if>
-    </delete>
     <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Warehouse">
         insert into warehouse (wh_id, wh_code, wh_type,
         wh_description, wh_statuscode, wh_status,
@@ -251,94 +172,6 @@
             </if>
         </trim>
     </insert>
-    <select id="countByExample" parameterType="com.usoftchina.saas.document.entities.WarehouseExample" resultType="java.lang.Integer">
-        select count(*) from warehouse
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause" />
-        </if>
-    </select>
-    <update id="updateByExampleSelective" parameterType="map">
-        update warehouse
-        <set>
-            <if test="record.wh_id != null">
-                wh_id = #{record.wh_id,jdbcType=INTEGER},
-            </if>
-            <if test="record.wh_code != null">
-                wh_code = #{record.wh_code,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_type != null">
-                wh_type = #{record.wh_type,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_description != null">
-                wh_description = #{record.wh_description,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_statuscode != null">
-                wh_statuscode = #{record.wh_statuscode,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_status != null">
-                wh_status = #{record.wh_status,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_recorderid != null">
-                wh_recorderid = #{record.wh_recorderid,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_recorder != null">
-                wh_recorder = #{record.wh_recorder,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_date != null">
-                wh_date = #{record.wh_date,jdbcType=TIMESTAMP},
-            </if>
-            <if test="record.companyid != null">
-                companyid = #{record.companyid,jdbcType=INTEGER},
-            </if>
-            <if test="record.updaterId != null">
-                updaterId = #{record.updaterId,jdbcType=INTEGER},
-            </if>
-            <if test="record.updatetime != null">
-                updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="record.wh_text1 != null">
-                wh_text1 = #{record.wh_text1,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_text2 != null">
-                wh_text2 = #{record.wh_text2,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_text3 != null">
-                wh_text3 = #{record.wh_text3,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_text4 != null">
-                wh_text4 = #{record.wh_text4,jdbcType=VARCHAR},
-            </if>
-            <if test="record.wh_text5 != null">
-                wh_text5 = #{record.wh_text5,jdbcType=VARCHAR},
-            </if>
-        </set>
-        <if test="_parameter != null">
-            <include refid="Update_By_Example_Where_Clause" />
-        </if>
-    </update>
-    <update id="updateByExample" parameterType="map">
-        update warehouse
-        set wh_id = #{record.wh_id,jdbcType=INTEGER},
-        wh_code = #{record.wh_code,jdbcType=VARCHAR},
-        wh_type = #{record.wh_type,jdbcType=VARCHAR},
-        wh_description = #{record.wh_description,jdbcType=VARCHAR},
-        wh_statuscode = #{record.wh_statuscode,jdbcType=VARCHAR},
-        wh_status = #{record.wh_status,jdbcType=VARCHAR},
-        wh_recorderid = #{record.wh_recorderid,jdbcType=VARCHAR},
-        wh_recorder = #{record.wh_recorder,jdbcType=VARCHAR},
-        wh_date = #{record.wh_date,jdbcType=TIMESTAMP},
-        companyid = #{record.companyid,jdbcType=INTEGER},
-        updaterId = #{record.updaterId,jdbcType=INTEGER},
-        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
-        wh_text1 = #{record.wh_text1,jdbcType=VARCHAR},
-        wh_text2 = #{record.wh_text2,jdbcType=VARCHAR},
-        wh_text3 = #{record.wh_text3,jdbcType=VARCHAR},
-        wh_text4 = #{record.wh_text4,jdbcType=VARCHAR},
-        wh_text5 = #{record.wh_text5,jdbcType=VARCHAR}
-        <if test="_parameter != null">
-            <include refid="Update_By_Example_Where_Clause" />
-        </if>
-    </update>
     <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Warehouse">
         update warehouse
         <set>
@@ -413,403 +246,5 @@
         wh_text5 = #{wh_text5,jdbcType=VARCHAR}
         where wh_id = #{wh_id,jdbcType=INTEGER}
     </update>
-    <resultMap id="BaseResultMap" type="com.usoftchina.saas.document.entities.Warehouse">
-        <id column="wh_id" jdbcType="INTEGER" property="whId" />
-        <result column="wh_code" jdbcType="VARCHAR" property="whCode" />
-        <result column="wh_type" jdbcType="VARCHAR" property="whType" />
-        <result column="wh_description" jdbcType="VARCHAR" property="whDescription" />
-        <result column="wh_statuscode" jdbcType="VARCHAR" property="whStatuscode" />
-        <result column="wh_status" jdbcType="VARCHAR" property="whStatus" />
-        <result column="wh_recorderid" jdbcType="VARCHAR" property="whRecorderid" />
-        <result column="wh_recorder" jdbcType="VARCHAR" property="whRecorder" />
-        <result column="wh_date" jdbcType="TIMESTAMP" property="whDate" />
-        <result column="companyid" jdbcType="INTEGER" property="companyid" />
-        <result column="updaterId" jdbcType="INTEGER" property="updaterid" />
-        <result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
-        <result column="wh_text1" jdbcType="VARCHAR" property="whText1" />
-        <result column="wh_text2" jdbcType="VARCHAR" property="whText2" />
-        <result column="wh_text3" jdbcType="VARCHAR" property="whText3" />
-        <result column="wh_text4" jdbcType="VARCHAR" property="whText4" />
-        <result column="wh_text5" jdbcType="VARCHAR" property="whText5" />
-    </resultMap>
-    <sql id="Example_Where_Clause">
-        <where>
-            <foreach collection="oredCriteria" item="criteria" separator="or">
-                <if test="criteria.valid">
-                    <trim prefix="(" prefixOverrides="and" suffix=")">
-                        <foreach collection="criteria.criteria" item="criterion">
-                            <choose>
-                                <when test="criterion.noValue">
-                                    and ${criterion.condition}
-                                </when>
-                                <when test="criterion.singleValue">
-                                    and ${criterion.condition} #{criterion.value}
-                                </when>
-                                <when test="criterion.betweenValue">
-                                    and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                                </when>
-                                <when test="criterion.listValue">
-                                    and ${criterion.condition}
-                                    <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                                        #{listItem}
-                                    </foreach>
-                                </when>
-                            </choose>
-                        </foreach>
-                    </trim>
-                </if>
-            </foreach>
-        </where>
-    </sql>
-    <sql id="Update_By_Example_Where_Clause">
-        <where>
-            <foreach collection="example.oredCriteria" item="criteria" separator="or">
-                <if test="criteria.valid">
-                    <trim prefix="(" prefixOverrides="and" suffix=")">
-                        <foreach collection="criteria.criteria" item="criterion">
-                            <choose>
-                                <when test="criterion.noValue">
-                                    and ${criterion.condition}
-                                </when>
-                                <when test="criterion.singleValue">
-                                    and ${criterion.condition} #{criterion.value}
-                                </when>
-                                <when test="criterion.betweenValue">
-                                    and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                                </when>
-                                <when test="criterion.listValue">
-                                    and ${criterion.condition}
-                                    <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                                        #{listItem}
-                                    </foreach>
-                                </when>
-                            </choose>
-                        </foreach>
-                    </trim>
-                </if>
-            </foreach>
-        </where>
-    </sql>
-    <sql id="Base_Column_List">
-        wh_id, wh_code, wh_type, wh_description, wh_statuscode, wh_status, wh_recorderid,
-        wh_recorder, wh_date, companyid, updaterId, updatetime, wh_text1, wh_text2, wh_text3,
-        wh_text4, wh_text5
-    </sql>
-    <select id="selectByExample" parameterType="com.usoftchina.saas.document.entities.WarehouseExample" resultMap="BaseResultMap">
-        select
-        <if test="distinct">
-            distinct
-        </if>
-        <include refid="Base_Column_List" />
-        from warehouse
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause" />
-        </if>
-        <if test="orderByClause != null">
-            order by ${orderByClause}
-        </if>
-    </select>
-    <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
-        select
-        <include refid="Base_Column_List" />
-        from warehouse
-        where wh_id = #{whId,jdbcType=INTEGER}
-    </select>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
-        delete from warehouse
-        where wh_id = #{whId,jdbcType=INTEGER}
-    </delete>
-    <delete id="deleteByExample" parameterType="com.usoftchina.saas.document.entities.WarehouseExample">
-        delete from warehouse
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause" />
-        </if>
-    </delete>
-    <insert id="insert" parameterType="com.usoftchina.saas.document.entities.Warehouse">
-        insert into warehouse (wh_id, wh_code, wh_type,
-        wh_description, wh_statuscode, wh_status,
-        wh_recorderid, wh_recorder, wh_date,
-        companyid, updaterId, updatetime,
-        wh_text1, wh_text2, wh_text3,
-        wh_text4, wh_text5)
-        values (#{whId,jdbcType=INTEGER}, #{whCode,jdbcType=VARCHAR}, #{whType,jdbcType=VARCHAR},
-        #{whDescription,jdbcType=VARCHAR}, #{whStatuscode,jdbcType=VARCHAR}, #{whStatus,jdbcType=VARCHAR},
-        #{whRecorderid,jdbcType=VARCHAR}, #{whRecorder,jdbcType=VARCHAR}, #{whDate,jdbcType=TIMESTAMP},
-        #{companyid,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP},
-        #{whText1,jdbcType=VARCHAR}, #{whText2,jdbcType=VARCHAR}, #{whText3,jdbcType=VARCHAR},
-        #{whText4,jdbcType=VARCHAR}, #{whText5,jdbcType=VARCHAR})
-    </insert>
-    <insert id="insertSelective" parameterType="com.usoftchina.saas.document.entities.Warehouse">
-        insert into warehouse
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="whId != null">
-                wh_id,
-            </if>
-            <if test="whCode != null">
-                wh_code,
-            </if>
-            <if test="whType != null">
-                wh_type,
-            </if>
-            <if test="whDescription != null">
-                wh_description,
-            </if>
-            <if test="whStatuscode != null">
-                wh_statuscode,
-            </if>
-            <if test="whStatus != null">
-                wh_status,
-            </if>
-            <if test="whRecorderid != null">
-                wh_recorderid,
-            </if>
-            <if test="whRecorder != null">
-                wh_recorder,
-            </if>
-            <if test="whDate != null">
-                wh_date,
-            </if>
-            <if test="companyid != null">
-                companyid,
-            </if>
-            <if test="updaterid != null">
-                updaterId,
-            </if>
-            <if test="updatetime != null">
-                updatetime,
-            </if>
-            <if test="whText1 != null">
-                wh_text1,
-            </if>
-            <if test="whText2 != null">
-                wh_text2,
-            </if>
-            <if test="whText3 != null">
-                wh_text3,
-            </if>
-            <if test="whText4 != null">
-                wh_text4,
-            </if>
-            <if test="whText5 != null">
-                wh_text5,
-            </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="whId != null">
-                #{whId,jdbcType=INTEGER},
-            </if>
-            <if test="whCode != null">
-                #{whCode,jdbcType=VARCHAR},
-            </if>
-            <if test="whType != null">
-                #{whType,jdbcType=VARCHAR},
-            </if>
-            <if test="whDescription != null">
-                #{whDescription,jdbcType=VARCHAR},
-            </if>
-            <if test="whStatuscode != null">
-                #{whStatuscode,jdbcType=VARCHAR},
-            </if>
-            <if test="whStatus != null">
-                #{whStatus,jdbcType=VARCHAR},
-            </if>
-            <if test="whRecorderid != null">
-                #{whRecorderid,jdbcType=VARCHAR},
-            </if>
-            <if test="whRecorder != null">
-                #{whRecorder,jdbcType=VARCHAR},
-            </if>
-            <if test="whDate != null">
-                #{whDate,jdbcType=TIMESTAMP},
-            </if>
-            <if test="companyid != null">
-                #{companyid,jdbcType=INTEGER},
-            </if>
-            <if test="updaterid != null">
-                #{updaterid,jdbcType=INTEGER},
-            </if>
-            <if test="updatetime != null">
-                #{updatetime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="whText1 != null">
-                #{whText1,jdbcType=VARCHAR},
-            </if>
-            <if test="whText2 != null">
-                #{whText2,jdbcType=VARCHAR},
-            </if>
-            <if test="whText3 != null">
-                #{whText3,jdbcType=VARCHAR},
-            </if>
-            <if test="whText4 != null">
-                #{whText4,jdbcType=VARCHAR},
-            </if>
-            <if test="whText5 != null">
-                #{whText5,jdbcType=VARCHAR},
-            </if>
-        </trim>
-    </insert>
-    <select id="countByExample" parameterType="com.usoftchina.saas.document.entities.WarehouseExample" resultType="java.lang.Integer">
-        select count(*) from warehouse
-        <if test="_parameter != null">
-            <include refid="Example_Where_Clause" />
-        </if>
-    </select>
-    <update id="updateByExampleSelective" parameterType="map">
-        update warehouse
-        <set>
-            <if test="record.whId != null">
-                wh_id = #{record.whId,jdbcType=INTEGER},
-            </if>
-            <if test="record.whCode != null">
-                wh_code = #{record.whCode,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whType != null">
-                wh_type = #{record.whType,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whDescription != null">
-                wh_description = #{record.whDescription,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whStatuscode != null">
-                wh_statuscode = #{record.whStatuscode,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whStatus != null">
-                wh_status = #{record.whStatus,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whRecorderid != null">
-                wh_recorderid = #{record.whRecorderid,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whRecorder != null">
-                wh_recorder = #{record.whRecorder,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whDate != null">
-                wh_date = #{record.whDate,jdbcType=TIMESTAMP},
-            </if>
-            <if test="record.companyid != null">
-                companyid = #{record.companyid,jdbcType=INTEGER},
-            </if>
-            <if test="record.updaterid != null">
-                updaterId = #{record.updaterid,jdbcType=INTEGER},
-            </if>
-            <if test="record.updatetime != null">
-                updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="record.whText1 != null">
-                wh_text1 = #{record.whText1,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whText2 != null">
-                wh_text2 = #{record.whText2,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whText3 != null">
-                wh_text3 = #{record.whText3,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whText4 != null">
-                wh_text4 = #{record.whText4,jdbcType=VARCHAR},
-            </if>
-            <if test="record.whText5 != null">
-                wh_text5 = #{record.whText5,jdbcType=VARCHAR},
-            </if>
-        </set>
-        <if test="_parameter != null">
-            <include refid="Update_By_Example_Where_Clause" />
-        </if>
-    </update>
-    <update id="updateByExample" parameterType="map">
-        update warehouse
-        set wh_id = #{record.whId,jdbcType=INTEGER},
-        wh_code = #{record.whCode,jdbcType=VARCHAR},
-        wh_type = #{record.whType,jdbcType=VARCHAR},
-        wh_description = #{record.whDescription,jdbcType=VARCHAR},
-        wh_statuscode = #{record.whStatuscode,jdbcType=VARCHAR},
-        wh_status = #{record.whStatus,jdbcType=VARCHAR},
-        wh_recorderid = #{record.whRecorderid,jdbcType=VARCHAR},
-        wh_recorder = #{record.whRecorder,jdbcType=VARCHAR},
-        wh_date = #{record.whDate,jdbcType=TIMESTAMP},
-        companyid = #{record.companyid,jdbcType=INTEGER},
-        updaterId = #{record.updaterid,jdbcType=INTEGER},
-        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
-        wh_text1 = #{record.whText1,jdbcType=VARCHAR},
-        wh_text2 = #{record.whText2,jdbcType=VARCHAR},
-        wh_text3 = #{record.whText3,jdbcType=VARCHAR},
-        wh_text4 = #{record.whText4,jdbcType=VARCHAR},
-        wh_text5 = #{record.whText5,jdbcType=VARCHAR}
-        <if test="_parameter != null">
-            <include refid="Update_By_Example_Where_Clause" />
-        </if>
-    </update>
-    <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.document.entities.Warehouse">
-        update warehouse
-        <set>
-            <if test="whCode != null">
-                wh_code = #{whCode,jdbcType=VARCHAR},
-            </if>
-            <if test="whType != null">
-                wh_type = #{whType,jdbcType=VARCHAR},
-            </if>
-            <if test="whDescription != null">
-                wh_description = #{whDescription,jdbcType=VARCHAR},
-            </if>
-            <if test="whStatuscode != null">
-                wh_statuscode = #{whStatuscode,jdbcType=VARCHAR},
-            </if>
-            <if test="whStatus != null">
-                wh_status = #{whStatus,jdbcType=VARCHAR},
-            </if>
-            <if test="whRecorderid != null">
-                wh_recorderid = #{whRecorderid,jdbcType=VARCHAR},
-            </if>
-            <if test="whRecorder != null">
-                wh_recorder = #{whRecorder,jdbcType=VARCHAR},
-            </if>
-            <if test="whDate != null">
-                wh_date = #{whDate,jdbcType=TIMESTAMP},
-            </if>
-            <if test="companyid != null">
-                companyid = #{companyid,jdbcType=INTEGER},
-            </if>
-            <if test="updaterid != null">
-                updaterId = #{updaterid,jdbcType=INTEGER},
-            </if>
-            <if test="updatetime != null">
-                updatetime = #{updatetime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="whText1 != null">
-                wh_text1 = #{whText1,jdbcType=VARCHAR},
-            </if>
-            <if test="whText2 != null">
-                wh_text2 = #{whText2,jdbcType=VARCHAR},
-            </if>
-            <if test="whText3 != null">
-                wh_text3 = #{whText3,jdbcType=VARCHAR},
-            </if>
-            <if test="whText4 != null">
-                wh_text4 = #{whText4,jdbcType=VARCHAR},
-            </if>
-            <if test="whText5 != null">
-                wh_text5 = #{whText5,jdbcType=VARCHAR},
-            </if>
-        </set>
-        where wh_id = #{whId,jdbcType=INTEGER}
-    </update>
-    <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.document.entities.Warehouse">
-        update warehouse
-        set wh_code = #{whCode,jdbcType=VARCHAR},
-        wh_type = #{whType,jdbcType=VARCHAR},
-        wh_description = #{whDescription,jdbcType=VARCHAR},
-        wh_statuscode = #{whStatuscode,jdbcType=VARCHAR},
-        wh_status = #{whStatus,jdbcType=VARCHAR},
-        wh_recorderid = #{whRecorderid,jdbcType=VARCHAR},
-        wh_recorder = #{whRecorder,jdbcType=VARCHAR},
-        wh_date = #{whDate,jdbcType=TIMESTAMP},
-        companyid = #{companyid,jdbcType=INTEGER},
-        updaterId = #{updaterid,jdbcType=INTEGER},
-        updatetime = #{updatetime,jdbcType=TIMESTAMP},
-        wh_text1 = #{whText1,jdbcType=VARCHAR},
-        wh_text2 = #{whText2,jdbcType=VARCHAR},
-        wh_text3 = #{whText3,jdbcType=VARCHAR},
-        wh_text4 = #{whText4,jdbcType=VARCHAR},
-        wh_text5 = #{whText5,jdbcType=VARCHAR}
-        where wh_id = #{whId,jdbcType=INTEGER}
-    </update>
-
 </mapper>