Ver Fonte

1.合并采购验收单代码

zhoudw há 8 anos atrás
pai
commit
7149c5d1f5
19 ficheiros alterados com 7686 adições e 0 exclusões
  1. 85 0
      applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdIODetailDTO.java
  2. 74 0
      applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutDTO.java
  3. 18 0
      applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutFormDTO.java
  4. 140 0
      applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutListDTO.java
  5. 28 0
      applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutReqDTO.java
  6. 112 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/controller/ProdInOutController.java
  7. 44 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdIODetailMapper.java
  8. 19 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdInOutListMapper.java
  9. 38 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdInOutMapper.java
  10. 81 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdIODetail.java
  11. 2631 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdIODetailExample.java
  12. 65 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOut.java
  13. 2182 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOutExample.java
  14. 140 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOutList.java
  15. 47 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/ProdInOutService.java
  16. 221 0
      applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/ProdInOutServiceImpl.java
  17. 942 0
      applications/purchase/purchase-server/src/main/resources/mapper/ProdIODetailMapper.xml
  18. 106 0
      applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutListMapper.xml
  19. 713 0
      applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutMapper.xml

+ 85 - 0
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdIODetailDTO.java

@@ -0,0 +1,85 @@
+package com.usoftchina.saas.purchase.dto;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * Created by zdw
+ * 2018-10-17 13:45.
+ */
+@Data
+public class ProdIODetailDTO extends CommonBaseEntity implements Serializable {
+
+    private Long pd_piid;
+
+    private String pd_inoutno;
+
+    private String pd_piclass;
+
+    private Integer pd_pdno;
+
+    private String pd_ordercode;
+
+    private Integer pd_orderdetno;
+
+    private Integer pd_prodid;
+
+    private String pd_prodcode;
+
+    private String pd_unit;
+
+    private Integer pd_inqty;
+
+    private Integer pd_outqty;
+
+    private Double pd_orderprice;
+
+    private Double pd_sendprice;
+
+    private Double pd_price;
+
+    private Double pd_total;
+
+    private Double pd_taxrate;
+
+    private Double pd_netprice;
+
+    private Double pd_nettotal;
+
+    private Integer pd_whid;
+
+    private String pd_whcode;
+
+    private String pd_whname;
+
+    private Integer pd_inwhid;
+
+    private String pd_inwhcode;
+
+    private String pd_inwhname;
+
+    private Integer pd_orderid;
+
+    private Integer pd_sdid;
+
+    private Integer pd_status;
+
+    private String pd_text1;
+
+    private String pd_text2;
+
+    private String pd_text3;
+
+    private String pd_text4;
+
+    private String pd_text5;
+
+    private Integer pd_ym;
+
+    private Double pd_yqty;
+
+    private String pd_remark;
+
+}

+ 74 - 0
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutDTO.java

@@ -0,0 +1,74 @@
+package com.usoftchina.saas.purchase.dto;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * Created by zdw
+ * 2018-10-17 13:44.
+ */
+@Data
+@ApiModel(value = "Prodinout", description = "出入库单")
+public class ProdInOutDTO extends CommonBaseEntity implements Serializable {
+
+    private String pi_inoutno;
+
+    private String pi_class;
+
+    private Date pi_date;
+
+    private Integer pi_vendid;
+
+    private String pi_vendcode;
+
+    private String pi_vendname;
+
+    private Integer pi_custid;
+
+    private String pi_custcode;
+
+    private String pi_custname;
+
+    private Integer pi_puid;
+
+    private String pi_pucode;
+
+    private Integer pi_said;
+
+    private String pi_sacode;
+
+    private Double pi_total;
+
+    private Integer pi_recordmanid;
+
+    private String pi_recordman;
+
+    private Date pi_recorddate;
+
+    private String pi_status;
+
+    private String pi_statuscode;
+
+    private String pi_printstatus;
+
+    private String pi_printstatuscode;
+
+    private String pi_text1;
+
+    private String pi_text2;
+
+    private String pi_text3;
+
+    private String pi_text4;
+
+    private String pi_text5;
+
+    private String pi_address;
+
+
+
+}

+ 18 - 0
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutFormDTO.java

@@ -0,0 +1,18 @@
+package com.usoftchina.saas.purchase.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * Created by zdw
+ * 2018-10-17 13:45.
+ */
+@Data
+public class ProdInOutFormDTO implements Serializable {
+
+    private ProdInOutDTO main;
+    private List<ProdIODetailDTO> items;
+
+}

+ 140 - 0
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutListDTO.java

@@ -0,0 +1,140 @@
+package com.usoftchina.saas.purchase.dto;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * Created by zdw
+ * 2018-10-17 13:45.
+ */
+@Data
+public class ProdInOutListDTO extends CommonBaseEntity implements Serializable {
+
+    private String pi_inoutno;
+
+    private String pi_class;
+
+    private Date pi_date;
+
+    private Integer pi_vendid;
+
+    private String pi_vendcode;
+
+    private String pi_vendname;
+
+    private Integer pi_custid;
+
+    private String pi_custcode;
+
+    private String pi_custname;
+
+    private Integer pi_puid;
+
+    private String pi_pucode;
+
+    private Integer pi_said;
+
+    private String pi_sacode;
+
+    private Double pi_total;
+
+    private Integer pi_recordmanid;
+
+    private String pi_recordman;
+
+    private Date pi_recorddate;
+
+    private String pi_status;
+
+    private String pi_statuscode;
+
+    private String pi_printstatus;
+
+    private String pi_printstatuscode;
+
+    private String pi_text1;
+
+    private String pi_text2;
+
+    private String pi_text3;
+
+    private String pi_text4;
+
+    private String pi_text5;
+
+    private String pi_address;
+
+    private Long pd_piid;
+
+    private String pd_inoutno;
+
+    private String pd_piclass;
+
+    private Integer pd_pdno;
+
+    private String pd_ordercode;
+
+    private Integer pd_orderdetno;
+
+    private Integer pd_prodid;
+
+    private String pd_prodcode;
+
+    private String pd_unit;
+
+    private Integer pd_inqty;
+
+    private Integer pd_outqty;
+
+    private Double pd_orderprice;
+
+    private Double pd_sendprice;
+
+    private Double pd_price;
+
+    private Double pd_total;
+
+    private Double pd_taxrate;
+
+    private Double pd_netprice;
+
+    private Double pd_nettotal;
+
+    private Integer pd_whid;
+
+    private String pd_whcode;
+
+    private String pd_whname;
+
+    private Integer pd_inwhid;
+
+    private String pd_inwhcode;
+
+    private String pd_inwhname;
+
+    private Integer pd_orderid;
+
+    private Integer pd_sdid;
+
+    private Integer pd_status;
+
+    private String pd_text1;
+
+    private String pd_text2;
+
+    private String pd_text3;
+
+    private String pd_text4;
+
+    private String pd_text5;
+
+    private Integer pd_ym;
+
+    private Double pd_yqty;
+
+    private String pd_remark;
+
+}

+ 28 - 0
applications/purchase/purchase-dto/src/main/java/com/usoftchina/saas/purchase/dto/ProdInOutReqDTO.java

@@ -0,0 +1,28 @@
+package com.usoftchina.saas.purchase.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * Created by zdw
+ * 2018-10-17 13:46.
+ */
+@Data
+public class ProdInOutReqDTO implements Serializable {
+    /**
+     * 开始日期
+     */
+    private Date begin;
+    /**
+     * 截止日期
+     */
+    private Date end;
+    private String status;
+    private String keyword;
+    //区分是否为关联列表
+    private String mode;
+
+
+}

+ 112 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/controller/ProdInOutController.java

@@ -0,0 +1,112 @@
+package com.usoftchina.saas.purchase.controller;
+
+import com.github.pagehelper.PageInfo;
+import com.usoftchina.saas.base.Result;
+import com.usoftchina.saas.common.dto.DocSavedDTO;
+import com.usoftchina.saas.page.PageRequest;
+import com.usoftchina.saas.purchase.dto.ProdInOutFormDTO;
+import com.usoftchina.saas.purchase.dto.ProdInOutReqDTO;
+import com.usoftchina.saas.purchase.po.ProdInOutList;
+import com.usoftchina.saas.purchase.service.ProdInOutService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * Created by zdw
+ * 2018-10-17 11:41.
+ */
+@CrossOrigin
+@RestController
+@RequestMapping("/prodinout")
+public class ProdInOutController {
+
+    @Autowired
+    ProdInOutService prodInOutService;
+
+
+    /**
+     * 采购订单列表
+     *
+     * @param page
+     * @param req
+     * @return
+     */
+/*    @GetMapping("/list")
+    public Result<PageInfo<PurchaseList>> getListData(PageRequest page, PurchaseReqDTO req) {
+        PageInfo<PurchaseList> listData = purchaseService.getListData(page, req);
+        return Result.success(listData);
+    }*/
+
+    public Result<PageInfo<ProdInOutList>> getListData(PageRequest page, ProdInOutReqDTO req) {
+        PageInfo<ProdInOutList> listData = prodInOutService.getListData(page,req);
+        return Result.success(listData);
+    }
+
+
+
+
+
+
+    /**
+     * 获取出入库单表单
+     *
+     * @return
+     */
+    @GetMapping("/read/{id}")
+    public Result<ProdInOutFormDTO> getFormData(@PathVariable("id") Long id) {
+        ProdInOutFormDTO data = prodInOutService.getFormData(id);
+        return Result.success(data);
+    }
+
+    /**
+     * 出入库单表单保存
+     *
+     * @param
+     * @return
+     */
+    @PostMapping("/save")
+    public Result<DocSavedDTO> saveFormData(@RequestBody ProdInOutFormDTO data) {
+        DocSavedDTO savedDTO = prodInOutService.saveFormData(data);
+        return Result.success(savedDTO);
+    }
+
+    /**
+     * 出入库单删除
+     *
+     * @param id
+     * @return
+     */
+    @GetMapping("/delete/{id}")
+    public Result delete(@PathVariable("id") Long id) {
+        prodInOutService.delete(id);
+        return Result.success();
+    }
+
+    /**
+     * 出入库单明细删除
+     *
+     * @param id
+     * @return
+     */
+    @GetMapping("/deleteItem/{id}")
+    public Result deleteItem(@PathVariable("id") Long id) {
+        prodInOutService.deleteItem(id);
+        return Result.success();
+    }
+
+
+    /**
+     * 出入库单审批
+     *
+     * @param formData
+     * @return
+     */
+    @PostMapping("/audit")
+    public Result audit(@RequestBody ProdInOutFormDTO formData) {
+        DocSavedDTO audit = prodInOutService.audit(formData);
+        return Result.success(audit);
+    }
+
+
+
+}

+ 44 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdIODetailMapper.java

@@ -0,0 +1,44 @@
+package com.usoftchina.saas.purchase.mapper;
+
+import com.usoftchina.saas.base.mapper.CommonBaseMapper;
+import com.usoftchina.saas.purchase.po.ProdIODetail;
+import com.usoftchina.saas.purchase.po.ProdIODetailExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface ProdIODetailMapper extends CommonBaseMapper<ProdIODetail> {
+    long countByExample(ProdIODetailExample example);
+
+    int deleteByExample(ProdIODetailExample example);
+
+    int deleteByPrimaryKey(Long pd_id);
+
+    int insert(ProdIODetail record);
+
+    int insertSelective(ProdIODetail record);
+
+    List<ProdIODetail> selectByExampleWithBLOBs(ProdIODetailExample example);
+
+    List<ProdIODetail> selectByExample(ProdIODetailExample example);
+
+    ProdIODetail selectByPrimaryKey(Integer pd_id);
+
+    int updateByExampleSelective(@Param("record") ProdIODetail record, @Param("example") ProdIODetailExample example);
+
+    int updateByExampleWithBLOBs(@Param("record") ProdIODetail record, @Param("example") ProdIODetailExample example);
+
+    int updateByExample(@Param("record") ProdIODetail record, @Param("example") ProdIODetailExample example);
+
+    int updateByPrimaryKeySelective(ProdIODetail record);
+
+    int updateByPrimaryKeyWithBLOBs(ProdIODetail record);
+
+    int updateByPrimaryKey(ProdIODetail record);
+
+    void batchInsert(List<ProdIODetail> list);
+
+    void batchUpdate(List<ProdIODetail> list);
+
+    void updatePurchaseYqty(Long id);
+}

+ 19 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdInOutListMapper.java

@@ -0,0 +1,19 @@
+package com.usoftchina.saas.purchase.mapper;
+
+import com.usoftchina.saas.purchase.dto.ProdInOutReqDTO;
+import com.usoftchina.saas.purchase.po.ProdInOutList;
+
+import java.util.List;
+
+/**
+ * Created by zdw
+ * 2018-10-18 16:57.
+ */
+public interface ProdInOutListMapper {
+
+    List<ProdInOutList> selectProdInOutListByCondition(ProdInOutReqDTO reqDTO);
+
+    List<ProdInOutList> selectProdInOutBycondition(ProdInOutReqDTO reqDTO);
+
+
+}

+ 38 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/mapper/ProdInOutMapper.java

@@ -0,0 +1,38 @@
+package com.usoftchina.saas.purchase.mapper;
+
+import com.usoftchina.saas.base.mapper.CommonBaseMapper;
+import com.usoftchina.saas.purchase.po.ProdInOut;
+import com.usoftchina.saas.purchase.po.ProdInOutExample;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+public interface ProdInOutMapper extends CommonBaseMapper<ProdInOut> {
+    long countByExample(ProdInOutExample example);
+
+    int deleteByExample(ProdInOutExample example);
+
+    int deleteByPrimaryKey(Integer pi_id);
+
+    int insert(ProdInOut record);
+
+    int insertSelective(ProdInOut record);
+
+    List<ProdInOut> selectByExampleWithBLOBs(ProdInOutExample example);
+
+    List<ProdInOut> selectByExample(ProdInOutExample example);
+
+    ProdInOut selectByPrimaryKey(Integer pi_id);
+
+    int updateByExampleSelective(@Param("record") ProdInOut record, @Param("example") ProdInOutExample example);
+
+    int updateByExampleWithBLOBs(@Param("record") ProdInOut record, @Param("example") ProdInOutExample example);
+
+    int updateByExample(@Param("record") ProdInOut record, @Param("example") ProdInOutExample example);
+
+    int updateByPrimaryKeySelective(ProdInOut record);
+
+    int updateByPrimaryKeyWithBLOBs(ProdInOut record);
+
+    int updateByPrimaryKey(ProdInOut record);
+}

+ 81 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdIODetail.java

@@ -0,0 +1,81 @@
+package com.usoftchina.saas.purchase.po;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+import lombok.Data;
+
+import java.io.Serializable;
+@Data
+public class ProdIODetail extends CommonBaseEntity implements Serializable {
+
+    private Long pd_piid;
+
+    private String pd_inoutno;
+
+    private String pd_piclass;
+
+    private Integer pd_pdno;
+
+    private String pd_ordercode;
+
+    private Integer pd_orderdetno;
+
+    private Long pd_prodid;
+
+    private String pd_prodcode;
+
+    private String pd_unit;
+
+    private Integer pd_inqty;
+
+    private Integer pd_outqty;
+
+    private Double pd_orderprice;
+
+    private Double pd_sendprice;
+
+    private Double pd_price;
+
+    private Double pd_total;
+
+    private Double pd_taxrate;
+
+    private Double pd_netprice;
+
+    private Double pd_nettotal;
+
+    private Integer pd_whid;
+
+    private String pd_whcode;
+
+    private String pd_whname;
+
+    private Integer pd_inwhid;
+
+    private String pd_inwhcode;
+
+    private String pd_inwhname;
+
+    private Integer pd_orderid;
+
+    private Integer pd_sdid;
+
+    private Integer pd_status;
+
+    private String pd_text1;
+
+    private String pd_text2;
+
+    private String pd_text3;
+
+    private String pd_text4;
+
+    private String pd_text5;
+
+    private Integer pd_ym;
+
+    private Double pd_yqty;
+
+    private String pd_remark;
+
+
+}

+ 2631 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdIODetailExample.java

@@ -0,0 +1,2631 @@
+package com.usoftchina.saas.purchase.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class ProdIODetailExample {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    public ProdIODetailExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andPd_idIsNull() {
+            addCriterion("pd_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idIsNotNull() {
+            addCriterion("pd_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idEqualTo(Integer value) {
+            addCriterion("pd_id =", value, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idNotEqualTo(Integer value) {
+            addCriterion("pd_id <>", value, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idGreaterThan(Integer value) {
+            addCriterion("pd_id >", value, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_id >=", value, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idLessThan(Integer value) {
+            addCriterion("pd_id <", value, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_id <=", value, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idIn(List<Integer> values) {
+            addCriterion("pd_id in", values, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idNotIn(List<Integer> values) {
+            addCriterion("pd_id not in", values, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idBetween(Integer value1, Integer value2) {
+            addCriterion("pd_id between", value1, value2, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_idNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_id not between", value1, value2, "pd_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidIsNull() {
+            addCriterion("pd_piid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidIsNotNull() {
+            addCriterion("pd_piid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidEqualTo(Integer value) {
+            addCriterion("pd_piid =", value, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidNotEqualTo(Integer value) {
+            addCriterion("pd_piid <>", value, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidGreaterThan(Integer value) {
+            addCriterion("pd_piid >", value, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_piid >=", value, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidLessThan(Integer value) {
+            addCriterion("pd_piid <", value, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_piid <=", value, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidIn(List<Integer> values) {
+            addCriterion("pd_piid in", values, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidNotIn(List<Integer> values) {
+            addCriterion("pd_piid not in", values, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidBetween(Integer value1, Integer value2) {
+            addCriterion("pd_piid between", value1, value2, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_piid not between", value1, value2, "pd_piid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoIsNull() {
+            addCriterion("pd_inoutno is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoIsNotNull() {
+            addCriterion("pd_inoutno is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoEqualTo(String value) {
+            addCriterion("pd_inoutno =", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoNotEqualTo(String value) {
+            addCriterion("pd_inoutno <>", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoGreaterThan(String value) {
+            addCriterion("pd_inoutno >", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_inoutno >=", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoLessThan(String value) {
+            addCriterion("pd_inoutno <", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoLessThanOrEqualTo(String value) {
+            addCriterion("pd_inoutno <=", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoLike(String value) {
+            addCriterion("pd_inoutno like", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoNotLike(String value) {
+            addCriterion("pd_inoutno not like", value, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoIn(List<String> values) {
+            addCriterion("pd_inoutno in", values, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoNotIn(List<String> values) {
+            addCriterion("pd_inoutno not in", values, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoBetween(String value1, String value2) {
+            addCriterion("pd_inoutno between", value1, value2, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inoutnoNotBetween(String value1, String value2) {
+            addCriterion("pd_inoutno not between", value1, value2, "pd_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassIsNull() {
+            addCriterion("pd_piclass is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassIsNotNull() {
+            addCriterion("pd_piclass is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassEqualTo(String value) {
+            addCriterion("pd_piclass =", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassNotEqualTo(String value) {
+            addCriterion("pd_piclass <>", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassGreaterThan(String value) {
+            addCriterion("pd_piclass >", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_piclass >=", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassLessThan(String value) {
+            addCriterion("pd_piclass <", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassLessThanOrEqualTo(String value) {
+            addCriterion("pd_piclass <=", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassLike(String value) {
+            addCriterion("pd_piclass like", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassNotLike(String value) {
+            addCriterion("pd_piclass not like", value, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassIn(List<String> values) {
+            addCriterion("pd_piclass in", values, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassNotIn(List<String> values) {
+            addCriterion("pd_piclass not in", values, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassBetween(String value1, String value2) {
+            addCriterion("pd_piclass between", value1, value2, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_piclassNotBetween(String value1, String value2) {
+            addCriterion("pd_piclass not between", value1, value2, "pd_piclass");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoIsNull() {
+            addCriterion("pd_pdno is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoIsNotNull() {
+            addCriterion("pd_pdno is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoEqualTo(Integer value) {
+            addCriterion("pd_pdno =", value, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoNotEqualTo(Integer value) {
+            addCriterion("pd_pdno <>", value, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoGreaterThan(Integer value) {
+            addCriterion("pd_pdno >", value, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_pdno >=", value, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoLessThan(Integer value) {
+            addCriterion("pd_pdno <", value, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_pdno <=", value, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoIn(List<Integer> values) {
+            addCriterion("pd_pdno in", values, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoNotIn(List<Integer> values) {
+            addCriterion("pd_pdno not in", values, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoBetween(Integer value1, Integer value2) {
+            addCriterion("pd_pdno between", value1, value2, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_pdnoNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_pdno not between", value1, value2, "pd_pdno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeIsNull() {
+            addCriterion("pd_ordercode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeIsNotNull() {
+            addCriterion("pd_ordercode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeEqualTo(String value) {
+            addCriterion("pd_ordercode =", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeNotEqualTo(String value) {
+            addCriterion("pd_ordercode <>", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeGreaterThan(String value) {
+            addCriterion("pd_ordercode >", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_ordercode >=", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeLessThan(String value) {
+            addCriterion("pd_ordercode <", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeLessThanOrEqualTo(String value) {
+            addCriterion("pd_ordercode <=", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeLike(String value) {
+            addCriterion("pd_ordercode like", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeNotLike(String value) {
+            addCriterion("pd_ordercode not like", value, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeIn(List<String> values) {
+            addCriterion("pd_ordercode in", values, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeNotIn(List<String> values) {
+            addCriterion("pd_ordercode not in", values, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeBetween(String value1, String value2) {
+            addCriterion("pd_ordercode between", value1, value2, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ordercodeNotBetween(String value1, String value2) {
+            addCriterion("pd_ordercode not between", value1, value2, "pd_ordercode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoIsNull() {
+            addCriterion("pd_orderdetno is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoIsNotNull() {
+            addCriterion("pd_orderdetno is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoEqualTo(Integer value) {
+            addCriterion("pd_orderdetno =", value, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoNotEqualTo(Integer value) {
+            addCriterion("pd_orderdetno <>", value, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoGreaterThan(Integer value) {
+            addCriterion("pd_orderdetno >", value, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_orderdetno >=", value, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoLessThan(Integer value) {
+            addCriterion("pd_orderdetno <", value, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_orderdetno <=", value, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoIn(List<Integer> values) {
+            addCriterion("pd_orderdetno in", values, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoNotIn(List<Integer> values) {
+            addCriterion("pd_orderdetno not in", values, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoBetween(Integer value1, Integer value2) {
+            addCriterion("pd_orderdetno between", value1, value2, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderdetnoNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_orderdetno not between", value1, value2, "pd_orderdetno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidIsNull() {
+            addCriterion("pd_prodid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidIsNotNull() {
+            addCriterion("pd_prodid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidEqualTo(Integer value) {
+            addCriterion("pd_prodid =", value, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidNotEqualTo(Integer value) {
+            addCriterion("pd_prodid <>", value, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidGreaterThan(Integer value) {
+            addCriterion("pd_prodid >", value, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_prodid >=", value, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidLessThan(Integer value) {
+            addCriterion("pd_prodid <", value, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_prodid <=", value, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidIn(List<Integer> values) {
+            addCriterion("pd_prodid in", values, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidNotIn(List<Integer> values) {
+            addCriterion("pd_prodid not in", values, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidBetween(Integer value1, Integer value2) {
+            addCriterion("pd_prodid between", value1, value2, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_prodid not between", value1, value2, "pd_prodid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeIsNull() {
+            addCriterion("pd_prodcode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeIsNotNull() {
+            addCriterion("pd_prodcode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeEqualTo(String value) {
+            addCriterion("pd_prodcode =", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeNotEqualTo(String value) {
+            addCriterion("pd_prodcode <>", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeGreaterThan(String value) {
+            addCriterion("pd_prodcode >", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_prodcode >=", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeLessThan(String value) {
+            addCriterion("pd_prodcode <", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeLessThanOrEqualTo(String value) {
+            addCriterion("pd_prodcode <=", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeLike(String value) {
+            addCriterion("pd_prodcode like", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeNotLike(String value) {
+            addCriterion("pd_prodcode not like", value, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeIn(List<String> values) {
+            addCriterion("pd_prodcode in", values, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeNotIn(List<String> values) {
+            addCriterion("pd_prodcode not in", values, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeBetween(String value1, String value2) {
+            addCriterion("pd_prodcode between", value1, value2, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_prodcodeNotBetween(String value1, String value2) {
+            addCriterion("pd_prodcode not between", value1, value2, "pd_prodcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitIsNull() {
+            addCriterion("pd_unit is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitIsNotNull() {
+            addCriterion("pd_unit is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitEqualTo(String value) {
+            addCriterion("pd_unit =", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitNotEqualTo(String value) {
+            addCriterion("pd_unit <>", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitGreaterThan(String value) {
+            addCriterion("pd_unit >", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_unit >=", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitLessThan(String value) {
+            addCriterion("pd_unit <", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitLessThanOrEqualTo(String value) {
+            addCriterion("pd_unit <=", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitLike(String value) {
+            addCriterion("pd_unit like", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitNotLike(String value) {
+            addCriterion("pd_unit not like", value, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitIn(List<String> values) {
+            addCriterion("pd_unit in", values, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitNotIn(List<String> values) {
+            addCriterion("pd_unit not in", values, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitBetween(String value1, String value2) {
+            addCriterion("pd_unit between", value1, value2, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_unitNotBetween(String value1, String value2) {
+            addCriterion("pd_unit not between", value1, value2, "pd_unit");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyIsNull() {
+            addCriterion("pd_inqty is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyIsNotNull() {
+            addCriterion("pd_inqty is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyEqualTo(Integer value) {
+            addCriterion("pd_inqty =", value, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyNotEqualTo(Integer value) {
+            addCriterion("pd_inqty <>", value, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyGreaterThan(Integer value) {
+            addCriterion("pd_inqty >", value, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_inqty >=", value, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyLessThan(Integer value) {
+            addCriterion("pd_inqty <", value, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_inqty <=", value, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyIn(List<Integer> values) {
+            addCriterion("pd_inqty in", values, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyNotIn(List<Integer> values) {
+            addCriterion("pd_inqty not in", values, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyBetween(Integer value1, Integer value2) {
+            addCriterion("pd_inqty between", value1, value2, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inqtyNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_inqty not between", value1, value2, "pd_inqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyIsNull() {
+            addCriterion("pd_outqty is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyIsNotNull() {
+            addCriterion("pd_outqty is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyEqualTo(Integer value) {
+            addCriterion("pd_outqty =", value, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyNotEqualTo(Integer value) {
+            addCriterion("pd_outqty <>", value, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyGreaterThan(Integer value) {
+            addCriterion("pd_outqty >", value, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_outqty >=", value, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyLessThan(Integer value) {
+            addCriterion("pd_outqty <", value, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_outqty <=", value, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyIn(List<Integer> values) {
+            addCriterion("pd_outqty in", values, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyNotIn(List<Integer> values) {
+            addCriterion("pd_outqty not in", values, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyBetween(Integer value1, Integer value2) {
+            addCriterion("pd_outqty between", value1, value2, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_outqtyNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_outqty not between", value1, value2, "pd_outqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceIsNull() {
+            addCriterion("pd_orderprice is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceIsNotNull() {
+            addCriterion("pd_orderprice is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceEqualTo(Double value) {
+            addCriterion("pd_orderprice =", value, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceNotEqualTo(Double value) {
+            addCriterion("pd_orderprice <>", value, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceGreaterThan(Double value) {
+            addCriterion("pd_orderprice >", value, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceGreaterThanOrEqualTo(Double value) {
+            addCriterion("pd_orderprice >=", value, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceLessThan(Double value) {
+            addCriterion("pd_orderprice <", value, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceLessThanOrEqualTo(Double value) {
+            addCriterion("pd_orderprice <=", value, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceIn(List<Double> values) {
+            addCriterion("pd_orderprice in", values, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceNotIn(List<Double> values) {
+            addCriterion("pd_orderprice not in", values, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceBetween(Double value1, Double value2) {
+            addCriterion("pd_orderprice between", value1, value2, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderpriceNotBetween(Double value1, Double value2) {
+            addCriterion("pd_orderprice not between", value1, value2, "pd_orderprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceIsNull() {
+            addCriterion("pd_sendprice is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceIsNotNull() {
+            addCriterion("pd_sendprice is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceEqualTo(Double value) {
+            addCriterion("pd_sendprice =", value, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceNotEqualTo(Double value) {
+            addCriterion("pd_sendprice <>", value, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceGreaterThan(Double value) {
+            addCriterion("pd_sendprice >", value, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceGreaterThanOrEqualTo(Double value) {
+            addCriterion("pd_sendprice >=", value, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceLessThan(Double value) {
+            addCriterion("pd_sendprice <", value, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceLessThanOrEqualTo(Double value) {
+            addCriterion("pd_sendprice <=", value, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceIn(List<Double> values) {
+            addCriterion("pd_sendprice in", values, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceNotIn(List<Double> values) {
+            addCriterion("pd_sendprice not in", values, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceBetween(Double value1, Double value2) {
+            addCriterion("pd_sendprice between", value1, value2, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sendpriceNotBetween(Double value1, Double value2) {
+            addCriterion("pd_sendprice not between", value1, value2, "pd_sendprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceIsNull() {
+            addCriterion("pd_price is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceIsNotNull() {
+            addCriterion("pd_price is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceEqualTo(Double value) {
+            addCriterion("pd_price =", value, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceNotEqualTo(Double value) {
+            addCriterion("pd_price <>", value, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceGreaterThan(Double value) {
+            addCriterion("pd_price >", value, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceGreaterThanOrEqualTo(Double value) {
+            addCriterion("pd_price >=", value, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceLessThan(Double value) {
+            addCriterion("pd_price <", value, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceLessThanOrEqualTo(Double value) {
+            addCriterion("pd_price <=", value, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceIn(List<Double> values) {
+            addCriterion("pd_price in", values, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceNotIn(List<Double> values) {
+            addCriterion("pd_price not in", values, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceBetween(Double value1, Double value2) {
+            addCriterion("pd_price between", value1, value2, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_priceNotBetween(Double value1, Double value2) {
+            addCriterion("pd_price not between", value1, value2, "pd_price");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalIsNull() {
+            addCriterion("pd_total is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalIsNotNull() {
+            addCriterion("pd_total is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalEqualTo(String value) {
+            addCriterion("pd_total =", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalNotEqualTo(String value) {
+            addCriterion("pd_total <>", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalGreaterThan(String value) {
+            addCriterion("pd_total >", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_total >=", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalLessThan(String value) {
+            addCriterion("pd_total <", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalLessThanOrEqualTo(String value) {
+            addCriterion("pd_total <=", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalLike(String value) {
+            addCriterion("pd_total like", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalNotLike(String value) {
+            addCriterion("pd_total not like", value, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalIn(List<String> values) {
+            addCriterion("pd_total in", values, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalNotIn(List<String> values) {
+            addCriterion("pd_total not in", values, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalBetween(String value1, String value2) {
+            addCriterion("pd_total between", value1, value2, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_totalNotBetween(String value1, String value2) {
+            addCriterion("pd_total not between", value1, value2, "pd_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateIsNull() {
+            addCriterion("pd_taxrate is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateIsNotNull() {
+            addCriterion("pd_taxrate is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateEqualTo(Double value) {
+            addCriterion("pd_taxrate =", value, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateNotEqualTo(Double value) {
+            addCriterion("pd_taxrate <>", value, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateGreaterThan(Double value) {
+            addCriterion("pd_taxrate >", value, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateGreaterThanOrEqualTo(Double value) {
+            addCriterion("pd_taxrate >=", value, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateLessThan(Double value) {
+            addCriterion("pd_taxrate <", value, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateLessThanOrEqualTo(Double value) {
+            addCriterion("pd_taxrate <=", value, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateIn(List<Double> values) {
+            addCriterion("pd_taxrate in", values, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateNotIn(List<Double> values) {
+            addCriterion("pd_taxrate not in", values, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateBetween(Double value1, Double value2) {
+            addCriterion("pd_taxrate between", value1, value2, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_taxrateNotBetween(Double value1, Double value2) {
+            addCriterion("pd_taxrate not between", value1, value2, "pd_taxrate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceIsNull() {
+            addCriterion("pd_netprice is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceIsNotNull() {
+            addCriterion("pd_netprice is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceEqualTo(Double value) {
+            addCriterion("pd_netprice =", value, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceNotEqualTo(Double value) {
+            addCriterion("pd_netprice <>", value, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceGreaterThan(Double value) {
+            addCriterion("pd_netprice >", value, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceGreaterThanOrEqualTo(Double value) {
+            addCriterion("pd_netprice >=", value, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceLessThan(Double value) {
+            addCriterion("pd_netprice <", value, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceLessThanOrEqualTo(Double value) {
+            addCriterion("pd_netprice <=", value, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceIn(List<Double> values) {
+            addCriterion("pd_netprice in", values, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceNotIn(List<Double> values) {
+            addCriterion("pd_netprice not in", values, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceBetween(Double value1, Double value2) {
+            addCriterion("pd_netprice between", value1, value2, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_netpriceNotBetween(Double value1, Double value2) {
+            addCriterion("pd_netprice not between", value1, value2, "pd_netprice");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalIsNull() {
+            addCriterion("pd_nettotal is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalIsNotNull() {
+            addCriterion("pd_nettotal is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalEqualTo(Double value) {
+            addCriterion("pd_nettotal =", value, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalNotEqualTo(Double value) {
+            addCriterion("pd_nettotal <>", value, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalGreaterThan(Double value) {
+            addCriterion("pd_nettotal >", value, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalGreaterThanOrEqualTo(Double value) {
+            addCriterion("pd_nettotal >=", value, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalLessThan(Double value) {
+            addCriterion("pd_nettotal <", value, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalLessThanOrEqualTo(Double value) {
+            addCriterion("pd_nettotal <=", value, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalIn(List<Double> values) {
+            addCriterion("pd_nettotal in", values, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalNotIn(List<Double> values) {
+            addCriterion("pd_nettotal not in", values, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalBetween(Double value1, Double value2) {
+            addCriterion("pd_nettotal between", value1, value2, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_nettotalNotBetween(Double value1, Double value2) {
+            addCriterion("pd_nettotal not between", value1, value2, "pd_nettotal");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidIsNull() {
+            addCriterion("pd_whid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidIsNotNull() {
+            addCriterion("pd_whid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidEqualTo(Integer value) {
+            addCriterion("pd_whid =", value, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidNotEqualTo(Integer value) {
+            addCriterion("pd_whid <>", value, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidGreaterThan(Integer value) {
+            addCriterion("pd_whid >", value, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_whid >=", value, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidLessThan(Integer value) {
+            addCriterion("pd_whid <", value, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_whid <=", value, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidIn(List<Integer> values) {
+            addCriterion("pd_whid in", values, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidNotIn(List<Integer> values) {
+            addCriterion("pd_whid not in", values, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidBetween(Integer value1, Integer value2) {
+            addCriterion("pd_whid between", value1, value2, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_whid not between", value1, value2, "pd_whid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeIsNull() {
+            addCriterion("pd_whcode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeIsNotNull() {
+            addCriterion("pd_whcode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeEqualTo(String value) {
+            addCriterion("pd_whcode =", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeNotEqualTo(String value) {
+            addCriterion("pd_whcode <>", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeGreaterThan(String value) {
+            addCriterion("pd_whcode >", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_whcode >=", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeLessThan(String value) {
+            addCriterion("pd_whcode <", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeLessThanOrEqualTo(String value) {
+            addCriterion("pd_whcode <=", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeLike(String value) {
+            addCriterion("pd_whcode like", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeNotLike(String value) {
+            addCriterion("pd_whcode not like", value, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeIn(List<String> values) {
+            addCriterion("pd_whcode in", values, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeNotIn(List<String> values) {
+            addCriterion("pd_whcode not in", values, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeBetween(String value1, String value2) {
+            addCriterion("pd_whcode between", value1, value2, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whcodeNotBetween(String value1, String value2) {
+            addCriterion("pd_whcode not between", value1, value2, "pd_whcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameIsNull() {
+            addCriterion("pd_whname is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameIsNotNull() {
+            addCriterion("pd_whname is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameEqualTo(String value) {
+            addCriterion("pd_whname =", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameNotEqualTo(String value) {
+            addCriterion("pd_whname <>", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameGreaterThan(String value) {
+            addCriterion("pd_whname >", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_whname >=", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameLessThan(String value) {
+            addCriterion("pd_whname <", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameLessThanOrEqualTo(String value) {
+            addCriterion("pd_whname <=", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameLike(String value) {
+            addCriterion("pd_whname like", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameNotLike(String value) {
+            addCriterion("pd_whname not like", value, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameIn(List<String> values) {
+            addCriterion("pd_whname in", values, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameNotIn(List<String> values) {
+            addCriterion("pd_whname not in", values, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameBetween(String value1, String value2) {
+            addCriterion("pd_whname between", value1, value2, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_whnameNotBetween(String value1, String value2) {
+            addCriterion("pd_whname not between", value1, value2, "pd_whname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidIsNull() {
+            addCriterion("pd_inwhid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidIsNotNull() {
+            addCriterion("pd_inwhid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidEqualTo(Integer value) {
+            addCriterion("pd_inwhid =", value, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidNotEqualTo(Integer value) {
+            addCriterion("pd_inwhid <>", value, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidGreaterThan(Integer value) {
+            addCriterion("pd_inwhid >", value, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_inwhid >=", value, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidLessThan(Integer value) {
+            addCriterion("pd_inwhid <", value, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_inwhid <=", value, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidIn(List<Integer> values) {
+            addCriterion("pd_inwhid in", values, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidNotIn(List<Integer> values) {
+            addCriterion("pd_inwhid not in", values, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidBetween(Integer value1, Integer value2) {
+            addCriterion("pd_inwhid between", value1, value2, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_inwhid not between", value1, value2, "pd_inwhid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeIsNull() {
+            addCriterion("pd_inwhcode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeIsNotNull() {
+            addCriterion("pd_inwhcode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeEqualTo(String value) {
+            addCriterion("pd_inwhcode =", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeNotEqualTo(String value) {
+            addCriterion("pd_inwhcode <>", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeGreaterThan(String value) {
+            addCriterion("pd_inwhcode >", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_inwhcode >=", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeLessThan(String value) {
+            addCriterion("pd_inwhcode <", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeLessThanOrEqualTo(String value) {
+            addCriterion("pd_inwhcode <=", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeLike(String value) {
+            addCriterion("pd_inwhcode like", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeNotLike(String value) {
+            addCriterion("pd_inwhcode not like", value, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeIn(List<String> values) {
+            addCriterion("pd_inwhcode in", values, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeNotIn(List<String> values) {
+            addCriterion("pd_inwhcode not in", values, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeBetween(String value1, String value2) {
+            addCriterion("pd_inwhcode between", value1, value2, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhcodeNotBetween(String value1, String value2) {
+            addCriterion("pd_inwhcode not between", value1, value2, "pd_inwhcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameIsNull() {
+            addCriterion("pd_inwhname is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameIsNotNull() {
+            addCriterion("pd_inwhname is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameEqualTo(String value) {
+            addCriterion("pd_inwhname =", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameNotEqualTo(String value) {
+            addCriterion("pd_inwhname <>", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameGreaterThan(String value) {
+            addCriterion("pd_inwhname >", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameGreaterThanOrEqualTo(String value) {
+            addCriterion("pd_inwhname >=", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameLessThan(String value) {
+            addCriterion("pd_inwhname <", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameLessThanOrEqualTo(String value) {
+            addCriterion("pd_inwhname <=", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameLike(String value) {
+            addCriterion("pd_inwhname like", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameNotLike(String value) {
+            addCriterion("pd_inwhname not like", value, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameIn(List<String> values) {
+            addCriterion("pd_inwhname in", values, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameNotIn(List<String> values) {
+            addCriterion("pd_inwhname not in", values, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameBetween(String value1, String value2) {
+            addCriterion("pd_inwhname between", value1, value2, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_inwhnameNotBetween(String value1, String value2) {
+            addCriterion("pd_inwhname not between", value1, value2, "pd_inwhname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidIsNull() {
+            addCriterion("pd_orderid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidIsNotNull() {
+            addCriterion("pd_orderid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidEqualTo(Integer value) {
+            addCriterion("pd_orderid =", value, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidNotEqualTo(Integer value) {
+            addCriterion("pd_orderid <>", value, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidGreaterThan(Integer value) {
+            addCriterion("pd_orderid >", value, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_orderid >=", value, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidLessThan(Integer value) {
+            addCriterion("pd_orderid <", value, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_orderid <=", value, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidIn(List<Integer> values) {
+            addCriterion("pd_orderid in", values, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidNotIn(List<Integer> values) {
+            addCriterion("pd_orderid not in", values, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidBetween(Integer value1, Integer value2) {
+            addCriterion("pd_orderid between", value1, value2, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_orderidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_orderid not between", value1, value2, "pd_orderid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidIsNull() {
+            addCriterion("pd_sdid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidIsNotNull() {
+            addCriterion("pd_sdid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidEqualTo(Integer value) {
+            addCriterion("pd_sdid =", value, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidNotEqualTo(Integer value) {
+            addCriterion("pd_sdid <>", value, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidGreaterThan(Integer value) {
+            addCriterion("pd_sdid >", value, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_sdid >=", value, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidLessThan(Integer value) {
+            addCriterion("pd_sdid <", value, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_sdid <=", value, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidIn(List<Integer> values) {
+            addCriterion("pd_sdid in", values, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidNotIn(List<Integer> values) {
+            addCriterion("pd_sdid not in", values, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidBetween(Integer value1, Integer value2) {
+            addCriterion("pd_sdid between", value1, value2, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_sdidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_sdid not between", value1, value2, "pd_sdid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusIsNull() {
+            addCriterion("pd_status is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusIsNotNull() {
+            addCriterion("pd_status is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusEqualTo(Integer value) {
+            addCriterion("pd_status =", value, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusNotEqualTo(Integer value) {
+            addCriterion("pd_status <>", value, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusGreaterThan(Integer value) {
+            addCriterion("pd_status >", value, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_status >=", value, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusLessThan(Integer value) {
+            addCriterion("pd_status <", value, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_status <=", value, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusIn(List<Integer> values) {
+            addCriterion("pd_status in", values, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusNotIn(List<Integer> values) {
+            addCriterion("pd_status not in", values, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusBetween(Integer value1, Integer value2) {
+            addCriterion("pd_status between", value1, value2, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_statusNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_status not between", value1, value2, "pd_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidIsNull() {
+            addCriterion("companyid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidIsNotNull() {
+            addCriterion("companyid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidEqualTo(Integer value) {
+            addCriterion("companyid =", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidNotEqualTo(Integer value) {
+            addCriterion("companyid <>", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidGreaterThan(Integer value) {
+            addCriterion("companyid >", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("companyid >=", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidLessThan(Integer value) {
+            addCriterion("companyid <", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidLessThanOrEqualTo(Integer value) {
+            addCriterion("companyid <=", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidIn(List<Integer> values) {
+            addCriterion("companyid in", values, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidNotIn(List<Integer> values) {
+            addCriterion("companyid not in", values, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidBetween(Integer value1, Integer value2) {
+            addCriterion("companyid between", value1, value2, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidNotBetween(Integer value1, Integer value2) {
+            addCriterion("companyid not between", value1, value2, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridIsNull() {
+            addCriterion("updaterid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridIsNotNull() {
+            addCriterion("updaterid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridEqualTo(Integer value) {
+            addCriterion("updaterid =", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridNotEqualTo(Integer value) {
+            addCriterion("updaterid <>", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridGreaterThan(Integer value) {
+            addCriterion("updaterid >", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridGreaterThanOrEqualTo(Integer value) {
+            addCriterion("updaterid >=", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridLessThan(Integer value) {
+            addCriterion("updaterid <", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridLessThanOrEqualTo(Integer value) {
+            addCriterion("updaterid <=", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridIn(List<Integer> values) {
+            addCriterion("updaterid in", values, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridNotIn(List<Integer> values) {
+            addCriterion("updaterid not in", values, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridBetween(Integer value1, Integer value2) {
+            addCriterion("updaterid between", value1, value2, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridNotBetween(Integer value1, Integer value2) {
+            addCriterion("updaterid not between", value1, value2, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNull() {
+            addCriterion("updatetime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNotNull() {
+            addCriterion("updatetime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeEqualTo(Date value) {
+            addCriterion("updatetime =", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotEqualTo(Date value) {
+            addCriterion("updatetime <>", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThan(Date value) {
+            addCriterion("updatetime >", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("updatetime >=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThan(Date value) {
+            addCriterion("updatetime <", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
+            addCriterion("updatetime <=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIn(List<Date> values) {
+            addCriterion("updatetime in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotIn(List<Date> values) {
+            addCriterion("updatetime not in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
+            addCriterion("updatetime between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
+            addCriterion("updatetime not between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1IsNull() {
+            addCriterion("pd_text1 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1IsNotNull() {
+            addCriterion("pd_text1 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1EqualTo(String value) {
+            addCriterion("pd_text1 =", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1NotEqualTo(String value) {
+            addCriterion("pd_text1 <>", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1GreaterThan(String value) {
+            addCriterion("pd_text1 >", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1GreaterThanOrEqualTo(String value) {
+            addCriterion("pd_text1 >=", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1LessThan(String value) {
+            addCriterion("pd_text1 <", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1LessThanOrEqualTo(String value) {
+            addCriterion("pd_text1 <=", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1Like(String value) {
+            addCriterion("pd_text1 like", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1NotLike(String value) {
+            addCriterion("pd_text1 not like", value, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1In(List<String> values) {
+            addCriterion("pd_text1 in", values, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1NotIn(List<String> values) {
+            addCriterion("pd_text1 not in", values, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1Between(String value1, String value2) {
+            addCriterion("pd_text1 between", value1, value2, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text1NotBetween(String value1, String value2) {
+            addCriterion("pd_text1 not between", value1, value2, "pd_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2IsNull() {
+            addCriterion("pd_text2 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2IsNotNull() {
+            addCriterion("pd_text2 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2EqualTo(String value) {
+            addCriterion("pd_text2 =", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2NotEqualTo(String value) {
+            addCriterion("pd_text2 <>", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2GreaterThan(String value) {
+            addCriterion("pd_text2 >", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2GreaterThanOrEqualTo(String value) {
+            addCriterion("pd_text2 >=", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2LessThan(String value) {
+            addCriterion("pd_text2 <", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2LessThanOrEqualTo(String value) {
+            addCriterion("pd_text2 <=", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2Like(String value) {
+            addCriterion("pd_text2 like", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2NotLike(String value) {
+            addCriterion("pd_text2 not like", value, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2In(List<String> values) {
+            addCriterion("pd_text2 in", values, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2NotIn(List<String> values) {
+            addCriterion("pd_text2 not in", values, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2Between(String value1, String value2) {
+            addCriterion("pd_text2 between", value1, value2, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text2NotBetween(String value1, String value2) {
+            addCriterion("pd_text2 not between", value1, value2, "pd_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3IsNull() {
+            addCriterion("pd_text3 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3IsNotNull() {
+            addCriterion("pd_text3 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3EqualTo(String value) {
+            addCriterion("pd_text3 =", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3NotEqualTo(String value) {
+            addCriterion("pd_text3 <>", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3GreaterThan(String value) {
+            addCriterion("pd_text3 >", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3GreaterThanOrEqualTo(String value) {
+            addCriterion("pd_text3 >=", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3LessThan(String value) {
+            addCriterion("pd_text3 <", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3LessThanOrEqualTo(String value) {
+            addCriterion("pd_text3 <=", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3Like(String value) {
+            addCriterion("pd_text3 like", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3NotLike(String value) {
+            addCriterion("pd_text3 not like", value, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3In(List<String> values) {
+            addCriterion("pd_text3 in", values, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3NotIn(List<String> values) {
+            addCriterion("pd_text3 not in", values, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3Between(String value1, String value2) {
+            addCriterion("pd_text3 between", value1, value2, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text3NotBetween(String value1, String value2) {
+            addCriterion("pd_text3 not between", value1, value2, "pd_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4IsNull() {
+            addCriterion("pd_text4 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4IsNotNull() {
+            addCriterion("pd_text4 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4EqualTo(String value) {
+            addCriterion("pd_text4 =", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4NotEqualTo(String value) {
+            addCriterion("pd_text4 <>", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4GreaterThan(String value) {
+            addCriterion("pd_text4 >", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4GreaterThanOrEqualTo(String value) {
+            addCriterion("pd_text4 >=", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4LessThan(String value) {
+            addCriterion("pd_text4 <", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4LessThanOrEqualTo(String value) {
+            addCriterion("pd_text4 <=", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4Like(String value) {
+            addCriterion("pd_text4 like", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4NotLike(String value) {
+            addCriterion("pd_text4 not like", value, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4In(List<String> values) {
+            addCriterion("pd_text4 in", values, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4NotIn(List<String> values) {
+            addCriterion("pd_text4 not in", values, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4Between(String value1, String value2) {
+            addCriterion("pd_text4 between", value1, value2, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text4NotBetween(String value1, String value2) {
+            addCriterion("pd_text4 not between", value1, value2, "pd_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5IsNull() {
+            addCriterion("pd_text5 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5IsNotNull() {
+            addCriterion("pd_text5 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5EqualTo(String value) {
+            addCriterion("pd_text5 =", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5NotEqualTo(String value) {
+            addCriterion("pd_text5 <>", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5GreaterThan(String value) {
+            addCriterion("pd_text5 >", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5GreaterThanOrEqualTo(String value) {
+            addCriterion("pd_text5 >=", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5LessThan(String value) {
+            addCriterion("pd_text5 <", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5LessThanOrEqualTo(String value) {
+            addCriterion("pd_text5 <=", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5Like(String value) {
+            addCriterion("pd_text5 like", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5NotLike(String value) {
+            addCriterion("pd_text5 not like", value, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5In(List<String> values) {
+            addCriterion("pd_text5 in", values, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5NotIn(List<String> values) {
+            addCriterion("pd_text5 not in", values, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5Between(String value1, String value2) {
+            addCriterion("pd_text5 between", value1, value2, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_text5NotBetween(String value1, String value2) {
+            addCriterion("pd_text5 not between", value1, value2, "pd_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymIsNull() {
+            addCriterion("pd_ym is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymIsNotNull() {
+            addCriterion("pd_ym is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymEqualTo(Integer value) {
+            addCriterion("pd_ym =", value, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymNotEqualTo(Integer value) {
+            addCriterion("pd_ym <>", value, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymGreaterThan(Integer value) {
+            addCriterion("pd_ym >", value, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pd_ym >=", value, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymLessThan(Integer value) {
+            addCriterion("pd_ym <", value, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymLessThanOrEqualTo(Integer value) {
+            addCriterion("pd_ym <=", value, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymIn(List<Integer> values) {
+            addCriterion("pd_ym in", values, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymNotIn(List<Integer> values) {
+            addCriterion("pd_ym not in", values, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymBetween(Integer value1, Integer value2) {
+            addCriterion("pd_ym between", value1, value2, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_ymNotBetween(Integer value1, Integer value2) {
+            addCriterion("pd_ym not between", value1, value2, "pd_ym");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyIsNull() {
+            addCriterion("pd_yqty is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyIsNotNull() {
+            addCriterion("pd_yqty is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyEqualTo(Double value) {
+            addCriterion("pd_yqty =", value, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyNotEqualTo(Double value) {
+            addCriterion("pd_yqty <>", value, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyGreaterThan(Double value) {
+            addCriterion("pd_yqty >", value, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyGreaterThanOrEqualTo(Double value) {
+            addCriterion("pd_yqty >=", value, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyLessThan(Double value) {
+            addCriterion("pd_yqty <", value, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyLessThanOrEqualTo(Double value) {
+            addCriterion("pd_yqty <=", value, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyIn(List<Double> values) {
+            addCriterion("pd_yqty in", values, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyNotIn(List<Double> values) {
+            addCriterion("pd_yqty not in", values, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyBetween(Double value1, Double value2) {
+            addCriterion("pd_yqty between", value1, value2, "pd_yqty");
+            return (Criteria) this;
+        }
+
+        public Criteria andPd_yqtyNotBetween(Double value1, Double value2) {
+            addCriterion("pd_yqty not between", value1, value2, "pd_yqty");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 65 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOut.java

@@ -0,0 +1,65 @@
+package com.usoftchina.saas.purchase.po;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+@Data
+public class ProdInOut extends CommonBaseEntity implements Serializable {
+
+    private String pi_inoutno;
+
+    private String pi_class;
+
+    private Date pi_date;
+
+    private Integer pi_vendid;
+
+    private String pi_vendcode;
+
+    private String pi_vendname;
+
+    private Integer pi_custid;
+
+    private String pi_custcode;
+
+    private String pi_custname;
+
+    private Integer pi_puid;
+
+    private String pi_pucode;
+
+    private Integer pi_said;
+
+    private String pi_sacode;
+
+    private Double pi_total;
+
+    private Integer pi_recordmanid;
+
+    private String pi_recordman;
+
+    private Date pi_recorddate;
+
+    private String pi_status;
+
+    private String pi_statuscode;
+
+    private String pi_printstatus;
+
+    private String pi_printstatuscode;
+
+    private String pi_text1;
+
+    private String pi_text2;
+
+    private String pi_text3;
+
+    private String pi_text4;
+
+    private String pi_text5;
+
+    private String pi_address;
+
+}

+ 2182 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOutExample.java

@@ -0,0 +1,2182 @@
+package com.usoftchina.saas.purchase.po;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class ProdInOutExample {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    public ProdInOutExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andPi_idIsNull() {
+            addCriterion("pi_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idIsNotNull() {
+            addCriterion("pi_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idEqualTo(Integer value) {
+            addCriterion("pi_id =", value, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idNotEqualTo(Integer value) {
+            addCriterion("pi_id <>", value, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idGreaterThan(Integer value) {
+            addCriterion("pi_id >", value, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pi_id >=", value, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idLessThan(Integer value) {
+            addCriterion("pi_id <", value, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idLessThanOrEqualTo(Integer value) {
+            addCriterion("pi_id <=", value, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idIn(List<Integer> values) {
+            addCriterion("pi_id in", values, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idNotIn(List<Integer> values) {
+            addCriterion("pi_id not in", values, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idBetween(Integer value1, Integer value2) {
+            addCriterion("pi_id between", value1, value2, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_idNotBetween(Integer value1, Integer value2) {
+            addCriterion("pi_id not between", value1, value2, "pi_id");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoIsNull() {
+            addCriterion("pi_inoutno is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoIsNotNull() {
+            addCriterion("pi_inoutno is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoEqualTo(String value) {
+            addCriterion("pi_inoutno =", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoNotEqualTo(String value) {
+            addCriterion("pi_inoutno <>", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoGreaterThan(String value) {
+            addCriterion("pi_inoutno >", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_inoutno >=", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoLessThan(String value) {
+            addCriterion("pi_inoutno <", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoLessThanOrEqualTo(String value) {
+            addCriterion("pi_inoutno <=", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoLike(String value) {
+            addCriterion("pi_inoutno like", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoNotLike(String value) {
+            addCriterion("pi_inoutno not like", value, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoIn(List<String> values) {
+            addCriterion("pi_inoutno in", values, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoNotIn(List<String> values) {
+            addCriterion("pi_inoutno not in", values, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoBetween(String value1, String value2) {
+            addCriterion("pi_inoutno between", value1, value2, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_inoutnoNotBetween(String value1, String value2) {
+            addCriterion("pi_inoutno not between", value1, value2, "pi_inoutno");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classIsNull() {
+            addCriterion("pi_class is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classIsNotNull() {
+            addCriterion("pi_class is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classEqualTo(String value) {
+            addCriterion("pi_class =", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classNotEqualTo(String value) {
+            addCriterion("pi_class <>", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classGreaterThan(String value) {
+            addCriterion("pi_class >", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_class >=", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classLessThan(String value) {
+            addCriterion("pi_class <", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classLessThanOrEqualTo(String value) {
+            addCriterion("pi_class <=", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classLike(String value) {
+            addCriterion("pi_class like", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classNotLike(String value) {
+            addCriterion("pi_class not like", value, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classIn(List<String> values) {
+            addCriterion("pi_class in", values, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classNotIn(List<String> values) {
+            addCriterion("pi_class not in", values, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classBetween(String value1, String value2) {
+            addCriterion("pi_class between", value1, value2, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_classNotBetween(String value1, String value2) {
+            addCriterion("pi_class not between", value1, value2, "pi_class");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateIsNull() {
+            addCriterion("pi_date is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateIsNotNull() {
+            addCriterion("pi_date is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateEqualTo(Date value) {
+            addCriterion("pi_date =", value, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateNotEqualTo(Date value) {
+            addCriterion("pi_date <>", value, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateGreaterThan(Date value) {
+            addCriterion("pi_date >", value, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateGreaterThanOrEqualTo(Date value) {
+            addCriterion("pi_date >=", value, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateLessThan(Date value) {
+            addCriterion("pi_date <", value, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateLessThanOrEqualTo(Date value) {
+            addCriterion("pi_date <=", value, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateIn(List<Date> values) {
+            addCriterion("pi_date in", values, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateNotIn(List<Date> values) {
+            addCriterion("pi_date not in", values, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateBetween(Date value1, Date value2) {
+            addCriterion("pi_date between", value1, value2, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_dateNotBetween(Date value1, Date value2) {
+            addCriterion("pi_date not between", value1, value2, "pi_date");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidIsNull() {
+            addCriterion("pi_vendid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidIsNotNull() {
+            addCriterion("pi_vendid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidEqualTo(Integer value) {
+            addCriterion("pi_vendid =", value, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidNotEqualTo(Integer value) {
+            addCriterion("pi_vendid <>", value, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidGreaterThan(Integer value) {
+            addCriterion("pi_vendid >", value, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pi_vendid >=", value, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidLessThan(Integer value) {
+            addCriterion("pi_vendid <", value, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidLessThanOrEqualTo(Integer value) {
+            addCriterion("pi_vendid <=", value, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidIn(List<Integer> values) {
+            addCriterion("pi_vendid in", values, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidNotIn(List<Integer> values) {
+            addCriterion("pi_vendid not in", values, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidBetween(Integer value1, Integer value2) {
+            addCriterion("pi_vendid between", value1, value2, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pi_vendid not between", value1, value2, "pi_vendid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeIsNull() {
+            addCriterion("pi_vendcode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeIsNotNull() {
+            addCriterion("pi_vendcode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeEqualTo(String value) {
+            addCriterion("pi_vendcode =", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeNotEqualTo(String value) {
+            addCriterion("pi_vendcode <>", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeGreaterThan(String value) {
+            addCriterion("pi_vendcode >", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_vendcode >=", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeLessThan(String value) {
+            addCriterion("pi_vendcode <", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeLessThanOrEqualTo(String value) {
+            addCriterion("pi_vendcode <=", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeLike(String value) {
+            addCriterion("pi_vendcode like", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeNotLike(String value) {
+            addCriterion("pi_vendcode not like", value, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeIn(List<String> values) {
+            addCriterion("pi_vendcode in", values, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeNotIn(List<String> values) {
+            addCriterion("pi_vendcode not in", values, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeBetween(String value1, String value2) {
+            addCriterion("pi_vendcode between", value1, value2, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendcodeNotBetween(String value1, String value2) {
+            addCriterion("pi_vendcode not between", value1, value2, "pi_vendcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameIsNull() {
+            addCriterion("pi_vendname is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameIsNotNull() {
+            addCriterion("pi_vendname is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameEqualTo(String value) {
+            addCriterion("pi_vendname =", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameNotEqualTo(String value) {
+            addCriterion("pi_vendname <>", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameGreaterThan(String value) {
+            addCriterion("pi_vendname >", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_vendname >=", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameLessThan(String value) {
+            addCriterion("pi_vendname <", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameLessThanOrEqualTo(String value) {
+            addCriterion("pi_vendname <=", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameLike(String value) {
+            addCriterion("pi_vendname like", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameNotLike(String value) {
+            addCriterion("pi_vendname not like", value, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameIn(List<String> values) {
+            addCriterion("pi_vendname in", values, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameNotIn(List<String> values) {
+            addCriterion("pi_vendname not in", values, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameBetween(String value1, String value2) {
+            addCriterion("pi_vendname between", value1, value2, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_vendnameNotBetween(String value1, String value2) {
+            addCriterion("pi_vendname not between", value1, value2, "pi_vendname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidIsNull() {
+            addCriterion("pi_custid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidIsNotNull() {
+            addCriterion("pi_custid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidEqualTo(Integer value) {
+            addCriterion("pi_custid =", value, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidNotEqualTo(Integer value) {
+            addCriterion("pi_custid <>", value, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidGreaterThan(Integer value) {
+            addCriterion("pi_custid >", value, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pi_custid >=", value, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidLessThan(Integer value) {
+            addCriterion("pi_custid <", value, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidLessThanOrEqualTo(Integer value) {
+            addCriterion("pi_custid <=", value, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidIn(List<Integer> values) {
+            addCriterion("pi_custid in", values, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidNotIn(List<Integer> values) {
+            addCriterion("pi_custid not in", values, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidBetween(Integer value1, Integer value2) {
+            addCriterion("pi_custid between", value1, value2, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pi_custid not between", value1, value2, "pi_custid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeIsNull() {
+            addCriterion("pi_custcode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeIsNotNull() {
+            addCriterion("pi_custcode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeEqualTo(String value) {
+            addCriterion("pi_custcode =", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeNotEqualTo(String value) {
+            addCriterion("pi_custcode <>", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeGreaterThan(String value) {
+            addCriterion("pi_custcode >", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_custcode >=", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeLessThan(String value) {
+            addCriterion("pi_custcode <", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeLessThanOrEqualTo(String value) {
+            addCriterion("pi_custcode <=", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeLike(String value) {
+            addCriterion("pi_custcode like", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeNotLike(String value) {
+            addCriterion("pi_custcode not like", value, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeIn(List<String> values) {
+            addCriterion("pi_custcode in", values, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeNotIn(List<String> values) {
+            addCriterion("pi_custcode not in", values, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeBetween(String value1, String value2) {
+            addCriterion("pi_custcode between", value1, value2, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custcodeNotBetween(String value1, String value2) {
+            addCriterion("pi_custcode not between", value1, value2, "pi_custcode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameIsNull() {
+            addCriterion("pi_custname is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameIsNotNull() {
+            addCriterion("pi_custname is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameEqualTo(String value) {
+            addCriterion("pi_custname =", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameNotEqualTo(String value) {
+            addCriterion("pi_custname <>", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameGreaterThan(String value) {
+            addCriterion("pi_custname >", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_custname >=", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameLessThan(String value) {
+            addCriterion("pi_custname <", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameLessThanOrEqualTo(String value) {
+            addCriterion("pi_custname <=", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameLike(String value) {
+            addCriterion("pi_custname like", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameNotLike(String value) {
+            addCriterion("pi_custname not like", value, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameIn(List<String> values) {
+            addCriterion("pi_custname in", values, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameNotIn(List<String> values) {
+            addCriterion("pi_custname not in", values, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameBetween(String value1, String value2) {
+            addCriterion("pi_custname between", value1, value2, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_custnameNotBetween(String value1, String value2) {
+            addCriterion("pi_custname not between", value1, value2, "pi_custname");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidIsNull() {
+            addCriterion("pi_puid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidIsNotNull() {
+            addCriterion("pi_puid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidEqualTo(Integer value) {
+            addCriterion("pi_puid =", value, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidNotEqualTo(Integer value) {
+            addCriterion("pi_puid <>", value, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidGreaterThan(Integer value) {
+            addCriterion("pi_puid >", value, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pi_puid >=", value, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidLessThan(Integer value) {
+            addCriterion("pi_puid <", value, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidLessThanOrEqualTo(Integer value) {
+            addCriterion("pi_puid <=", value, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidIn(List<Integer> values) {
+            addCriterion("pi_puid in", values, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidNotIn(List<Integer> values) {
+            addCriterion("pi_puid not in", values, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidBetween(Integer value1, Integer value2) {
+            addCriterion("pi_puid between", value1, value2, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_puidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pi_puid not between", value1, value2, "pi_puid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeIsNull() {
+            addCriterion("pi_pucode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeIsNotNull() {
+            addCriterion("pi_pucode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeEqualTo(String value) {
+            addCriterion("pi_pucode =", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeNotEqualTo(String value) {
+            addCriterion("pi_pucode <>", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeGreaterThan(String value) {
+            addCriterion("pi_pucode >", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_pucode >=", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeLessThan(String value) {
+            addCriterion("pi_pucode <", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeLessThanOrEqualTo(String value) {
+            addCriterion("pi_pucode <=", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeLike(String value) {
+            addCriterion("pi_pucode like", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeNotLike(String value) {
+            addCriterion("pi_pucode not like", value, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeIn(List<String> values) {
+            addCriterion("pi_pucode in", values, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeNotIn(List<String> values) {
+            addCriterion("pi_pucode not in", values, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeBetween(String value1, String value2) {
+            addCriterion("pi_pucode between", value1, value2, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_pucodeNotBetween(String value1, String value2) {
+            addCriterion("pi_pucode not between", value1, value2, "pi_pucode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidIsNull() {
+            addCriterion("pi_said is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidIsNotNull() {
+            addCriterion("pi_said is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidEqualTo(Integer value) {
+            addCriterion("pi_said =", value, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidNotEqualTo(Integer value) {
+            addCriterion("pi_said <>", value, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidGreaterThan(Integer value) {
+            addCriterion("pi_said >", value, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pi_said >=", value, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidLessThan(Integer value) {
+            addCriterion("pi_said <", value, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidLessThanOrEqualTo(Integer value) {
+            addCriterion("pi_said <=", value, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidIn(List<Integer> values) {
+            addCriterion("pi_said in", values, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidNotIn(List<Integer> values) {
+            addCriterion("pi_said not in", values, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidBetween(Integer value1, Integer value2) {
+            addCriterion("pi_said between", value1, value2, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_saidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pi_said not between", value1, value2, "pi_said");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeIsNull() {
+            addCriterion("pi_sacode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeIsNotNull() {
+            addCriterion("pi_sacode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeEqualTo(String value) {
+            addCriterion("pi_sacode =", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeNotEqualTo(String value) {
+            addCriterion("pi_sacode <>", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeGreaterThan(String value) {
+            addCriterion("pi_sacode >", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_sacode >=", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeLessThan(String value) {
+            addCriterion("pi_sacode <", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeLessThanOrEqualTo(String value) {
+            addCriterion("pi_sacode <=", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeLike(String value) {
+            addCriterion("pi_sacode like", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeNotLike(String value) {
+            addCriterion("pi_sacode not like", value, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeIn(List<String> values) {
+            addCriterion("pi_sacode in", values, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeNotIn(List<String> values) {
+            addCriterion("pi_sacode not in", values, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeBetween(String value1, String value2) {
+            addCriterion("pi_sacode between", value1, value2, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_sacodeNotBetween(String value1, String value2) {
+            addCriterion("pi_sacode not between", value1, value2, "pi_sacode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalIsNull() {
+            addCriterion("pi_total is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalIsNotNull() {
+            addCriterion("pi_total is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalEqualTo(BigDecimal value) {
+            addCriterion("pi_total =", value, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalNotEqualTo(BigDecimal value) {
+            addCriterion("pi_total <>", value, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalGreaterThan(BigDecimal value) {
+            addCriterion("pi_total >", value, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalGreaterThanOrEqualTo(BigDecimal value) {
+            addCriterion("pi_total >=", value, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalLessThan(BigDecimal value) {
+            addCriterion("pi_total <", value, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalLessThanOrEqualTo(BigDecimal value) {
+            addCriterion("pi_total <=", value, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalIn(List<BigDecimal> values) {
+            addCriterion("pi_total in", values, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalNotIn(List<BigDecimal> values) {
+            addCriterion("pi_total not in", values, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalBetween(BigDecimal value1, BigDecimal value2) {
+            addCriterion("pi_total between", value1, value2, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_totalNotBetween(BigDecimal value1, BigDecimal value2) {
+            addCriterion("pi_total not between", value1, value2, "pi_total");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidIsNull() {
+            addCriterion("pi_recordmanid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidIsNotNull() {
+            addCriterion("pi_recordmanid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidEqualTo(Integer value) {
+            addCriterion("pi_recordmanid =", value, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidNotEqualTo(Integer value) {
+            addCriterion("pi_recordmanid <>", value, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidGreaterThan(Integer value) {
+            addCriterion("pi_recordmanid >", value, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("pi_recordmanid >=", value, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidLessThan(Integer value) {
+            addCriterion("pi_recordmanid <", value, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidLessThanOrEqualTo(Integer value) {
+            addCriterion("pi_recordmanid <=", value, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidIn(List<Integer> values) {
+            addCriterion("pi_recordmanid in", values, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidNotIn(List<Integer> values) {
+            addCriterion("pi_recordmanid not in", values, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidBetween(Integer value1, Integer value2) {
+            addCriterion("pi_recordmanid between", value1, value2, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanidNotBetween(Integer value1, Integer value2) {
+            addCriterion("pi_recordmanid not between", value1, value2, "pi_recordmanid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanIsNull() {
+            addCriterion("pi_recordman is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanIsNotNull() {
+            addCriterion("pi_recordman is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanEqualTo(String value) {
+            addCriterion("pi_recordman =", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanNotEqualTo(String value) {
+            addCriterion("pi_recordman <>", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanGreaterThan(String value) {
+            addCriterion("pi_recordman >", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_recordman >=", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanLessThan(String value) {
+            addCriterion("pi_recordman <", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanLessThanOrEqualTo(String value) {
+            addCriterion("pi_recordman <=", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanLike(String value) {
+            addCriterion("pi_recordman like", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanNotLike(String value) {
+            addCriterion("pi_recordman not like", value, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanIn(List<String> values) {
+            addCriterion("pi_recordman in", values, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanNotIn(List<String> values) {
+            addCriterion("pi_recordman not in", values, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanBetween(String value1, String value2) {
+            addCriterion("pi_recordman between", value1, value2, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recordmanNotBetween(String value1, String value2) {
+            addCriterion("pi_recordman not between", value1, value2, "pi_recordman");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateIsNull() {
+            addCriterion("pi_recorddate is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateIsNotNull() {
+            addCriterion("pi_recorddate is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateEqualTo(Date value) {
+            addCriterion("pi_recorddate =", value, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateNotEqualTo(Date value) {
+            addCriterion("pi_recorddate <>", value, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateGreaterThan(Date value) {
+            addCriterion("pi_recorddate >", value, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateGreaterThanOrEqualTo(Date value) {
+            addCriterion("pi_recorddate >=", value, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateLessThan(Date value) {
+            addCriterion("pi_recorddate <", value, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateLessThanOrEqualTo(Date value) {
+            addCriterion("pi_recorddate <=", value, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateIn(List<Date> values) {
+            addCriterion("pi_recorddate in", values, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateNotIn(List<Date> values) {
+            addCriterion("pi_recorddate not in", values, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateBetween(Date value1, Date value2) {
+            addCriterion("pi_recorddate between", value1, value2, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_recorddateNotBetween(Date value1, Date value2) {
+            addCriterion("pi_recorddate not between", value1, value2, "pi_recorddate");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusIsNull() {
+            addCriterion("pi_status is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusIsNotNull() {
+            addCriterion("pi_status is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusEqualTo(String value) {
+            addCriterion("pi_status =", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusNotEqualTo(String value) {
+            addCriterion("pi_status <>", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusGreaterThan(String value) {
+            addCriterion("pi_status >", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_status >=", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusLessThan(String value) {
+            addCriterion("pi_status <", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusLessThanOrEqualTo(String value) {
+            addCriterion("pi_status <=", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusLike(String value) {
+            addCriterion("pi_status like", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusNotLike(String value) {
+            addCriterion("pi_status not like", value, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusIn(List<String> values) {
+            addCriterion("pi_status in", values, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusNotIn(List<String> values) {
+            addCriterion("pi_status not in", values, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusBetween(String value1, String value2) {
+            addCriterion("pi_status between", value1, value2, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statusNotBetween(String value1, String value2) {
+            addCriterion("pi_status not between", value1, value2, "pi_status");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeIsNull() {
+            addCriterion("pi_statuscode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeIsNotNull() {
+            addCriterion("pi_statuscode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeEqualTo(String value) {
+            addCriterion("pi_statuscode =", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeNotEqualTo(String value) {
+            addCriterion("pi_statuscode <>", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeGreaterThan(String value) {
+            addCriterion("pi_statuscode >", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_statuscode >=", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeLessThan(String value) {
+            addCriterion("pi_statuscode <", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeLessThanOrEqualTo(String value) {
+            addCriterion("pi_statuscode <=", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeLike(String value) {
+            addCriterion("pi_statuscode like", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeNotLike(String value) {
+            addCriterion("pi_statuscode not like", value, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeIn(List<String> values) {
+            addCriterion("pi_statuscode in", values, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeNotIn(List<String> values) {
+            addCriterion("pi_statuscode not in", values, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeBetween(String value1, String value2) {
+            addCriterion("pi_statuscode between", value1, value2, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_statuscodeNotBetween(String value1, String value2) {
+            addCriterion("pi_statuscode not between", value1, value2, "pi_statuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusIsNull() {
+            addCriterion("pi_printstatus is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusIsNotNull() {
+            addCriterion("pi_printstatus is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusEqualTo(String value) {
+            addCriterion("pi_printstatus =", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusNotEqualTo(String value) {
+            addCriterion("pi_printstatus <>", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusGreaterThan(String value) {
+            addCriterion("pi_printstatus >", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_printstatus >=", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusLessThan(String value) {
+            addCriterion("pi_printstatus <", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusLessThanOrEqualTo(String value) {
+            addCriterion("pi_printstatus <=", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusLike(String value) {
+            addCriterion("pi_printstatus like", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusNotLike(String value) {
+            addCriterion("pi_printstatus not like", value, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusIn(List<String> values) {
+            addCriterion("pi_printstatus in", values, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusNotIn(List<String> values) {
+            addCriterion("pi_printstatus not in", values, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusBetween(String value1, String value2) {
+            addCriterion("pi_printstatus between", value1, value2, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatusNotBetween(String value1, String value2) {
+            addCriterion("pi_printstatus not between", value1, value2, "pi_printstatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeIsNull() {
+            addCriterion("pi_printstatuscode is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeIsNotNull() {
+            addCriterion("pi_printstatuscode is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeEqualTo(String value) {
+            addCriterion("pi_printstatuscode =", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeNotEqualTo(String value) {
+            addCriterion("pi_printstatuscode <>", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeGreaterThan(String value) {
+            addCriterion("pi_printstatuscode >", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeGreaterThanOrEqualTo(String value) {
+            addCriterion("pi_printstatuscode >=", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeLessThan(String value) {
+            addCriterion("pi_printstatuscode <", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeLessThanOrEqualTo(String value) {
+            addCriterion("pi_printstatuscode <=", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeLike(String value) {
+            addCriterion("pi_printstatuscode like", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeNotLike(String value) {
+            addCriterion("pi_printstatuscode not like", value, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeIn(List<String> values) {
+            addCriterion("pi_printstatuscode in", values, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeNotIn(List<String> values) {
+            addCriterion("pi_printstatuscode not in", values, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeBetween(String value1, String value2) {
+            addCriterion("pi_printstatuscode between", value1, value2, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_printstatuscodeNotBetween(String value1, String value2) {
+            addCriterion("pi_printstatuscode not between", value1, value2, "pi_printstatuscode");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidIsNull() {
+            addCriterion("companyid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidIsNotNull() {
+            addCriterion("companyid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidEqualTo(Integer value) {
+            addCriterion("companyid =", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidNotEqualTo(Integer value) {
+            addCriterion("companyid <>", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidGreaterThan(Integer value) {
+            addCriterion("companyid >", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidGreaterThanOrEqualTo(Integer value) {
+            addCriterion("companyid >=", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidLessThan(Integer value) {
+            addCriterion("companyid <", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidLessThanOrEqualTo(Integer value) {
+            addCriterion("companyid <=", value, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidIn(List<Integer> values) {
+            addCriterion("companyid in", values, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidNotIn(List<Integer> values) {
+            addCriterion("companyid not in", values, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidBetween(Integer value1, Integer value2) {
+            addCriterion("companyid between", value1, value2, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andCompanyidNotBetween(Integer value1, Integer value2) {
+            addCriterion("companyid not between", value1, value2, "companyid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridIsNull() {
+            addCriterion("updaterid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridIsNotNull() {
+            addCriterion("updaterid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridEqualTo(Integer value) {
+            addCriterion("updaterid =", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridNotEqualTo(Integer value) {
+            addCriterion("updaterid <>", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridGreaterThan(Integer value) {
+            addCriterion("updaterid >", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridGreaterThanOrEqualTo(Integer value) {
+            addCriterion("updaterid >=", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridLessThan(Integer value) {
+            addCriterion("updaterid <", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridLessThanOrEqualTo(Integer value) {
+            addCriterion("updaterid <=", value, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridIn(List<Integer> values) {
+            addCriterion("updaterid in", values, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridNotIn(List<Integer> values) {
+            addCriterion("updaterid not in", values, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridBetween(Integer value1, Integer value2) {
+            addCriterion("updaterid between", value1, value2, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateridNotBetween(Integer value1, Integer value2) {
+            addCriterion("updaterid not between", value1, value2, "updaterid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNull() {
+            addCriterion("updatetime is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIsNotNull() {
+            addCriterion("updatetime is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeEqualTo(Date value) {
+            addCriterion("updatetime =", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotEqualTo(Date value) {
+            addCriterion("updatetime <>", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThan(Date value) {
+            addCriterion("updatetime >", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("updatetime >=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThan(Date value) {
+            addCriterion("updatetime <", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
+            addCriterion("updatetime <=", value, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeIn(List<Date> values) {
+            addCriterion("updatetime in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotIn(List<Date> values) {
+            addCriterion("updatetime not in", values, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
+            addCriterion("updatetime between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
+            addCriterion("updatetime not between", value1, value2, "updatetime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1IsNull() {
+            addCriterion("pi_text1 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1IsNotNull() {
+            addCriterion("pi_text1 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1EqualTo(String value) {
+            addCriterion("pi_text1 =", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1NotEqualTo(String value) {
+            addCriterion("pi_text1 <>", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1GreaterThan(String value) {
+            addCriterion("pi_text1 >", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1GreaterThanOrEqualTo(String value) {
+            addCriterion("pi_text1 >=", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1LessThan(String value) {
+            addCriterion("pi_text1 <", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1LessThanOrEqualTo(String value) {
+            addCriterion("pi_text1 <=", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1Like(String value) {
+            addCriterion("pi_text1 like", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1NotLike(String value) {
+            addCriterion("pi_text1 not like", value, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1In(List<String> values) {
+            addCriterion("pi_text1 in", values, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1NotIn(List<String> values) {
+            addCriterion("pi_text1 not in", values, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1Between(String value1, String value2) {
+            addCriterion("pi_text1 between", value1, value2, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text1NotBetween(String value1, String value2) {
+            addCriterion("pi_text1 not between", value1, value2, "pi_text1");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2IsNull() {
+            addCriterion("pi_text2 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2IsNotNull() {
+            addCriterion("pi_text2 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2EqualTo(String value) {
+            addCriterion("pi_text2 =", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2NotEqualTo(String value) {
+            addCriterion("pi_text2 <>", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2GreaterThan(String value) {
+            addCriterion("pi_text2 >", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2GreaterThanOrEqualTo(String value) {
+            addCriterion("pi_text2 >=", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2LessThan(String value) {
+            addCriterion("pi_text2 <", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2LessThanOrEqualTo(String value) {
+            addCriterion("pi_text2 <=", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2Like(String value) {
+            addCriterion("pi_text2 like", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2NotLike(String value) {
+            addCriterion("pi_text2 not like", value, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2In(List<String> values) {
+            addCriterion("pi_text2 in", values, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2NotIn(List<String> values) {
+            addCriterion("pi_text2 not in", values, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2Between(String value1, String value2) {
+            addCriterion("pi_text2 between", value1, value2, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text2NotBetween(String value1, String value2) {
+            addCriterion("pi_text2 not between", value1, value2, "pi_text2");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3IsNull() {
+            addCriterion("pi_text3 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3IsNotNull() {
+            addCriterion("pi_text3 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3EqualTo(String value) {
+            addCriterion("pi_text3 =", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3NotEqualTo(String value) {
+            addCriterion("pi_text3 <>", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3GreaterThan(String value) {
+            addCriterion("pi_text3 >", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3GreaterThanOrEqualTo(String value) {
+            addCriterion("pi_text3 >=", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3LessThan(String value) {
+            addCriterion("pi_text3 <", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3LessThanOrEqualTo(String value) {
+            addCriterion("pi_text3 <=", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3Like(String value) {
+            addCriterion("pi_text3 like", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3NotLike(String value) {
+            addCriterion("pi_text3 not like", value, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3In(List<String> values) {
+            addCriterion("pi_text3 in", values, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3NotIn(List<String> values) {
+            addCriterion("pi_text3 not in", values, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3Between(String value1, String value2) {
+            addCriterion("pi_text3 between", value1, value2, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text3NotBetween(String value1, String value2) {
+            addCriterion("pi_text3 not between", value1, value2, "pi_text3");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4IsNull() {
+            addCriterion("pi_text4 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4IsNotNull() {
+            addCriterion("pi_text4 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4EqualTo(String value) {
+            addCriterion("pi_text4 =", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4NotEqualTo(String value) {
+            addCriterion("pi_text4 <>", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4GreaterThan(String value) {
+            addCriterion("pi_text4 >", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4GreaterThanOrEqualTo(String value) {
+            addCriterion("pi_text4 >=", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4LessThan(String value) {
+            addCriterion("pi_text4 <", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4LessThanOrEqualTo(String value) {
+            addCriterion("pi_text4 <=", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4Like(String value) {
+            addCriterion("pi_text4 like", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4NotLike(String value) {
+            addCriterion("pi_text4 not like", value, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4In(List<String> values) {
+            addCriterion("pi_text4 in", values, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4NotIn(List<String> values) {
+            addCriterion("pi_text4 not in", values, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4Between(String value1, String value2) {
+            addCriterion("pi_text4 between", value1, value2, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text4NotBetween(String value1, String value2) {
+            addCriterion("pi_text4 not between", value1, value2, "pi_text4");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5IsNull() {
+            addCriterion("pi_text5 is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5IsNotNull() {
+            addCriterion("pi_text5 is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5EqualTo(String value) {
+            addCriterion("pi_text5 =", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5NotEqualTo(String value) {
+            addCriterion("pi_text5 <>", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5GreaterThan(String value) {
+            addCriterion("pi_text5 >", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5GreaterThanOrEqualTo(String value) {
+            addCriterion("pi_text5 >=", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5LessThan(String value) {
+            addCriterion("pi_text5 <", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5LessThanOrEqualTo(String value) {
+            addCriterion("pi_text5 <=", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5Like(String value) {
+            addCriterion("pi_text5 like", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5NotLike(String value) {
+            addCriterion("pi_text5 not like", value, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5In(List<String> values) {
+            addCriterion("pi_text5 in", values, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5NotIn(List<String> values) {
+            addCriterion("pi_text5 not in", values, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5Between(String value1, String value2) {
+            addCriterion("pi_text5 between", value1, value2, "pi_text5");
+            return (Criteria) this;
+        }
+
+        public Criteria andPi_text5NotBetween(String value1, String value2) {
+            addCriterion("pi_text5 not between", value1, value2, "pi_text5");
+            return (Criteria) this;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 140 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/po/ProdInOutList.java

@@ -0,0 +1,140 @@
+package com.usoftchina.saas.purchase.po;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * Created by zdw
+ * 2018-10-18 16:40.
+ */
+@Data
+public class ProdInOutList extends CommonBaseEntity{
+
+    private String pi_inoutno;
+
+    private String pi_class;
+
+    private Date pi_date;
+
+    private Integer pi_vendid;
+
+    private String pi_vendcode;
+
+    private String pi_vendname;
+
+    private Integer pi_custid;
+
+    private String pi_custcode;
+
+    private String pi_custname;
+
+    private Integer pi_puid;
+
+    private String pi_pucode;
+
+    private Integer pi_said;
+
+    private String pi_sacode;
+
+    private Double pi_total;
+
+    private Integer pi_recordmanid;
+
+    private String pi_recordman;
+
+    private Date pi_recorddate;
+
+    private String pi_status;
+
+    private String pi_statuscode;
+
+    private String pi_printstatus;
+
+    private String pi_printstatuscode;
+
+    private String pi_text1;
+
+    private String pi_text2;
+
+    private String pi_text3;
+
+    private String pi_text4;
+
+    private String pi_text5;
+
+    private String pi_address;
+
+    private Long pd_piid;
+
+    private String pd_inoutno;
+
+    private String pd_piclass;
+
+    private Integer pd_pdno;
+
+    private String pd_ordercode;
+
+    private Integer pd_orderdetno;
+
+    private Integer pd_prodid;
+
+    private String pd_prodcode;
+
+    private String pd_unit;
+
+    private Integer pd_inqty;
+
+    private Integer pd_outqty;
+
+    private Double pd_orderprice;
+
+    private Double pd_sendprice;
+
+    private Double pd_price;
+
+    private Double pd_total;
+
+    private Double pd_taxrate;
+
+    private Double pd_netprice;
+
+    private Double pd_nettotal;
+
+    private Integer pd_whid;
+
+    private String pd_whcode;
+
+    private String pd_whname;
+
+    private Integer pd_inwhid;
+
+    private String pd_inwhcode;
+
+    private String pd_inwhname;
+
+    private Integer pd_orderid;
+
+    private Integer pd_sdid;
+
+    private Integer pd_status;
+
+    private String pd_text1;
+
+    private String pd_text2;
+
+    private String pd_text3;
+
+    private String pd_text4;
+
+    private String pd_text5;
+
+    private Integer pd_ym;
+
+    private Double pd_yqty;
+
+    private String pd_remark;
+
+
+}

+ 47 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/ProdInOutService.java

@@ -0,0 +1,47 @@
+package com.usoftchina.saas.purchase.service;
+
+import com.github.pagehelper.PageInfo;
+import com.usoftchina.saas.base.service.CommonBaseService;
+import com.usoftchina.saas.common.dto.DocSavedDTO;
+import com.usoftchina.saas.page.PageRequest;
+import com.usoftchina.saas.purchase.dto.ProdInOutFormDTO;
+import com.usoftchina.saas.purchase.dto.ProdInOutReqDTO;
+import com.usoftchina.saas.purchase.mapper.ProdInOutMapper;
+import com.usoftchina.saas.purchase.po.ProdInOut;
+import com.usoftchina.saas.purchase.po.ProdInOutList;
+
+/**
+ * Created by zdw
+ * 2018-10-17 13:39.
+ */
+public interface ProdInOutService extends CommonBaseService<ProdInOutMapper, ProdInOut> {
+
+    /**
+     * 获取出入单表单
+     *
+     * @param id
+     * @return
+     */
+    ProdInOutFormDTO getFormData(Long id);
+
+    /**
+     * 保存出入库单
+     *
+     * @param formdata
+     * @return
+     */
+    DocSavedDTO saveFormData(ProdInOutFormDTO formdata);
+
+    /**
+     * 删除出入库单
+     * @param id
+     */
+    void delete(Long id);
+
+    DocSavedDTO audit(ProdInOutFormDTO formData);
+
+
+    int deleteItem(Long id);
+
+    PageInfo<ProdInOutList> getListData(PageRequest page, ProdInOutReqDTO req);
+}

+ 221 - 0
applications/purchase/purchase-server/src/main/java/com/usoftchina/saas/purchase/service/impl/ProdInOutServiceImpl.java

@@ -0,0 +1,221 @@
+package com.usoftchina.saas.purchase.service.impl;
+
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import com.usoftchina.saas.base.service.CommonBaseServiceImpl;
+import com.usoftchina.saas.common.dto.DocSavedDTO;
+import com.usoftchina.saas.exception.BizException;
+import com.usoftchina.saas.page.PageRequest;
+import com.usoftchina.saas.purchase.dto.ProdIODetailDTO;
+import com.usoftchina.saas.purchase.dto.ProdInOutDTO;
+import com.usoftchina.saas.purchase.dto.ProdInOutFormDTO;
+import com.usoftchina.saas.purchase.dto.ProdInOutReqDTO;
+import com.usoftchina.saas.purchase.mapper.ProdIODetailMapper;
+import com.usoftchina.saas.purchase.mapper.ProdInOutListMapper;
+import com.usoftchina.saas.purchase.mapper.ProdInOutMapper;
+import com.usoftchina.saas.purchase.mapper.PurchaseMapper;
+import com.usoftchina.saas.purchase.po.*;
+import com.usoftchina.saas.purchase.service.ProdInOutService;
+import com.usoftchina.saas.utils.BeanMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.util.StringUtils;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Created by zdw
+ * 2018-10-17 13:48.
+ */
+@Service
+public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper, ProdInOut> implements ProdInOutService{
+
+    @Autowired
+    private ProdIODetailMapper prodIODetailMapper;
+    @Autowired
+    private PurchaseMapper purchaseMapper;
+    @Autowired
+    private ProdInOutListMapper prodInOutListMapper;
+
+
+
+    @Override
+    public PageInfo<ProdInOutList> getListData(PageRequest page, ProdInOutReqDTO req) {
+        //设置默认分页
+        //设置默认分页
+        if (null == page || page.getSize() == 0 || page.getNumber() == 0) {
+            page = new PageRequest();
+            page.setNumber(1);
+            page.setSize(10);
+        }
+        PageHelper.startPage(page.getNumber(), page.getSize());
+        //查询数据
+        List<ProdInOutList> lists = getListByMode(req);
+        //取分页信息
+        PageInfo<ProdInOutList> pageInfo = new PageInfo<ProdInOutList>(lists);
+        return pageInfo;
+    }
+
+    private List<ProdInOutList> getListByMode(ProdInOutReqDTO req) {
+        List<ProdInOutList> list = null;
+        if (null == req || StringUtils.isEmpty(req.getMode()) || "Main".equals(req.getMode())) {
+              list = prodInOutListMapper.selectProdInOutListByCondition(req);
+        } else {
+              list = prodInOutListMapper.selectProdInOutBycondition(req);
+
+        }
+        return list;
+
+    }
+
+
+    @Override
+    public ProdInOutFormDTO getFormData(Long id) {
+        ProdInOutFormDTO prodInOutFormDTO = new ProdInOutFormDTO();
+        //查询主表
+        ProdInOut prodInOut = getMapper().selectByPrimaryKey(id);
+        //将prodInOut实体对象转化为传输对象
+        ProdInOutDTO main = BeanMapper.map(prodInOut,ProdInOutDTO.class);
+        //查询从表
+        ProdIODetailExample prodIODetailExample = new ProdIODetailExample();
+        ProdIODetailExample.Criteria cta = prodIODetailExample.createCriteria();
+        cta.andPd_piidEqualTo(id.intValue());
+        List<ProdIODetail> prodIODetails =prodIODetailMapper.selectByExample(prodIODetailExample);
+        List<ProdIODetailDTO> items = BeanMapper.mapList(prodIODetails,ProdIODetailDTO.class);
+
+        prodInOutFormDTO.setMain(main);
+        prodInOutFormDTO.setItems(items);
+        return prodInOutFormDTO;
+    }
+
+    @Override
+    public DocSavedDTO saveFormData(ProdInOutFormDTO formdata) {
+        if (null == formdata || null == formdata.getMain()){
+            throw new BizException(500, "数据为空,请填写后再保存");
+        }
+        //获取主表信息
+        ProdInOutDTO main = formdata.getMain();
+        List<ProdIODetailDTO> items = formdata.getItems();
+        //插入从表数据
+        List<ProdIODetail> insertDetails = new ArrayList<>();
+        //更新从表数据
+        List<ProdIODetail> updateDetails = new ArrayList<>();
+        DocSavedDTO saveDTO = new DocSavedDTO();
+        Long pi_id = main.getId();
+        String pi_inoutno = main.getPi_inoutno();
+        ProdInOut prodInOut = BeanMapper.map(main,ProdInOut.class);
+
+        //编号获取
+        if (StringUtils.isEmpty(pi_inoutno)) {
+            pi_inoutno = "PI" + Math.random() * 1000;
+            prodInOut.setPi_inoutno(pi_inoutno);
+        }
+        saveDTO.setCode(pi_inoutno);
+        //判断更新与保存动作
+        if (!StringUtils.isEmpty(pi_id)){
+            //更新主表
+            getMapper().updateByPrimaryKey(prodInOut);
+            //添加从表传输对象
+            for (ProdIODetailDTO item : items) {
+                ProdIODetail detail = BeanMapper.map(item,ProdIODetail.class);
+                detail.setPd_piid(pi_id);
+                detail.setPd_inoutno(pi_inoutno);
+                if (!StringUtils.isEmpty(detail.getId())) {
+                    updateDetails.add(detail);
+                } else {
+                    insertDetails.add(detail);
+                }
+            }
+            //插入从表
+            if (insertDetails.size()>0) {
+                prodIODetailMapper.batchInsert(insertDetails);
+            }
+            //更新从表
+            if (updateDetails.size()>0) {
+                prodIODetailMapper.batchUpdate(updateDetails);
+            }
+            saveDTO.setId(pi_id);
+            return saveDTO;
+        }
+
+        //插入操作
+        getMapper().insertSelective(prodInOut);
+        pi_id = prodInOut.getId();
+        //添加从表传输对象
+        for (ProdIODetailDTO item : items) {
+            ProdIODetail detail = BeanMapper.map(item, ProdIODetail.class);
+            detail.setPd_piid(pi_id);
+            detail.setPd_inoutno(pi_inoutno);
+            insertDetails.add(detail);
+        }
+        //插入从表
+        if (insertDetails.size()>0) {
+
+            prodIODetailMapper.batchInsert(insertDetails);
+        }
+        saveDTO.setId(pi_id);
+        return saveDTO;
+    }
+
+    @Override
+    public void delete(Long id) {
+        singleDelete(id);
+    }
+
+    private void singleDelete(Long id) {
+        if (null != id) {
+            //删除主键
+            getMapper().deleteByPrimaryKey(id.intValue());
+
+            //删除从表
+            ProdIODetailExample prodIODetailExample = new ProdIODetailExample();
+            ProdIODetailExample.Criteria cta = prodIODetailExample.createCriteria();
+            cta.andPd_piidEqualTo(id.intValue());
+            prodIODetailMapper.deleteByExample(prodIODetailExample);
+       }
+    }
+
+
+    @Override
+    public DocSavedDTO audit(ProdInOutFormDTO formData) {
+        Long id = null;
+        DocSavedDTO savedDTO = new DocSavedDTO();
+        if (null != formData) {
+            id = formData.getMain().getId();
+            if (StringUtils.isEmpty(id)) {
+                DocSavedDTO saveDTO = saveFormData(formData);
+                id = saveDTO.getId();
+            }
+            singleAudit(id);
+        }
+        savedDTO.setId(id);
+        return savedDTO;
+    }
+
+    @Override
+    public int deleteItem(Long id) {
+        return prodIODetailMapper.deleteByPrimaryKey(id);
+    }
+
+
+
+    private void singleAudit(Long id) {
+        ProdInOut prodInOut = new ProdInOut();
+        prodInOut.setId(id);
+        prodInOut.setPi_status(Status.AUDITED.getDisplay());
+        prodInOut.setPi_statuscode(Status.AUDITED.name());
+        getMapper().updateByPrimaryKeySelective(prodInOut);
+        //更新已转数
+        updatePurchaseYqty(id);
+    }
+
+    private void updatePurchaseYqty(Long id) {
+        //更新已转数
+        prodIODetailMapper.updatePurchaseYqty(id);
+        //更新采购单入库状态
+//        purchaseMapper.updateAcceptstatus(id);
+    }
+
+
+}

+ 942 - 0
applications/purchase/purchase-server/src/main/resources/mapper/ProdIODetailMapper.xml

@@ -0,0 +1,942 @@
+<?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.purchase.mapper.ProdIODetailMapper">
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.purchase.po.ProdIODetail">
+    <id column="pd_id" jdbcType="INTEGER" property="id" />
+    <result column="pd_piid" jdbcType="INTEGER" property="pd_piid" />
+    <result column="pd_inoutno" jdbcType="VARCHAR" property="pd_inoutno" />
+    <result column="pd_piclass" jdbcType="VARCHAR" property="pd_piclass" />
+    <result column="pd_pdno" jdbcType="INTEGER" property="pd_pdno" />
+    <result column="pd_ordercode" jdbcType="VARCHAR" property="pd_ordercode" />
+    <result column="pd_orderdetno" jdbcType="INTEGER" property="pd_orderdetno" />
+    <result column="pd_prodid" jdbcType="INTEGER" property="pd_prodid" />
+    <result column="pd_prodcode" jdbcType="VARCHAR" property="pd_prodcode" />
+    <result column="pd_unit" jdbcType="VARCHAR" property="pd_unit" />
+    <result column="pd_inqty" jdbcType="INTEGER" property="pd_inqty" />
+    <result column="pd_outqty" jdbcType="INTEGER" property="pd_outqty" />
+    <result column="pd_orderprice" jdbcType="DOUBLE" property="pd_orderprice" />
+    <result column="pd_sendprice" jdbcType="DOUBLE" property="pd_sendprice" />
+    <result column="pd_price" jdbcType="DOUBLE" property="pd_price" />
+    <result column="pd_total" jdbcType="DOUBLE" property="pd_total" />
+    <result column="pd_taxrate" jdbcType="DOUBLE" property="pd_taxrate" />
+    <result column="pd_netprice" jdbcType="DOUBLE" property="pd_netprice" />
+    <result column="pd_nettotal" jdbcType="DOUBLE" property="pd_nettotal" />
+    <result column="pd_whid" jdbcType="INTEGER" property="pd_whid" />
+    <result column="pd_whcode" jdbcType="VARCHAR" property="pd_whcode" />
+    <result column="pd_whname" jdbcType="VARCHAR" property="pd_whname" />
+    <result column="pd_inwhid" jdbcType="INTEGER" property="pd_inwhid" />
+    <result column="pd_inwhcode" jdbcType="VARCHAR" property="pd_inwhcode" />
+    <result column="pd_inwhname" jdbcType="VARCHAR" property="pd_inwhname" />
+    <result column="pd_orderid" jdbcType="INTEGER" property="pd_orderid" />
+    <result column="pd_sdid" jdbcType="INTEGER" property="pd_sdid" />
+    <result column="pd_status" jdbcType="INTEGER" property="pd_status" />
+    <result column="companyid" jdbcType="INTEGER" property="companyId" />
+    <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
+    <result column="updatetime" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="pd_text1" jdbcType="VARCHAR" property="pd_text1" />
+    <result column="pd_text2" jdbcType="VARCHAR" property="pd_text2" />
+    <result column="pd_text3" jdbcType="VARCHAR" property="pd_text3" />
+    <result column="pd_text4" jdbcType="VARCHAR" property="pd_text4" />
+    <result column="pd_text5" jdbcType="VARCHAR" property="pd_text5" />
+    <result column="pd_ym" jdbcType="INTEGER" property="pd_ym" />
+    <result column="pd_yqty" jdbcType="DOUBLE" property="pd_yqty" />
+  </resultMap>
+  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.purchase.po.ProdIODetail">
+    <result column="pd_remark" jdbcType="LONGVARCHAR" property="pd_remark" />
+  </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">
+    pd_id, pd_piid, pd_inoutno, pd_piclass, pd_pdno, pd_ordercode, pd_orderdetno, pd_prodid, 
+    pd_prodcode, pd_unit, pd_inqty, pd_outqty, pd_orderprice, pd_sendprice, pd_price, 
+    pd_total, pd_taxrate, pd_netprice, pd_nettotal, pd_whid, pd_whcode, pd_whname, pd_inwhid, 
+    pd_inwhcode, pd_inwhname, pd_orderid, pd_sdid, pd_status, companyid, updaterid, updatetime, 
+    pd_text1, pd_text2, pd_text3, pd_text4, pd_text5, pd_ym, pd_yqty
+  </sql>
+  <sql id="Blob_Column_List">
+    pd_remark
+  </sql>
+  <select id="selectByExampleWithBLOBs" parameterType="com.usoftchina.saas.purchase.po.ProdIODetailExample" resultMap="ResultMapWithBLOBs">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from prodiodetail
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByExample" parameterType="com.usoftchina.saas.purchase.po.ProdIODetailExample" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from prodiodetail
+    <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.Long" resultMap="ResultMapWithBLOBs">
+    select 
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from prodiodetail
+    where pd_id = #{pd_id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    delete from prodiodetail
+    where pd_id = #{pd_id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.usoftchina.saas.purchase.po.ProdIODetailExample">
+    delete from prodiodetail
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.usoftchina.saas.purchase.po.ProdIODetail">
+    insert into prodiodetail (pd_id, pd_piid, pd_inoutno, 
+      pd_piclass, pd_pdno, pd_ordercode, 
+      pd_orderdetno, pd_prodid, pd_prodcode, 
+      pd_unit, pd_inqty, pd_outqty, 
+      pd_orderprice, pd_sendprice, pd_price, 
+      pd_total, pd_taxrate, pd_netprice, 
+      pd_nettotal, pd_whid, pd_whcode, 
+      pd_whname, pd_inwhid, pd_inwhcode, 
+      pd_inwhname, pd_orderid, pd_sdid, 
+      pd_status, companyid, updaterid, 
+      updatetime, pd_text1, pd_text2, 
+      pd_text3, pd_text4, pd_text5, 
+      pd_ym, pd_yqty, pd_remark
+      )
+    values (#{pd_id,jdbcType=INTEGER}, #{pd_piid,jdbcType=INTEGER}, #{pd_inoutno,jdbcType=VARCHAR}, 
+      #{pd_piclass,jdbcType=VARCHAR}, #{pd_pdno,jdbcType=INTEGER}, #{pd_ordercode,jdbcType=VARCHAR}, 
+      #{pd_orderdetno,jdbcType=INTEGER}, #{pd_prodid,jdbcType=INTEGER}, #{pd_prodcode,jdbcType=VARCHAR}, 
+      #{pd_unit,jdbcType=VARCHAR}, #{pd_inqty,jdbcType=INTEGER}, #{pd_outqty,jdbcType=INTEGER}, 
+      #{pd_orderprice,jdbcType=DOUBLE}, #{pd_sendprice,jdbcType=DOUBLE}, #{pd_price,jdbcType=DOUBLE}, 
+      #{pd_total,jdbcType=DOUBLE}, #{pd_taxrate,jdbcType=DOUBLE}, #{pd_netprice,jdbcType=DOUBLE},
+      #{pd_nettotal,jdbcType=DOUBLE}, #{pd_whid,jdbcType=INTEGER}, #{pd_whcode,jdbcType=VARCHAR}, 
+      #{pd_whname,jdbcType=VARCHAR}, #{pd_inwhid,jdbcType=INTEGER}, #{pd_inwhcode,jdbcType=VARCHAR}, 
+      #{pd_inwhname,jdbcType=VARCHAR}, #{pd_orderid,jdbcType=INTEGER}, #{pd_sdid,jdbcType=INTEGER}, 
+      #{pd_status,jdbcType=INTEGER}, #{companyid,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER}, 
+      #{updatetime,jdbcType=TIMESTAMP}, #{pd_text1,jdbcType=VARCHAR}, #{pd_text2,jdbcType=VARCHAR}, 
+      #{pd_text3,jdbcType=VARCHAR}, #{pd_text4,jdbcType=VARCHAR}, #{pd_text5,jdbcType=VARCHAR}, 
+      #{pd_ym,jdbcType=INTEGER}, #{pd_yqty,jdbcType=DOUBLE}, #{pd_remark,jdbcType=LONGVARCHAR}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.usoftchina.saas.purchase.po.ProdIODetail">
+    <selectKey resultType="java.lang.Long" keyProperty="id">
+      SELECT LAST_INSERT_ID() AS ID
+    </selectKey>
+    insert into prodiodetail
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+
+      <if test="pd_piid != null">
+        pd_piid,
+      </if>
+      <if test="pd_inoutno != null">
+        pd_inoutno,
+      </if>
+      <if test="pd_piclass != null">
+        pd_piclass,
+      </if>
+      <if test="pd_pdno != null">
+        pd_pdno,
+      </if>
+      <if test="pd_ordercode != null">
+        pd_ordercode,
+      </if>
+      <if test="pd_orderdetno != null">
+        pd_orderdetno,
+      </if>
+      <if test="pd_prodid != null">
+        pd_prodid,
+      </if>
+      <if test="pd_prodcode != null">
+        pd_prodcode,
+      </if>
+      <if test="pd_unit != null">
+        pd_unit,
+      </if>
+      <if test="pd_inqty != null">
+        pd_inqty,
+      </if>
+      <if test="pd_outqty != null">
+        pd_outqty,
+      </if>
+      <if test="pd_orderprice != null">
+        pd_orderprice,
+      </if>
+      <if test="pd_sendprice != null">
+        pd_sendprice,
+      </if>
+      <if test="pd_price != null">
+        pd_price,
+      </if>
+      <if test="pd_total != null">
+        pd_total,
+      </if>
+      <if test="pd_taxrate != null">
+        pd_taxrate,
+      </if>
+      <if test="pd_netprice != null">
+        pd_netprice,
+      </if>
+      <if test="pd_nettotal != null">
+        pd_nettotal,
+      </if>
+      <if test="pd_whid != null">
+        pd_whid,
+      </if>
+      <if test="pd_whcode != null">
+        pd_whcode,
+      </if>
+      <if test="pd_whname != null">
+        pd_whname,
+      </if>
+      <if test="pd_inwhid != null">
+        pd_inwhid,
+      </if>
+      <if test="pd_inwhcode != null">
+        pd_inwhcode,
+      </if>
+      <if test="pd_inwhname != null">
+        pd_inwhname,
+      </if>
+      <if test="pd_orderid != null">
+        pd_orderid,
+      </if>
+      <if test="pd_sdid != null">
+        pd_sdid,
+      </if>
+      <if test="pd_status != null">
+        pd_status,
+      </if>
+      <if test="companyId != null">
+        companyid,
+      </if>
+      <if test="updaterId != null">
+        updaterid,
+      </if>
+      <if test="updateTime != null">
+        updatetime,
+      </if>
+      <if test="pd_text1 != null">
+        pd_text1,
+      </if>
+      <if test="pd_text2 != null">
+        pd_text2,
+      </if>
+      <if test="pd_text3 != null">
+        pd_text3,
+      </if>
+      <if test="pd_text4 != null">
+        pd_text4,
+      </if>
+      <if test="pd_text5 != null">
+        pd_text5,
+      </if>
+      <if test="pd_ym != null">
+        pd_ym,
+      </if>
+      <if test="pd_yqty != null">
+        pd_yqty,
+      </if>
+      <if test="pd_remark != null">
+        pd_remark,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+
+      <if test="pd_piid != null">
+        #{pd_piid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_inoutno != null">
+        #{pd_inoutno,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_piclass != null">
+        #{pd_piclass,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_pdno != null">
+        #{pd_pdno,jdbcType=INTEGER},
+      </if>
+      <if test="pd_ordercode != null">
+        #{pd_ordercode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_orderdetno != null">
+        #{pd_orderdetno,jdbcType=INTEGER},
+      </if>
+      <if test="pd_prodid != null">
+        #{pd_prodid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_prodcode != null">
+        #{pd_prodcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_unit != null">
+        #{pd_unit,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_inqty != null">
+        #{pd_inqty,jdbcType=INTEGER},
+      </if>
+      <if test="pd_outqty != null">
+        #{pd_outqty,jdbcType=INTEGER},
+      </if>
+      <if test="pd_orderprice != null">
+        #{pd_orderprice,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_sendprice != null">
+        #{pd_sendprice,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_price != null">
+        #{pd_price,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_total != null">
+        #{pd_total,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_taxrate != null">
+        #{pd_taxrate,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_netprice != null">
+        #{pd_netprice,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_nettotal != null">
+        #{pd_nettotal,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_whid != null">
+        #{pd_whid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_whcode != null">
+        #{pd_whcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_whname != null">
+        #{pd_whname,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_inwhid != null">
+        #{pd_inwhid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_inwhcode != null">
+        #{pd_inwhcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_inwhname != null">
+        #{pd_inwhname,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_orderid != null">
+        #{pd_orderid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_sdid != null">
+        #{pd_sdid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_status != null">
+        #{pd_status,jdbcType=INTEGER},
+      </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="pd_text1 != null">
+        #{pd_text1,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text2 != null">
+        #{pd_text2,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text3 != null">
+        #{pd_text3,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text4 != null">
+        #{pd_text4,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text5 != null">
+        #{pd_text5,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_ym != null">
+        #{pd_ym,jdbcType=INTEGER},
+      </if>
+      <if test="pd_yqty != null">
+        #{pd_yqty,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_remark != null">
+        #{pd_remark,jdbcType=LONGVARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.usoftchina.saas.purchase.po.ProdIODetailExample" resultType="java.lang.Long">
+    select count(*) from prodiodetail
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update prodiodetail
+    <set>
+      <if test="record.pd_id != null">
+        pd_id = #{record.pd_id,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_piid != null">
+        pd_piid = #{record.pd_piid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_inoutno != null">
+        pd_inoutno = #{record.pd_inoutno,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_piclass != null">
+        pd_piclass = #{record.pd_piclass,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_pdno != null">
+        pd_pdno = #{record.pd_pdno,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_ordercode != null">
+        pd_ordercode = #{record.pd_ordercode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_orderdetno != null">
+        pd_orderdetno = #{record.pd_orderdetno,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_prodid != null">
+        pd_prodid = #{record.pd_prodid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_prodcode != null">
+        pd_prodcode = #{record.pd_prodcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_unit != null">
+        pd_unit = #{record.pd_unit,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_inqty != null">
+        pd_inqty = #{record.pd_inqty,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_outqty != null">
+        pd_outqty = #{record.pd_outqty,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_orderprice != null">
+        pd_orderprice = #{record.pd_orderprice,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_sendprice != null">
+        pd_sendprice = #{record.pd_sendprice,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_price != null">
+        pd_price = #{record.pd_price,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_total != null">
+        pd_total = #{record.pd_total,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_taxrate != null">
+        pd_taxrate = #{record.pd_taxrate,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_netprice != null">
+        pd_netprice = #{record.pd_netprice,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_nettotal != null">
+        pd_nettotal = #{record.pd_nettotal,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_whid != null">
+        pd_whid = #{record.pd_whid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_whcode != null">
+        pd_whcode = #{record.pd_whcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_whname != null">
+        pd_whname = #{record.pd_whname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_inwhid != null">
+        pd_inwhid = #{record.pd_inwhid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_inwhcode != null">
+        pd_inwhcode = #{record.pd_inwhcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_inwhname != null">
+        pd_inwhname = #{record.pd_inwhname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_orderid != null">
+        pd_orderid = #{record.pd_orderid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_sdid != null">
+        pd_sdid = #{record.pd_sdid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_status != null">
+        pd_status = #{record.pd_status,jdbcType=INTEGER},
+      </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.pd_text1 != null">
+        pd_text1 = #{record.pd_text1,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_text2 != null">
+        pd_text2 = #{record.pd_text2,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_text3 != null">
+        pd_text3 = #{record.pd_text3,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_text4 != null">
+        pd_text4 = #{record.pd_text4,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_text5 != null">
+        pd_text5 = #{record.pd_text5,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pd_ym != null">
+        pd_ym = #{record.pd_ym,jdbcType=INTEGER},
+      </if>
+      <if test="record.pd_yqty != null">
+        pd_yqty = #{record.pd_yqty,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pd_remark != null">
+        pd_remark = #{record.pd_remark,jdbcType=LONGVARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExampleWithBLOBs" parameterType="map">
+    update prodiodetail
+    set pd_id = #{record.pd_id,jdbcType=INTEGER},
+      pd_piid = #{record.pd_piid,jdbcType=INTEGER},
+      pd_inoutno = #{record.pd_inoutno,jdbcType=VARCHAR},
+      pd_piclass = #{record.pd_piclass,jdbcType=VARCHAR},
+      pd_pdno = #{record.pd_pdno,jdbcType=INTEGER},
+      pd_ordercode = #{record.pd_ordercode,jdbcType=VARCHAR},
+      pd_orderdetno = #{record.pd_orderdetno,jdbcType=INTEGER},
+      pd_prodid = #{record.pd_prodid,jdbcType=INTEGER},
+      pd_prodcode = #{record.pd_prodcode,jdbcType=VARCHAR},
+      pd_unit = #{record.pd_unit,jdbcType=VARCHAR},
+      pd_inqty = #{record.pd_inqty,jdbcType=INTEGER},
+      pd_outqty = #{record.pd_outqty,jdbcType=INTEGER},
+      pd_orderprice = #{record.pd_orderprice,jdbcType=DOUBLE},
+      pd_sendprice = #{record.pd_sendprice,jdbcType=DOUBLE},
+      pd_price = #{record.pd_price,jdbcType=DOUBLE},
+      pd_total = #{record.pd_total,jdbcType=DOUBLE},
+      pd_taxrate = #{record.pd_taxrate,jdbcType=DOUBLE},
+      pd_netprice = #{record.pd_netprice,jdbcType=DOUBLE},
+      pd_nettotal = #{record.pd_nettotal,jdbcType=DOUBLE},
+      pd_whid = #{record.pd_whid,jdbcType=INTEGER},
+      pd_whcode = #{record.pd_whcode,jdbcType=VARCHAR},
+      pd_whname = #{record.pd_whname,jdbcType=VARCHAR},
+      pd_inwhid = #{record.pd_inwhid,jdbcType=INTEGER},
+      pd_inwhcode = #{record.pd_inwhcode,jdbcType=VARCHAR},
+      pd_inwhname = #{record.pd_inwhname,jdbcType=VARCHAR},
+      pd_orderid = #{record.pd_orderid,jdbcType=INTEGER},
+      pd_sdid = #{record.pd_sdid,jdbcType=INTEGER},
+      pd_status = #{record.pd_status,jdbcType=INTEGER},
+      companyid = #{record.companyid,jdbcType=INTEGER},
+      updaterid = #{record.updaterid,jdbcType=INTEGER},
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
+      pd_text1 = #{record.pd_text1,jdbcType=VARCHAR},
+      pd_text2 = #{record.pd_text2,jdbcType=VARCHAR},
+      pd_text3 = #{record.pd_text3,jdbcType=VARCHAR},
+      pd_text4 = #{record.pd_text4,jdbcType=VARCHAR},
+      pd_text5 = #{record.pd_text5,jdbcType=VARCHAR},
+      pd_ym = #{record.pd_ym,jdbcType=INTEGER},
+      pd_yqty = #{record.pd_yqty,jdbcType=DOUBLE},
+      pd_remark = #{record.pd_remark,jdbcType=LONGVARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    update prodiodetail
+    set pd_id = #{record.pd_id,jdbcType=INTEGER},
+      pd_piid = #{record.pd_piid,jdbcType=INTEGER},
+      pd_inoutno = #{record.pd_inoutno,jdbcType=VARCHAR},
+      pd_piclass = #{record.pd_piclass,jdbcType=VARCHAR},
+      pd_pdno = #{record.pd_pdno,jdbcType=INTEGER},
+      pd_ordercode = #{record.pd_ordercode,jdbcType=VARCHAR},
+      pd_orderdetno = #{record.pd_orderdetno,jdbcType=INTEGER},
+      pd_prodid = #{record.pd_prodid,jdbcType=INTEGER},
+      pd_prodcode = #{record.pd_prodcode,jdbcType=VARCHAR},
+      pd_unit = #{record.pd_unit,jdbcType=VARCHAR},
+      pd_inqty = #{record.pd_inqty,jdbcType=INTEGER},
+      pd_outqty = #{record.pd_outqty,jdbcType=INTEGER},
+      pd_orderprice = #{record.pd_orderprice,jdbcType=DOUBLE},
+      pd_sendprice = #{record.pd_sendprice,jdbcType=DOUBLE},
+      pd_price = #{record.pd_price,jdbcType=DOUBLE},
+      pd_total = #{record.pd_total,jdbcType=DOUBLE},
+      pd_taxrate = #{record.pd_taxrate,jdbcType=DOUBLE},
+      pd_netprice = #{record.pd_netprice,jdbcType=DOUBLE},
+      pd_nettotal = #{record.pd_nettotal,jdbcType=DOUBLE},
+      pd_whid = #{record.pd_whid,jdbcType=INTEGER},
+      pd_whcode = #{record.pd_whcode,jdbcType=VARCHAR},
+      pd_whname = #{record.pd_whname,jdbcType=VARCHAR},
+      pd_inwhid = #{record.pd_inwhid,jdbcType=INTEGER},
+      pd_inwhcode = #{record.pd_inwhcode,jdbcType=VARCHAR},
+      pd_inwhname = #{record.pd_inwhname,jdbcType=VARCHAR},
+      pd_orderid = #{record.pd_orderid,jdbcType=INTEGER},
+      pd_sdid = #{record.pd_sdid,jdbcType=INTEGER},
+      pd_status = #{record.pd_status,jdbcType=INTEGER},
+      companyid = #{record.companyid,jdbcType=INTEGER},
+      updaterid = #{record.updaterid,jdbcType=INTEGER},
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
+      pd_text1 = #{record.pd_text1,jdbcType=VARCHAR},
+      pd_text2 = #{record.pd_text2,jdbcType=VARCHAR},
+      pd_text3 = #{record.pd_text3,jdbcType=VARCHAR},
+      pd_text4 = #{record.pd_text4,jdbcType=VARCHAR},
+      pd_text5 = #{record.pd_text5,jdbcType=VARCHAR},
+      pd_ym = #{record.pd_ym,jdbcType=INTEGER},
+      pd_yqty = #{record.pd_yqty,jdbcType=DOUBLE}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.purchase.po.ProdIODetail">
+    update prodiodetail
+    <set>
+      <if test="pd_piid != null">
+        pd_piid = #{pd_piid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_inoutno != null">
+        pd_inoutno = #{pd_inoutno,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_piclass != null">
+        pd_piclass = #{pd_piclass,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_pdno != null">
+        pd_pdno = #{pd_pdno,jdbcType=INTEGER},
+      </if>
+      <if test="pd_ordercode != null">
+        pd_ordercode = #{pd_ordercode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_orderdetno != null">
+        pd_orderdetno = #{pd_orderdetno,jdbcType=INTEGER},
+      </if>
+      <if test="pd_prodid != null">
+        pd_prodid = #{pd_prodid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_prodcode != null">
+        pd_prodcode = #{pd_prodcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_unit != null">
+        pd_unit = #{pd_unit,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_inqty != null">
+        pd_inqty = #{pd_inqty,jdbcType=INTEGER},
+      </if>
+      <if test="pd_outqty != null">
+        pd_outqty = #{pd_outqty,jdbcType=INTEGER},
+      </if>
+      <if test="pd_orderprice != null">
+        pd_orderprice = #{pd_orderprice,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_sendprice != null">
+        pd_sendprice = #{pd_sendprice,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_price != null">
+        pd_price = #{pd_price,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_total != null">
+        pd_total = #{pd_total,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_taxrate != null">
+        pd_taxrate = #{pd_taxrate,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_netprice != null">
+        pd_netprice = #{pd_netprice,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_nettotal != null">
+        pd_nettotal = #{pd_nettotal,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_whid != null">
+        pd_whid = #{pd_whid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_whcode != null">
+        pd_whcode = #{pd_whcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_whname != null">
+        pd_whname = #{pd_whname,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_inwhid != null">
+        pd_inwhid = #{pd_inwhid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_inwhcode != null">
+        pd_inwhcode = #{pd_inwhcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_inwhname != null">
+        pd_inwhname = #{pd_inwhname,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_orderid != null">
+        pd_orderid = #{pd_orderid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_sdid != null">
+        pd_sdid = #{pd_sdid,jdbcType=INTEGER},
+      </if>
+      <if test="pd_status != null">
+        pd_status = #{pd_status,jdbcType=INTEGER},
+      </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="pd_text1 != null">
+        pd_text1 = #{pd_text1,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text2 != null">
+        pd_text2 = #{pd_text2,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text3 != null">
+        pd_text3 = #{pd_text3,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text4 != null">
+        pd_text4 = #{pd_text4,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_text5 != null">
+        pd_text5 = #{pd_text5,jdbcType=VARCHAR},
+      </if>
+      <if test="pd_ym != null">
+        pd_ym = #{pd_ym,jdbcType=INTEGER},
+      </if>
+      <if test="pd_yqty != null">
+        pd_yqty = #{pd_yqty,jdbcType=DOUBLE},
+      </if>
+      <if test="pd_remark != null">
+        pd_remark = #{pd_remark,jdbcType=LONGVARCHAR},
+      </if>
+    </set>
+    where pd_id = #{pd_id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.usoftchina.saas.purchase.po.ProdIODetail">
+    update prodiodetail
+    set pd_piid = #{pd_piid,jdbcType=INTEGER},
+      pd_inoutno = #{pd_inoutno,jdbcType=VARCHAR},
+      pd_piclass = #{pd_piclass,jdbcType=VARCHAR},
+      pd_pdno = #{pd_pdno,jdbcType=INTEGER},
+      pd_ordercode = #{pd_ordercode,jdbcType=VARCHAR},
+      pd_orderdetno = #{pd_orderdetno,jdbcType=INTEGER},
+      pd_prodid = #{pd_prodid,jdbcType=INTEGER},
+      pd_prodcode = #{pd_prodcode,jdbcType=VARCHAR},
+      pd_unit = #{pd_unit,jdbcType=VARCHAR},
+      pd_inqty = #{pd_inqty,jdbcType=INTEGER},
+      pd_outqty = #{pd_outqty,jdbcType=INTEGER},
+      pd_orderprice = #{pd_orderprice,jdbcType=DOUBLE},
+      pd_sendprice = #{pd_sendprice,jdbcType=DOUBLE},
+      pd_price = #{pd_price,jdbcType=DOUBLE},
+      pd_total = #{pd_total,jdbcType=DOUBLE},
+      pd_taxrate = #{pd_taxrate,jdbcType=DOUBLE},
+      pd_netprice = #{pd_netprice,jdbcType=DOUBLE},
+      pd_nettotal = #{pd_nettotal,jdbcType=DOUBLE},
+      pd_whid = #{pd_whid,jdbcType=INTEGER},
+      pd_whcode = #{pd_whcode,jdbcType=VARCHAR},
+      pd_whname = #{pd_whname,jdbcType=VARCHAR},
+      pd_inwhid = #{pd_inwhid,jdbcType=INTEGER},
+      pd_inwhcode = #{pd_inwhcode,jdbcType=VARCHAR},
+      pd_inwhname = #{pd_inwhname,jdbcType=VARCHAR},
+      pd_orderid = #{pd_orderid,jdbcType=INTEGER},
+      pd_sdid = #{pd_sdid,jdbcType=INTEGER},
+      pd_status = #{pd_status,jdbcType=INTEGER},
+      companyid = #{companyid,jdbcType=INTEGER},
+      updaterid = #{updaterid,jdbcType=INTEGER},
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      pd_text1 = #{pd_text1,jdbcType=VARCHAR},
+      pd_text2 = #{pd_text2,jdbcType=VARCHAR},
+      pd_text3 = #{pd_text3,jdbcType=VARCHAR},
+      pd_text4 = #{pd_text4,jdbcType=VARCHAR},
+      pd_text5 = #{pd_text5,jdbcType=VARCHAR},
+      pd_ym = #{pd_ym,jdbcType=INTEGER},
+      pd_yqty = #{pd_yqty,jdbcType=DOUBLE},
+      pd_remark = #{pd_remark,jdbcType=LONGVARCHAR}
+    where pd_id = #{pd_id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.purchase.po.ProdIODetail">
+    update prodiodetail
+    set pd_piid = #{pd_piid,jdbcType=INTEGER},
+      pd_inoutno = #{pd_inoutno,jdbcType=VARCHAR},
+      pd_piclass = #{pd_piclass,jdbcType=VARCHAR},
+      pd_pdno = #{pd_pdno,jdbcType=INTEGER},
+      pd_ordercode = #{pd_ordercode,jdbcType=VARCHAR},
+      pd_orderdetno = #{pd_orderdetno,jdbcType=INTEGER},
+      pd_prodid = #{pd_prodid,jdbcType=INTEGER},
+      pd_prodcode = #{pd_prodcode,jdbcType=VARCHAR},
+      pd_unit = #{pd_unit,jdbcType=VARCHAR},
+      pd_inqty = #{pd_inqty,jdbcType=INTEGER},
+      pd_outqty = #{pd_outqty,jdbcType=INTEGER},
+      pd_orderprice = #{pd_orderprice,jdbcType=DOUBLE},
+      pd_sendprice = #{pd_sendprice,jdbcType=DOUBLE},
+      pd_price = #{pd_price,jdbcType=DOUBLE},
+      pd_total = #{pd_total,jdbcType=DOUBLE},
+      pd_taxrate = #{pd_taxrate,jdbcType=DOUBLE},
+      pd_netprice = #{pd_netprice,jdbcType=DOUBLE},
+      pd_nettotal = #{pd_nettotal,jdbcType=DOUBLE},
+      pd_whid = #{pd_whid,jdbcType=INTEGER},
+      pd_whcode = #{pd_whcode,jdbcType=VARCHAR},
+      pd_whname = #{pd_whname,jdbcType=VARCHAR},
+      pd_inwhid = #{pd_inwhid,jdbcType=INTEGER},
+      pd_inwhcode = #{pd_inwhcode,jdbcType=VARCHAR},
+      pd_inwhname = #{pd_inwhname,jdbcType=VARCHAR},
+      pd_orderid = #{pd_orderid,jdbcType=INTEGER},
+      pd_sdid = #{pd_sdid,jdbcType=INTEGER},
+      pd_status = #{pd_status,jdbcType=INTEGER},
+      companyid = #{companyid,jdbcType=INTEGER},
+      updaterid = #{updaterid,jdbcType=INTEGER},
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      pd_text1 = #{pd_text1,jdbcType=VARCHAR},
+      pd_text2 = #{pd_text2,jdbcType=VARCHAR},
+      pd_text3 = #{pd_text3,jdbcType=VARCHAR},
+      pd_text4 = #{pd_text4,jdbcType=VARCHAR},
+      pd_text5 = #{pd_text5,jdbcType=VARCHAR},
+      pd_ym = #{pd_ym,jdbcType=INTEGER},
+      pd_yqty = #{pd_yqty,jdbcType=DOUBLE}
+    where pd_id = #{pd_id,jdbcType=INTEGER}
+  </update>
+
+  <insert id="batchInsert" parameterType="java.util.List" >
+    insert into prodiodetail
+    (
+    pd_piid,pd_inoutno,pd_piclass,pd_pdno,pd_ordercode,
+    pd_orderdetno,pd_prodid,pd_prodcode,pd_unit,
+    pd_inqty,pd_outqty,pd_orderprice,pd_sendprice,pd_price,
+    pd_total,pd_taxrate,pd_netprice,pd_nettotal,
+    pd_whid,pd_whcode,pd_whname,pd_inwhid,pd_inwhcode,
+    pd_inwhname,pd_orderid,pd_sdid,pd_status,pd_remark,
+    companyid,updaterid,updatetime,pd_text1,pd_text2,
+    pd_text3,pd_text4,pd_text5,pd_ym,pd_yqty
+    )
+    values
+    <foreach collection="list" item="item" index="index" open="" close="" separator=",">
+      (
+      #{item.pd_piid,jdbcType=INTEGER},#{item.pd_inoutno,jdbcType=VARCHAR},#{item.pd_piclass,jdbcType=VARCHAR},#{item.pd_pdno,jdbcType=INTEGER},#{item.pd_ordercode,jdbcType=VARCHAR},
+      #{item.pd_orderdetno,jdbcType=INTEGER},#{item.pd_prodid,jdbcType=INTEGER},#{item.pd_prodcode,jdbcType=VARCHAR},#{item.pd_unit,jdbcType=VARCHAR},
+      #{item.pd_inqty,jdbcType=INTEGER},#{item.pd_outqty,jdbcType=INTEGER},#{item.pd_orderprice,jdbcType=DOUBLE},#{item.pd_sendprice,jdbcType=DOUBLE},#{item.pd_price,jdbcType=DOUBLE},
+      #{item.pd_total,jdbcType=DOUBLE},#{item.pd_taxrate,jdbcType=DOUBLE},#{item.pd_netprice,jdbcType=DOUBLE},#{item.pd_nettotal,jdbcType=DOUBLE},
+      #{item.pd_whid,jdbcType=INTEGER},#{item.pd_whcode,jdbcType=VARCHAR},#{item.pd_whname,jdbcType=VARCHAR},#{item.pd_inwhid,jdbcType=INTEGER},#{item.pd_inwhcode,jdbcType=VARCHAR},
+      #{item.pd_inwhname,jdbcType=VARCHAR},#{item.pd_orderid,jdbcType=INTEGER},#{item.pd_sdid,jdbcType=INTEGER},#{item.pd_status,jdbcType=VARCHAR},#{item.pd_remark,jdbcType=VARCHAR},
+      #{item.companyId,jdbcType=INTEGER},#{item.updaterId,jdbcType=INTEGER},#{item.updateTime,jdbcType=TIMESTAMP},#{item.pd_text1,jdbcType=VARCHAR},#{item.pd_text2,jdbcType=VARCHAR},
+      #{item.pd_text3,jdbcType=VARCHAR},#{item.pd_text4,jdbcType=VARCHAR},#{item.pd_text5,jdbcType=VARCHAR},#{item.pd_ym,jdbcType=INTEGER},#{item.pd_yqty,jdbcType=INTEGER}
+      )
+    </foreach>
+  </insert>
+  <update id="batchUpdate" parameterType="com.usoftchina.saas.purchase.po.ProdIODetail" >
+    <foreach collection="list" item="item" index="index" open="" close="" separator=";">
+      update prodiodetail <set>
+      pd_piid = #{item.pd_piid},
+      pd_inoutno = #{item.pd_inoutno},
+      pd_piclass = #{item.pd_piclass},
+      pd_pdno = #{item.pd_pdno},
+      pd_ordercode = #{item.pd_orderdetno},
+      pd_orderdetno = #{item.pd_unit},
+      pd_prodid = #{item.pd_prodid},
+      pd_prodcode = #{item.pd_prodcode},
+      pd_unit = #{item.pd_unit},
+      pd_inqty = #{item.pd_inqty},
+      pd_outqty = #{item.pd_outqty},
+      pd_orderprice = #{item.pd_orderprice},
+      pd_sendprice = #{item.pd_sendprice},
+      pd_price = #{item.pd_price},
+      pd_total = #{item.pd_total},
+      pd_taxrate= #{item.pd_taxrate},
+      pd_netprice= #{item.pd_netprice},
+      pd_nettotal= #{item.pd_nettotal},
+      pd_whid= #{item.pd_whid},
+      pd_whcode= #{item.pd_whcode},
+      pd_whname= #{item.pd_whname},
+      pd_inwhid= #{item.pd_inwhid},
+      pd_inwhcode= #{item.pd_inwhcode},
+      pd_inwhname= #{item.pd_inwhname},
+      pd_orderid= #{item.pd_orderid},
+      pd_sdid= #{item.pd_sdid},
+      pd_status= #{item.pd_status},
+      pd_remark= #{item.pd_remark},
+      companyId = #{item.companyId},
+      updaterId = #{item.updaterId},
+      updateTime = #{item.updateTime},
+      pd_text1 = #{item.pd_text1},
+      pd_text2 = #{item.pd_text2},
+      pd_text3 = #{item.pd_text3},
+      pd_text4 = #{item.pd_text4},
+      pd_text5 = #{item.pd_text5},
+      pd_ym = #{item.pd_ym},
+      pd_yqty = #{item.pd_yqty}
+    </set>
+      where PD_ID = #{item.id,jdbcType=INTEGER}
+    </foreach>
+  </update>
+
+  <update id="updatePurchaseYqty" parameterType="java.lang.Long">
+    update purchasedetail
+    join
+    (select b.yqty,b.pd_orderid FROM
+    (select pd_orderid from prodiodetail where pd_piid = #{id,jdbcType=INTEGER}) a
+    left join
+    (select sum(pd_inqty)-sum(pd_outqty) yqty,pd_orderid from prodiodetail  left join  prodinout on pd_piid = pi_id  where pi_statuscode='AUDITED'
+    GROUP BY pd_orderid) b on a.pd_orderid = b.pd_orderid) c
+    on pd_id = c.pd_orderid
+    set PD_YQTY = c.yqty
+  </update>
+
+
+</mapper>

+ 106 - 0
applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutListMapper.xml

@@ -0,0 +1,106 @@
+<?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.purchase.mapper.ProdInOutListMapper">
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.purchase.po.ProdInOutList">
+    <id column="pi_id" jdbcType="INTEGER" property="id" />
+    <result column="pi_inoutno" jdbcType="VARCHAR" property="pi_inoutno" />
+    <result column="pi_class" jdbcType="VARCHAR" property="pi_class" />
+    <result column="pi_date" jdbcType="TIMESTAMP" property="pi_date" />
+    <result column="pi_vendid" jdbcType="INTEGER" property="pi_vendid" />
+    <result column="pi_vendcode" jdbcType="VARCHAR" property="pi_vendcode" />
+    <result column="pi_vendname" jdbcType="VARCHAR" property="pi_vendname" />
+    <result column="pi_custid" jdbcType="INTEGER" property="pi_custid" />
+    <result column="pi_custcode" jdbcType="VARCHAR" property="pi_custcode" />
+    <result column="pi_custname" jdbcType="VARCHAR" property="pi_custname" />
+    <result column="pi_puid" jdbcType="INTEGER" property="pi_puid" />
+    <result column="pi_pucode" jdbcType="VARCHAR" property="pi_pucode" />
+    <result column="pi_said" jdbcType="INTEGER" property="pi_said" />
+    <result column="pi_sacode" jdbcType="VARCHAR" property="pi_sacode" />
+    <result column="pi_total" jdbcType="Double" property="pi_total" />
+    <result column="pi_recordmanid" jdbcType="INTEGER" property="pi_recordmanid" />
+    <result column="pi_recordman" jdbcType="VARCHAR" property="pi_recordman" />
+    <result column="pi_recorddate" jdbcType="TIMESTAMP" property="pi_recorddate" />
+    <result column="pi_status" jdbcType="VARCHAR" property="pi_status" />
+    <result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
+    <result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
+    <result column="pi_printstatuscode" jdbcType="VARCHAR" property="pi_printstatuscode" />
+    <result column="pd_piid" jdbcType="INTEGER" property="pd_piid" />
+    <result column="pd_inoutno" jdbcType="VARCHAR" property="pd_inoutno" />
+    <result column="pd_piclass" jdbcType="VARCHAR" property="pd_piclass" />
+    <result column="pd_pdno" jdbcType="INTEGER" property="pd_pdno" />
+    <result column="pd_ordercode" jdbcType="VARCHAR" property="pd_ordercode" />
+    <result column="pd_orderdetno" jdbcType="INTEGER" property="pd_orderdetno" />
+    <result column="pd_prodid" jdbcType="INTEGER" property="pd_prodid" />
+    <result column="pd_prodcode" jdbcType="VARCHAR" property="pd_prodcode" />
+    <result column="pd_unit" jdbcType="VARCHAR" property="pd_unit" />
+    <result column="pd_inqty" jdbcType="INTEGER" property="pd_inqty" />
+    <result column="pd_outqty" jdbcType="INTEGER" property="pd_outqty" />
+    <result column="pd_orderprice" jdbcType="DOUBLE" property="pd_orderprice" />
+    <result column="pd_sendprice" jdbcType="DOUBLE" property="pd_sendprice" />
+    <result column="pd_price" jdbcType="DOUBLE" property="pd_price" />
+    <result column="pd_total" jdbcType="DOUBLE" property="pd_total" />
+    <result column="pd_taxrate" jdbcType="DOUBLE" property="pd_taxrate" />
+    <result column="pd_netprice" jdbcType="DOUBLE" property="pd_netprice" />
+    <result column="pd_nettotal" jdbcType="DOUBLE" property="pd_nettotal" />
+    <result column="pd_whid" jdbcType="INTEGER" property="pd_whid" />
+    <result column="pd_whcode" jdbcType="VARCHAR" property="pd_whcode" />
+    <result column="pd_whname" jdbcType="VARCHAR" property="pd_whname" />
+    <result column="pd_inwhid" jdbcType="INTEGER" property="pd_inwhid" />
+    <result column="pd_inwhcode" jdbcType="VARCHAR" property="pd_inwhcode" />
+    <result column="pd_inwhname" jdbcType="VARCHAR" property="pd_inwhname" />
+    <result column="pd_orderid" jdbcType="INTEGER" property="pd_orderid" />
+    <result column="pd_sdid" jdbcType="INTEGER" property="pd_sdid" />
+    <result column="pd_status" jdbcType="INTEGER" property="pd_status" />
+    <result column="companyid" jdbcType="INTEGER" property="companyId" />
+    <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
+    <result column="updatetime" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="pd_text1" jdbcType="VARCHAR" property="pd_text1" />
+    <result column="pd_text2" jdbcType="VARCHAR" property="pd_text2" />
+    <result column="pd_text3" jdbcType="VARCHAR" property="pd_text3" />
+    <result column="pd_text4" jdbcType="VARCHAR" property="pd_text4" />
+    <result column="pd_text5" jdbcType="VARCHAR" property="pd_text5" />
+    <result column="pd_ym" jdbcType="INTEGER" property="pd_ym" />
+    <result column="pd_yqty" jdbcType="DOUBLE" property="pd_yqty" />
+  </resultMap>
+
+
+  <select id="selectProdInOutListByCondition" parameterType="com.usoftchina.saas.purchase.dto.ProdInOutReqDTO" resultMap="BaseResultMap">
+    select  *  from prodinout left join prodiodetail on pi_id = pd_piid
+    <where>
+      <if test="begin != null">
+        pu_date &gt;= ${begin}
+      </if>
+      <if test="end!= null">
+        AND  pu_date &lt;= ${end}
+      </if>
+      <if test="status != null">
+        AND pu_status=${status}
+      </if>
+      <if test="keyword != null">
+        AND ${keyword}
+      </if>
+    </where>
+  </select>
+
+  <select id="selectProdInOutBycondition" parameterType="com.usoftchina.saas.purchase.dto.ProdInOutReqDTO" resultMap="BaseResultMap">
+    select  *  from prodinout
+    <where>
+      <if test="begin != null">
+        pu_date &gt;= ${begin}
+      </if>
+      <if test="end!= null">
+        AND  pu_date &lt;= ${end}
+      </if>
+      <if test="status != null">
+        AND pu_status=${status}
+      </if>
+      <if test="keyword != null">
+        AND ${keyword}
+      </if>
+    </where>
+  </select>
+
+
+
+
+</mapper>

+ 713 - 0
applications/purchase/purchase-server/src/main/resources/mapper/ProdInOutMapper.xml

@@ -0,0 +1,713 @@
+<?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.purchase.mapper.ProdInOutMapper">
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.purchase.po.ProdInOut">
+    <id column="pi_id" jdbcType="INTEGER" property="id" />
+    <result column="pi_inoutno" jdbcType="VARCHAR" property="pi_inoutno" />
+    <result column="pi_class" jdbcType="VARCHAR" property="pi_class" />
+    <result column="pi_date" jdbcType="TIMESTAMP" property="pi_date" />
+    <result column="pi_vendid" jdbcType="INTEGER" property="pi_vendid" />
+    <result column="pi_vendcode" jdbcType="VARCHAR" property="pi_vendcode" />
+    <result column="pi_vendname" jdbcType="VARCHAR" property="pi_vendname" />
+    <result column="pi_custid" jdbcType="INTEGER" property="pi_custid" />
+    <result column="pi_custcode" jdbcType="VARCHAR" property="pi_custcode" />
+    <result column="pi_custname" jdbcType="VARCHAR" property="pi_custname" />
+    <result column="pi_puid" jdbcType="INTEGER" property="pi_puid" />
+    <result column="pi_pucode" jdbcType="VARCHAR" property="pi_pucode" />
+    <result column="pi_said" jdbcType="INTEGER" property="pi_said" />
+    <result column="pi_sacode" jdbcType="VARCHAR" property="pi_sacode" />
+    <result column="pi_total" jdbcType="Double" property="pi_total" />
+    <result column="pi_recordmanid" jdbcType="INTEGER" property="pi_recordmanid" />
+    <result column="pi_recordman" jdbcType="VARCHAR" property="pi_recordman" />
+    <result column="pi_recorddate" jdbcType="TIMESTAMP" property="pi_recorddate" />
+    <result column="pi_status" jdbcType="VARCHAR" property="pi_status" />
+    <result column="pi_statuscode" jdbcType="VARCHAR" property="pi_statuscode" />
+    <result column="pi_printstatus" jdbcType="VARCHAR" property="pi_printstatus" />
+    <result column="pi_printstatuscode" jdbcType="VARCHAR" property="pi_printstatuscode" />
+    <result column="companyid" jdbcType="INTEGER" property="companyId" />
+    <result column="updaterid" jdbcType="INTEGER" property="updaterId" />
+    <result column="updatetime" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="pi_text1" jdbcType="VARCHAR" property="pi_text1" />
+    <result column="pi_text2" jdbcType="VARCHAR" property="pi_text2" />
+    <result column="pi_text3" jdbcType="VARCHAR" property="pi_text3" />
+    <result column="pi_text4" jdbcType="VARCHAR" property="pi_text4" />
+    <result column="pi_text5" jdbcType="VARCHAR" property="pi_text5" />
+  </resultMap>
+  <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.usoftchina.saas.purchase.po.ProdInOut">
+    <result column="pi_address" jdbcType="LONGVARCHAR" property="pi_address" />
+  </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">
+    pi_id, pi_inoutno, pi_class, pi_date, pi_vendid, pi_vendcode, pi_vendname, pi_custid, 
+    pi_custcode, pi_custname, pi_puid, pi_pucode, pi_said, pi_sacode, pi_total, pi_recordmanid, 
+    pi_recordman, pi_recorddate, pi_status, pi_statuscode, pi_printstatus, pi_printstatuscode, 
+    companyid, updaterid, updatetime, pi_text1, pi_text2, pi_text3, pi_text4, pi_text5
+  </sql>
+  <sql id="Blob_Column_List">
+    pi_address
+  </sql>
+  <select id="selectByExampleWithBLOBs" parameterType="com.usoftchina.saas.purchase.po.ProdInOutExample" resultMap="ResultMapWithBLOBs">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from prodinout
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByExample" parameterType="com.usoftchina.saas.purchase.po.ProdInOutExample" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from prodinout
+    <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="ResultMapWithBLOBs">
+    select 
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from prodinout
+    where pi_id = #{pi_id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from prodinout
+    where pi_id = #{pi_id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.usoftchina.saas.purchase.po.ProdInOutExample">
+    delete from prodinout
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.usoftchina.saas.purchase.po.ProdInOut">
+    insert into prodinout (pi_id, pi_inoutno, pi_class, 
+      pi_date, pi_vendid, pi_vendcode, 
+      pi_vendname, pi_custid, pi_custcode, 
+      pi_custname, pi_puid, pi_pucode, 
+      pi_said, pi_sacode, pi_total, 
+      pi_recordmanid, pi_recordman, pi_recorddate, 
+      pi_status, pi_statuscode, pi_printstatus, 
+      pi_printstatuscode, companyid, updaterid, 
+      updatetime, pi_text1, pi_text2, 
+      pi_text3, pi_text4, pi_text5, 
+      pi_address)
+    values (#{pi_id,jdbcType=INTEGER}, #{pi_inoutno,jdbcType=VARCHAR}, #{pi_class,jdbcType=VARCHAR}, 
+      #{pi_date,jdbcType=TIMESTAMP}, #{pi_vendid,jdbcType=INTEGER}, #{pi_vendcode,jdbcType=VARCHAR}, 
+      #{pi_vendname,jdbcType=VARCHAR}, #{pi_custid,jdbcType=INTEGER}, #{pi_custcode,jdbcType=VARCHAR}, 
+      #{pi_custname,jdbcType=VARCHAR}, #{pi_puid,jdbcType=INTEGER}, #{pi_pucode,jdbcType=VARCHAR}, 
+      #{pi_said,jdbcType=INTEGER}, #{pi_sacode,jdbcType=VARCHAR}, #{pi_total,jdbcType=DOUBLE},
+      #{pi_recordmanid,jdbcType=INTEGER}, #{pi_recordman,jdbcType=VARCHAR}, #{pi_recorddate,jdbcType=TIMESTAMP}, 
+      #{pi_status,jdbcType=VARCHAR}, #{pi_statuscode,jdbcType=VARCHAR}, #{pi_printstatus,jdbcType=VARCHAR}, 
+      #{pi_printstatuscode,jdbcType=VARCHAR}, #{companyid,jdbcType=INTEGER}, #{updaterid,jdbcType=INTEGER}, 
+      #{updatetime,jdbcType=TIMESTAMP}, #{pi_text1,jdbcType=VARCHAR}, #{pi_text2,jdbcType=VARCHAR}, 
+      #{pi_text3,jdbcType=VARCHAR}, #{pi_text4,jdbcType=VARCHAR}, #{pi_text5,jdbcType=VARCHAR}, 
+      #{pi_address,jdbcType=LONGVARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.usoftchina.saas.purchase.po.ProdInOut">
+    <selectKey resultType="java.lang.Long" keyProperty="id">
+      SELECT LAST_INSERT_ID() AS ID
+    </selectKey>
+    insert into prodinout
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+
+      <if test="pi_inoutno != null">
+        pi_inoutno,
+      </if>
+      <if test="pi_class != null">
+        pi_class,
+      </if>
+      <if test="pi_date != null">
+        pi_date,
+      </if>
+      <if test="pi_vendid != null">
+        pi_vendid,
+      </if>
+      <if test="pi_vendcode != null">
+        pi_vendcode,
+      </if>
+      <if test="pi_vendname != null">
+        pi_vendname,
+      </if>
+      <if test="pi_custid != null">
+        pi_custid,
+      </if>
+      <if test="pi_custcode != null">
+        pi_custcode,
+      </if>
+      <if test="pi_custname != null">
+        pi_custname,
+      </if>
+      <if test="pi_puid != null">
+        pi_puid,
+      </if>
+      <if test="pi_pucode != null">
+        pi_pucode,
+      </if>
+      <if test="pi_said != null">
+        pi_said,
+      </if>
+      <if test="pi_sacode != null">
+        pi_sacode,
+      </if>
+      <if test="pi_total != null">
+        pi_total,
+      </if>
+      <if test="pi_recordmanid != null">
+        pi_recordmanid,
+      </if>
+      <if test="pi_recordman != null">
+        pi_recordman,
+      </if>
+      <if test="pi_recorddate != null">
+        pi_recorddate,
+      </if>
+      <if test="pi_status != null">
+        pi_status,
+      </if>
+      <if test="pi_statuscode != null">
+        pi_statuscode,
+      </if>
+      <if test="pi_printstatus != null">
+        pi_printstatus,
+      </if>
+      <if test="pi_printstatuscode != null">
+        pi_printstatuscode,
+      </if>
+      <if test="companyId != null">
+        companyid,
+      </if>
+      <if test="updaterId != null">
+        updaterid,
+      </if>
+      <if test="updateTime != null">
+        updatetime,
+      </if>
+      <if test="pi_text1 != null">
+        pi_text1,
+      </if>
+      <if test="pi_text2 != null">
+        pi_text2,
+      </if>
+      <if test="pi_text3 != null">
+        pi_text3,
+      </if>
+      <if test="pi_text4 != null">
+        pi_text4,
+      </if>
+      <if test="pi_text5 != null">
+        pi_text5,
+      </if>
+      <if test="pi_address != null">
+        pi_address,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+
+      <if test="pi_inoutno != null">
+        #{pi_inoutno,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_class != null">
+        #{pi_class,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_date != null">
+        #{pi_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pi_vendid != null">
+        #{pi_vendid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_vendcode != null">
+        #{pi_vendcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_vendname != null">
+        #{pi_vendname,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_custid != null">
+        #{pi_custid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_custcode != null">
+        #{pi_custcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_custname != null">
+        #{pi_custname,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_puid != null">
+        #{pi_puid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_pucode != null">
+        #{pi_pucode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_said != null">
+        #{pi_said,jdbcType=INTEGER},
+      </if>
+      <if test="pi_sacode != null">
+        #{pi_sacode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_total != null">
+        #{pi_total,jdbcType=DOUBLE},
+      </if>
+      <if test="pi_recordmanid != null">
+        #{pi_recordmanid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_recordman != null">
+        #{pi_recordman,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_recorddate != null">
+        #{pi_recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pi_status != null">
+        #{pi_status,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_statuscode != null">
+        #{pi_statuscode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_printstatus != null">
+        #{pi_printstatus,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_printstatuscode != null">
+        #{pi_printstatuscode,jdbcType=VARCHAR},
+      </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="pi_text1 != null">
+        #{pi_text1,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text2 != null">
+        #{pi_text2,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text3 != null">
+        #{pi_text3,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text4 != null">
+        #{pi_text4,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text5 != null">
+        #{pi_text5,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_address != null">
+        #{pi_address,jdbcType=LONGVARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.usoftchina.saas.purchase.po.ProdInOutExample" resultType="java.lang.Long">
+    select count(*) from prodinout
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update prodinout
+    <set>
+      <if test="record.pi_id != null">
+        pi_id = #{record.pi_id,jdbcType=INTEGER},
+      </if>
+      <if test="record.pi_inoutno != null">
+        pi_inoutno = #{record.pi_inoutno,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_class != null">
+        pi_class = #{record.pi_class,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_date != null">
+        pi_date = #{record.pi_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.pi_vendid != null">
+        pi_vendid = #{record.pi_vendid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pi_vendcode != null">
+        pi_vendcode = #{record.pi_vendcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_vendname != null">
+        pi_vendname = #{record.pi_vendname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_custid != null">
+        pi_custid = #{record.pi_custid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pi_custcode != null">
+        pi_custcode = #{record.pi_custcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_custname != null">
+        pi_custname = #{record.pi_custname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_puid != null">
+        pi_puid = #{record.pi_puid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pi_pucode != null">
+        pi_pucode = #{record.pi_pucode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_said != null">
+        pi_said = #{record.pi_said,jdbcType=INTEGER},
+      </if>
+      <if test="record.pi_sacode != null">
+        pi_sacode = #{record.pi_sacode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_total != null">
+        pi_total = #{record.pi_total,jdbcType=DOUBLE},
+      </if>
+      <if test="record.pi_recordmanid != null">
+        pi_recordmanid = #{record.pi_recordmanid,jdbcType=INTEGER},
+      </if>
+      <if test="record.pi_recordman != null">
+        pi_recordman = #{record.pi_recordman,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_recorddate != null">
+        pi_recorddate = #{record.pi_recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.pi_status != null">
+        pi_status = #{record.pi_status,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_statuscode != null">
+        pi_statuscode = #{record.pi_statuscode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_printstatus != null">
+        pi_printstatus = #{record.pi_printstatus,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_printstatuscode != null">
+        pi_printstatuscode = #{record.pi_printstatuscode,jdbcType=VARCHAR},
+      </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.pi_text1 != null">
+        pi_text1 = #{record.pi_text1,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_text2 != null">
+        pi_text2 = #{record.pi_text2,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_text3 != null">
+        pi_text3 = #{record.pi_text3,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_text4 != null">
+        pi_text4 = #{record.pi_text4,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_text5 != null">
+        pi_text5 = #{record.pi_text5,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pi_address != null">
+        pi_address = #{record.pi_address,jdbcType=LONGVARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExampleWithBLOBs" parameterType="map">
+    update prodinout
+    set pi_id = #{record.pi_id,jdbcType=INTEGER},
+      pi_inoutno = #{record.pi_inoutno,jdbcType=VARCHAR},
+      pi_class = #{record.pi_class,jdbcType=VARCHAR},
+      pi_date = #{record.pi_date,jdbcType=TIMESTAMP},
+      pi_vendid = #{record.pi_vendid,jdbcType=INTEGER},
+      pi_vendcode = #{record.pi_vendcode,jdbcType=VARCHAR},
+      pi_vendname = #{record.pi_vendname,jdbcType=VARCHAR},
+      pi_custid = #{record.pi_custid,jdbcType=INTEGER},
+      pi_custcode = #{record.pi_custcode,jdbcType=VARCHAR},
+      pi_custname = #{record.pi_custname,jdbcType=VARCHAR},
+      pi_puid = #{record.pi_puid,jdbcType=INTEGER},
+      pi_pucode = #{record.pi_pucode,jdbcType=VARCHAR},
+      pi_said = #{record.pi_said,jdbcType=INTEGER},
+      pi_sacode = #{record.pi_sacode,jdbcType=VARCHAR},
+      pi_total = #{record.pi_total,jdbcType=DOUBLE},
+      pi_recordmanid = #{record.pi_recordmanid,jdbcType=INTEGER},
+      pi_recordman = #{record.pi_recordman,jdbcType=VARCHAR},
+      pi_recorddate = #{record.pi_recorddate,jdbcType=TIMESTAMP},
+      pi_status = #{record.pi_status,jdbcType=VARCHAR},
+      pi_statuscode = #{record.pi_statuscode,jdbcType=VARCHAR},
+      pi_printstatus = #{record.pi_printstatus,jdbcType=VARCHAR},
+      pi_printstatuscode = #{record.pi_printstatuscode,jdbcType=VARCHAR},
+      companyid = #{record.companyid,jdbcType=INTEGER},
+      updaterid = #{record.updaterid,jdbcType=INTEGER},
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
+      pi_text1 = #{record.pi_text1,jdbcType=VARCHAR},
+      pi_text2 = #{record.pi_text2,jdbcType=VARCHAR},
+      pi_text3 = #{record.pi_text3,jdbcType=VARCHAR},
+      pi_text4 = #{record.pi_text4,jdbcType=VARCHAR},
+      pi_text5 = #{record.pi_text5,jdbcType=VARCHAR},
+      pi_address = #{record.pi_address,jdbcType=LONGVARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    update prodinout
+    set pi_id = #{record.pi_id,jdbcType=INTEGER},
+      pi_inoutno = #{record.pi_inoutno,jdbcType=VARCHAR},
+      pi_class = #{record.pi_class,jdbcType=VARCHAR},
+      pi_date = #{record.pi_date,jdbcType=TIMESTAMP},
+      pi_vendid = #{record.pi_vendid,jdbcType=INTEGER},
+      pi_vendcode = #{record.pi_vendcode,jdbcType=VARCHAR},
+      pi_vendname = #{record.pi_vendname,jdbcType=VARCHAR},
+      pi_custid = #{record.pi_custid,jdbcType=INTEGER},
+      pi_custcode = #{record.pi_custcode,jdbcType=VARCHAR},
+      pi_custname = #{record.pi_custname,jdbcType=VARCHAR},
+      pi_puid = #{record.pi_puid,jdbcType=INTEGER},
+      pi_pucode = #{record.pi_pucode,jdbcType=VARCHAR},
+      pi_said = #{record.pi_said,jdbcType=INTEGER},
+      pi_sacode = #{record.pi_sacode,jdbcType=VARCHAR},
+      pi_total = #{record.pi_total,jdbcType=DOUBLE},
+      pi_recordmanid = #{record.pi_recordmanid,jdbcType=INTEGER},
+      pi_recordman = #{record.pi_recordman,jdbcType=VARCHAR},
+      pi_recorddate = #{record.pi_recorddate,jdbcType=TIMESTAMP},
+      pi_status = #{record.pi_status,jdbcType=VARCHAR},
+      pi_statuscode = #{record.pi_statuscode,jdbcType=VARCHAR},
+      pi_printstatus = #{record.pi_printstatus,jdbcType=VARCHAR},
+      pi_printstatuscode = #{record.pi_printstatuscode,jdbcType=VARCHAR},
+      companyid = #{record.companyid,jdbcType=INTEGER},
+      updaterid = #{record.updaterid,jdbcType=INTEGER},
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
+      pi_text1 = #{record.pi_text1,jdbcType=VARCHAR},
+      pi_text2 = #{record.pi_text2,jdbcType=VARCHAR},
+      pi_text3 = #{record.pi_text3,jdbcType=VARCHAR},
+      pi_text4 = #{record.pi_text4,jdbcType=VARCHAR},
+      pi_text5 = #{record.pi_text5,jdbcType=VARCHAR}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.purchase.po.ProdInOut">
+    update prodinout
+    <set>
+      <if test="pi_inoutno != null">
+        pi_inoutno = #{pi_inoutno,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_class != null">
+        pi_class = #{pi_class,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_date != null">
+        pi_date = #{pi_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pi_vendid != null">
+        pi_vendid = #{pi_vendid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_vendcode != null">
+        pi_vendcode = #{pi_vendcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_vendname != null">
+        pi_vendname = #{pi_vendname,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_custid != null">
+        pi_custid = #{pi_custid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_custcode != null">
+        pi_custcode = #{pi_custcode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_custname != null">
+        pi_custname = #{pi_custname,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_puid != null">
+        pi_puid = #{pi_puid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_pucode != null">
+        pi_pucode = #{pi_pucode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_said != null">
+        pi_said = #{pi_said,jdbcType=INTEGER},
+      </if>
+      <if test="pi_sacode != null">
+        pi_sacode = #{pi_sacode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_total != null">
+        pi_total = #{pi_total,jdbcType=DOUBLE},
+      </if>
+      <if test="pi_recordmanid != null">
+        pi_recordmanid = #{pi_recordmanid,jdbcType=INTEGER},
+      </if>
+      <if test="pi_recordman != null">
+        pi_recordman = #{pi_recordman,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_recorddate != null">
+        pi_recorddate = #{pi_recorddate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="pi_status != null">
+        pi_status = #{pi_status,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_statuscode != null">
+        pi_statuscode = #{pi_statuscode,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_printstatus != null">
+        pi_printstatus = #{pi_printstatus,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_printstatuscode != null">
+        pi_printstatuscode = #{pi_printstatuscode,jdbcType=VARCHAR},
+      </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="pi_text1 != null">
+        pi_text1 = #{pi_text1,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text2 != null">
+        pi_text2 = #{pi_text2,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text3 != null">
+        pi_text3 = #{pi_text3,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text4 != null">
+        pi_text4 = #{pi_text4,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_text5 != null">
+        pi_text5 = #{pi_text5,jdbcType=VARCHAR},
+      </if>
+      <if test="pi_address != null">
+        pi_address = #{pi_address,jdbcType=LONGVARCHAR},
+      </if>
+    </set>
+    where pi_id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.usoftchina.saas.purchase.po.ProdInOut">
+    update prodinout
+    set pi_inoutno = #{pi_inoutno,jdbcType=VARCHAR},
+      pi_class = #{pi_class,jdbcType=VARCHAR},
+      pi_date = #{pi_date,jdbcType=TIMESTAMP},
+      pi_vendid = #{pi_vendid,jdbcType=INTEGER},
+      pi_vendcode = #{pi_vendcode,jdbcType=VARCHAR},
+      pi_vendname = #{pi_vendname,jdbcType=VARCHAR},
+      pi_custid = #{pi_custid,jdbcType=INTEGER},
+      pi_custcode = #{pi_custcode,jdbcType=VARCHAR},
+      pi_custname = #{pi_custname,jdbcType=VARCHAR},
+      pi_puid = #{pi_puid,jdbcType=INTEGER},
+      pi_pucode = #{pi_pucode,jdbcType=VARCHAR},
+      pi_said = #{pi_said,jdbcType=INTEGER},
+      pi_sacode = #{pi_sacode,jdbcType=VARCHAR},
+      pi_total = #{pi_total,jdbcType=DOUBLE},
+      pi_recordmanid = #{pi_recordmanid,jdbcType=INTEGER},
+      pi_recordman = #{pi_recordman,jdbcType=VARCHAR},
+      pi_recorddate = #{pi_recorddate,jdbcType=TIMESTAMP},
+      pi_status = #{pi_status,jdbcType=VARCHAR},
+      pi_statuscode = #{pi_statuscode,jdbcType=VARCHAR},
+      pi_printstatus = #{pi_printstatus,jdbcType=VARCHAR},
+      pi_printstatuscode = #{pi_printstatuscode,jdbcType=VARCHAR},
+      companyid = #{companyid,jdbcType=INTEGER},
+      updaterid = #{updaterid,jdbcType=INTEGER},
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
+      pi_text1 = #{pi_text1,jdbcType=VARCHAR},
+      pi_text2 = #{pi_text2,jdbcType=VARCHAR},
+      pi_text3 = #{pi_text3,jdbcType=VARCHAR},
+      pi_text4 = #{pi_text4,jdbcType=VARCHAR},
+      pi_text5 = #{pi_text5,jdbcType=VARCHAR},
+      pi_address = #{pi_address,jdbcType=LONGVARCHAR}
+    where pi_id = #{pi_id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.purchase.po.ProdInOut">
+    update prodinout
+    set pi_inoutno = #{pi_inoutno,jdbcType=VARCHAR},
+      pi_class = #{pi_class,jdbcType=VARCHAR},
+      pi_date = #{pi_date,jdbcType=TIMESTAMP},
+      pi_vendid = #{pi_vendid,jdbcType=INTEGER},
+      pi_vendcode = #{pi_vendcode,jdbcType=VARCHAR},
+      pi_vendname = #{pi_vendname,jdbcType=VARCHAR},
+      pi_custid = #{pi_custid,jdbcType=INTEGER},
+      pi_custcode = #{pi_custcode,jdbcType=VARCHAR},
+      pi_custname = #{pi_custname,jdbcType=VARCHAR},
+      pi_puid = #{pi_puid,jdbcType=INTEGER},
+      pi_pucode = #{pi_pucode,jdbcType=VARCHAR},
+      pi_said = #{pi_said,jdbcType=INTEGER},
+      pi_sacode = #{pi_sacode,jdbcType=VARCHAR},
+      pi_total = #{pi_total,jdbcType=DOUBLE},
+      pi_recordmanid = #{pi_recordmanid,jdbcType=INTEGER},
+      pi_recordman = #{pi_recordman,jdbcType=VARCHAR},
+      pi_recorddate = #{pi_recorddate,jdbcType=TIMESTAMP},
+      pi_status = #{pi_status,jdbcType=VARCHAR},
+      pi_statuscode = #{pi_statuscode,jdbcType=VARCHAR},
+      pi_printstatus = #{pi_printstatus,jdbcType=VARCHAR},
+      pi_printstatuscode = #{pi_printstatuscode,jdbcType=VARCHAR},
+      companyid = #{companyId,jdbcType=INTEGER},
+      updaterid = #{updaterId,jdbcType=INTEGER},
+      updatetime = #{updateTime,jdbcType=TIMESTAMP},
+      pi_text1 = #{pi_text1,jdbcType=VARCHAR},
+      pi_text2 = #{pi_text2,jdbcType=VARCHAR},
+      pi_text3 = #{pi_text3,jdbcType=VARCHAR},
+      pi_text4 = #{pi_text4,jdbcType=VARCHAR},
+      pi_text5 = #{pi_text5,jdbcType=VARCHAR}
+    where pi_id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>