优化商品信息的字段
This commit is contained in:
@@ -570,21 +570,13 @@ CREATE TABLE `jsh_material` (
|
|||||||
`CategoryId` bigint(20) DEFAULT NULL COMMENT '产品类型',
|
`CategoryId` bigint(20) DEFAULT NULL COMMENT '产品类型',
|
||||||
`Name` varchar(50) DEFAULT NULL COMMENT '名称',
|
`Name` varchar(50) DEFAULT NULL COMMENT '名称',
|
||||||
`Mfrs` varchar(50) DEFAULT NULL COMMENT '制造商',
|
`Mfrs` varchar(50) DEFAULT NULL COMMENT '制造商',
|
||||||
`Packing` decimal(24,6) DEFAULT NULL COMMENT '包装(KG/包)',
|
|
||||||
`SafetyStock` decimal(24,6) DEFAULT NULL COMMENT '安全存量(KG)',
|
`SafetyStock` decimal(24,6) DEFAULT NULL COMMENT '安全存量(KG)',
|
||||||
`Model` varchar(50) DEFAULT NULL COMMENT '型号',
|
`Model` varchar(50) DEFAULT NULL COMMENT '型号',
|
||||||
`Standard` varchar(50) DEFAULT NULL COMMENT '规格',
|
`Standard` varchar(50) DEFAULT NULL COMMENT '规格',
|
||||||
`Color` varchar(50) DEFAULT NULL COMMENT '颜色',
|
`Color` varchar(50) DEFAULT NULL COMMENT '颜色',
|
||||||
`Unit` varchar(50) DEFAULT NULL COMMENT '单位-单个',
|
`Unit` varchar(50) DEFAULT NULL COMMENT '单位-单个',
|
||||||
`Remark` varchar(100) DEFAULT NULL COMMENT '备注',
|
`Remark` varchar(100) DEFAULT NULL COMMENT '备注',
|
||||||
`RetailPrice` decimal(24,6) DEFAULT NULL COMMENT '零售价',
|
|
||||||
`LowPrice` decimal(24,6) DEFAULT NULL COMMENT '最低售价',
|
|
||||||
`PresetPriceOne` decimal(24,6) DEFAULT NULL COMMENT '预设售价一',
|
|
||||||
`PresetPriceTwo` decimal(24,6) DEFAULT NULL COMMENT '预设售价二',
|
|
||||||
`UnitId` bigint(20) DEFAULT NULL COMMENT '计量单位Id',
|
`UnitId` bigint(20) DEFAULT NULL COMMENT '计量单位Id',
|
||||||
`FirstOutUnit` varchar(50) DEFAULT NULL COMMENT '首选出库单位',
|
|
||||||
`FirstInUnit` varchar(50) DEFAULT NULL COMMENT '首选入库单位',
|
|
||||||
`PriceStrategy` varchar(500) DEFAULT NULL COMMENT '价格策略',
|
|
||||||
`Enabled` bit(1) DEFAULT NULL COMMENT '启用 0-禁用 1-启用',
|
`Enabled` bit(1) DEFAULT NULL COMMENT '启用 0-禁用 1-启用',
|
||||||
`OtherField1` varchar(50) DEFAULT NULL COMMENT '自定义1',
|
`OtherField1` varchar(50) DEFAULT NULL COMMENT '自定义1',
|
||||||
`OtherField2` varchar(50) DEFAULT NULL COMMENT '自定义2',
|
`OtherField2` varchar(50) DEFAULT NULL COMMENT '自定义2',
|
||||||
@@ -600,30 +592,30 @@ CREATE TABLE `jsh_material` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of jsh_material
|
-- Records of jsh_material
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `jsh_material` VALUES ('564', '14', '商品1', '', null, null, 'sp1', '', '', '个', '', '22.000000', '22.000000', '22.000000', '22.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"enableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '1', '0');
|
INSERT INTO `jsh_material` VALUES ('564', '14', '商品1', '', null, 'sp1', '', '', '个', '', null, '', '', '', '', '0', '1', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('565', '14', '商品2', '', null, null, 'sp2', '', '', '个', '', '44.000000', '44.000000', '44.000000', '44.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"1\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '1', '1', '0');
|
INSERT INTO `jsh_material` VALUES ('565', '14', '商品2', '', null, 'sp2', '', '', '个', '', null, '', '', '', '', '1', '1', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('566', '15', '商品666', '', null, null, 'sp666', '', '', '个', '', '5.000000', '4.000000', '3.000000', '2.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '117', '0');
|
INSERT INTO `jsh_material` VALUES ('566', '15', '商品666', '', null, 'sp666', '', '', '个', '', null, '', '', '', '', '0', '117', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('567', null, '商品1', '', null, null, 'dsp1', '', '', '个', '', '11.000000', '11.000000', '11.000000', '11.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '115', '0');
|
INSERT INTO `jsh_material` VALUES ('567', null, '商品1', '', null, 'dsp1', '', '', '个', '', null, '', '', '', '', '0', '115', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('568', '17', '商品1', '', null, '100.000000', 'sp1', '', '', '个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\"}}]', '', '', '', '', '0', '63', '0');
|
INSERT INTO `jsh_material` VALUES ('568', '17', '商品1', '', '100.000000', 'sp1', '', '', '个', '', null, '', '', '', '', '0', '63', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('569', '17', '商品2', '', null, '200.000000', 'sp2', '', '', '只', '', '5.000000', '5.000000', '5.000000', '5.000000', null, null, null, '[{\"basic\":{\"Unit\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\"}}]', '', '', '', '', '0', '63', '0');
|
INSERT INTO `jsh_material` VALUES ('569', '17', '商品2', '', '200.000000', 'sp2', '', '', '只', '', null, '', '', '', '', '0', '63', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('570', '17', '商品3', '', null, '300.000000', 'sp3', '', '', '个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\"}}]', '', '', '', '', '0', '63', '0');
|
INSERT INTO `jsh_material` VALUES ('570', '17', '商品3', '', '300.000000', 'sp3', '', '', '个', '', null, '', '', '', '', '0', '63', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('571', null, '商品4', '', null, null, 'sp4', '', '', '', '', null, null, null, null, '15', '个', '箱', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"3\",\"LowPrice\":\"2\",\"PresetPriceOne\":\"2\",\"PresetPriceTwo\":\"2\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"36\",\"LowPrice\":\"24\",\"PresetPriceOne\":\"24\",\"PresetPriceTwo\":\"24\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('571', null, '商品4', '', null, 'sp4', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('572', null, '234234', '', null, null, '234234', '', '', '', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('572', null, '234234', '', null, '234234', '', '', '', '', null, '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('573', null, '12312', '', null, null, '12', '', '', '', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('573', null, '12312', '', null, '12', '', '', '', '', null, '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('574', null, '商品5', '', null, null, '213qw', '', '', '个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('574', null, '商品5', '', null, '213qw', '', '', '个', '', null, '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('575', null, '商品6', '', null, null, 'sp6', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('575', null, '商品6', '', null, 'sp6', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('576', null, '商品7', '', null, null, 'sp7', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('576', null, '商品7', '', null, 'sp7', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('577', null, '商品8', '', null, null, 'sp8', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\"}}]', '', '', '', '', '0', '63', '0');
|
INSERT INTO `jsh_material` VALUES ('577', null, '商品8', '', null, 'sp8', '', '', '', '', '15', '', '', '', '', '0', '63', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('578', '17', '商品9', '', null, null, 'sp9', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('578', '17', '商品9', '', null, 'sp9', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('579', null, '商品17', '', null, null, 'sp17', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\"}}]', '', '', '', '', '0', '63', '0');
|
INSERT INTO `jsh_material` VALUES ('579', null, '商品17', '', null, 'sp17', '', '', '', '', '15', '', '', '', '', '0', '63', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('580', null, '15', '', null, null, '15', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('580', null, '15', '', null, '15', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('581', null, '16', '', null, null, '16', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('581', null, '16', '', null, '16', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('582', null, '商品20', '', null, null, 'sp2', '', '', '个', '', null, null, null, null, null, '', '', '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('582', null, '商品20', '', null, 'sp2', '', '', '个', '', null, '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('583', null, 'wer', '', null, null, 'rqwe', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('583', null, 'wer', '', null, 'rqwe', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('584', null, 'sfds', '', null, null, 'a2233', '12', '2', 'ge', '', '1.000000', '2.000000', '3.000000', '4.000000', null, '', '', '[{\"basic\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('584', null, 'sfds', '', null, 'a2233', '12', '2', 'ge', '', null, '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('585', null, 'asdf', '', null, null, 'adsfasdf', '', '', '', '', null, null, null, null, '15', '', '', '[{\"basic\":{\"Unit\":\"个\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"箱\",\"RetailPrice\":\"\",\"LowPrice\":\"\",\"PresetPriceOne\":\"\",\"PresetPriceTwo\":\"\"}}]', '', '', '', '', '0', '63', '1');
|
INSERT INTO `jsh_material` VALUES ('585', null, 'asdf', '', null, 'adsfasdf', '', '', '', '', '15', '', '', '', '', '0', '63', '1');
|
||||||
INSERT INTO `jsh_material` VALUES ('586', null, '序列号商品测试', '', null, null, 'xlh123', '', '', '个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"EnableSerialNumber\":\"1\"}},{\"other\":{\"Unit\":\"\"}}]', '', '', '', '', '1', '63', '0');
|
INSERT INTO `jsh_material` VALUES ('586', null, '序列号商品测试', '', null, 'xlh123', '', '', '个', '', null, '', '', '', '', '1', '63', '0');
|
||||||
INSERT INTO `jsh_material` VALUES ('587', null, '商品test1', '', null, null, '', 'test1', '', '个', '', null, null, null, null, null, null, null, '[{\"basic\":{\"Unit\":\"\",\"EnableSerialNumber\":\"0\"}},{\"other\":{\"Unit\":\"\"}}]', '', '', '', '', '0', '63', '0');
|
INSERT INTO `jsh_material` VALUES ('587', null, '商品test1', '', null, '', 'test1', '', '个', '', null, '', '', '', '', '0', '63', '0');
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for jsh_materialcategory
|
-- Table structure for jsh_materialcategory
|
||||||
|
|||||||
@@ -771,3 +771,17 @@ INSERT INTO `jsh_functions` VALUES (245,'000107', '插件管理', '0001', '/page
|
|||||||
-- 给商品扩展表增加 是否默认基础单位 字段
|
-- 给商品扩展表增加 是否默认基础单位 字段
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
alter table jsh_material_extend add default_flag VARCHAR(1) DEFAULT 1 COMMENT '是否为默认单位,1是,0否' after low_decimal;
|
alter table jsh_material_extend add default_flag VARCHAR(1) DEFAULT 1 COMMENT '是否为默认单位,1是,0否' after low_decimal;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 时间:2020年05月04日
|
||||||
|
-- by jishenghua
|
||||||
|
-- 删除商品表的多价格相关的字段
|
||||||
|
-- ----------------------------
|
||||||
|
alter table jsh_material drop Packing;
|
||||||
|
alter table jsh_material drop RetailPrice;
|
||||||
|
alter table jsh_material drop LowPrice;
|
||||||
|
alter table jsh_material drop PresetPriceOne;
|
||||||
|
alter table jsh_material drop PresetPriceTwo;
|
||||||
|
alter table jsh_material drop FirstOutUnit;
|
||||||
|
alter table jsh_material drop FirstInUnit;
|
||||||
|
alter table jsh_material drop PriceStrategy;
|
||||||
@@ -331,10 +331,10 @@ public class MaterialController {
|
|||||||
objs[2] = m.getModel();
|
objs[2] = m.getModel();
|
||||||
objs[3] = m.getSafetystock() == null? "" : m.getSafetystock().toString();
|
objs[3] = m.getSafetystock() == null? "" : m.getSafetystock().toString();
|
||||||
objs[4] = m.getUnit();
|
objs[4] = m.getUnit();
|
||||||
objs[5] = m.getRetailprice() == null ? "" : m.getRetailprice().toString();
|
objs[5] = "";
|
||||||
objs[6] = m.getLowprice() == null ? "" : m.getLowprice().toString();
|
objs[6] = "";
|
||||||
objs[7] = m.getPresetpriceone() == null ? "" : m.getPresetpriceone().toString();
|
objs[7] = "";
|
||||||
objs[8] = m.getPresetpricetwo() == null ? "" : m.getPresetpricetwo().toString();
|
objs[8] = "";
|
||||||
objs[9] = m.getRemark();
|
objs[9] = m.getRemark();
|
||||||
objs[10] = m.getEnabled() ? "启用" : "禁用";
|
objs[10] = m.getEnabled() ? "启用" : "禁用";
|
||||||
objects.add(objs);
|
objects.add(objs);
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ public class DepotItemVo4WithInfoEx extends DepotItem{
|
|||||||
|
|
||||||
private String priceStrategy;
|
private String priceStrategy;
|
||||||
|
|
||||||
|
private BigDecimal purchaseDecimal;
|
||||||
|
|
||||||
private String barCode;
|
private String barCode;
|
||||||
|
|
||||||
public Long getMId() {
|
public Long getMId() {
|
||||||
@@ -166,6 +168,14 @@ public class DepotItemVo4WithInfoEx extends DepotItem{
|
|||||||
this.priceStrategy = priceStrategy;
|
this.priceStrategy = priceStrategy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPurchaseDecimal() {
|
||||||
|
return purchaseDecimal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPurchaseDecimal(BigDecimal purchaseDecimal) {
|
||||||
|
this.purchaseDecimal = purchaseDecimal;
|
||||||
|
}
|
||||||
|
|
||||||
public String getBarCode() {
|
public String getBarCode() {
|
||||||
return barCode;
|
return barCode;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,834 +3,182 @@ package com.jsh.erp.datasource.entities;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
public class Material {
|
public class Material {
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Id
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.CategoryId
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private Long categoryid;
|
private Long categoryid;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Name
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Mfrs
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String mfrs;
|
private String mfrs;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Packing
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private BigDecimal packing;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.SafetyStock
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private BigDecimal safetystock;
|
private BigDecimal safetystock;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Model
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String model;
|
private String model;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Standard
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String standard;
|
private String standard;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Color
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String color;
|
private String color;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Unit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String unit;
|
private String unit;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Remark
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.RetailPrice
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private BigDecimal retailprice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.LowPrice
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private BigDecimal lowprice;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.PresetPriceOne
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private BigDecimal presetpriceone;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.PresetPriceTwo
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private BigDecimal presetpricetwo;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.UnitId
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private Long unitid;
|
private Long unitid;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.FirstOutUnit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String firstoutunit;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.FirstInUnit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String firstinunit;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.PriceStrategy
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String pricestrategy;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.Enabled
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private Boolean enabled;
|
private Boolean enabled;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.OtherField1
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String otherfield1;
|
private String otherfield1;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.OtherField2
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String otherfield2;
|
private String otherfield2;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.OtherField3
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String otherfield3;
|
private String otherfield3;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.enableSerialNumber
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String enableserialnumber;
|
private String enableserialnumber;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.tenant_id
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private Long tenantId;
|
private Long tenantId;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column jsh_material.delete_Flag
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
private String deleteFlag;
|
private String deleteFlag;
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Id
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Id
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Id
|
|
||||||
*
|
|
||||||
* @param id the value for jsh_material.Id
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setId(Long id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.CategoryId
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.CategoryId
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public Long getCategoryid() {
|
public Long getCategoryid() {
|
||||||
return categoryid;
|
return categoryid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.CategoryId
|
|
||||||
*
|
|
||||||
* @param categoryid the value for jsh_material.CategoryId
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setCategoryid(Long categoryid) {
|
public void setCategoryid(Long categoryid) {
|
||||||
this.categoryid = categoryid;
|
this.categoryid = categoryid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Name
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Name
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Name
|
|
||||||
*
|
|
||||||
* @param name the value for jsh_material.Name
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name == null ? null : name.trim();
|
this.name = name == null ? null : name.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Mfrs
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Mfrs
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getMfrs() {
|
public String getMfrs() {
|
||||||
return mfrs;
|
return mfrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Mfrs
|
|
||||||
*
|
|
||||||
* @param mfrs the value for jsh_material.Mfrs
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setMfrs(String mfrs) {
|
public void setMfrs(String mfrs) {
|
||||||
this.mfrs = mfrs == null ? null : mfrs.trim();
|
this.mfrs = mfrs == null ? null : mfrs.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Packing
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Packing
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public BigDecimal getPacking() {
|
|
||||||
return packing;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Packing
|
|
||||||
*
|
|
||||||
* @param packing the value for jsh_material.Packing
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setPacking(BigDecimal packing) {
|
|
||||||
this.packing = packing;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.SafetyStock
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.SafetyStock
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public BigDecimal getSafetystock() {
|
public BigDecimal getSafetystock() {
|
||||||
return safetystock;
|
return safetystock;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.SafetyStock
|
|
||||||
*
|
|
||||||
* @param safetystock the value for jsh_material.SafetyStock
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setSafetystock(BigDecimal safetystock) {
|
public void setSafetystock(BigDecimal safetystock) {
|
||||||
this.safetystock = safetystock;
|
this.safetystock = safetystock;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Model
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Model
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getModel() {
|
public String getModel() {
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Model
|
|
||||||
*
|
|
||||||
* @param model the value for jsh_material.Model
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setModel(String model) {
|
public void setModel(String model) {
|
||||||
this.model = model == null ? null : model.trim();
|
this.model = model == null ? null : model.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Standard
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Standard
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getStandard() {
|
public String getStandard() {
|
||||||
return standard;
|
return standard;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Standard
|
|
||||||
*
|
|
||||||
* @param standard the value for jsh_material.Standard
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setStandard(String standard) {
|
public void setStandard(String standard) {
|
||||||
this.standard = standard == null ? null : standard.trim();
|
this.standard = standard == null ? null : standard.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Color
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Color
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getColor() {
|
public String getColor() {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Color
|
|
||||||
*
|
|
||||||
* @param color the value for jsh_material.Color
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setColor(String color) {
|
public void setColor(String color) {
|
||||||
this.color = color == null ? null : color.trim();
|
this.color = color == null ? null : color.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Unit
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Unit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getUnit() {
|
public String getUnit() {
|
||||||
return unit;
|
return unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Unit
|
|
||||||
*
|
|
||||||
* @param unit the value for jsh_material.Unit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setUnit(String unit) {
|
public void setUnit(String unit) {
|
||||||
this.unit = unit == null ? null : unit.trim();
|
this.unit = unit == null ? null : unit.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Remark
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Remark
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getRemark() {
|
public String getRemark() {
|
||||||
return remark;
|
return remark;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Remark
|
|
||||||
*
|
|
||||||
* @param remark the value for jsh_material.Remark
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setRemark(String remark) {
|
public void setRemark(String remark) {
|
||||||
this.remark = remark == null ? null : remark.trim();
|
this.remark = remark == null ? null : remark.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.RetailPrice
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.RetailPrice
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public BigDecimal getRetailprice() {
|
|
||||||
return retailprice;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.RetailPrice
|
|
||||||
*
|
|
||||||
* @param retailprice the value for jsh_material.RetailPrice
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setRetailprice(BigDecimal retailprice) {
|
|
||||||
this.retailprice = retailprice;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.LowPrice
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.LowPrice
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public BigDecimal getLowprice() {
|
|
||||||
return lowprice;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.LowPrice
|
|
||||||
*
|
|
||||||
* @param lowprice the value for jsh_material.LowPrice
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setLowprice(BigDecimal lowprice) {
|
|
||||||
this.lowprice = lowprice;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.PresetPriceOne
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.PresetPriceOne
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public BigDecimal getPresetpriceone() {
|
|
||||||
return presetpriceone;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.PresetPriceOne
|
|
||||||
*
|
|
||||||
* @param presetpriceone the value for jsh_material.PresetPriceOne
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setPresetpriceone(BigDecimal presetpriceone) {
|
|
||||||
this.presetpriceone = presetpriceone;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.PresetPriceTwo
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.PresetPriceTwo
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public BigDecimal getPresetpricetwo() {
|
|
||||||
return presetpricetwo;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.PresetPriceTwo
|
|
||||||
*
|
|
||||||
* @param presetpricetwo the value for jsh_material.PresetPriceTwo
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setPresetpricetwo(BigDecimal presetpricetwo) {
|
|
||||||
this.presetpricetwo = presetpricetwo;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.UnitId
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.UnitId
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public Long getUnitid() {
|
public Long getUnitid() {
|
||||||
return unitid;
|
return unitid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.UnitId
|
|
||||||
*
|
|
||||||
* @param unitid the value for jsh_material.UnitId
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setUnitid(Long unitid) {
|
public void setUnitid(Long unitid) {
|
||||||
this.unitid = unitid;
|
this.unitid = unitid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.FirstOutUnit
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.FirstOutUnit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getFirstoutunit() {
|
|
||||||
return firstoutunit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.FirstOutUnit
|
|
||||||
*
|
|
||||||
* @param firstoutunit the value for jsh_material.FirstOutUnit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setFirstoutunit(String firstoutunit) {
|
|
||||||
this.firstoutunit = firstoutunit == null ? null : firstoutunit.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.FirstInUnit
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.FirstInUnit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getFirstinunit() {
|
|
||||||
return firstinunit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.FirstInUnit
|
|
||||||
*
|
|
||||||
* @param firstinunit the value for jsh_material.FirstInUnit
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setFirstinunit(String firstinunit) {
|
|
||||||
this.firstinunit = firstinunit == null ? null : firstinunit.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.PriceStrategy
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.PriceStrategy
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getPricestrategy() {
|
|
||||||
return pricestrategy;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.PriceStrategy
|
|
||||||
*
|
|
||||||
* @param pricestrategy the value for jsh_material.PriceStrategy
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setPricestrategy(String pricestrategy) {
|
|
||||||
this.pricestrategy = pricestrategy == null ? null : pricestrategy.trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.Enabled
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.Enabled
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public Boolean getEnabled() {
|
public Boolean getEnabled() {
|
||||||
return enabled;
|
return enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.Enabled
|
|
||||||
*
|
|
||||||
* @param enabled the value for jsh_material.Enabled
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setEnabled(Boolean enabled) {
|
public void setEnabled(Boolean enabled) {
|
||||||
this.enabled = enabled;
|
this.enabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.OtherField1
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.OtherField1
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getOtherfield1() {
|
public String getOtherfield1() {
|
||||||
return otherfield1;
|
return otherfield1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.OtherField1
|
|
||||||
*
|
|
||||||
* @param otherfield1 the value for jsh_material.OtherField1
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setOtherfield1(String otherfield1) {
|
public void setOtherfield1(String otherfield1) {
|
||||||
this.otherfield1 = otherfield1 == null ? null : otherfield1.trim();
|
this.otherfield1 = otherfield1 == null ? null : otherfield1.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.OtherField2
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.OtherField2
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getOtherfield2() {
|
public String getOtherfield2() {
|
||||||
return otherfield2;
|
return otherfield2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.OtherField2
|
|
||||||
*
|
|
||||||
* @param otherfield2 the value for jsh_material.OtherField2
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setOtherfield2(String otherfield2) {
|
public void setOtherfield2(String otherfield2) {
|
||||||
this.otherfield2 = otherfield2 == null ? null : otherfield2.trim();
|
this.otherfield2 = otherfield2 == null ? null : otherfield2.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.OtherField3
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.OtherField3
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getOtherfield3() {
|
public String getOtherfield3() {
|
||||||
return otherfield3;
|
return otherfield3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.OtherField3
|
|
||||||
*
|
|
||||||
* @param otherfield3 the value for jsh_material.OtherField3
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setOtherfield3(String otherfield3) {
|
public void setOtherfield3(String otherfield3) {
|
||||||
this.otherfield3 = otherfield3 == null ? null : otherfield3.trim();
|
this.otherfield3 = otherfield3 == null ? null : otherfield3.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.enableSerialNumber
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.enableSerialNumber
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getEnableserialnumber() {
|
public String getEnableserialnumber() {
|
||||||
return enableserialnumber;
|
return enableserialnumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.enableSerialNumber
|
|
||||||
*
|
|
||||||
* @param enableserialnumber the value for jsh_material.enableSerialNumber
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setEnableserialnumber(String enableserialnumber) {
|
public void setEnableserialnumber(String enableserialnumber) {
|
||||||
this.enableserialnumber = enableserialnumber == null ? null : enableserialnumber.trim();
|
this.enableserialnumber = enableserialnumber == null ? null : enableserialnumber.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.tenant_id
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.tenant_id
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public Long getTenantId() {
|
public Long getTenantId() {
|
||||||
return tenantId;
|
return tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.tenant_id
|
|
||||||
*
|
|
||||||
* @param tenantId the value for jsh_material.tenant_id
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setTenantId(Long tenantId) {
|
public void setTenantId(Long tenantId) {
|
||||||
this.tenantId = tenantId;
|
this.tenantId = tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column jsh_material.delete_Flag
|
|
||||||
*
|
|
||||||
* @return the value of jsh_material.delete_Flag
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getDeleteFlag() {
|
public String getDeleteFlag() {
|
||||||
return deleteFlag;
|
return deleteFlag;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column jsh_material.delete_Flag
|
|
||||||
*
|
|
||||||
* @param deleteFlag the value for jsh_material.delete_Flag
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setDeleteFlag(String deleteFlag) {
|
public void setDeleteFlag(String deleteFlag) {
|
||||||
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,118 +5,46 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class MaterialExample {
|
public class MaterialExample {
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
protected String orderByClause;
|
protected String orderByClause;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
protected boolean distinct;
|
protected boolean distinct;
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
protected List<Criteria> oredCriteria;
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public MaterialExample() {
|
public MaterialExample() {
|
||||||
oredCriteria = new ArrayList<Criteria>();
|
oredCriteria = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setOrderByClause(String orderByClause) {
|
public void setOrderByClause(String orderByClause) {
|
||||||
this.orderByClause = orderByClause;
|
this.orderByClause = orderByClause;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public String getOrderByClause() {
|
public String getOrderByClause() {
|
||||||
return orderByClause;
|
return orderByClause;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void setDistinct(boolean distinct) {
|
public void setDistinct(boolean distinct) {
|
||||||
this.distinct = distinct;
|
this.distinct = distinct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public boolean isDistinct() {
|
public boolean isDistinct() {
|
||||||
return distinct;
|
return distinct;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public List<Criteria> getOredCriteria() {
|
public List<Criteria> getOredCriteria() {
|
||||||
return oredCriteria;
|
return oredCriteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void or(Criteria criteria) {
|
public void or(Criteria criteria) {
|
||||||
oredCriteria.add(criteria);
|
oredCriteria.add(criteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public Criteria or() {
|
public Criteria or() {
|
||||||
Criteria criteria = createCriteriaInternal();
|
Criteria criteria = createCriteriaInternal();
|
||||||
oredCriteria.add(criteria);
|
oredCriteria.add(criteria);
|
||||||
return criteria;
|
return criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public Criteria createCriteria() {
|
public Criteria createCriteria() {
|
||||||
Criteria criteria = createCriteriaInternal();
|
Criteria criteria = createCriteriaInternal();
|
||||||
if (oredCriteria.size() == 0) {
|
if (oredCriteria.size() == 0) {
|
||||||
@@ -125,41 +53,23 @@ public class MaterialExample {
|
|||||||
return criteria;
|
return criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
protected Criteria createCriteriaInternal() {
|
protected Criteria createCriteriaInternal() {
|
||||||
Criteria criteria = new Criteria();
|
Criteria criteria = new Criteria();
|
||||||
return criteria;
|
return criteria;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public void clear() {
|
public void clear() {
|
||||||
oredCriteria.clear();
|
oredCriteria.clear();
|
||||||
orderByClause = null;
|
orderByClause = null;
|
||||||
distinct = false;
|
distinct = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This class was generated by MyBatis Generator.
|
|
||||||
* This class corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
protected abstract static class GeneratedCriteria {
|
protected abstract static class GeneratedCriteria {
|
||||||
protected List<Criterion> criteria;
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
protected GeneratedCriteria() {
|
protected GeneratedCriteria() {
|
||||||
super();
|
super();
|
||||||
criteria = new ArrayList<Criterion>();
|
criteria = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
@@ -455,66 +365,6 @@ public class MaterialExample {
|
|||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andPackingIsNull() {
|
|
||||||
addCriterion("Packing is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingIsNotNull() {
|
|
||||||
addCriterion("Packing is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("Packing =", value, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingNotEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("Packing <>", value, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingGreaterThan(BigDecimal value) {
|
|
||||||
addCriterion("Packing >", value, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingGreaterThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("Packing >=", value, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingLessThan(BigDecimal value) {
|
|
||||||
addCriterion("Packing <", value, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingLessThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("Packing <=", value, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("Packing in", values, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingNotIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("Packing not in", values, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("Packing between", value1, value2, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPackingNotBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("Packing not between", value1, value2, "packing");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andSafetystockIsNull() {
|
public Criteria andSafetystockIsNull() {
|
||||||
addCriterion("SafetyStock is null");
|
addCriterion("SafetyStock is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
@@ -925,246 +775,6 @@ public class MaterialExample {
|
|||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andRetailpriceIsNull() {
|
|
||||||
addCriterion("RetailPrice is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceIsNotNull() {
|
|
||||||
addCriterion("RetailPrice is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("RetailPrice =", value, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceNotEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("RetailPrice <>", value, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceGreaterThan(BigDecimal value) {
|
|
||||||
addCriterion("RetailPrice >", value, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceGreaterThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("RetailPrice >=", value, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceLessThan(BigDecimal value) {
|
|
||||||
addCriterion("RetailPrice <", value, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceLessThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("RetailPrice <=", value, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("RetailPrice in", values, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceNotIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("RetailPrice not in", values, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("RetailPrice between", value1, value2, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andRetailpriceNotBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("RetailPrice not between", value1, value2, "retailprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceIsNull() {
|
|
||||||
addCriterion("LowPrice is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceIsNotNull() {
|
|
||||||
addCriterion("LowPrice is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("LowPrice =", value, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceNotEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("LowPrice <>", value, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceGreaterThan(BigDecimal value) {
|
|
||||||
addCriterion("LowPrice >", value, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceGreaterThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("LowPrice >=", value, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceLessThan(BigDecimal value) {
|
|
||||||
addCriterion("LowPrice <", value, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceLessThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("LowPrice <=", value, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("LowPrice in", values, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceNotIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("LowPrice not in", values, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("LowPrice between", value1, value2, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andLowpriceNotBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("LowPrice not between", value1, value2, "lowprice");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneIsNull() {
|
|
||||||
addCriterion("PresetPriceOne is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneIsNotNull() {
|
|
||||||
addCriterion("PresetPriceOne is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceOne =", value, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneNotEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceOne <>", value, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneGreaterThan(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceOne >", value, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneGreaterThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceOne >=", value, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneLessThan(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceOne <", value, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneLessThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceOne <=", value, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("PresetPriceOne in", values, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneNotIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("PresetPriceOne not in", values, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("PresetPriceOne between", value1, value2, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpriceoneNotBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("PresetPriceOne not between", value1, value2, "presetpriceone");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoIsNull() {
|
|
||||||
addCriterion("PresetPriceTwo is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoIsNotNull() {
|
|
||||||
addCriterion("PresetPriceTwo is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceTwo =", value, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoNotEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceTwo <>", value, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoGreaterThan(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceTwo >", value, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoGreaterThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceTwo >=", value, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoLessThan(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceTwo <", value, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoLessThanOrEqualTo(BigDecimal value) {
|
|
||||||
addCriterion("PresetPriceTwo <=", value, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("PresetPriceTwo in", values, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoNotIn(List<BigDecimal> values) {
|
|
||||||
addCriterion("PresetPriceTwo not in", values, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("PresetPriceTwo between", value1, value2, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPresetpricetwoNotBetween(BigDecimal value1, BigDecimal value2) {
|
|
||||||
addCriterion("PresetPriceTwo not between", value1, value2, "presetpricetwo");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andUnitidIsNull() {
|
public Criteria andUnitidIsNull() {
|
||||||
addCriterion("UnitId is null");
|
addCriterion("UnitId is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
@@ -1225,216 +835,6 @@ public class MaterialExample {
|
|||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andFirstoutunitIsNull() {
|
|
||||||
addCriterion("FirstOutUnit is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitIsNotNull() {
|
|
||||||
addCriterion("FirstOutUnit is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitEqualTo(String value) {
|
|
||||||
addCriterion("FirstOutUnit =", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitNotEqualTo(String value) {
|
|
||||||
addCriterion("FirstOutUnit <>", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitGreaterThan(String value) {
|
|
||||||
addCriterion("FirstOutUnit >", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("FirstOutUnit >=", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitLessThan(String value) {
|
|
||||||
addCriterion("FirstOutUnit <", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("FirstOutUnit <=", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitLike(String value) {
|
|
||||||
addCriterion("FirstOutUnit like", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitNotLike(String value) {
|
|
||||||
addCriterion("FirstOutUnit not like", value, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitIn(List<String> values) {
|
|
||||||
addCriterion("FirstOutUnit in", values, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitNotIn(List<String> values) {
|
|
||||||
addCriterion("FirstOutUnit not in", values, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitBetween(String value1, String value2) {
|
|
||||||
addCriterion("FirstOutUnit between", value1, value2, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstoutunitNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("FirstOutUnit not between", value1, value2, "firstoutunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitIsNull() {
|
|
||||||
addCriterion("FirstInUnit is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitIsNotNull() {
|
|
||||||
addCriterion("FirstInUnit is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitEqualTo(String value) {
|
|
||||||
addCriterion("FirstInUnit =", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitNotEqualTo(String value) {
|
|
||||||
addCriterion("FirstInUnit <>", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitGreaterThan(String value) {
|
|
||||||
addCriterion("FirstInUnit >", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("FirstInUnit >=", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitLessThan(String value) {
|
|
||||||
addCriterion("FirstInUnit <", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("FirstInUnit <=", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitLike(String value) {
|
|
||||||
addCriterion("FirstInUnit like", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitNotLike(String value) {
|
|
||||||
addCriterion("FirstInUnit not like", value, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitIn(List<String> values) {
|
|
||||||
addCriterion("FirstInUnit in", values, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitNotIn(List<String> values) {
|
|
||||||
addCriterion("FirstInUnit not in", values, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitBetween(String value1, String value2) {
|
|
||||||
addCriterion("FirstInUnit between", value1, value2, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andFirstinunitNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("FirstInUnit not between", value1, value2, "firstinunit");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyIsNull() {
|
|
||||||
addCriterion("PriceStrategy is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyIsNotNull() {
|
|
||||||
addCriterion("PriceStrategy is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyEqualTo(String value) {
|
|
||||||
addCriterion("PriceStrategy =", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyNotEqualTo(String value) {
|
|
||||||
addCriterion("PriceStrategy <>", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyGreaterThan(String value) {
|
|
||||||
addCriterion("PriceStrategy >", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("PriceStrategy >=", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyLessThan(String value) {
|
|
||||||
addCriterion("PriceStrategy <", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("PriceStrategy <=", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyLike(String value) {
|
|
||||||
addCriterion("PriceStrategy like", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyNotLike(String value) {
|
|
||||||
addCriterion("PriceStrategy not like", value, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyIn(List<String> values) {
|
|
||||||
addCriterion("PriceStrategy in", values, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyNotIn(List<String> values) {
|
|
||||||
addCriterion("PriceStrategy not in", values, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyBetween(String value1, String value2) {
|
|
||||||
addCriterion("PriceStrategy between", value1, value2, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andPricestrategyNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("PriceStrategy not between", value1, value2, "pricestrategy");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnabledIsNull() {
|
public Criteria andEnabledIsNull() {
|
||||||
addCriterion("Enabled is null");
|
addCriterion("Enabled is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
@@ -1906,25 +1306,12 @@ public class MaterialExample {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This class was generated by MyBatis Generator.
|
|
||||||
* This class corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated do_not_delete_during_merge
|
|
||||||
*/
|
|
||||||
public static class Criteria extends GeneratedCriteria {
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
|
||||||
protected Criteria() {
|
protected Criteria() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This class was generated by MyBatis Generator.
|
|
||||||
* This class corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
public static class Criterion {
|
public static class Criterion {
|
||||||
private String condition;
|
private String condition;
|
||||||
|
|
||||||
|
|||||||
@@ -6,91 +6,25 @@ import java.util.List;
|
|||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
public interface MaterialMapper {
|
public interface MaterialMapper {
|
||||||
/**
|
long countByExample(MaterialExample example);
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int countByExample(MaterialExample example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int deleteByExample(MaterialExample example);
|
int deleteByExample(MaterialExample example);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int deleteByPrimaryKey(Long id);
|
int deleteByPrimaryKey(Long id);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int insert(Material record);
|
int insert(Material record);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int insertSelective(Material record);
|
int insertSelective(Material record);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
List<Material> selectByExample(MaterialExample example);
|
List<Material> selectByExample(MaterialExample example);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
Material selectByPrimaryKey(Long id);
|
Material selectByPrimaryKey(Long id);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int updateByExampleSelective(@Param("record") Material record, @Param("example") MaterialExample example);
|
int updateByExampleSelective(@Param("record") Material record, @Param("example") MaterialExample example);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int updateByExample(@Param("record") Material record, @Param("example") MaterialExample example);
|
int updateByExample(@Param("record") Material record, @Param("example") MaterialExample example);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKeySelective(Material record);
|
int updateByPrimaryKeySelective(Material record);
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table jsh_material
|
|
||||||
*
|
|
||||||
* @mbggenerated
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKey(Material record);
|
int updateByPrimaryKey(Material record);
|
||||||
}
|
}
|
||||||
@@ -47,10 +47,6 @@ public interface MaterialMapperEx {
|
|||||||
|
|
||||||
int findBySelectWithBarCodeCount(@Param("q") String q);
|
int findBySelectWithBarCodeCount(@Param("q") String q);
|
||||||
|
|
||||||
int updatePriceNullByPrimaryKey(Long id);
|
|
||||||
|
|
||||||
int updateUnitIdNullByPrimaryKey(Long id);
|
|
||||||
|
|
||||||
List<MaterialVo4Unit> findByAll(
|
List<MaterialVo4Unit> findByAll(
|
||||||
@Param("name") String name,
|
@Param("name") String name,
|
||||||
@Param("model") String model,
|
@Param("model") String model,
|
||||||
|
|||||||
@@ -186,12 +186,6 @@ public class MaterialService {
|
|||||||
material.setId(id);
|
material.setId(id);
|
||||||
try{
|
try{
|
||||||
materialMapper.updateByPrimaryKeySelective(material);
|
materialMapper.updateByPrimaryKeySelective(material);
|
||||||
Long unitId = material.getUnitid();
|
|
||||||
if(unitId != null) {
|
|
||||||
materialMapperEx.updatePriceNullByPrimaryKey(id); //将价格置空
|
|
||||||
} else {
|
|
||||||
materialMapperEx.updateUnitIdNullByPrimaryKey(id); //将多单位置空
|
|
||||||
}
|
|
||||||
JSONObject mObj = JSON.parseObject(beanJson);
|
JSONObject mObj = JSON.parseObject(beanJson);
|
||||||
materialExtendService.saveDetials(mObj.getString("inserted"),mObj.getString("deleted"),mObj.getString("updated"),mObj.getString("sortList"),id);
|
materialExtendService.saveDetials(mObj.getString("inserted"),mObj.getString("deleted"),mObj.getString("updated"),mObj.getString("sortList"),id);
|
||||||
if(mObj.get("stock")!=null) {
|
if(mObj.get("stock")!=null) {
|
||||||
@@ -435,8 +429,8 @@ public class MaterialService {
|
|||||||
String manyUnitAll = unit + "," + manyUnit + "(1:" + ratio + ")";
|
String manyUnitAll = unit + "," + manyUnit + "(1:" + ratio + ")";
|
||||||
Long unitId = unitService.getUnitIdByName(manyUnitAll);
|
Long unitId = unitService.getUnitIdByName(manyUnitAll);
|
||||||
m.setUnitid(unitId);
|
m.setUnitid(unitId);
|
||||||
m.setFirstoutunit(unit); //首选出库单位
|
//m.setFirstoutunit(unit); //首选出库单位
|
||||||
m.setFirstinunit(manyUnit); //首选入库单位
|
//m.setFirstinunit(manyUnit); //首选入库单位
|
||||||
JSONArray arr = new JSONArray();
|
JSONArray arr = new JSONArray();
|
||||||
JSONObject basicObj = new JSONObject();
|
JSONObject basicObj = new JSONObject();
|
||||||
basicObj.put("Unit", unit);
|
basicObj.put("Unit", unit);
|
||||||
@@ -456,13 +450,13 @@ public class MaterialService {
|
|||||||
otherObjEx.put("other", otherObj);
|
otherObjEx.put("other", otherObj);
|
||||||
arr.add(basicObjEx);
|
arr.add(basicObjEx);
|
||||||
arr.add(otherObjEx);
|
arr.add(otherObjEx);
|
||||||
m.setPricestrategy(arr.toJSONString());
|
//m.setPricestrategy(arr.toJSONString());
|
||||||
} else {
|
} else {
|
||||||
m.setUnit(unit);
|
m.setUnit(unit);
|
||||||
m.setRetailprice(parseBigDecimalEx(retailPrice));
|
//m.setRetailprice(parseBigDecimalEx(retailPrice));
|
||||||
m.setLowprice(parseBigDecimalEx(lowPrice));
|
//m.setLowprice(parseBigDecimalEx(lowPrice));
|
||||||
m.setPresetpriceone(parseBigDecimalEx(presetpriceone));
|
//m.setPresetpriceone(parseBigDecimalEx(presetpriceone));
|
||||||
m.setPresetpricetwo(parseBigDecimalEx(presetpricetwo));
|
//m.setPresetpricetwo(parseBigDecimalEx(presetpricetwo));
|
||||||
}
|
}
|
||||||
String enabled = ExcelUtils.getContent(src, i, 12); //状态
|
String enabled = ExcelUtils.getContent(src, i, 12); //状态
|
||||||
m.setEnabled(enabled.equals("1")? true: false);
|
m.setEnabled(enabled.equals("1")? true: false);
|
||||||
|
|||||||
@@ -38,8 +38,7 @@
|
|||||||
<result column="MaterialUnit" jdbcType="VARCHAR" property="MaterialUnit" />
|
<result column="MaterialUnit" jdbcType="VARCHAR" property="MaterialUnit" />
|
||||||
<result column="UName" jdbcType="VARCHAR" property="UName" />
|
<result column="UName" jdbcType="VARCHAR" property="UName" />
|
||||||
<result column="MColor" jdbcType="VARCHAR" property="MColor" />
|
<result column="MColor" jdbcType="VARCHAR" property="MColor" />
|
||||||
<result column="PresetPriceOne" jdbcType="DECIMAL" property="presetPriceOne" />
|
<result column="purchase_decimal" jdbcType="DECIMAL" property="purchaseDecimal" />
|
||||||
<result column="PriceStrategy" jdbcType="VARCHAR" property="priceStrategy" />
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="ResultStockWarningCount" type="com.jsh.erp.datasource.vo.DepotItemStockWarningCount">
|
<resultMap id="ResultStockWarningCount" type="com.jsh.erp.datasource.vo.DepotItemStockWarningCount">
|
||||||
@@ -149,11 +148,13 @@
|
|||||||
|
|
||||||
<select id="findByAll" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultByMaterial">
|
<select id="findByAll" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultByMaterial">
|
||||||
select m.id MId, m.Name MName, m.Model MModel, m.Unit MaterialUnit, m.Color MColor,
|
select m.id MId, m.Name MName, m.Model MModel, m.Unit MaterialUnit, m.Color MColor,
|
||||||
m.PresetPriceOne, m.PriceStrategy, u.UName UName
|
me.purchase_decimal, u.UName UName
|
||||||
from jsh_depotitem di
|
from jsh_depotitem di
|
||||||
inner join jsh_material m on di.MaterialId=m.id and ifnull(m.delete_Flag,'0') !='1'
|
inner join jsh_material m on di.MaterialId=m.id and ifnull(m.delete_Flag,'0') !='1'
|
||||||
|
left join jsh_material_extend me on me.id=di.material_extend_id and ifnull(me.delete_Flag,'0') !='1'
|
||||||
left join jsh_unit u on m.UnitId=u.id and ifnull(u.delete_Flag,'0') !='1'
|
left join jsh_unit u on m.UnitId=u.id and ifnull(u.delete_Flag,'0') !='1'
|
||||||
where 1=1
|
where 1=1
|
||||||
|
and me.default_flag=1
|
||||||
<if test="headIds != null">
|
<if test="headIds != null">
|
||||||
and di.HeaderId in (${headIds})
|
and di.HeaderId in (${headIds})
|
||||||
</if>
|
</if>
|
||||||
@@ -161,7 +162,7 @@
|
|||||||
and di.MaterialId in (${materialIds})
|
and di.MaterialId in (${materialIds})
|
||||||
</if>
|
</if>
|
||||||
and ifnull(di.delete_Flag,'0') !='1'
|
and ifnull(di.delete_Flag,'0') !='1'
|
||||||
group by m.id,m.Name, m.Model, m.Unit, m.Color, m.PresetPriceOne, m.PriceStrategy, u.UName
|
group by m.id,m.Name, m.Model, m.Unit, m.Color, me.purchase_decimal, u.UName
|
||||||
<if test="offset != null and rows != null">
|
<if test="offset != null and rows != null">
|
||||||
limit #{offset},#{rows}
|
limit #{offset},#{rows}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -116,23 +116,6 @@
|
|||||||
and ifnull(m.delete_Flag,'0') !='1'
|
and ifnull(m.delete_Flag,'0') !='1'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updatePriceNullByPrimaryKey" parameterType="java.lang.Long">
|
|
||||||
update jsh_material
|
|
||||||
set
|
|
||||||
RetailPrice = null,
|
|
||||||
LowPrice = null,
|
|
||||||
PresetPriceOne = null,
|
|
||||||
PresetPriceTwo = null
|
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<update id="updateUnitIdNullByPrimaryKey" parameterType="java.lang.Long">
|
|
||||||
update jsh_material
|
|
||||||
set
|
|
||||||
UnitId = null
|
|
||||||
where Id = #{id,jdbcType=BIGINT}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<select id="findByAll" parameterType="com.jsh.erp.datasource.entities.MaterialExample" resultMap="ResultMapList">
|
<select id="findByAll" parameterType="com.jsh.erp.datasource.entities.MaterialExample" resultMap="ResultMapList">
|
||||||
select m.*,u.uname unitName, mc.name categoryName
|
select m.*,u.uname unitName, mc.name categoryName
|
||||||
FROM jsh_material m
|
FROM jsh_material m
|
||||||
@@ -164,9 +147,8 @@
|
|||||||
|
|
||||||
<select id="getMaterialEnableSerialNumberList" parameterType="java.util.Map" resultMap="com.jsh.erp.datasource.mappers.MaterialMapper.BaseResultMap">
|
<select id="getMaterialEnableSerialNumberList" parameterType="java.util.Map" resultMap="com.jsh.erp.datasource.mappers.MaterialMapper.BaseResultMap">
|
||||||
select
|
select
|
||||||
Id, CategoryId, name, Mfrs, Packing, SafetyStock, Model, Standard, Color, Unit, Remark,
|
Id, CategoryId, name, Mfrs, SafetyStock, Model, Standard, Color, Unit, Remark,
|
||||||
RetailPrice, LowPrice, PresetPriceOne, PresetPriceTwo, UnitId, FirstOutUnit, FirstInUnit,
|
UnitId, Enabled,enableSerialNumber
|
||||||
PriceStrategy, Enabled,enableSerialNumber
|
|
||||||
FROM jsh_material
|
FROM jsh_material
|
||||||
where 1=1
|
where 1=1
|
||||||
and enabled ='1'
|
and enabled ='1'
|
||||||
|
|||||||
Reference in New Issue
Block a user