更新后端,采用Springboot+mybatis
This commit is contained in:
15
src/main/java/com/jsh/erp/ErpApplication.java
Normal file
15
src/main/java/com/jsh/erp/ErpApplication.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.jsh.erp;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
@SpringBootApplication
|
||||
@MapperScan(basePackages = {"com.jsh.erp.datasource.mappers"})
|
||||
@EnableScheduling
|
||||
public class ErpApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ErpApplication.class, args);
|
||||
}
|
||||
}
|
||||
97
src/main/java/com/jsh/erp/config/DbConfig.java
Normal file
97
src/main/java/com/jsh/erp/config/DbConfig.java
Normal file
@@ -0,0 +1,97 @@
|
||||
package com.jsh.erp.config;
|
||||
|
||||
import com.alibaba.druid.pool.DruidDataSource;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
|
||||
@Configuration
|
||||
@EnableTransactionManagement(proxyTargetClass = true)
|
||||
public class DbConfig {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DbConfig.class);
|
||||
|
||||
@Bean(name = "erpDatasource")
|
||||
@Primary
|
||||
public DataSource erpDatasource(ErpDatasourceProperties properties){
|
||||
try {
|
||||
DruidDataSource datasource = new DruidDataSource();
|
||||
datasource.setDriverClassName(properties.driverClassName);
|
||||
datasource.setUrl(properties.url);
|
||||
datasource.setUsername(properties.username);
|
||||
datasource.setPassword(properties.password);
|
||||
datasource.setInitialSize(1);
|
||||
datasource.setMinIdle(1);
|
||||
datasource.setMaxWait(60000);
|
||||
datasource.setMaxActive(5);
|
||||
datasource.setTimeBetweenEvictionRunsMillis(60000);
|
||||
datasource.setValidationQuery("select '1'");
|
||||
datasource.setTestOnBorrow(false);
|
||||
datasource.setTestOnReturn(false);
|
||||
datasource.setTestWhileIdle(true);
|
||||
datasource.setPoolPreparedStatements(true);
|
||||
datasource.setMaxOpenPreparedStatements(20);
|
||||
datasource.setMinEvictableIdleTimeMillis(300000);
|
||||
datasource.init();
|
||||
return datasource;
|
||||
}catch (Exception e){
|
||||
logger.error("服务启动失败,jsh_erp数据库Datasource初始化失败:"+e.getMessage());
|
||||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Bean
|
||||
@Primary
|
||||
public JdbcTemplate jdbcTemplate(@Qualifier("erpDatasource") DataSource dataSource) {
|
||||
return new JdbcTemplate(dataSource);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "erpDatasource")
|
||||
public static class ErpDatasourceProperties {
|
||||
private String driverClassName;
|
||||
private String url;
|
||||
private String username;
|
||||
private String password;
|
||||
|
||||
public String getDriverClassName() {
|
||||
return driverClassName;
|
||||
}
|
||||
|
||||
public void setDriverClassName(String driverClassName) {
|
||||
this.driverClassName = driverClassName;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
}
|
||||
}
|
||||
40
src/main/java/com/jsh/erp/config/WebConfig.java
Normal file
40
src/main/java/com/jsh/erp/config/WebConfig.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package com.jsh.erp.config;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
|
||||
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import java.io.File;
|
||||
|
||||
@Configuration
|
||||
public class WebConfig {
|
||||
private static final Logger logger = LoggerFactory.getLogger(WebConfig.class);
|
||||
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "web.front")
|
||||
public static class FrontEnd implements EmbeddedServletContainerCustomizer {
|
||||
private File baseDir;
|
||||
|
||||
public File getBaseDir() {
|
||||
return baseDir;
|
||||
}
|
||||
|
||||
public void setBaseDir(File baseDir) {
|
||||
this.baseDir = baseDir;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void customize(ConfigurableEmbeddedServletContainer container) {
|
||||
if (!baseDir.exists()) {
|
||||
if (!baseDir.mkdir()) {
|
||||
logger.info("create web.front base path:" + baseDir + " failed!already exists!");
|
||||
} else {
|
||||
logger.info("create web.front base path:" + baseDir + " success!");
|
||||
}
|
||||
}
|
||||
container.setDocumentRoot(baseDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
124
src/main/java/com/jsh/erp/controller/AccountController.java
Normal file
124
src/main/java/com/jsh/erp/controller/AccountController.java
Normal file
@@ -0,0 +1,124 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Account;
|
||||
import com.jsh.erp.datasource.vo.AccountVo4InOutList;
|
||||
import com.jsh.erp.service.account.AccountService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/account")
|
||||
public class AccountController {
|
||||
private Logger logger = LoggerFactory.getLogger(AccountController.class);
|
||||
|
||||
@Resource
|
||||
private AccountService accountService;
|
||||
|
||||
/**
|
||||
* 查找结算账户信息-下拉框
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findBySelect")
|
||||
public String findBySelect(HttpServletRequest request) {
|
||||
String res = null;
|
||||
try {
|
||||
List<Account> dataList = accountService.findBySelect();
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (Account account : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", account.getId());
|
||||
//结算账户名称
|
||||
item.put("AccountName", account.getName());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
res = dataArray.toJSONString();
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有结算账户
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getAccount")
|
||||
public BaseResponseInfo getAccount(HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<Account> accountList = accountService.getAccount();
|
||||
map.put("accountList", accountList);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户流水信息
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param accountId
|
||||
* @param initialAmount
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findAccountInOutList")
|
||||
public BaseResponseInfo findAccountInOutList(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("accountId") Long accountId,
|
||||
@RequestParam("initialAmount") Double initialAmount,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<AccountVo4InOutList> dataList = accountService.findAccountInOutList(accountId, (currentPage-1)*pageSize, pageSize);
|
||||
int total = accountService.findAccountInOutListCount(accountId);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (AccountVo4InOutList aEx : dataList) {
|
||||
String timeStr = aEx.getOperTime().toString();
|
||||
Double balance = accountService.getAccountSum(accountId, timeStr, "date") + accountService.getAccountSumByHead(accountId, timeStr, "date")
|
||||
+ accountService.getAccountSumByDetail(accountId, timeStr, "date") + accountService.getManyAccountSum(accountId, timeStr, "date") + initialAmount;
|
||||
aEx.setBalance(balance);
|
||||
dataArray.add(aEx);
|
||||
}
|
||||
}
|
||||
map.put("rows", dataArray);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
146
src/main/java/com/jsh/erp/controller/AccountHeadController.java
Normal file
146
src/main/java/com/jsh/erp/controller/AccountHeadController.java
Normal file
@@ -0,0 +1,146 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.AccountHead;
|
||||
import com.jsh.erp.datasource.entities.AccountHeadVo4ListEx;
|
||||
import com.jsh.erp.service.accountHead.AccountHeadService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import com.jsh.erp.utils.ErpInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/accountHead")
|
||||
public class AccountHeadController {
|
||||
private Logger logger = LoggerFactory.getLogger(AccountHeadController.class);
|
||||
|
||||
@Resource
|
||||
private AccountHeadService accountHeadService;
|
||||
|
||||
/**
|
||||
* 获取最大的id
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getMaxId")
|
||||
public BaseResponseInfo getMaxId(HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
Long maxId = accountHeadService.getMaxId();
|
||||
map.put("maxId", maxId);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询单位的累计应收和累计应付,收预付款不计入此处
|
||||
* @param supplierId
|
||||
* @param endTime
|
||||
* @param supType
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findTotalPay")
|
||||
public BaseResponseInfo findTotalPay(@RequestParam("supplierId") Integer supplierId,
|
||||
@RequestParam("endTime") String endTime,
|
||||
@RequestParam("supType") String supType,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
JSONObject outer = new JSONObject();
|
||||
Double sum = 0.0;
|
||||
String getS = supplierId.toString();
|
||||
int i = 1;
|
||||
if (supType.equals("customer")) { //客户
|
||||
i = 1;
|
||||
} else if (supType.equals("vendor")) { //供应商
|
||||
i = -1;
|
||||
}
|
||||
//收付款部分
|
||||
sum = sum + (allMoney(getS, "付款", "合计",endTime) + allMoney(getS, "付款", "实际",endTime)) * i;
|
||||
sum = sum - (allMoney(getS, "收款", "合计",endTime) + allMoney(getS, "收款", "实际",endTime)) * i;
|
||||
sum = sum + (allMoney(getS, "收入", "合计",endTime) - allMoney(getS, "收入", "实际",endTime)) * i;
|
||||
sum = sum - (allMoney(getS, "支出", "合计",endTime) - allMoney(getS, "支出", "实际",endTime)) * i;
|
||||
outer.put("getAllMoney", sum);
|
||||
map.put("rows", outer);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据编号查询单据信息
|
||||
* @param number
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getDetailByNumber")
|
||||
public BaseResponseInfo getDetailByNumber(@RequestParam("billNo") String billNo,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
AccountHeadVo4ListEx ahl = new AccountHeadVo4ListEx();
|
||||
try {
|
||||
List<AccountHeadVo4ListEx> list = accountHeadService.getDetailByNumber(billNo);
|
||||
if(list.size() == 1) {
|
||||
ahl = list.get(0);
|
||||
}
|
||||
res.code = 200;
|
||||
res.data = ahl;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统计总金额
|
||||
* @param getS
|
||||
* @param type
|
||||
* @param subType
|
||||
* @param mode 合计或者金额
|
||||
* @return
|
||||
*/
|
||||
public Double allMoney(String getS, String type, String mode, String endTime) {
|
||||
Double allMoney = 0.0;
|
||||
try {
|
||||
Integer supplierId = Integer.valueOf(getS);
|
||||
Double sum = accountHeadService.findAllMoney(supplierId, type, mode, endTime);
|
||||
if(sum != null) {
|
||||
allMoney = sum;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
//返回正数,如果负数也转为正数
|
||||
if (allMoney < 0) {
|
||||
allMoney = -allMoney;
|
||||
}
|
||||
return allMoney;
|
||||
}
|
||||
|
||||
}
|
||||
147
src/main/java/com/jsh/erp/controller/AccountItemController.java
Normal file
147
src/main/java/com/jsh/erp/controller/AccountItemController.java
Normal file
@@ -0,0 +1,147 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.AccountItem;
|
||||
import com.jsh.erp.datasource.vo.AccountItemVo4List;
|
||||
import com.jsh.erp.service.accountItem.AccountItemService;
|
||||
import com.jsh.erp.utils.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/accountItem")
|
||||
public class AccountItemController {
|
||||
private Logger logger = LoggerFactory.getLogger(AccountItemController.class);
|
||||
|
||||
@Resource
|
||||
private AccountItemService accountItemService;
|
||||
|
||||
@PostMapping(value = "/saveDetials")
|
||||
public String saveDetials(@RequestParam("inserted") String inserted,
|
||||
@RequestParam("deleted") String deleted,
|
||||
@RequestParam("updated") String updated,
|
||||
@RequestParam("headerId") Long headerId,
|
||||
@RequestParam("listType") String listType,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
try {
|
||||
//转为json
|
||||
JSONArray insertedJson = JSONArray.parseArray(inserted);
|
||||
JSONArray deletedJson = JSONArray.parseArray(deleted);
|
||||
JSONArray updatedJson = JSONArray.parseArray(updated);
|
||||
if (null != insertedJson) {
|
||||
for (int i = 0; i < insertedJson.size(); i++) {
|
||||
AccountItem accountItem = new AccountItem();
|
||||
JSONObject tempInsertedJson = JSONObject.parseObject(insertedJson.getString(i));
|
||||
accountItem.setHeaderid(headerId);
|
||||
if (tempInsertedJson.get("AccountId") != null && !tempInsertedJson.get("AccountId").equals("")) {
|
||||
accountItem.setAccountid(tempInsertedJson.getLong("AccountId"));
|
||||
}
|
||||
if (tempInsertedJson.get("InOutItemId") != null && !tempInsertedJson.get("InOutItemId").equals("")) {
|
||||
accountItem.setInoutitemid(tempInsertedJson.getLong("InOutItemId"));
|
||||
}
|
||||
if (tempInsertedJson.get("EachAmount") != null && !tempInsertedJson.get("EachAmount").equals("")) {
|
||||
Double eachAmount = tempInsertedJson.getDouble("EachAmount");
|
||||
if (listType.equals("付款")) {
|
||||
eachAmount = 0 - eachAmount;
|
||||
}
|
||||
accountItem.setEachamount(eachAmount);
|
||||
} else {
|
||||
accountItem.setEachamount(0.0);
|
||||
}
|
||||
accountItem.setRemark(tempInsertedJson.getString("Remark"));
|
||||
accountItemService.insertAccountItemWithObj(accountItem);
|
||||
}
|
||||
}
|
||||
if (null != deletedJson) {
|
||||
for (int i = 0; i < deletedJson.size(); i++) {
|
||||
JSONObject tempDeletedJson = JSONObject.parseObject(deletedJson.getString(i));
|
||||
accountItemService.deleteAccountItem(tempDeletedJson.getLong("Id"));
|
||||
}
|
||||
}
|
||||
if (null != updatedJson) {
|
||||
for (int i = 0; i < updatedJson.size(); i++) {
|
||||
JSONObject tempUpdatedJson = JSONObject.parseObject(updatedJson.getString(i));
|
||||
AccountItem accountItem = accountItemService.getAccountItem(tempUpdatedJson.getLong("Id"));
|
||||
accountItem.setId(tempUpdatedJson.getLong("Id"));
|
||||
accountItem.setHeaderid(headerId);
|
||||
if (tempUpdatedJson.get("AccountId") != null && !tempUpdatedJson.get("AccountId").equals("")) {
|
||||
accountItem.setAccountid(tempUpdatedJson.getLong("AccountId"));
|
||||
}
|
||||
if (tempUpdatedJson.get("InOutItemId") != null && !tempUpdatedJson.get("InOutItemId").equals("")) {
|
||||
accountItem.setInoutitemid(tempUpdatedJson.getLong("InOutItemId"));
|
||||
}
|
||||
if (tempUpdatedJson.get("EachAmount") != null && !tempUpdatedJson.get("EachAmount").equals("")) {
|
||||
Double eachAmount = tempUpdatedJson.getDouble("EachAmount");
|
||||
if (listType.equals("付款")) {
|
||||
eachAmount = 0 - eachAmount;
|
||||
}
|
||||
accountItem.setEachamount(eachAmount);
|
||||
} else {
|
||||
accountItem.setEachamount(0.0);
|
||||
}
|
||||
accountItem.setRemark(tempUpdatedJson.getString("Remark"));
|
||||
accountItemService.updateAccountItemWithObj(accountItem);
|
||||
}
|
||||
}
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} catch (DataAccessException e) {
|
||||
e.printStackTrace();
|
||||
logger.error(">>>>>>>>>>>>>>>>>>>保存明细信息异常", e);
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping(value = "/getDetailList")
|
||||
public BaseResponseInfo getDetailList(@RequestParam("headerId") Long headerId,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<AccountItemVo4List> dataList = new ArrayList<AccountItemVo4List>();
|
||||
if(headerId != 0) {
|
||||
dataList = accountItemService.getDetailList(headerId);
|
||||
}
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("total", dataList.size());
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (AccountItemVo4List ai : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", ai.getId());
|
||||
item.put("AccountId", ai.getAccountid());
|
||||
item.put("AccountName", ai.getAccountName());
|
||||
item.put("InOutItemId", ai.getInoutitemid());
|
||||
item.put("InOutItemName", ai.getInOutItemName());
|
||||
Double eachAmount = ai.getEachamount();
|
||||
item.put("EachAmount", eachAmount < 0 ? 0 - eachAmount : eachAmount);
|
||||
item.put("Remark", ai.getRemark());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("rows", dataArray);
|
||||
res.code = 200;
|
||||
res.data = outer;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
116
src/main/java/com/jsh/erp/controller/AppController.java
Normal file
116
src/main/java/com/jsh/erp/controller/AppController.java
Normal file
@@ -0,0 +1,116 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.App;
|
||||
import com.jsh.erp.service.app.AppService;
|
||||
import com.jsh.erp.service.userBusiness.UserBusinessService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/app")
|
||||
public class AppController {
|
||||
private Logger logger = LoggerFactory.getLogger(AppController.class);
|
||||
|
||||
@Resource
|
||||
private AppService appService;
|
||||
|
||||
@Resource
|
||||
private UserBusinessService userBusinessService;
|
||||
|
||||
@GetMapping(value = "/findDesk")
|
||||
public JSONObject findDesk(HttpServletRequest request) {
|
||||
JSONObject obj = new JSONObject();
|
||||
List<App> dockList = appService.findDock();
|
||||
JSONArray dockArray = new JSONArray();
|
||||
if (null != dockList) {
|
||||
for (App app : dockList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", app.getId());
|
||||
item.put("title", app.getName());
|
||||
item.put("type", app.getType());
|
||||
item.put("icon", "../../upload/images/deskIcon/" + app.getIcon());
|
||||
item.put("url", app.getUrl());
|
||||
item.put("width", app.getWidth());
|
||||
item.put("height", app.getHeight());
|
||||
item.put("isresize", app.getResize());
|
||||
item.put("isopenmax", app.getOpenmax());
|
||||
item.put("isflash", app.getFlash());
|
||||
dockArray.add(item);
|
||||
}
|
||||
}
|
||||
obj.put("dock",dockArray);
|
||||
|
||||
List<App> deskList = appService.findDesk();
|
||||
JSONArray deskArray = new JSONArray();
|
||||
if (null != deskList) {
|
||||
for (App app : deskList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", app.getId());
|
||||
item.put("title", app.getName());
|
||||
item.put("type", app.getType());
|
||||
item.put("icon", "../../upload/images/deskIcon/" + app.getIcon());
|
||||
item.put("url", "../../pages/common/menu.html?appID=" + app.getNumber() + "&id=" + app.getId());
|
||||
item.put("width", app.getWidth());
|
||||
item.put("height", app.getHeight());
|
||||
item.put("isresize", app.getResize());
|
||||
item.put("isopenmax", app.getOpenmax());
|
||||
item.put("isflash", app.getFlash());
|
||||
deskArray.add(item);
|
||||
}
|
||||
}
|
||||
obj.put("desk",deskArray);
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* 角色对应应用显示
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findRoleAPP")
|
||||
public JSONArray findRoleAPP(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId,
|
||||
HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<App> dataList = appService.findRoleAPP();
|
||||
//开始拼接json数据
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("id", 1);
|
||||
outer.put("text", "应用列表");
|
||||
outer.put("state", "open");
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (App app : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", app.getId());
|
||||
item.put("text", app.getName());
|
||||
//勾选判断1
|
||||
Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + app.getId().toString() + "]");
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>设置角色对应的应用:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item.put("checked", true);
|
||||
}
|
||||
//结束
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("children", dataArray);
|
||||
arr.add(outer);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
149
src/main/java/com/jsh/erp/controller/DepotController.java
Normal file
149
src/main/java/com/jsh/erp/controller/DepotController.java
Normal file
@@ -0,0 +1,149 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Depot;
|
||||
import com.jsh.erp.service.depot.DepotService;
|
||||
import com.jsh.erp.service.userBusiness.UserBusinessService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/depot")
|
||||
public class DepotController {
|
||||
private Logger logger = LoggerFactory.getLogger(DepotController.class);
|
||||
|
||||
@Resource
|
||||
private DepotService depotService;
|
||||
|
||||
@Resource
|
||||
private UserBusinessService userBusinessService;
|
||||
|
||||
@GetMapping(value = "/getAllList")
|
||||
public BaseResponseInfo getAllList(HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
List<Depot> depotList = depotService.getAllList();
|
||||
res.code = 200;
|
||||
res.data = depotList;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户对应仓库显示
|
||||
* @param type
|
||||
* @param keyId
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findUserDepot")
|
||||
public JSONArray findUserDepot(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId,
|
||||
HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Depot> dataList = depotService.findUserDepot();
|
||||
//开始拼接json数据
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("id", 1);
|
||||
outer.put("text", "仓库列表");
|
||||
outer.put("state", "open");
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (Depot depot : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", depot.getId());
|
||||
item.put("text", depot.getName());
|
||||
//勾选判断1
|
||||
Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + depot.getId().toString() + "]");
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>设置用户对应的仓库:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item.put("checked", true);
|
||||
}
|
||||
//结束
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("children", dataArray);
|
||||
arr.add(outer);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
@GetMapping(value = "/findDepotByUserId")
|
||||
public JSONArray findDepotByUserId(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId,
|
||||
HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Depot> dataList = depotService.findUserDepot();
|
||||
//开始拼接json数据
|
||||
if (null != dataList) {
|
||||
for (Depot depot : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
//勾选判断1
|
||||
Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + depot.getId().toString() + "]");
|
||||
} catch (DataAccessException e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>查询用户对应的仓库:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item.put("id", depot.getId());
|
||||
item.put("depotName", depot.getName());
|
||||
arr.add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找礼品卡-虚拟仓库
|
||||
* @param type
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findGiftByType")
|
||||
public JSONArray findGiftByType(@RequestParam("type") Integer type,
|
||||
HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Depot> dataList = depotService.findGiftByType(type);
|
||||
//存放数据json数组
|
||||
if (null != dataList) {
|
||||
for (Depot depot : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", depot.getId());
|
||||
//仓库名称
|
||||
item.put("name", depot.getName());
|
||||
arr.add(item);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>查找仓库信息异常", e);
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
458
src/main/java/com/jsh/erp/controller/DepotHeadController.java
Normal file
458
src/main/java/com/jsh/erp/controller/DepotHeadController.java
Normal file
@@ -0,0 +1,458 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.DepotHead;
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4InDetail;
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4InOutMCount;
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4List;
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4StatementAccount;
|
||||
import com.jsh.erp.service.depotHead.DepotHeadService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import com.jsh.erp.utils.ErpInfo;
|
||||
import com.jsh.erp.utils.StringUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.sql.Date;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/depotHead")
|
||||
public class DepotHeadController {
|
||||
private Logger logger = LoggerFactory.getLogger(DepotHeadController.class);
|
||||
|
||||
@Resource
|
||||
private DepotHeadService depotHeadService;
|
||||
|
||||
/**
|
||||
* 批量设置状态-审核或者反审核
|
||||
* @param status
|
||||
* @param depotHeadIDs
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/batchSetStatus")
|
||||
public String batchSetStatus(@RequestParam("status") Boolean status,
|
||||
@RequestParam("depotHeadIDs") String depotHeadIDs,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int res = depotHeadService.batchSetStatus(status, depotHeadIDs);
|
||||
if(res > 0) {
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 单据编号生成接口,规则:查找当前类型单据下的当天最大的单据号,并加1
|
||||
* @param type
|
||||
* @param subType
|
||||
* @param beginTime
|
||||
* @param endTime
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/buildNumber")
|
||||
public BaseResponseInfo buildNumber(@RequestParam("type") String type,
|
||||
@RequestParam("subType") String subType,
|
||||
@RequestParam("beginTime") String beginTime,
|
||||
@RequestParam("endTime") String endTime,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
String number = depotHeadService.buildNumber(type, subType, beginTime, endTime);
|
||||
map.put("DefaultNumber", number);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取最大的id
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getMaxId")
|
||||
public BaseResponseInfo getMaxId(HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
Long maxId = depotHeadService.getMaxId();
|
||||
map.put("maxId", maxId);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找单据_根据月份(报表)
|
||||
* @param monthTime
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findByMonth")
|
||||
public BaseResponseInfo findByMonth(@RequestParam("monthTime") String monthTime,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotHead> dataList = depotHeadService.findByMonth(monthTime);
|
||||
String headId = "";
|
||||
if (null != dataList) {
|
||||
for (DepotHead depotHead : dataList) {
|
||||
headId = headId + depotHead.getId() + ",";
|
||||
}
|
||||
}
|
||||
if (headId != "") {
|
||||
headId = headId.substring(0, headId.lastIndexOf(","));
|
||||
}
|
||||
map.put("HeadIds", headId);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找统计信息_根据礼品卡(报表)
|
||||
* @param projectId
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findGiftReport")
|
||||
public BaseResponseInfo findGiftReport(@RequestParam("projectId") String projectId,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotHead> dataList_in = depotHeadService.getDepotHead();
|
||||
String headId = "";
|
||||
if (null != dataList_in) {
|
||||
for (DepotHead depotHead : dataList_in) {
|
||||
headId = headId + depotHead.getId() + ",";
|
||||
}
|
||||
List<DepotHead> dataList_out = depotHeadService.getDepotHeadGiftOut(projectId);
|
||||
if (null != dataList_out) {
|
||||
for (DepotHead depotHead : dataList_out) {
|
||||
headId = headId + depotHead.getId() + ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (headId != "") {
|
||||
headId = headId.substring(0, headId.lastIndexOf(","));
|
||||
}
|
||||
map.put("HeadIds", headId);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 入库出库明细接口
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param oId
|
||||
* @param pid
|
||||
* @param dids
|
||||
* @param beginTime
|
||||
* @param endTime
|
||||
* @param type
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findInDetail")
|
||||
public BaseResponseInfo findInDetail(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("organId") Integer oId,
|
||||
@RequestParam("projectId") Integer pid,
|
||||
@RequestParam("depotIds") String dids,
|
||||
@RequestParam("beginTime") String beginTime,
|
||||
@RequestParam("endTime") String endTime,
|
||||
@RequestParam("type") String type,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotHeadVo4InDetail> resList = new ArrayList<DepotHeadVo4InDetail>();
|
||||
List<DepotHeadVo4InDetail> list = depotHeadService.findByAll(beginTime, endTime, type, pid, dids, oId, currentPage, pageSize);
|
||||
int total = depotHeadService.findByAllCount(beginTime, endTime, type, pid, dids, oId);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
if (null != list) {
|
||||
for (DepotHeadVo4InDetail dhd : list) {
|
||||
resList.add(dhd);
|
||||
}
|
||||
}
|
||||
map.put("rows", resList);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 入库出库统计接口
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param oId
|
||||
* @param pid
|
||||
* @param dids
|
||||
* @param beginTime
|
||||
* @param endTime
|
||||
* @param type
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findInOutMaterialCount")
|
||||
public BaseResponseInfo findInOutMaterialCount(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("organId") Integer oId,
|
||||
@RequestParam("projectId") Integer pid,
|
||||
@RequestParam("depotIds") String dids,
|
||||
@RequestParam("beginTime") String beginTime,
|
||||
@RequestParam("endTime") String endTime,
|
||||
@RequestParam("type") String type,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotHeadVo4InOutMCount> resList = new ArrayList<DepotHeadVo4InOutMCount>();
|
||||
List<DepotHeadVo4InOutMCount> list = depotHeadService.findInOutMaterialCount(beginTime, endTime, type, pid, dids, oId, currentPage, pageSize);
|
||||
int total = depotHeadService.findInOutMaterialCountTotal(beginTime, endTime, type, pid, dids, oId);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
if (null != list) {
|
||||
for (DepotHeadVo4InOutMCount dhc : list) {
|
||||
resList.add(dhc);
|
||||
}
|
||||
}
|
||||
map.put("rows", resList);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 对账单接口
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param beginTime
|
||||
* @param endTime
|
||||
* @param organId
|
||||
* @param supType
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findStatementAccount")
|
||||
public BaseResponseInfo findStatementAccount(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("beginTime") String beginTime,
|
||||
@RequestParam("endTime") String endTime,
|
||||
@RequestParam("organId") Integer organId,
|
||||
@RequestParam("supType") String supType,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
int j = 1;
|
||||
if (supType.equals("客户")) { //客户
|
||||
j = 1;
|
||||
} else if (supType.equals("供应商")) { //供应商
|
||||
j = -1;
|
||||
}
|
||||
List<DepotHeadVo4StatementAccount> resList = new ArrayList<DepotHeadVo4StatementAccount>();
|
||||
List<DepotHeadVo4StatementAccount> list = depotHeadService.findStatementAccount(beginTime, endTime, organId, supType, (currentPage-1)*pageSize, pageSize);
|
||||
int total = depotHeadService.findStatementAccountCount(beginTime, endTime, organId, supType);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
if (null != list) {
|
||||
for (DepotHeadVo4StatementAccount dha : list) {
|
||||
dha.setNumber(dha.getNumber()); //单据编号
|
||||
dha.setType(dha.getType()); //类型
|
||||
String type = dha.getType();
|
||||
Double p1 = 0.0;
|
||||
Double p2 = 0.0;
|
||||
if (dha.getDiscountLastMoney() != null) {
|
||||
p1 = dha.getDiscountLastMoney();
|
||||
}
|
||||
if (dha.getChangeAmount() != null) {
|
||||
p2 = dha.getChangeAmount();
|
||||
}
|
||||
Double allPrice = 0.0;
|
||||
if (p1 < 0) {
|
||||
p1 = -p1;
|
||||
}
|
||||
if (p2 < 0) {
|
||||
p2 = -p2;
|
||||
}
|
||||
if (type.equals("采购入库")) {
|
||||
allPrice = -(p1 - p2);
|
||||
} else if (type.equals("销售退货入库")) {
|
||||
allPrice = -(p1 - p2);
|
||||
} else if (type.equals("销售出库")) {
|
||||
allPrice = p1 - p2;
|
||||
} else if (type.equals("采购退货出库")) {
|
||||
allPrice = p1 - p2;
|
||||
} else if (type.equals("付款")) {
|
||||
allPrice = p1 + p2;
|
||||
} else if (type.equals("收款")) {
|
||||
allPrice = -(p1 + p2);
|
||||
} else if (type.equals("收入")) {
|
||||
allPrice = p1 - p2;
|
||||
} else if (type.equals("支出")) {
|
||||
allPrice = -(p1 - p2);
|
||||
}
|
||||
dha.setDiscountLastMoney(p1); //金额
|
||||
dha.setChangeAmount(p2); //金额
|
||||
dha.setAllPrice(Double.parseDouble(String.format("%.2f", allPrice * j))); //计算后的金额
|
||||
dha.setSupplierName(dha.getSupplierName()); //供应商
|
||||
dha.setoTime(dha.getoTime()); //入库出库日期
|
||||
resList.add(dha);
|
||||
}
|
||||
}
|
||||
map.put("rows", resList);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询单位的累计应收和累计应付,零售不能计入
|
||||
* @param supplierId
|
||||
* @param endTime
|
||||
* @param supType
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findTotalPay")
|
||||
public BaseResponseInfo findTotalPay(@RequestParam("supplierId") Integer supplierId,
|
||||
@RequestParam("endTime") String endTime,
|
||||
@RequestParam("supType") String supType,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
JSONObject outer = new JSONObject();
|
||||
Double sum = 0.0;
|
||||
String getS = supplierId.toString();
|
||||
int i = 1;
|
||||
if (supType.equals("customer")) { //客户
|
||||
i = 1;
|
||||
} else if (supType.equals("vendor")) { //供应商
|
||||
i = -1;
|
||||
}
|
||||
//进销部分
|
||||
sum = sum - (allMoney(getS, "入库", "采购", "合计",endTime) - allMoney(getS, "入库", "采购", "实际",endTime)) * i;
|
||||
sum = sum - (allMoney(getS, "入库", "销售退货", "合计",endTime) - allMoney(getS, "入库", "销售退货", "实际",endTime)) * i;
|
||||
sum = sum + (allMoney(getS, "出库", "销售", "合计",endTime) - allMoney(getS, "出库", "销售", "实际",endTime)) * i;
|
||||
sum = sum + (allMoney(getS, "出库", "采购退货", "合计",endTime) - allMoney(getS, "出库", "采购退货", "实际",endTime)) * i;
|
||||
outer.put("getAllMoney", sum);
|
||||
map.put("rows", outer);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据编号查询单据信息
|
||||
* @param number
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getDetailByNumber")
|
||||
public BaseResponseInfo getDetailByNumber(@RequestParam("number") String number,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
DepotHeadVo4List dhl = new DepotHeadVo4List();
|
||||
try {
|
||||
List<DepotHeadVo4List> list = depotHeadService.getDetailByNumber(number);
|
||||
if(list.size() == 1) {
|
||||
dhl = list.get(0);
|
||||
}
|
||||
res.code = 200;
|
||||
res.data = dhl;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 统计总金额
|
||||
* @param getS
|
||||
* @param type
|
||||
* @param subType
|
||||
* @param mode 合计或者金额
|
||||
* @return
|
||||
*/
|
||||
public Double allMoney(String getS, String type, String subType, String mode, String endTime) {
|
||||
Double allMoney = 0.0;
|
||||
try {
|
||||
Integer supplierId = Integer.valueOf(getS);
|
||||
Double sum = depotHeadService.findAllMoney(supplierId, type, subType, mode, endTime);
|
||||
if(sum != null) {
|
||||
allMoney = sum;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
//返回正数,如果负数也转为正数
|
||||
if (allMoney < 0) {
|
||||
allMoney = -allMoney;
|
||||
}
|
||||
return allMoney;
|
||||
}
|
||||
|
||||
}
|
||||
936
src/main/java/com/jsh/erp/controller/DepotItemController.java
Normal file
936
src/main/java/com/jsh/erp/controller/DepotItemController.java
Normal file
@@ -0,0 +1,936 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.*;
|
||||
import com.jsh.erp.service.depotItem.DepotItemService;
|
||||
import com.jsh.erp.service.material.MaterialService;
|
||||
import com.jsh.erp.utils.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/depotItem")
|
||||
public class DepotItemController {
|
||||
private Logger logger = LoggerFactory.getLogger(DepotItemController.class);
|
||||
|
||||
@Resource
|
||||
private DepotItemService depotItemService;
|
||||
|
||||
@Resource
|
||||
private MaterialService materialService;
|
||||
|
||||
/**
|
||||
* 根据材料信息获取
|
||||
* @param materialParam 商品参数
|
||||
* @param depotIds 拥有的仓库信息
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getHeaderIdByMaterial")
|
||||
public BaseResponseInfo getHeaderIdByMaterial(@RequestParam("materialParam") String materialParam,
|
||||
@RequestParam("depotIds") String depotIds,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
List<DepotItemVo4HeaderId> depotItemList = depotItemService.getHeaderIdByMaterial(materialParam, depotIds);
|
||||
String allReturn = "";
|
||||
if (depotItemList != null) {
|
||||
for (DepotItemVo4HeaderId d : depotItemList) {
|
||||
Long dl = d.getHeaderid(); //获取对象
|
||||
allReturn = allReturn + dl.toString() + ",";
|
||||
}
|
||||
}
|
||||
allReturn = allReturn.substring(0, allReturn.length() - 1);
|
||||
if (allReturn.equals("null")) {
|
||||
allReturn = "";
|
||||
}
|
||||
res.code = 200;
|
||||
res.data = allReturn;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 只根据商品id查询单据列表
|
||||
* @param mId
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findDetailByTypeAndMaterialId")
|
||||
public String findDetailByTypeAndMaterialId(
|
||||
@RequestParam(value = Constants.PAGE_SIZE, required = false) Integer pageSize,
|
||||
@RequestParam(value = Constants.CURRENT_PAGE, required = false) Integer currentPage,
|
||||
@RequestParam("materialId") String mId, HttpServletRequest request) {
|
||||
Map<String, String> parameterMap = ParamUtils.requestToMap(request);
|
||||
parameterMap.put("mId", mId);
|
||||
PageQueryInfo queryInfo = new PageQueryInfo();
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
if (pageSize != null && pageSize <= 0) {
|
||||
pageSize = 10;
|
||||
}
|
||||
String offset = ParamUtils.getPageOffset(currentPage, pageSize);
|
||||
if (StringUtil.isNotEmpty(offset)) {
|
||||
parameterMap.put(Constants.OFFSET, offset);
|
||||
}
|
||||
List<DepotItemVo4DetailByTypeAndMId> list = depotItemService.findDetailByTypeAndMaterialIdList(parameterMap);
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (list != null) {
|
||||
for (DepotItemVo4DetailByTypeAndMId d: list) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Number", d.getNumber()); //商品编号
|
||||
item.put("Type", d.getNewtype()); //进出类型
|
||||
item.put("BasicNumber", d.getBnum()); //数量
|
||||
item.put("OperTime", d.getOtime()); //时间
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
objectMap.put("page", dataArray);
|
||||
if (list == null) {
|
||||
queryInfo.setRows(new ArrayList<Object>());
|
||||
queryInfo.setTotal(0);
|
||||
return returnJson(objectMap, "查找不到数据", ErpInfo.OK.code);
|
||||
}
|
||||
queryInfo.setRows(list);
|
||||
queryInfo.setTotal(depotItemService.findDetailByTypeAndMaterialIdCounts(parameterMap));
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据商品id和仓库id查询库存数量
|
||||
* @param pageSize
|
||||
* @param currentPage
|
||||
* @param mId
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findStockNumById")
|
||||
public String findStockNumById(
|
||||
@RequestParam(value = Constants.PAGE_SIZE, required = false) Integer pageSize,
|
||||
@RequestParam(value = Constants.CURRENT_PAGE, required = false) Integer currentPage,
|
||||
@RequestParam("projectId") Integer pid,
|
||||
@RequestParam("materialId") String mId,
|
||||
@RequestParam("monthTime") String monthTime,
|
||||
HttpServletRequest request) {
|
||||
Map<String, String> parameterMap = ParamUtils.requestToMap(request);
|
||||
parameterMap.put("mId", mId);
|
||||
parameterMap.put("monthTime", monthTime);
|
||||
PageQueryInfo queryInfo = new PageQueryInfo();
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
if (pageSize != null && pageSize <= 0) {
|
||||
pageSize = 10;
|
||||
}
|
||||
String offset = ParamUtils.getPageOffset(currentPage, pageSize);
|
||||
if (StringUtil.isNotEmpty(offset)) {
|
||||
parameterMap.put(Constants.OFFSET, offset);
|
||||
}
|
||||
List<DepotItemVo4Material> list = depotItemService.findStockNumByMaterialIdList(parameterMap);
|
||||
//存放数据json数组
|
||||
Long materialId = Long.parseLong(mId);
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != list) {
|
||||
for (DepotItemVo4Material di : list) {
|
||||
JSONObject item = new JSONObject();
|
||||
double prevSum = sumNumber("入库", pid, materialId, monthTime, true) - sumNumber("出库", pid, materialId, monthTime, true);
|
||||
double InSum = sumNumber("入库", pid, materialId, monthTime, false);
|
||||
double OutSum = sumNumber("出库", pid, materialId, monthTime, false);
|
||||
item.put("MaterialId", di.getMaterialid() == null ? "" : di.getMaterialid());
|
||||
item.put("MaterialName", di.getMname());
|
||||
item.put("MaterialModel", di.getMmodel());
|
||||
item.put("thisSum", prevSum + InSum - OutSum);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
objectMap.put("page", dataArray);
|
||||
if (list == null) {
|
||||
queryInfo.setRows(new ArrayList<Object>());
|
||||
queryInfo.setTotal(0);
|
||||
return returnJson(objectMap, "查找不到数据", ErpInfo.OK.code);
|
||||
}
|
||||
queryInfo.setRows(list);
|
||||
queryInfo.setTotal(depotItemService.findStockNumByMaterialIdCounts(parameterMap));
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
|
||||
/**
|
||||
* 只根据商品id查询库存数量
|
||||
* @param pageSize
|
||||
* @param currentPage
|
||||
* @param mId
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findStockNumByMaterialId")
|
||||
public String findStockNumByMaterialId(
|
||||
@RequestParam(value = Constants.PAGE_SIZE, required = false) Integer pageSize,
|
||||
@RequestParam(value = Constants.CURRENT_PAGE, required = false) Integer currentPage,
|
||||
@RequestParam("materialId") String mId,
|
||||
@RequestParam("monthTime") String monthTime,
|
||||
HttpServletRequest request) {
|
||||
Map<String, String> parameterMap = ParamUtils.requestToMap(request);
|
||||
parameterMap.put("mId", mId);
|
||||
parameterMap.put("monthTime", monthTime);
|
||||
PageQueryInfo queryInfo = new PageQueryInfo();
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
if (pageSize != null && pageSize <= 0) {
|
||||
pageSize = 10;
|
||||
}
|
||||
String offset = ParamUtils.getPageOffset(currentPage, pageSize);
|
||||
if (StringUtil.isNotEmpty(offset)) {
|
||||
parameterMap.put(Constants.OFFSET, offset);
|
||||
}
|
||||
List<DepotItemVo4Material> list = depotItemService.findStockNumByMaterialIdList(parameterMap);
|
||||
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != list) {
|
||||
for (DepotItemVo4Material di : list) {
|
||||
JSONObject item = new JSONObject();
|
||||
int InSum = sumNumberByMaterialId("入库", di.getMaterialid());
|
||||
int OutSum = sumNumberByMaterialId("出库", di.getMaterialid());
|
||||
item.put("MaterialId", di.getMaterialid() == null ? "" : di.getMaterialid());
|
||||
item.put("MaterialName", di.getMname());
|
||||
item.put("MaterialModel", di.getMmodel());
|
||||
item.put("thisSum", InSum - OutSum);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
objectMap.put("page", dataArray);
|
||||
if (list == null) {
|
||||
queryInfo.setRows(new ArrayList<Object>());
|
||||
queryInfo.setTotal(0);
|
||||
return returnJson(objectMap, "查找不到数据", ErpInfo.OK.code);
|
||||
}
|
||||
queryInfo.setRows(list);
|
||||
queryInfo.setTotal(depotItemService.findStockNumByMaterialIdCounts(parameterMap));
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
|
||||
/**
|
||||
* 仅根据商品Id进行数量合计
|
||||
*
|
||||
* @param type
|
||||
* @param mId
|
||||
* @return
|
||||
*/
|
||||
public int sumNumberByMaterialId(String type, Long mId) {
|
||||
int allNumber = 0;
|
||||
try {
|
||||
allNumber = depotItemService.findByTypeAndMaterialId(type, mId);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return allNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存明细
|
||||
* @param inserted
|
||||
* @param deleted
|
||||
* @param updated
|
||||
* @param headerId
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/saveDetials")
|
||||
public String saveDetials(@RequestParam("inserted") String inserted,
|
||||
@RequestParam("deleted") String deleted,
|
||||
@RequestParam("updated") String updated,
|
||||
@RequestParam("headerId") Long headerId,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
try {
|
||||
//转为json
|
||||
JSONArray insertedJson = JSONArray.parseArray(inserted);
|
||||
JSONArray deletedJson = JSONArray.parseArray(deleted);
|
||||
JSONArray updatedJson = JSONArray.parseArray(updated);
|
||||
if (null != insertedJson) {
|
||||
for (int i = 0; i < insertedJson.size(); i++) {
|
||||
DepotItem depotItem = new DepotItem();
|
||||
JSONObject tempInsertedJson = JSONObject.parseObject(insertedJson.getString(i));
|
||||
depotItem.setHeaderid(headerId);
|
||||
depotItem.setMaterialid(tempInsertedJson.getLong("MaterialId"));
|
||||
depotItem.setMunit(tempInsertedJson.getString("Unit"));
|
||||
if (!StringUtil.isEmpty(tempInsertedJson.get("OperNumber").toString())) {
|
||||
depotItem.setOpernumber(tempInsertedJson.getDouble("OperNumber"));
|
||||
try {
|
||||
String Unit = tempInsertedJson.get("Unit").toString();
|
||||
Double oNumber = tempInsertedJson.getDouble("OperNumber");
|
||||
Long mId = Long.parseLong(tempInsertedJson.get("MaterialId").toString());
|
||||
//以下进行单位换算
|
||||
String UnitName = findUnitName(mId); //查询计量单位名称
|
||||
if (!UnitName.equals("")) {
|
||||
String UnitList = UnitName.substring(0, UnitName.indexOf("("));
|
||||
String RatioList = UnitName.substring(UnitName.indexOf("("));
|
||||
String basicUnit = UnitList.substring(0, UnitList.indexOf(",")); //基本单位
|
||||
String otherUnit = UnitList.substring(UnitList.indexOf(",") + 1); //副单位
|
||||
Integer ratio = Integer.parseInt(RatioList.substring(RatioList.indexOf(":") + 1).replace(")", "")); //比例
|
||||
if (Unit.equals(basicUnit)) { //如果等于基础单位
|
||||
depotItem.setBasicnumber(oNumber); //数量一致
|
||||
} else if (Unit.equals(otherUnit)) { //如果等于副单位
|
||||
depotItem.setBasicnumber(oNumber * ratio); //数量乘以比例
|
||||
}
|
||||
} else {
|
||||
depotItem.setBasicnumber(oNumber); //其他情况
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>>>设置基础数量异常", e);
|
||||
}
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempInsertedJson.get("UnitPrice").toString())) {
|
||||
depotItem.setUnitprice(tempInsertedJson.getDouble("UnitPrice"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempInsertedJson.get("TaxUnitPrice").toString())) {
|
||||
depotItem.setTaxunitprice(tempInsertedJson.getDouble("TaxUnitPrice"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempInsertedJson.get("AllPrice").toString())) {
|
||||
depotItem.setAllprice(tempInsertedJson.getDouble("AllPrice"));
|
||||
}
|
||||
depotItem.setRemark(tempInsertedJson.getString("Remark"));
|
||||
if (tempInsertedJson.get("DepotId") != null && !StringUtil.isEmpty(tempInsertedJson.get("DepotId").toString())) {
|
||||
depotItem.setDepotid(tempInsertedJson.getLong("DepotId"));
|
||||
}
|
||||
if (tempInsertedJson.get("AnotherDepotId") != null && !StringUtil.isEmpty(tempInsertedJson.get("AnotherDepotId").toString())) {
|
||||
depotItem.setAnotherdepotid(tempInsertedJson.getLong("AnotherDepotId"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempInsertedJson.get("TaxRate").toString())) {
|
||||
depotItem.setTaxrate(tempInsertedJson.getDouble("TaxRate"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempInsertedJson.get("TaxMoney").toString())) {
|
||||
depotItem.setTaxmoney(tempInsertedJson.getDouble("TaxMoney"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempInsertedJson.get("TaxLastMoney").toString())) {
|
||||
depotItem.setTaxlastmoney(tempInsertedJson.getDouble("TaxLastMoney"));
|
||||
}
|
||||
if (tempInsertedJson.get("OtherField1") != null) {
|
||||
depotItem.setOtherfield1(tempInsertedJson.getString("OtherField1"));
|
||||
}
|
||||
if (tempInsertedJson.get("OtherField2") != null) {
|
||||
depotItem.setOtherfield2(tempInsertedJson.getString("OtherField2"));
|
||||
}
|
||||
if (tempInsertedJson.get("OtherField3") != null) {
|
||||
depotItem.setOtherfield3(tempInsertedJson.getString("OtherField3"));
|
||||
}
|
||||
if (tempInsertedJson.get("OtherField4") != null) {
|
||||
depotItem.setOtherfield4(tempInsertedJson.getString("OtherField4"));
|
||||
}
|
||||
if (tempInsertedJson.get("OtherField5") != null) {
|
||||
depotItem.setOtherfield5(tempInsertedJson.getString("OtherField5"));
|
||||
}
|
||||
if (tempInsertedJson.get("MType") != null) {
|
||||
depotItem.setMtype(tempInsertedJson.getString("MType"));
|
||||
}
|
||||
depotItemService.insertDepotItemWithObj(depotItem);
|
||||
}
|
||||
}
|
||||
if (null != deletedJson) {
|
||||
for (int i = 0; i < deletedJson.size(); i++) {
|
||||
JSONObject tempDeletedJson = JSONObject.parseObject(deletedJson.getString(i));
|
||||
depotItemService.deleteDepotItem(tempDeletedJson.getLong("Id"));
|
||||
}
|
||||
}
|
||||
if (null != updatedJson) {
|
||||
for (int i = 0; i < updatedJson.size(); i++) {
|
||||
JSONObject tempUpdatedJson = JSONObject.parseObject(updatedJson.getString(i));
|
||||
DepotItem depotItem = depotItemService.getDepotItem(tempUpdatedJson.getLong("Id"));
|
||||
depotItem.setId(tempUpdatedJson.getLong("Id"));
|
||||
depotItem.setMaterialid(tempUpdatedJson.getLong("MaterialId"));
|
||||
depotItem.setMunit(tempUpdatedJson.getString("Unit"));
|
||||
if (!StringUtil.isEmpty(tempUpdatedJson.get("OperNumber").toString())) {
|
||||
depotItem.setOpernumber(tempUpdatedJson.getDouble("OperNumber"));
|
||||
try {
|
||||
String Unit = tempUpdatedJson.get("Unit").toString();
|
||||
Double oNumber = tempUpdatedJson.getDouble("OperNumber");
|
||||
Long mId = Long.parseLong(tempUpdatedJson.get("MaterialId").toString());
|
||||
//以下进行单位换算
|
||||
String UnitName = findUnitName(mId); //查询计量单位名称
|
||||
if (!UnitName.equals("")) {
|
||||
String UnitList = UnitName.substring(0, UnitName.indexOf("("));
|
||||
String RatioList = UnitName.substring(UnitName.indexOf("("));
|
||||
String basicUnit = UnitList.substring(0, UnitList.indexOf(",")); //基本单位
|
||||
String otherUnit = UnitList.substring(UnitList.indexOf(",") + 1); //副单位
|
||||
Integer ratio = Integer.parseInt(RatioList.substring(RatioList.indexOf(":") + 1).replace(")", "")); //比例
|
||||
if (Unit.equals(basicUnit)) { //如果等于基础单位
|
||||
depotItem.setBasicnumber(oNumber); //数量一致
|
||||
} else if (Unit.equals(otherUnit)) { //如果等于副单位
|
||||
depotItem.setBasicnumber(oNumber * ratio); //数量乘以比例
|
||||
}
|
||||
} else {
|
||||
depotItem.setBasicnumber(oNumber); //其他情况
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>>>设置基础数量异常", e);
|
||||
}
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempUpdatedJson.get("UnitPrice").toString())) {
|
||||
depotItem.setUnitprice(tempUpdatedJson.getDouble("UnitPrice"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempUpdatedJson.get("TaxUnitPrice").toString())) {
|
||||
depotItem.setTaxunitprice(tempUpdatedJson.getDouble("TaxUnitPrice"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempUpdatedJson.get("AllPrice").toString())) {
|
||||
depotItem.setAllprice(tempUpdatedJson.getDouble("AllPrice"));
|
||||
}
|
||||
depotItem.setRemark(tempUpdatedJson.getString("Remark"));
|
||||
if (tempUpdatedJson.get("DepotId") != null && !StringUtil.isEmpty(tempUpdatedJson.get("DepotId").toString())) {
|
||||
depotItem.setDepotid(tempUpdatedJson.getLong("DepotId"));
|
||||
}
|
||||
if (tempUpdatedJson.get("AnotherDepotId") != null && !StringUtil.isEmpty(tempUpdatedJson.get("AnotherDepotId").toString())) {
|
||||
depotItem.setAnotherdepotid(tempUpdatedJson.getLong("AnotherDepotId"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempUpdatedJson.get("TaxRate").toString())) {
|
||||
depotItem.setTaxrate(tempUpdatedJson.getDouble("TaxRate"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempUpdatedJson.get("TaxMoney").toString())) {
|
||||
depotItem.setTaxmoney(tempUpdatedJson.getDouble("TaxMoney"));
|
||||
}
|
||||
if (!StringUtil.isEmpty(tempUpdatedJson.get("TaxLastMoney").toString())) {
|
||||
depotItem.setTaxlastmoney(tempUpdatedJson.getDouble("TaxLastMoney"));
|
||||
}
|
||||
depotItem.setOtherfield1(tempUpdatedJson.getString("OtherField1"));
|
||||
depotItem.setOtherfield2(tempUpdatedJson.getString("OtherField2"));
|
||||
depotItem.setOtherfield3(tempUpdatedJson.getString("OtherField3"));
|
||||
depotItem.setOtherfield4(tempUpdatedJson.getString("OtherField4"));
|
||||
depotItem.setOtherfield5(tempUpdatedJson.getString("OtherField5"));
|
||||
depotItem.setMtype(tempUpdatedJson.getString("MType"));
|
||||
depotItemService.updateDepotItemWithObj(depotItem);
|
||||
}
|
||||
}
|
||||
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} catch (DataAccessException e) {
|
||||
e.printStackTrace();
|
||||
logger.error(">>>>>>>>>>>>>>>>>>>保存明细信息异常", e);
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询计量单位信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String findUnitName(Long mId) {
|
||||
String unitName = "";
|
||||
try {
|
||||
unitName = materialService.findUnitName(mId);
|
||||
if (unitName != null) {
|
||||
unitName = unitName.substring(1, unitName.length() - 1);
|
||||
if (unitName.equals("null")) {
|
||||
unitName = "";
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return unitName;
|
||||
}
|
||||
|
||||
@GetMapping(value = "/getDetailList")
|
||||
public BaseResponseInfo getDetailList(@RequestParam("headerId") Long headerId,
|
||||
@RequestParam("mpList") String mpList,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotItemVo4WithInfoEx> dataList = new ArrayList<DepotItemVo4WithInfoEx>();
|
||||
if(headerId != 0) {
|
||||
dataList = depotItemService.getDetailList(headerId);
|
||||
}
|
||||
String[] mpArr = mpList.split(",");
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("total", dataList.size());
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (DepotItemVo4WithInfoEx diEx : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", diEx.getId());
|
||||
item.put("MaterialId", diEx.getMaterialid() == null ? "" : diEx.getMaterialid());
|
||||
String ratio; //比例
|
||||
if (diEx.getUnitId() == null || diEx.getUnitId().equals("")) {
|
||||
ratio = "";
|
||||
} else {
|
||||
ratio = diEx.getUName();
|
||||
ratio = ratio.substring(ratio.indexOf("("));
|
||||
}
|
||||
//品名/型号/扩展信息/包装
|
||||
String MaterialName = diEx.getMName() + ((diEx.getMModel() == null || diEx.getMModel().equals("")) ? "" : "(" + diEx.getMModel() + ")");
|
||||
String materialOther = getOtherInfo(mpArr, diEx);
|
||||
MaterialName = MaterialName + materialOther + ((diEx.getUName() == null || diEx.getUName().equals("")) ? "" : "(" + diEx.getUName() + ")") + ratio;
|
||||
item.put("MaterialName", MaterialName);
|
||||
item.put("Unit", diEx.getMunit());
|
||||
item.put("OperNumber", diEx.getOpernumber());
|
||||
item.put("BasicNumber", diEx.getBasicnumber());
|
||||
item.put("UnitPrice", diEx.getUnitprice());
|
||||
item.put("TaxUnitPrice", diEx.getTaxunitprice());
|
||||
item.put("AllPrice", diEx.getAllprice());
|
||||
item.put("Remark", diEx.getRemark());
|
||||
item.put("Img", diEx.getImg());
|
||||
item.put("DepotId", diEx.getDepotid() == null ? "" : diEx.getDepotid());
|
||||
item.put("DepotName", diEx.getDepotid() == null ? "" : diEx.getDepotName());
|
||||
item.put("AnotherDepotId", diEx.getAnotherdepotid() == null ? "" : diEx.getAnotherdepotid());
|
||||
item.put("AnotherDepotName", diEx.getAnotherdepotid() == null ? "" : diEx.getAnotherDepotName());
|
||||
item.put("TaxRate", diEx.getTaxrate());
|
||||
item.put("TaxMoney", diEx.getTaxmoney());
|
||||
item.put("TaxLastMoney", diEx.getTaxlastmoney());
|
||||
item.put("OtherField1", diEx.getOtherfield1());
|
||||
item.put("OtherField2", diEx.getOtherfield2());
|
||||
item.put("OtherField3", diEx.getOtherfield3());
|
||||
item.put("OtherField4", diEx.getOtherfield4());
|
||||
item.put("OtherField5", diEx.getOtherfield5());
|
||||
item.put("MType", diEx.getMtype());
|
||||
item.put("op", 1);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("rows", dataArray);
|
||||
res.code = 200;
|
||||
res.data = outer;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取扩展信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getOtherInfo(String[] mpArr, DepotItemVo4WithInfoEx diEx) {
|
||||
String materialOther = "";
|
||||
for (int i = 0; i < mpArr.length; i++) {
|
||||
if (mpArr[i].equals("颜色")) {
|
||||
materialOther = materialOther + ((diEx.getMColor() == null || diEx.getMColor().equals("")) ? "" : "(" + diEx.getMColor() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("规格")) {
|
||||
materialOther = materialOther + ((diEx.getMStandard() == null || diEx.getMStandard().equals("")) ? "" : "(" + diEx.getMStandard() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("制造商")) {
|
||||
materialOther = materialOther + ((diEx.getMMfrs() == null || diEx.getMMfrs().equals("")) ? "" : "(" + diEx.getMMfrs() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("自定义1")) {
|
||||
materialOther = materialOther + ((diEx.getMOtherField1() == null || diEx.getMOtherField1().equals("")) ? "" : "(" + diEx.getMOtherField1() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("自定义2")) {
|
||||
materialOther = materialOther + ((diEx.getMOtherField2() == null || diEx.getMOtherField2().equals("")) ? "" : "(" + diEx.getMOtherField2() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("自定义3")) {
|
||||
materialOther = materialOther + ((diEx.getMOtherField3() == null || diEx.getMOtherField3().equals("")) ? "" : "(" + diEx.getMOtherField3() + ")");
|
||||
}
|
||||
}
|
||||
return materialOther;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找所有的明细
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param projectId
|
||||
* @param monthTime
|
||||
* @param headIds
|
||||
* @param materialIds
|
||||
* @param mpList
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findByAll")
|
||||
public BaseResponseInfo findByAll(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("projectId") Integer projectId,
|
||||
@RequestParam("monthTime") String monthTime,
|
||||
@RequestParam("headIds") String headIds,
|
||||
@RequestParam("materialIds") String materialIds,
|
||||
@RequestParam("mpList") String mpList,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize);
|
||||
String[] mpArr = mpList.split(",");
|
||||
int total = depotItemService.findByAllCount(headIds, materialIds);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
Integer pid = projectId;
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (DepotItemVo4WithInfoEx diEx : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
Double prevSum = sumNumber("入库", pid, diEx.getMaterialid(), monthTime, true) - sumNumber("出库", pid, diEx.getMaterialid(), monthTime, true);
|
||||
Double InSum = sumNumber("入库", pid, diEx.getMaterialid(), monthTime, false);
|
||||
Double OutSum = sumNumber("出库", pid, diEx.getMaterialid(), monthTime, false);
|
||||
Double prevPrice = sumPrice("入库", pid, diEx.getMaterialid(), monthTime, true) - sumPrice("出库", pid, diEx.getMaterialid(), monthTime, true);
|
||||
Double InPrice = sumPrice("入库", pid, diEx.getMaterialid(), monthTime, false);
|
||||
Double OutPrice = sumPrice("出库", pid, diEx.getMaterialid(), monthTime, false);
|
||||
item.put("Id", diEx.getId());
|
||||
item.put("MaterialId", diEx.getMaterialid());
|
||||
item.put("MaterialName", diEx.getMName());
|
||||
item.put("MaterialModel", diEx.getMColor());
|
||||
//扩展信息
|
||||
String materialOther = getOtherInfo(mpArr, diEx);
|
||||
item.put("MaterialOther", materialOther);
|
||||
item.put("MaterialColor", diEx.getMColor());
|
||||
item.put("MaterialUnit", diEx.getMaterialUnit());
|
||||
Double unitPrice = 0.0;
|
||||
if (prevSum + InSum - OutSum != 0.0) {
|
||||
unitPrice = (prevPrice + InPrice - OutPrice) / (prevSum + InSum - OutSum);
|
||||
}
|
||||
item.put("UnitPrice", unitPrice);
|
||||
item.put("prevSum", prevSum);
|
||||
item.put("InSum", InSum);
|
||||
item.put("OutSum", OutSum);
|
||||
item.put("thisSum", prevSum + InSum - OutSum);
|
||||
item.put("thisAllPrice", prevPrice + InPrice - OutPrice);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
map.put("rows", dataArray);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统计总计金额
|
||||
* @param pid
|
||||
* @param monthTime
|
||||
* @param headIds
|
||||
* @param materialIds
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/totalCountMoney")
|
||||
public BaseResponseInfo totalCountMoney(@RequestParam("projectId") Integer pid,
|
||||
@RequestParam("monthTime") String monthTime,
|
||||
@RequestParam("headIds") String headIds,
|
||||
@RequestParam("materialIds") String materialIds,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, null, null);
|
||||
Double thisAllPrice = 0.0;
|
||||
if (null != dataList) {
|
||||
for (DepotItemVo4WithInfoEx diEx : dataList) {
|
||||
Double prevPrice = sumPrice("入库", pid, diEx.getMaterialid(), monthTime, true) - sumPrice("出库", pid, diEx.getMaterialid(), monthTime, true);
|
||||
Double InPrice = sumPrice("入库", pid, diEx.getMaterialid(), monthTime, false);
|
||||
Double OutPrice = sumPrice("出库", pid, diEx.getMaterialid(), monthTime, false);
|
||||
thisAllPrice = thisAllPrice + (prevPrice + InPrice - OutPrice);
|
||||
}
|
||||
}
|
||||
map.put("totalCount", thisAllPrice);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 进货统计
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param monthTime
|
||||
* @param headIds
|
||||
* @param materialIds
|
||||
* @param mpList
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/buyIn")
|
||||
public BaseResponseInfo buyIn(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("monthTime") String monthTime,
|
||||
@RequestParam("headIds") String headIds,
|
||||
@RequestParam("materialIds") String materialIds,
|
||||
@RequestParam("mpList") String mpList,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize);
|
||||
String[] mpArr = mpList.split(",");
|
||||
int total = depotItemService.findByAllCount(headIds, materialIds);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (DepotItemVo4WithInfoEx diEx : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
Double InSum = sumNumberBuyOrSale("入库", "采购", diEx.getMaterialid(), monthTime);
|
||||
Double OutSum = sumNumberBuyOrSale("出库", "采购退货", diEx.getMaterialid(), monthTime);
|
||||
Double InSumPrice = sumPriceBuyOrSale("入库", "采购", diEx.getMaterialid(), monthTime);
|
||||
Double OutSumPrice = sumPriceBuyOrSale("出库", "采购退货", diEx.getMaterialid(), monthTime);
|
||||
item.put("Id", diEx.getId());
|
||||
item.put("MaterialId", diEx.getMaterialid());
|
||||
item.put("MaterialName", diEx.getMName());
|
||||
item.put("MaterialModel", diEx.getMModel());
|
||||
//扩展信息
|
||||
String materialOther = getOtherInfo(mpArr, diEx);
|
||||
item.put("MaterialOther", materialOther);
|
||||
item.put("MaterialColor", diEx.getMColor());
|
||||
item.put("MaterialUnit", diEx.getMaterialUnit());
|
||||
item.put("InSum", InSum);
|
||||
item.put("OutSum", OutSum);
|
||||
item.put("InSumPrice", InSumPrice);
|
||||
item.put("OutSumPrice", OutSumPrice);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
map.put("rows", dataArray);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 销售统计
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param monthTime
|
||||
* @param headIds
|
||||
* @param materialIds
|
||||
* @param mpList
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/saleOut")
|
||||
public BaseResponseInfo saleOut(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("monthTime") String monthTime,
|
||||
@RequestParam("headIds") String headIds,
|
||||
@RequestParam("materialIds") String materialIds,
|
||||
@RequestParam("mpList") String mpList,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize);
|
||||
String[] mpArr = mpList.split(",");
|
||||
int total = depotItemService.findByAllCount(headIds, materialIds);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (DepotItemVo4WithInfoEx diEx : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
Double OutSumRetail = sumNumberBuyOrSale("出库", "零售", diEx.getMaterialid(), monthTime);
|
||||
Double OutSum = sumNumberBuyOrSale("出库", "销售", diEx.getMaterialid(), monthTime);
|
||||
Double InSumRetail = sumNumberBuyOrSale("入库", "零售退货", diEx.getMaterialid(), monthTime);
|
||||
Double InSum = sumNumberBuyOrSale("入库", "销售退货", diEx.getMaterialid(), monthTime);
|
||||
Double OutSumRetailPrice = sumPriceBuyOrSale("出库", "零售", diEx.getMaterialid(), monthTime);
|
||||
Double OutSumPrice = sumPriceBuyOrSale("出库", "销售", diEx.getMaterialid(), monthTime);
|
||||
Double InSumRetailPrice = sumPriceBuyOrSale("入库", "零售退货", diEx.getMaterialid(), monthTime);
|
||||
Double InSumPrice = sumPriceBuyOrSale("入库", "销售退货", diEx.getMaterialid(), monthTime);
|
||||
item.put("Id", diEx.getId());
|
||||
item.put("MaterialId", diEx.getMaterialid());
|
||||
item.put("MaterialName", diEx.getMName());
|
||||
item.put("MaterialModel", diEx.getMModel());
|
||||
//扩展信息
|
||||
String materialOther = getOtherInfo(mpArr, diEx);
|
||||
item.put("MaterialOther", materialOther);
|
||||
item.put("MaterialColor", diEx.getMColor());
|
||||
item.put("MaterialUnit", diEx.getMaterialUnit());
|
||||
item.put("OutSum", OutSumRetail + OutSum);
|
||||
item.put("InSum", InSumRetail + InSum);
|
||||
item.put("OutSumPrice", OutSumRetailPrice + OutSumPrice);
|
||||
item.put("InSumPrice", InSumRetailPrice + InSumPrice);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
map.put("rows", dataArray);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找礼品卡信息
|
||||
* @param currentPage
|
||||
* @param pageSize
|
||||
* @param projectId
|
||||
* @param headIds
|
||||
* @param materialIds
|
||||
* @param mpList
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findGiftByAll")
|
||||
public BaseResponseInfo findGiftByAll(@RequestParam("currentPage") Integer currentPage,
|
||||
@RequestParam("pageSize") Integer pageSize,
|
||||
@RequestParam("projectId") Integer projectId,
|
||||
@RequestParam("headIds") String headIds,
|
||||
@RequestParam("materialIds") String materialIds,
|
||||
@RequestParam("mpList") String mpList,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize);
|
||||
String[] mpArr = mpList.split(",");
|
||||
int total = depotItemService.findByAllCount(headIds, materialIds);
|
||||
map.put("total", total);
|
||||
Integer pid = projectId;
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (DepotItemVo4WithInfoEx diEx : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
Double InSum = sumNumberGift("礼品充值", pid, diEx.getMaterialid(), "in");
|
||||
Double OutSum = sumNumberGift("礼品销售", pid, diEx.getMaterialid(), "out");
|
||||
item.put("Id", diEx.getId());
|
||||
item.put("MaterialId", diEx.getMaterialid());
|
||||
item.put("MaterialName", diEx.getMName());
|
||||
item.put("MaterialModel", diEx.getMModel());
|
||||
//扩展信息
|
||||
String materialOther = getOtherInfo(mpArr, diEx);
|
||||
item.put("MaterialOther", materialOther);
|
||||
item.put("MaterialColor", diEx.getMColor());
|
||||
item.put("MaterialUnit", diEx.getMaterialUnit());
|
||||
item.put("thisSum", InSum - OutSum);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
map.put("rows", dataArray);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 数量合计
|
||||
*
|
||||
* @param type
|
||||
* @param MId
|
||||
* @param MonthTime
|
||||
* @param isPrev
|
||||
* @return
|
||||
*/
|
||||
public Double sumNumber(String type, Integer ProjectId, Long MId, String MonthTime, Boolean isPrev) {
|
||||
Double sumNumber = 0.0;
|
||||
try {
|
||||
Double sum = depotItemService.findByType(type, ProjectId, MId, MonthTime, isPrev);
|
||||
if(sum != null) {
|
||||
sumNumber = sum;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return sumNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* 价格合计
|
||||
*
|
||||
* @param type
|
||||
* @param MId
|
||||
* @param MonthTime
|
||||
* @param isPrev
|
||||
* @return
|
||||
*/
|
||||
public Double sumPrice(String type, Integer ProjectId, Long MId, String MonthTime, Boolean isPrev) {
|
||||
Double sumPrice = 0.0;
|
||||
try {
|
||||
Double sum = depotItemService.findPriceByType(type, ProjectId, MId, MonthTime, isPrev);
|
||||
if(sum != null) {
|
||||
sumPrice = sum;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return sumPrice;
|
||||
}
|
||||
|
||||
public Double sumNumberBuyOrSale(String type, String subType, Long MId, String MonthTime) {
|
||||
Double sumNumber = 0.0;
|
||||
String sumType = "Number";
|
||||
try {
|
||||
Double sum = depotItemService.buyOrSale(type, subType, MId, MonthTime, sumType);
|
||||
if(sum != null) {
|
||||
sumNumber = sum;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return sumNumber;
|
||||
}
|
||||
|
||||
public Double sumPriceBuyOrSale(String type, String subType, Long MId, String MonthTime) {
|
||||
Double sumPrice = 0.0;
|
||||
String sumType = "Price";
|
||||
try {
|
||||
Double sum = depotItemService.buyOrSale(type, subType, MId, MonthTime, sumType);
|
||||
if(sum != null) {
|
||||
sumPrice = sum;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return sumPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* 数量合计-礼品卡
|
||||
* @param subType
|
||||
* @param ProjectId
|
||||
* @param MId
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
public Double sumNumberGift(String subType, Integer ProjectId, Long MId, String type) {
|
||||
Double sumNumber = 0.0;
|
||||
String allNumber = "";
|
||||
try {
|
||||
if (ProjectId != null) {
|
||||
Double sum = depotItemService.findGiftByType(subType, ProjectId, MId, type);
|
||||
if(sum != null) {
|
||||
sumNumber = sum;
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return sumNumber;
|
||||
}
|
||||
}
|
||||
235
src/main/java/com/jsh/erp/controller/FunctionsController.java
Normal file
235
src/main/java/com/jsh/erp/controller/FunctionsController.java
Normal file
@@ -0,0 +1,235 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Functions;
|
||||
import com.jsh.erp.service.functions.FunctionsService;
|
||||
import com.jsh.erp.service.userBusiness.UserBusinessService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/functions")
|
||||
public class FunctionsController {
|
||||
private Logger logger = LoggerFactory.getLogger(FunctionsController.class);
|
||||
|
||||
@Resource
|
||||
private FunctionsService functionsService;
|
||||
|
||||
@Resource
|
||||
private UserBusinessService userBusinessService;
|
||||
|
||||
@PostMapping(value = "/findMenu")
|
||||
public JSONArray findMenu(@RequestParam(value="pNumber") String pNumber,
|
||||
@RequestParam(value="hasFunctions") String hasFunctions,
|
||||
HttpServletRequest request) {
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
try {
|
||||
String fc = hasFunctions; //当前用户所拥有的功能列表,格式如:[1][2][5]
|
||||
List<Functions> dataList = functionsService.getRoleFunctions(pNumber);
|
||||
if (null != dataList) {
|
||||
for (Functions functions : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", functions.getId());
|
||||
List<Functions> dataList1 = functionsService.getRoleFunctions(functions.getNumber());
|
||||
JSONArray dataArray1 = new JSONArray();
|
||||
if (dataList1.size() != 0) {
|
||||
item.put("text", functions.getName()); //是目录就没链接
|
||||
for (Functions functions1 : dataList1) {
|
||||
item.put("state", "open"); //如果不为空,节点展开
|
||||
JSONObject item1 = new JSONObject();
|
||||
List<Functions> dataList2 = functionsService.getRoleFunctions(functions1.getNumber());
|
||||
if (fc.indexOf("[" + functions1.getId().toString() + "]") != -1 || dataList2.size() != 0) {
|
||||
item1.put("id", functions1.getId());
|
||||
JSONArray dataArray2 = new JSONArray();
|
||||
if (dataList2.size() != 0) {
|
||||
item1.put("text", functions1.getName());//是目录就没链接
|
||||
for (Functions functions2 : dataList2) {
|
||||
item1.put("state", "closed"); //如果不为空,节点不展开
|
||||
JSONObject item2 = new JSONObject();
|
||||
List<Functions> dataList3 = functionsService.getRoleFunctions(functions2.getNumber());
|
||||
if (fc.indexOf("[" + functions2.getId().toString() + "]") != -1 || dataList3.size() != 0) {
|
||||
item2.put("id", functions2.getId());
|
||||
JSONArray dataArray3 = new JSONArray();
|
||||
if (dataList3.size() != 0) {
|
||||
item2.put("text", functions2.getName());//是目录就没链接
|
||||
for (Functions functions3 : dataList3) {
|
||||
item2.put("state", "closed"); //如果不为空,节点不展开
|
||||
JSONObject item3 = new JSONObject();
|
||||
item3.put("id", functions3.getId());
|
||||
item3.put("text", functions3.getName());
|
||||
//
|
||||
dataArray3.add(item3);
|
||||
item2.put("children", dataArray3);
|
||||
}
|
||||
} else {
|
||||
//不是目录,有链接
|
||||
item2.put("text", "<a onclick=\"NewTab('" + functions2.getName() + "','" + functions2.getUrl() + "','" + functions2.getId() + "')\">" + functions2.getName() + "</a>");
|
||||
}
|
||||
} else {
|
||||
//不是目录,有链接
|
||||
item2.put("text", "<a onclick=\"NewTab('" + functions2.getName() + "','" + functions2.getUrl() + "','" + functions2.getId() + "')\">" + functions2.getName() + "</a>");
|
||||
}
|
||||
dataArray2.add(item2);
|
||||
item1.put("children", dataArray2);
|
||||
}
|
||||
} else {
|
||||
//不是目录,有链接
|
||||
item1.put("text", "<a onclick=\"NewTab('" + functions1.getName() + "','" + functions1.getUrl() + "','" + functions1.getId() + "')\">" + functions1.getName() + "</a>");
|
||||
}
|
||||
} else {
|
||||
//不是目录,有链接
|
||||
item1.put("text", "<a onclick=\"NewTab('" + functions1.getName() + "','" + functions1.getUrl() + "','" + functions1.getId() + "')\">" + functions1.getName() + "</a>");
|
||||
}
|
||||
dataArray1.add(item1);
|
||||
item.put("children", dataArray1);
|
||||
}
|
||||
} else {
|
||||
//不是目录,有链接
|
||||
item.put("text", "<a onclick=\"NewTab('" + functions.getName() + "','" + functions.getUrl() + "','" + functions.getId() + "')\">" + functions.getName() + "</a>");
|
||||
}
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
} catch (DataAccessException e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>>>查找应用异常", e);
|
||||
}
|
||||
return dataArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* 角色对应功能显示
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findRoleFunctions")
|
||||
public JSONArray findRoleFunctions(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId,
|
||||
HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Functions> dataList = functionsService.findRoleFunctions("0");
|
||||
//开始拼接json数据
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("id", 1);
|
||||
outer.put("text", "功能列表");
|
||||
outer.put("state", "open");
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (Functions functions : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", functions.getId());
|
||||
item.put("text", functions.getName());
|
||||
|
||||
//勾选判断1
|
||||
Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions.getId().toString() + "]");
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item.put("checked", true);
|
||||
}
|
||||
//结束
|
||||
|
||||
List<Functions> dataList1 = functionsService.findRoleFunctions(functions.getNumber());
|
||||
JSONArray dataArray1 = new JSONArray();
|
||||
if (null != dataList1) {
|
||||
|
||||
for (Functions functions1 : dataList1) {
|
||||
item.put("state", "open"); //如果不为空,节点不展开
|
||||
JSONObject item1 = new JSONObject();
|
||||
item1.put("id", functions1.getId());
|
||||
item1.put("text", functions1.getName());
|
||||
|
||||
//勾选判断2
|
||||
//Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions1.getId().toString() + "]");
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item1.put("checked", true);
|
||||
}
|
||||
//结束
|
||||
|
||||
List<Functions> dataList2 = functionsService.findRoleFunctions(functions1.getNumber());
|
||||
JSONArray dataArray2 = new JSONArray();
|
||||
if (null != dataList2) {
|
||||
|
||||
for (Functions functions2 : dataList2) {
|
||||
item1.put("state", "closed"); //如果不为空,节点不展开
|
||||
JSONObject item2 = new JSONObject();
|
||||
item2.put("id", functions2.getId());
|
||||
item2.put("text", functions2.getName());
|
||||
|
||||
//勾选判断3
|
||||
//Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions2.getId().toString() + "]");
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item2.put("checked", true);
|
||||
}
|
||||
//结束
|
||||
|
||||
List<Functions> dataList3 = functionsService.findRoleFunctions(functions2.getNumber());
|
||||
JSONArray dataArray3 = new JSONArray();
|
||||
if (null != dataList3) {
|
||||
|
||||
for (Functions functions3 : dataList3) {
|
||||
item2.put("state", "closed"); //如果不为空,节点不展开
|
||||
JSONObject item3 = new JSONObject();
|
||||
item3.put("id", functions3.getId());
|
||||
item3.put("text", functions3.getName());
|
||||
|
||||
//勾选判断4
|
||||
//Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + functions3.getId().toString() + "]");
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>设置角色对应的功能:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item3.put("checked", true);
|
||||
}
|
||||
//结束
|
||||
|
||||
dataArray3.add(item3);
|
||||
item2.put("children", dataArray3);
|
||||
}
|
||||
}
|
||||
|
||||
dataArray2.add(item2);
|
||||
item1.put("children", dataArray2);
|
||||
}
|
||||
}
|
||||
|
||||
dataArray1.add(item1);
|
||||
item.put("children", dataArray1);
|
||||
}
|
||||
|
||||
}
|
||||
dataArray.add(item);
|
||||
}
|
||||
outer.put("children", dataArray);
|
||||
arr.add(outer);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.InOutItem;
|
||||
import com.jsh.erp.service.inOutItem.InOutItemService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/inOutItem")
|
||||
public class InOutItemController {
|
||||
private Logger logger = LoggerFactory.getLogger(InOutItemController.class);
|
||||
|
||||
@Resource
|
||||
private InOutItemService inOutItemService;
|
||||
|
||||
/**
|
||||
* 查找收支项目信息-下拉框
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findBySelect")
|
||||
public String findBySelect(@RequestParam("type") String type, HttpServletRequest request) {
|
||||
String res = null;
|
||||
try {
|
||||
List<InOutItem> dataList = inOutItemService.findBySelect(type);
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (InOutItem inOutItem : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", inOutItem.getId());
|
||||
//收支项目名称
|
||||
item.put("InOutItemName", inOutItem.getName());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
res = dataArray.toJSONString();
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.MaterialCategory;
|
||||
import com.jsh.erp.service.materialCategory.MaterialCategoryService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/materialCategory")
|
||||
public class MaterialCategoryController {
|
||||
private Logger logger = LoggerFactory.getLogger(MaterialCategoryController.class);
|
||||
|
||||
@Resource
|
||||
private MaterialCategoryService materialCategoryService;
|
||||
|
||||
@GetMapping(value = "/getAllList")
|
||||
public BaseResponseInfo getAllList(@RequestParam("parentId") Long parentId, HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
List<MaterialCategory> materialCategoryList = materialCategoryService.getAllList(parentId);
|
||||
res.code = 200;
|
||||
res.data = materialCategoryList;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id来查询商品名称
|
||||
* @param id
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findById")
|
||||
public BaseResponseInfo findById(@RequestParam("id") Long id, HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
List<MaterialCategory> dataList = materialCategoryService.findById(id);
|
||||
JSONObject outer = new JSONObject();
|
||||
if (null != dataList) {
|
||||
for (MaterialCategory mc : dataList) {
|
||||
outer.put("name", mc.getName());
|
||||
outer.put("parentId", mc.getParentid());
|
||||
}
|
||||
}
|
||||
res.code = 200;
|
||||
res.data = dataList;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
177
src/main/java/com/jsh/erp/controller/MaterialController.java
Normal file
177
src/main/java/com/jsh/erp/controller/MaterialController.java
Normal file
@@ -0,0 +1,177 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Material;
|
||||
import com.jsh.erp.datasource.entities.MaterialVo4Unit;
|
||||
import com.jsh.erp.service.material.MaterialService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import com.jsh.erp.utils.ErpInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/material")
|
||||
public class MaterialController {
|
||||
private Logger logger = LoggerFactory.getLogger(MaterialController.class);
|
||||
|
||||
@Resource
|
||||
private MaterialService materialService;
|
||||
|
||||
@GetMapping(value = "/checkIsExist")
|
||||
public String checkIsExist(@RequestParam("materialId") Long id, @RequestParam("name") String name,
|
||||
@RequestParam("model") String model, @RequestParam("color") String color,
|
||||
@RequestParam("standard") String standard, @RequestParam("mfrs") String mfrs,
|
||||
@RequestParam("otherField1") String otherField1, @RequestParam("otherField2") String otherField2,
|
||||
@RequestParam("otherField3") String otherField3, @RequestParam("unit") String unit,@RequestParam("unitId") Long unitId,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int exist = materialService.checkIsExist(id, name, model, color, standard, mfrs,
|
||||
otherField1, otherField2, otherField3, unit, unitId);
|
||||
if(exist > 0) {
|
||||
objectMap.put("status", true);
|
||||
} else {
|
||||
objectMap.put("status", false);
|
||||
}
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量设置状态-启用或者禁用
|
||||
* @param enabled
|
||||
* @param materialIDs
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/batchSetEnable")
|
||||
public String batchSetEnable(@RequestParam("enabled") Boolean enabled,
|
||||
@RequestParam("materialIDs") String materialIDs,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int res = materialService.batchSetEnable(enabled, materialIDs);
|
||||
if(res > 0) {
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id来查询商品名称
|
||||
* @param id
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findById")
|
||||
public BaseResponseInfo findById(@RequestParam("id") Long id, HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
List<MaterialVo4Unit> list = materialService.findById(id);
|
||||
res.code = 200;
|
||||
res.data = list;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找商品信息-下拉框
|
||||
* @param mpList
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findBySelect")
|
||||
public JSONArray findBySelect(@RequestParam("mpList") String mpList, HttpServletRequest request) {
|
||||
JSONArray dataArray = new JSONArray();
|
||||
try {
|
||||
List<MaterialVo4Unit> dataList = materialService.findBySelect();
|
||||
String[] mpArr = mpList.split(",");
|
||||
//存放数据json数组
|
||||
if (null != dataList) {
|
||||
for (MaterialVo4Unit material : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", material.getId());
|
||||
String ratio; //比例
|
||||
if (material.getUnitid() == null || material.getUnitid().equals("")) {
|
||||
ratio = "";
|
||||
} else {
|
||||
ratio = material.getUnitName();
|
||||
ratio = ratio.substring(ratio.indexOf("("));
|
||||
}
|
||||
//品名/型号/扩展信息/包装
|
||||
String MaterialName = material.getName() + ((material.getModel() == null || material.getModel().equals("")) ? "" : "(" + material.getModel() + ")");
|
||||
for (int i = 0; i < mpArr.length; i++) {
|
||||
if (mpArr[i].equals("颜色")) {
|
||||
MaterialName = MaterialName + ((material.getColor() == null || material.getColor().equals("")) ? "" : "(" + material.getColor() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("规格")) {
|
||||
MaterialName = MaterialName + ((material.getStandard() == null || material.getStandard().equals("")) ? "" : "(" + material.getStandard() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("制造商")) {
|
||||
MaterialName = MaterialName + ((material.getMfrs() == null || material.getMfrs().equals("")) ? "" : "(" + material.getMfrs() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("自定义1")) {
|
||||
MaterialName = MaterialName + ((material.getOtherfield1() == null || material.getOtherfield1().equals("")) ? "" : "(" + material.getOtherfield1() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("自定义2")) {
|
||||
MaterialName = MaterialName + ((material.getOtherfield2() == null || material.getOtherfield2().equals("")) ? "" : "(" + material.getOtherfield2() + ")");
|
||||
}
|
||||
if (mpArr[i].equals("自定义3")) {
|
||||
MaterialName = MaterialName + ((material.getOtherfield3() == null || material.getOtherfield3().equals("")) ? "" : "(" + material.getOtherfield3() + ")");
|
||||
}
|
||||
}
|
||||
MaterialName = MaterialName + ((material.getUnit() == null || material.getUnit().equals("")) ? "" : "(" + material.getUnit() + ")") + ratio;
|
||||
item.put("MaterialName", MaterialName);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return dataArray;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查找商品信息-统计排序
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findByOrder")
|
||||
public BaseResponseInfo findByOrder(HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<Material> dataList = materialService.findByOrder();
|
||||
String mId = "";
|
||||
if (null != dataList) {
|
||||
for (Material material : dataList) {
|
||||
mId = mId + material.getId() + ",";
|
||||
}
|
||||
}
|
||||
if (mId != "") {
|
||||
mId = mId.substring(0, mId.lastIndexOf(","));
|
||||
}
|
||||
map.put("mIds", mId);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
121
src/main/java/com/jsh/erp/controller/PersonController.java
Normal file
121
src/main/java/com/jsh/erp/controller/PersonController.java
Normal file
@@ -0,0 +1,121 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Person;
|
||||
import com.jsh.erp.service.person.PersonService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/person")
|
||||
public class PersonController {
|
||||
private Logger logger = LoggerFactory.getLogger(PersonController.class);
|
||||
|
||||
@Resource
|
||||
private PersonService personService;
|
||||
|
||||
@GetMapping(value = "/getAllList")
|
||||
public BaseResponseInfo getAllList(HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<Person> personList = personService.getPerson();
|
||||
map.put("personList", personList);
|
||||
res.code = 200;
|
||||
res.data = personList;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据Id获取经手人信息
|
||||
* @param personIDs
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getPersonByIds")
|
||||
public BaseResponseInfo getPersonByIds(@RequestParam("personIDs") String personIDs, HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
String names = personService.getPersonByIds(personIDs);
|
||||
map.put("names", names);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型获取经手人信息
|
||||
* @param type
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/getPersonByType")
|
||||
public BaseResponseInfo getPersonByType(@RequestParam("type") String type, HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
try {
|
||||
List<Person> personList = personService.getPersonByType(type);
|
||||
map.put("personList", personList);
|
||||
res.code = 200;
|
||||
res.data = map;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型获取经手人信息 1-业务员,2-仓管员,3-财务员
|
||||
* @param typeNum
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/getPersonByNumType")
|
||||
public JSONArray getPersonByNumType(@RequestParam("type") String typeNum, HttpServletRequest request) {
|
||||
JSONArray dataArray = new JSONArray();
|
||||
try {
|
||||
String type = "";
|
||||
if (typeNum.equals("1")) {
|
||||
type = "业务员";
|
||||
} else if (typeNum.equals("2")) {
|
||||
type = "仓管员";
|
||||
} else if (typeNum.equals("3")) {
|
||||
type = "财务员";
|
||||
}
|
||||
List<Person> personList = personService.getPersonByType(type);
|
||||
if (null != personList) {
|
||||
for (Person person : personList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", person.getId());
|
||||
item.put("name", person.getName());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return dataArray;
|
||||
}
|
||||
}
|
||||
124
src/main/java/com/jsh/erp/controller/ResourceController.java
Normal file
124
src/main/java/com/jsh/erp/controller/ResourceController.java
Normal file
@@ -0,0 +1,124 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.service.CommonQueryManager;
|
||||
import com.jsh.erp.utils.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.*;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
/**
|
||||
* by jishenghua 2018-9-12 23:58:10
|
||||
*/
|
||||
@RestController
|
||||
public class ResourceController {
|
||||
private Logger logger = LoggerFactory.getLogger(ResourceController.class);
|
||||
|
||||
@Resource
|
||||
private CommonQueryManager configResourceManager;
|
||||
|
||||
@GetMapping(value = "/test/heart")
|
||||
public JSONObject exitHeart(HttpServletRequest request) {
|
||||
return JsonUtils.ok();
|
||||
}
|
||||
|
||||
@GetMapping(value = "/{apiName}/list")
|
||||
public String getList(@PathVariable("apiName") String apiName,
|
||||
@RequestParam(value = Constants.PAGE_SIZE, required = false) Integer pageSize,
|
||||
@RequestParam(value = Constants.CURRENT_PAGE, required = false) Integer currentPage,
|
||||
@RequestParam(value = Constants.SEARCH, required = false) String search,
|
||||
HttpServletRequest request) {
|
||||
Map<String, String> parameterMap = ParamUtils.requestToMap(request);
|
||||
parameterMap.put(Constants.SEARCH, search);
|
||||
PageQueryInfo queryInfo = new PageQueryInfo();
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
if (pageSize != null && pageSize <= 0) {
|
||||
pageSize = 10;
|
||||
}
|
||||
String offset = ParamUtils.getPageOffset(currentPage, pageSize);
|
||||
if (StringUtil.isNotEmpty(offset)) {
|
||||
parameterMap.put(Constants.OFFSET, offset);
|
||||
}
|
||||
List<?> list = configResourceManager.select(apiName, parameterMap);
|
||||
objectMap.put("page", queryInfo);
|
||||
if (list == null) {
|
||||
queryInfo.setRows(new ArrayList<Object>());
|
||||
queryInfo.setTotal(0);
|
||||
return returnJson(objectMap, "查找不到数据", ErpInfo.OK.code);
|
||||
}
|
||||
queryInfo.setRows(list);
|
||||
queryInfo.setTotal(configResourceManager.counts(apiName, parameterMap));
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
|
||||
@PostMapping(value = "/{apiName}/add", produces = {"application/javascript", "application/json"})
|
||||
public String addResource(@PathVariable("apiName") String apiName,
|
||||
@RequestParam("info") String beanJson, HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int insert = configResourceManager.insert(apiName, beanJson, request);
|
||||
if(insert > 0) {
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/{apiName}/update", produces = {"application/javascript", "application/json"})
|
||||
public String updateResource(@PathVariable("apiName") String apiName,
|
||||
@RequestParam("info") String beanJson,
|
||||
@RequestParam("id") Long id, HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int update = configResourceManager.update(apiName, beanJson, id);
|
||||
if(update > 0) {
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/{apiName}/{id}/delete", produces = {"application/javascript", "application/json"})
|
||||
public String deleteResource(@PathVariable("apiName") String apiName,
|
||||
@PathVariable Long id, HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int delete = configResourceManager.delete(apiName, id);
|
||||
if(delete > 0) {
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/{apiName}/batchDelete", produces = {"application/javascript", "application/json"})
|
||||
public String batchDeleteResource(@PathVariable("apiName") String apiName,
|
||||
@RequestParam("ids") String ids, HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int delete = configResourceManager.batchDelete(apiName, ids);
|
||||
if(delete > 0) {
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping(value = "/{apiName}/checkIsNameExist")
|
||||
public String checkIsNameExist(@PathVariable("apiName") String apiName,
|
||||
@RequestParam Long id, @RequestParam(value ="name", required = false) String name,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int exist = configResourceManager.checkIsNameExist(apiName, id, name);
|
||||
if(exist > 0) {
|
||||
objectMap.put("status", true);
|
||||
} else {
|
||||
objectMap.put("status", false);
|
||||
}
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
71
src/main/java/com/jsh/erp/controller/RoleController.java
Normal file
71
src/main/java/com/jsh/erp/controller/RoleController.java
Normal file
@@ -0,0 +1,71 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Role;
|
||||
import com.jsh.erp.service.role.RoleService;
|
||||
import com.jsh.erp.service.userBusiness.UserBusinessService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/role")
|
||||
public class RoleController {
|
||||
private Logger logger = LoggerFactory.getLogger(RoleController.class);
|
||||
|
||||
@Resource
|
||||
private RoleService roleService;
|
||||
|
||||
@Resource
|
||||
private UserBusinessService userBusinessService;
|
||||
|
||||
/**
|
||||
* 角色对应应用显示
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findUserRole")
|
||||
public JSONArray findUserRole(@RequestParam("UBType") String type, @RequestParam("UBKeyId") String keyId,
|
||||
HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Role> dataList = roleService.findUserRole();
|
||||
//开始拼接json数据
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("id", 1);
|
||||
outer.put("text", "角色列表");
|
||||
outer.put("state", "open");
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != dataList) {
|
||||
for (Role role : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", role.getId());
|
||||
item.put("text", role.getName());
|
||||
//勾选判断1
|
||||
Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(type, keyId, "[" + role.getId().toString() + "]");
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>设置用户对应的角色:类型" + type + " KeyId为: " + keyId + " 存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item.put("checked", true);
|
||||
}
|
||||
//结束
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("children", dataArray);
|
||||
arr.add(outer);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
192
src/main/java/com/jsh/erp/controller/SupplierController.java
Normal file
192
src/main/java/com/jsh/erp/controller/SupplierController.java
Normal file
@@ -0,0 +1,192 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.Supplier;
|
||||
import com.jsh.erp.service.supplier.SupplierService;
|
||||
import com.jsh.erp.service.userBusiness.UserBusinessService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import com.jsh.erp.utils.ErpInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/supplier")
|
||||
public class SupplierController {
|
||||
private Logger logger = LoggerFactory.getLogger(SupplierController.class);
|
||||
|
||||
@Resource
|
||||
private SupplierService supplierService;
|
||||
|
||||
@Resource
|
||||
private UserBusinessService userBusinessService;
|
||||
|
||||
/**
|
||||
* 更新供应商-只更新预付款,其余用原来的值
|
||||
* @param supplierId
|
||||
* @param advanceIn
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/updateAdvanceIn")
|
||||
public String updateAdvanceIn(@RequestParam("supplierId") Long supplierId,
|
||||
@RequestParam("advanceIn") Double advanceIn,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
int res = supplierService.updateAdvanceIn(supplierId, advanceIn);
|
||||
if(res > 0) {
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找客户信息-下拉框
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findBySelect_cus")
|
||||
public JSONArray findBySelectCus(HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Supplier> supplierList = supplierService.findBySelectCus();
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != supplierList) {
|
||||
for (Supplier supplier : supplierList) {
|
||||
JSONObject item = new JSONObject();
|
||||
//勾选判断1
|
||||
Boolean flag = false;
|
||||
try {
|
||||
flag = userBusinessService.checkIsUserBusinessExist(null, null, "[" + supplier.getId().toString() + "]");
|
||||
} catch (DataAccessException e) {
|
||||
logger.error(">>>>>>>>>>>>>>>>>查询用户对应的客户:存在异常!");
|
||||
}
|
||||
if (flag == true) {
|
||||
item.put("id", supplier.getId());
|
||||
item.put("supplier", supplier.getSupplier()); //客户名称
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
arr = dataArray;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找供应商信息-下拉框
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findBySelect_sup")
|
||||
public JSONArray findBySelectSup(HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Supplier> supplierList = supplierService.findBySelectSup();
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != supplierList) {
|
||||
for (Supplier supplier : supplierList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//供应商名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
arr = dataArray;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找会员信息-下拉框
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/findBySelect_retail")
|
||||
public JSONArray findBySelectRetail(HttpServletRequest request) {
|
||||
JSONArray arr = new JSONArray();
|
||||
try {
|
||||
List<Supplier> supplierList = supplierService.findBySelectRetail();
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if (null != supplierList) {
|
||||
for (Supplier supplier : supplierList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//客户名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
item.put("advanceIn", supplier.getAdvancein()); //预付款金额
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
arr = dataArray;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查找信息
|
||||
* @param supplierId
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/findById")
|
||||
public BaseResponseInfo findById(@RequestParam("supplierId") Long supplierId,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
JSONArray dataArray = new JSONArray();
|
||||
List<Supplier> dataList = supplierService.findById(supplierId);
|
||||
if (null != dataList) {
|
||||
for (Supplier supplier : dataList) {
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
item.put("type", supplier.getType());
|
||||
item.put("contacts", supplier.getContacts());
|
||||
item.put("phonenum", supplier.getPhonenum());
|
||||
item.put("email", supplier.getEmail());
|
||||
item.put("AdvanceIn", supplier.getAdvancein());
|
||||
item.put("BeginNeedGet", supplier.getBeginneedget());
|
||||
item.put("BeginNeedPay", supplier.getBeginneedpay());
|
||||
item.put("isystem", supplier.getIsystem() == (short) 0 ? "是" : "否");
|
||||
item.put("description", supplier.getDescription());
|
||||
item.put("fax", supplier.getFax());
|
||||
item.put("telephone", supplier.getTelephone());
|
||||
item.put("address", supplier.getAddress());
|
||||
item.put("taxNum", supplier.getTaxnum());
|
||||
item.put("bankName", supplier.getBankname());
|
||||
item.put("accountNumber", supplier.getAccountnumber());
|
||||
item.put("taxRate", supplier.getTaxrate());
|
||||
item.put("enabled", supplier.getEnabled());
|
||||
dataArray.add(item);
|
||||
}
|
||||
res.code = 200;
|
||||
res.data = dataArray;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取数据失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jsh.erp.datasource.entities.UserBusiness;
|
||||
import com.jsh.erp.service.userBusiness.UserBusinessService;
|
||||
import com.jsh.erp.utils.BaseResponseInfo;
|
||||
import com.jsh.erp.utils.ErpInfo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/userBusiness")
|
||||
public class UserBusinessController {
|
||||
private Logger logger = LoggerFactory.getLogger(UserBusinessController.class);
|
||||
|
||||
@Resource
|
||||
private UserBusinessService userBusinessService;
|
||||
|
||||
@GetMapping(value = "/getBasicData")
|
||||
public BaseResponseInfo getBasicData(@RequestParam(value = "KeyId") String keyId,
|
||||
@RequestParam(value = "Type") String type,
|
||||
HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
List<UserBusiness> list = userBusinessService.getBasicData(keyId, type);
|
||||
Map<String, List> mapData = new HashMap<String, List>();
|
||||
mapData.put("userBusinessList", list);
|
||||
res.code = 200;
|
||||
res.data = mapData;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "查询权限失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@GetMapping(value = "/checkIsValueExist")
|
||||
public String checkIsValueExist(@RequestParam(value ="type", required = false) String type,
|
||||
@RequestParam(value ="keyId", required = false) String keyId,
|
||||
HttpServletRequest request) {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
Long id = userBusinessService.checkIsValueExist(type, keyId);
|
||||
if(id != null) {
|
||||
objectMap.put("id", id);
|
||||
} else {
|
||||
objectMap.put("id", null);
|
||||
}
|
||||
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
||||
}
|
||||
}
|
||||
188
src/main/java/com/jsh/erp/controller/UserController.java
Normal file
188
src/main/java/com/jsh/erp/controller/UserController.java
Normal file
@@ -0,0 +1,188 @@
|
||||
package com.jsh.erp.controller;
|
||||
|
||||
import com.jsh.erp.datasource.entities.User;
|
||||
import com.jsh.erp.service.user.UserService;
|
||||
import com.jsh.erp.utils.*;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
|
||||
|
||||
/**
|
||||
* 用户管理 2018-10-13 21:24:06
|
||||
* @author jishenghua qq:752718920
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/user")
|
||||
public class UserController {
|
||||
private Logger logger = LoggerFactory.getLogger(ResourceController.class);
|
||||
|
||||
@Resource
|
||||
private UserService userService;
|
||||
|
||||
private static String message = "成功";
|
||||
|
||||
@PostMapping(value = "/login")
|
||||
public BaseResponseInfo login(@RequestParam(value = "loginame", required = false) String loginame,
|
||||
@RequestParam(value = "password", required = false) String password,
|
||||
HttpServletRequest request) {
|
||||
logger.info("============用户登录 login 方法调用开始==============");
|
||||
String msgTip = "";
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
String username = loginame.trim();
|
||||
password = password.trim();
|
||||
//因密码用MD5加密,需要对密码进行转化
|
||||
try {
|
||||
password = Tools.md5Encryp(password);
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
e.printStackTrace();
|
||||
logger.error(">>>>>>>>>>>>>>转化MD5字符串错误 :" + e.getMessage(), e);
|
||||
}
|
||||
//判断用户是否已经登录过,登录过不再处理
|
||||
Object userInfo = request.getSession().getAttribute("user");
|
||||
User sessionUser = new User();
|
||||
if (userInfo != null) {
|
||||
sessionUser = (User) userInfo;
|
||||
}
|
||||
if (sessionUser != null && username.equalsIgnoreCase(sessionUser.getLoginame())
|
||||
&& sessionUser.getPassword().equals(password)) {
|
||||
logger.info("====用户 " + username + "已经登录过, login 方法调用结束====");
|
||||
msgTip = "user already login";
|
||||
}
|
||||
//获取用户状态
|
||||
int userStatus = -1;
|
||||
try {
|
||||
userStatus = userService.validateUser(username, password);
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>用户 " + username + " 登录 login 方法 访问服务层异常====", e);
|
||||
msgTip = "access service exception";
|
||||
}
|
||||
switch (userStatus) {
|
||||
case ExceptionCodeConstants.UserExceptionCode.USER_NOT_EXIST:
|
||||
msgTip = "user is not exist";
|
||||
break;
|
||||
case ExceptionCodeConstants.UserExceptionCode.USER_PASSWORD_ERROR:
|
||||
msgTip = "user password error";
|
||||
break;
|
||||
case ExceptionCodeConstants.UserExceptionCode.BLACK_USER:
|
||||
msgTip = "user is black";
|
||||
break;
|
||||
case ExceptionCodeConstants.UserExceptionCode.USER_ACCESS_EXCEPTION:
|
||||
msgTip = "access service error";
|
||||
break;
|
||||
default:
|
||||
try {
|
||||
//验证通过 ,可以登录,放入session,记录登录日志
|
||||
User user = userService.getUserByUserName(username);
|
||||
// logService.create(new Logdetails(user, "登录系统", model.getClientIp(),
|
||||
// new Timestamp(System.currentTimeMillis()), (short) 0, "管理用户:" + username + " 登录系统", username + " 登录系统"));
|
||||
msgTip = "user can login";
|
||||
request.getSession().setAttribute("user",user);
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>>>查询用户名为:" + username + " ,用户信息异常", e);
|
||||
}
|
||||
break;
|
||||
}
|
||||
Map<String, Object> data = new HashMap<String, Object>();
|
||||
data.put("msgTip", msgTip);
|
||||
res.code = 200;
|
||||
res.data = data;
|
||||
logger.info("===============用户登录 login 方法调用结束===============");
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "用户登录失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@GetMapping(value = "/getUserSession")
|
||||
public BaseResponseInfo getSessionUser(HttpServletRequest request) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
Map<String, Object> data = new HashMap<String, Object>();
|
||||
Object userInfo = request.getSession().getAttribute("user");
|
||||
if(userInfo!=null) {
|
||||
User user = (User) userInfo;
|
||||
user.setPassword(null);
|
||||
data.put("user", user);
|
||||
}
|
||||
res.code = 200;
|
||||
res.data = data;
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "获取session失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@GetMapping(value = "/logout")
|
||||
public BaseResponseInfo logout(HttpServletRequest request, HttpServletResponse response) {
|
||||
BaseResponseInfo res = new BaseResponseInfo();
|
||||
try {
|
||||
request.getSession().removeAttribute("user");
|
||||
response.sendRedirect("/login.html");
|
||||
} catch(Exception e){
|
||||
e.printStackTrace();
|
||||
res.code = 500;
|
||||
res.data = "退出失败";
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@PostMapping(value = "/resetPwd")
|
||||
public String resetPwd(@RequestParam("id") Long id,
|
||||
HttpServletRequest request) throws NoSuchAlgorithmException {
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
String password = "123456";
|
||||
String md5Pwd = Tools.md5Encryp(password);
|
||||
int update = userService.resetPwd(md5Pwd, id);
|
||||
if(update > 0) {
|
||||
return returnJson(objectMap, message, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, message, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value = "/updatePwd")
|
||||
public String updatePwd(@RequestParam("userId") Long userId, @RequestParam("password") String password,
|
||||
@RequestParam("oldpwd") String oldpwd, HttpServletRequest request) {
|
||||
Integer flag = 0;
|
||||
Map<String, Object> objectMap = new HashMap<String, Object>();
|
||||
try {
|
||||
User user = userService.getUser(userId);
|
||||
String oldPassword = Tools.md5Encryp(oldpwd);
|
||||
String md5Pwd = Tools.md5Encryp(password);
|
||||
//必须和原始密码一致才可以更新密码
|
||||
if(user.getLoginame().equals("jsh")){
|
||||
flag = 3; //管理员jsh不能修改密码
|
||||
} else if (oldPassword.equalsIgnoreCase(user.getPassword())) {
|
||||
user.setPassword(md5Pwd);
|
||||
flag = userService.updateUserByObj(user); //1-成功
|
||||
} else {
|
||||
flag = 2; //原始密码输入错误
|
||||
}
|
||||
objectMap.put("status", flag);
|
||||
if(flag > 0) {
|
||||
return returnJson(objectMap, message, ErpInfo.OK.code);
|
||||
} else {
|
||||
return returnJson(objectMap, message, ErpInfo.ERROR.code);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>>>修改用户ID为 : " + userId + "密码信息失败", e);
|
||||
flag = 3;
|
||||
objectMap.put("status", flag);
|
||||
return returnJson(objectMap, message, ErpInfo.ERROR.code);
|
||||
}
|
||||
}
|
||||
}
|
||||
227
src/main/java/com/jsh/erp/datasource/entities/Account.java
Normal file
227
src/main/java/com/jsh/erp/datasource/entities/Account.java
Normal file
@@ -0,0 +1,227 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Account {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_account.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_account.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_account.SerialNo
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String serialno;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_account.InitialAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double initialamount;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_account.CurrentAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double currentamount;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_account.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_account.IsDefault
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean isdefault;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_account.Id
|
||||
*
|
||||
* @return the value of jsh_account.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_account.Id
|
||||
*
|
||||
* @param id the value for jsh_account.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_account.Name
|
||||
*
|
||||
* @return the value of jsh_account.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_account.Name
|
||||
*
|
||||
* @param name the value for jsh_account.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_account.SerialNo
|
||||
*
|
||||
* @return the value of jsh_account.SerialNo
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSerialno() {
|
||||
return serialno;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_account.SerialNo
|
||||
*
|
||||
* @param serialno the value for jsh_account.SerialNo
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSerialno(String serialno) {
|
||||
this.serialno = serialno == null ? null : serialno.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_account.InitialAmount
|
||||
*
|
||||
* @return the value of jsh_account.InitialAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getInitialamount() {
|
||||
return initialamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_account.InitialAmount
|
||||
*
|
||||
* @param initialamount the value for jsh_account.InitialAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setInitialamount(Double initialamount) {
|
||||
this.initialamount = initialamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_account.CurrentAmount
|
||||
*
|
||||
* @return the value of jsh_account.CurrentAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getCurrentamount() {
|
||||
return currentamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_account.CurrentAmount
|
||||
*
|
||||
* @param currentamount the value for jsh_account.CurrentAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setCurrentamount(Double currentamount) {
|
||||
this.currentamount = currentamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_account.Remark
|
||||
*
|
||||
* @return the value of jsh_account.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_account.Remark
|
||||
*
|
||||
* @param remark the value for jsh_account.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_account.IsDefault
|
||||
*
|
||||
* @return the value of jsh_account.IsDefault
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getIsdefault() {
|
||||
return isdefault;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_account.IsDefault
|
||||
*
|
||||
* @param isdefault the value for jsh_account.IsDefault
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIsdefault(Boolean isdefault) {
|
||||
this.isdefault = isdefault;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,752 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AccountExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public AccountExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("Name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("Name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("Name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("Name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("Name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("Name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("Name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("Name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("Name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("Name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("Name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("Name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("Name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoIsNull() {
|
||||
addCriterion("SerialNo is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoIsNotNull() {
|
||||
addCriterion("SerialNo is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoEqualTo(String value) {
|
||||
addCriterion("SerialNo =", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoNotEqualTo(String value) {
|
||||
addCriterion("SerialNo <>", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoGreaterThan(String value) {
|
||||
addCriterion("SerialNo >", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("SerialNo >=", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoLessThan(String value) {
|
||||
addCriterion("SerialNo <", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoLessThanOrEqualTo(String value) {
|
||||
addCriterion("SerialNo <=", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoLike(String value) {
|
||||
addCriterion("SerialNo like", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoNotLike(String value) {
|
||||
addCriterion("SerialNo not like", value, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoIn(List<String> values) {
|
||||
addCriterion("SerialNo in", values, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoNotIn(List<String> values) {
|
||||
addCriterion("SerialNo not in", values, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoBetween(String value1, String value2) {
|
||||
addCriterion("SerialNo between", value1, value2, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSerialnoNotBetween(String value1, String value2) {
|
||||
addCriterion("SerialNo not between", value1, value2, "serialno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountIsNull() {
|
||||
addCriterion("InitialAmount is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountIsNotNull() {
|
||||
addCriterion("InitialAmount is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountEqualTo(Double value) {
|
||||
addCriterion("InitialAmount =", value, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountNotEqualTo(Double value) {
|
||||
addCriterion("InitialAmount <>", value, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountGreaterThan(Double value) {
|
||||
addCriterion("InitialAmount >", value, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("InitialAmount >=", value, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountLessThan(Double value) {
|
||||
addCriterion("InitialAmount <", value, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountLessThanOrEqualTo(Double value) {
|
||||
addCriterion("InitialAmount <=", value, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountIn(List<Double> values) {
|
||||
addCriterion("InitialAmount in", values, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountNotIn(List<Double> values) {
|
||||
addCriterion("InitialAmount not in", values, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountBetween(Double value1, Double value2) {
|
||||
addCriterion("InitialAmount between", value1, value2, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInitialamountNotBetween(Double value1, Double value2) {
|
||||
addCriterion("InitialAmount not between", value1, value2, "initialamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountIsNull() {
|
||||
addCriterion("CurrentAmount is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountIsNotNull() {
|
||||
addCriterion("CurrentAmount is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountEqualTo(Double value) {
|
||||
addCriterion("CurrentAmount =", value, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountNotEqualTo(Double value) {
|
||||
addCriterion("CurrentAmount <>", value, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountGreaterThan(Double value) {
|
||||
addCriterion("CurrentAmount >", value, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("CurrentAmount >=", value, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountLessThan(Double value) {
|
||||
addCriterion("CurrentAmount <", value, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountLessThanOrEqualTo(Double value) {
|
||||
addCriterion("CurrentAmount <=", value, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountIn(List<Double> values) {
|
||||
addCriterion("CurrentAmount in", values, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountNotIn(List<Double> values) {
|
||||
addCriterion("CurrentAmount not in", values, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountBetween(Double value1, Double value2) {
|
||||
addCriterion("CurrentAmount between", value1, value2, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCurrentamountNotBetween(Double value1, Double value2) {
|
||||
addCriterion("CurrentAmount not between", value1, value2, "currentamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNull() {
|
||||
addCriterion("Remark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNotNull() {
|
||||
addCriterion("Remark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkEqualTo(String value) {
|
||||
addCriterion("Remark =", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotEqualTo(String value) {
|
||||
addCriterion("Remark <>", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThan(String value) {
|
||||
addCriterion("Remark >", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Remark >=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThan(String value) {
|
||||
addCriterion("Remark <", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThanOrEqualTo(String value) {
|
||||
addCriterion("Remark <=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLike(String value) {
|
||||
addCriterion("Remark like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotLike(String value) {
|
||||
addCriterion("Remark not like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIn(List<String> values) {
|
||||
addCriterion("Remark in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotIn(List<String> values) {
|
||||
addCriterion("Remark not in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkBetween(String value1, String value2) {
|
||||
addCriterion("Remark between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotBetween(String value1, String value2) {
|
||||
addCriterion("Remark not between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultIsNull() {
|
||||
addCriterion("IsDefault is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultIsNotNull() {
|
||||
addCriterion("IsDefault is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultEqualTo(Boolean value) {
|
||||
addCriterion("IsDefault =", value, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultNotEqualTo(Boolean value) {
|
||||
addCriterion("IsDefault <>", value, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultGreaterThan(Boolean value) {
|
||||
addCriterion("IsDefault >", value, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultGreaterThanOrEqualTo(Boolean value) {
|
||||
addCriterion("IsDefault >=", value, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultLessThan(Boolean value) {
|
||||
addCriterion("IsDefault <", value, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultLessThanOrEqualTo(Boolean value) {
|
||||
addCriterion("IsDefault <=", value, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultIn(List<Boolean> values) {
|
||||
addCriterion("IsDefault in", values, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultNotIn(List<Boolean> values) {
|
||||
addCriterion("IsDefault not in", values, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("IsDefault between", value1, value2, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsdefaultNotBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("IsDefault not between", value1, value2, "isdefault");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
325
src/main/java/com/jsh/erp/datasource/entities/AccountHead.java
Normal file
325
src/main/java/com/jsh/erp/datasource/entities/AccountHead.java
Normal file
@@ -0,0 +1,325 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class AccountHead {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.OrganId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long organid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.HandsPersonId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long handspersonid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.ChangeAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double changeamount;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.TotalPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double totalprice;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long accountid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.BillNo
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String billno;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.BillTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date billtime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accounthead.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.Id
|
||||
*
|
||||
* @return the value of jsh_accounthead.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.Id
|
||||
*
|
||||
* @param id the value for jsh_accounthead.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.Type
|
||||
*
|
||||
* @return the value of jsh_accounthead.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.Type
|
||||
*
|
||||
* @param type the value for jsh_accounthead.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.OrganId
|
||||
*
|
||||
* @return the value of jsh_accounthead.OrganId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getOrganid() {
|
||||
return organid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.OrganId
|
||||
*
|
||||
* @param organid the value for jsh_accounthead.OrganId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrganid(Long organid) {
|
||||
this.organid = organid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.HandsPersonId
|
||||
*
|
||||
* @return the value of jsh_accounthead.HandsPersonId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getHandspersonid() {
|
||||
return handspersonid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.HandsPersonId
|
||||
*
|
||||
* @param handspersonid the value for jsh_accounthead.HandsPersonId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setHandspersonid(Long handspersonid) {
|
||||
this.handspersonid = handspersonid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.ChangeAmount
|
||||
*
|
||||
* @return the value of jsh_accounthead.ChangeAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getChangeamount() {
|
||||
return changeamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.ChangeAmount
|
||||
*
|
||||
* @param changeamount the value for jsh_accounthead.ChangeAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setChangeamount(Double changeamount) {
|
||||
this.changeamount = changeamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.TotalPrice
|
||||
*
|
||||
* @return the value of jsh_accounthead.TotalPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTotalprice() {
|
||||
return totalprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.TotalPrice
|
||||
*
|
||||
* @param totalprice the value for jsh_accounthead.TotalPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTotalprice(Double totalprice) {
|
||||
this.totalprice = totalprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.AccountId
|
||||
*
|
||||
* @return the value of jsh_accounthead.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getAccountid() {
|
||||
return accountid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.AccountId
|
||||
*
|
||||
* @param accountid the value for jsh_accounthead.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAccountid(Long accountid) {
|
||||
this.accountid = accountid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.BillNo
|
||||
*
|
||||
* @return the value of jsh_accounthead.BillNo
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getBillno() {
|
||||
return billno;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.BillNo
|
||||
*
|
||||
* @param billno the value for jsh_accounthead.BillNo
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setBillno(String billno) {
|
||||
this.billno = billno == null ? null : billno.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.BillTime
|
||||
*
|
||||
* @return the value of jsh_accounthead.BillTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getBilltime() {
|
||||
return billtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.BillTime
|
||||
*
|
||||
* @param billtime the value for jsh_accounthead.BillTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setBilltime(Date billtime) {
|
||||
this.billtime = billtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accounthead.Remark
|
||||
*
|
||||
* @return the value of jsh_accounthead.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accounthead.Remark
|
||||
*
|
||||
* @param remark the value for jsh_accounthead.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,933 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class AccountHeadExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public AccountHeadExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("Type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("Type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("Type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("Type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("Type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("Type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("Type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("Type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("Type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("Type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("Type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("Type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("Type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidIsNull() {
|
||||
addCriterion("OrganId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidIsNotNull() {
|
||||
addCriterion("OrganId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidEqualTo(Long value) {
|
||||
addCriterion("OrganId =", value, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidNotEqualTo(Long value) {
|
||||
addCriterion("OrganId <>", value, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidGreaterThan(Long value) {
|
||||
addCriterion("OrganId >", value, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("OrganId >=", value, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidLessThan(Long value) {
|
||||
addCriterion("OrganId <", value, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("OrganId <=", value, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidIn(List<Long> values) {
|
||||
addCriterion("OrganId in", values, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidNotIn(List<Long> values) {
|
||||
addCriterion("OrganId not in", values, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidBetween(Long value1, Long value2) {
|
||||
addCriterion("OrganId between", value1, value2, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOrganidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("OrganId not between", value1, value2, "organid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidIsNull() {
|
||||
addCriterion("HandsPersonId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidIsNotNull() {
|
||||
addCriterion("HandsPersonId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidEqualTo(Long value) {
|
||||
addCriterion("HandsPersonId =", value, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidNotEqualTo(Long value) {
|
||||
addCriterion("HandsPersonId <>", value, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidGreaterThan(Long value) {
|
||||
addCriterion("HandsPersonId >", value, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("HandsPersonId >=", value, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidLessThan(Long value) {
|
||||
addCriterion("HandsPersonId <", value, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("HandsPersonId <=", value, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidIn(List<Long> values) {
|
||||
addCriterion("HandsPersonId in", values, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidNotIn(List<Long> values) {
|
||||
addCriterion("HandsPersonId not in", values, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidBetween(Long value1, Long value2) {
|
||||
addCriterion("HandsPersonId between", value1, value2, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandspersonidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("HandsPersonId not between", value1, value2, "handspersonid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountIsNull() {
|
||||
addCriterion("ChangeAmount is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountIsNotNull() {
|
||||
addCriterion("ChangeAmount is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountEqualTo(Double value) {
|
||||
addCriterion("ChangeAmount =", value, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountNotEqualTo(Double value) {
|
||||
addCriterion("ChangeAmount <>", value, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountGreaterThan(Double value) {
|
||||
addCriterion("ChangeAmount >", value, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("ChangeAmount >=", value, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountLessThan(Double value) {
|
||||
addCriterion("ChangeAmount <", value, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountLessThanOrEqualTo(Double value) {
|
||||
addCriterion("ChangeAmount <=", value, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountIn(List<Double> values) {
|
||||
addCriterion("ChangeAmount in", values, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountNotIn(List<Double> values) {
|
||||
addCriterion("ChangeAmount not in", values, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountBetween(Double value1, Double value2) {
|
||||
addCriterion("ChangeAmount between", value1, value2, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andChangeamountNotBetween(Double value1, Double value2) {
|
||||
addCriterion("ChangeAmount not between", value1, value2, "changeamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceIsNull() {
|
||||
addCriterion("TotalPrice is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceIsNotNull() {
|
||||
addCriterion("TotalPrice is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceEqualTo(Double value) {
|
||||
addCriterion("TotalPrice =", value, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceNotEqualTo(Double value) {
|
||||
addCriterion("TotalPrice <>", value, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceGreaterThan(Double value) {
|
||||
addCriterion("TotalPrice >", value, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("TotalPrice >=", value, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceLessThan(Double value) {
|
||||
addCriterion("TotalPrice <", value, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceLessThanOrEqualTo(Double value) {
|
||||
addCriterion("TotalPrice <=", value, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceIn(List<Double> values) {
|
||||
addCriterion("TotalPrice in", values, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceNotIn(List<Double> values) {
|
||||
addCriterion("TotalPrice not in", values, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceBetween(Double value1, Double value2) {
|
||||
addCriterion("TotalPrice between", value1, value2, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalpriceNotBetween(Double value1, Double value2) {
|
||||
addCriterion("TotalPrice not between", value1, value2, "totalprice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidIsNull() {
|
||||
addCriterion("AccountId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidIsNotNull() {
|
||||
addCriterion("AccountId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidEqualTo(Long value) {
|
||||
addCriterion("AccountId =", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidNotEqualTo(Long value) {
|
||||
addCriterion("AccountId <>", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidGreaterThan(Long value) {
|
||||
addCriterion("AccountId >", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("AccountId >=", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidLessThan(Long value) {
|
||||
addCriterion("AccountId <", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("AccountId <=", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidIn(List<Long> values) {
|
||||
addCriterion("AccountId in", values, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidNotIn(List<Long> values) {
|
||||
addCriterion("AccountId not in", values, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidBetween(Long value1, Long value2) {
|
||||
addCriterion("AccountId between", value1, value2, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("AccountId not between", value1, value2, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoIsNull() {
|
||||
addCriterion("BillNo is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoIsNotNull() {
|
||||
addCriterion("BillNo is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoEqualTo(String value) {
|
||||
addCriterion("BillNo =", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoNotEqualTo(String value) {
|
||||
addCriterion("BillNo <>", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoGreaterThan(String value) {
|
||||
addCriterion("BillNo >", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("BillNo >=", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoLessThan(String value) {
|
||||
addCriterion("BillNo <", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoLessThanOrEqualTo(String value) {
|
||||
addCriterion("BillNo <=", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoLike(String value) {
|
||||
addCriterion("BillNo like", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoNotLike(String value) {
|
||||
addCriterion("BillNo not like", value, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoIn(List<String> values) {
|
||||
addCriterion("BillNo in", values, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoNotIn(List<String> values) {
|
||||
addCriterion("BillNo not in", values, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoBetween(String value1, String value2) {
|
||||
addCriterion("BillNo between", value1, value2, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBillnoNotBetween(String value1, String value2) {
|
||||
addCriterion("BillNo not between", value1, value2, "billno");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeIsNull() {
|
||||
addCriterion("BillTime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeIsNotNull() {
|
||||
addCriterion("BillTime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeEqualTo(Date value) {
|
||||
addCriterion("BillTime =", value, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeNotEqualTo(Date value) {
|
||||
addCriterion("BillTime <>", value, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeGreaterThan(Date value) {
|
||||
addCriterion("BillTime >", value, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("BillTime >=", value, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeLessThan(Date value) {
|
||||
addCriterion("BillTime <", value, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("BillTime <=", value, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeIn(List<Date> values) {
|
||||
addCriterion("BillTime in", values, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeNotIn(List<Date> values) {
|
||||
addCriterion("BillTime not in", values, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeBetween(Date value1, Date value2) {
|
||||
addCriterion("BillTime between", value1, value2, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBilltimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("BillTime not between", value1, value2, "billtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNull() {
|
||||
addCriterion("Remark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNotNull() {
|
||||
addCriterion("Remark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkEqualTo(String value) {
|
||||
addCriterion("Remark =", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotEqualTo(String value) {
|
||||
addCriterion("Remark <>", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThan(String value) {
|
||||
addCriterion("Remark >", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Remark >=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThan(String value) {
|
||||
addCriterion("Remark <", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThanOrEqualTo(String value) {
|
||||
addCriterion("Remark <=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLike(String value) {
|
||||
addCriterion("Remark like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotLike(String value) {
|
||||
addCriterion("Remark not like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIn(List<String> values) {
|
||||
addCriterion("Remark in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotIn(List<String> values) {
|
||||
addCriterion("Remark not in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkBetween(String value1, String value2) {
|
||||
addCriterion("Remark between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotBetween(String value1, String value2) {
|
||||
addCriterion("Remark not between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class AccountHeadVo4ListEx {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String type;
|
||||
|
||||
private Long organid;
|
||||
|
||||
private Long handspersonid;
|
||||
|
||||
private Double changeamount;
|
||||
|
||||
private Double totalprice;
|
||||
|
||||
private Long accountid;
|
||||
|
||||
private String billno;
|
||||
|
||||
private Date billtime;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String organname;
|
||||
|
||||
private String handspersonname;
|
||||
|
||||
private String accountname;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getOrganid() {
|
||||
return organid;
|
||||
}
|
||||
|
||||
public void setOrganid(Long organid) {
|
||||
this.organid = organid;
|
||||
}
|
||||
|
||||
public Long getHandspersonid() {
|
||||
return handspersonid;
|
||||
}
|
||||
|
||||
public void setHandspersonid(Long handspersonid) {
|
||||
this.handspersonid = handspersonid;
|
||||
}
|
||||
|
||||
public Double getChangeamount() {
|
||||
return changeamount;
|
||||
}
|
||||
|
||||
public void setChangeamount(Double changeamount) {
|
||||
this.changeamount = changeamount;
|
||||
}
|
||||
|
||||
public Double getTotalprice() {
|
||||
return totalprice;
|
||||
}
|
||||
|
||||
public void setTotalprice(Double totalprice) {
|
||||
this.totalprice = totalprice;
|
||||
}
|
||||
|
||||
public Long getAccountid() {
|
||||
return accountid;
|
||||
}
|
||||
|
||||
public void setAccountid(Long accountid) {
|
||||
this.accountid = accountid;
|
||||
}
|
||||
|
||||
public String getBillno() {
|
||||
return billno;
|
||||
}
|
||||
|
||||
public void setBillno(String billno) {
|
||||
this.billno = billno;
|
||||
}
|
||||
|
||||
public Date getBilltime() {
|
||||
return billtime;
|
||||
}
|
||||
|
||||
public void setBilltime(Date billtime) {
|
||||
this.billtime = billtime;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getOrganname() {
|
||||
return organname;
|
||||
}
|
||||
|
||||
public void setOrganname(String organname) {
|
||||
this.organname = organname;
|
||||
}
|
||||
|
||||
public String getHandspersonname() {
|
||||
return handspersonname;
|
||||
}
|
||||
|
||||
public void setHandspersonname(String handspersonname) {
|
||||
this.handspersonname = handspersonname;
|
||||
}
|
||||
|
||||
public String getAccountname() {
|
||||
return accountname;
|
||||
}
|
||||
|
||||
public void setAccountname(String accountname) {
|
||||
this.accountname = accountname;
|
||||
}
|
||||
}
|
||||
195
src/main/java/com/jsh/erp/datasource/entities/AccountItem.java
Normal file
195
src/main/java/com/jsh/erp/datasource/entities/AccountItem.java
Normal file
@@ -0,0 +1,195 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class AccountItem {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accountitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accountitem.HeaderId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long headerid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accountitem.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long accountid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accountitem.InOutItemId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long inoutitemid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accountitem.EachAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double eachamount;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_accountitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accountitem.Id
|
||||
*
|
||||
* @return the value of jsh_accountitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accountitem.Id
|
||||
*
|
||||
* @param id the value for jsh_accountitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accountitem.HeaderId
|
||||
*
|
||||
* @return the value of jsh_accountitem.HeaderId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getHeaderid() {
|
||||
return headerid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accountitem.HeaderId
|
||||
*
|
||||
* @param headerid the value for jsh_accountitem.HeaderId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setHeaderid(Long headerid) {
|
||||
this.headerid = headerid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accountitem.AccountId
|
||||
*
|
||||
* @return the value of jsh_accountitem.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getAccountid() {
|
||||
return accountid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accountitem.AccountId
|
||||
*
|
||||
* @param accountid the value for jsh_accountitem.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAccountid(Long accountid) {
|
||||
this.accountid = accountid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accountitem.InOutItemId
|
||||
*
|
||||
* @return the value of jsh_accountitem.InOutItemId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getInoutitemid() {
|
||||
return inoutitemid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accountitem.InOutItemId
|
||||
*
|
||||
* @param inoutitemid the value for jsh_accountitem.InOutItemId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setInoutitemid(Long inoutitemid) {
|
||||
this.inoutitemid = inoutitemid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accountitem.EachAmount
|
||||
*
|
||||
* @return the value of jsh_accountitem.EachAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getEachamount() {
|
||||
return eachamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accountitem.EachAmount
|
||||
*
|
||||
* @param eachamount the value for jsh_accountitem.EachAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setEachamount(Double eachamount) {
|
||||
this.eachamount = eachamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_accountitem.Remark
|
||||
*
|
||||
* @return the value of jsh_accountitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_accountitem.Remark
|
||||
*
|
||||
* @param remark the value for jsh_accountitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,672 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AccountItemExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public AccountItemExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidIsNull() {
|
||||
addCriterion("HeaderId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidIsNotNull() {
|
||||
addCriterion("HeaderId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidEqualTo(Long value) {
|
||||
addCriterion("HeaderId =", value, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidNotEqualTo(Long value) {
|
||||
addCriterion("HeaderId <>", value, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidGreaterThan(Long value) {
|
||||
addCriterion("HeaderId >", value, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("HeaderId >=", value, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidLessThan(Long value) {
|
||||
addCriterion("HeaderId <", value, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("HeaderId <=", value, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidIn(List<Long> values) {
|
||||
addCriterion("HeaderId in", values, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidNotIn(List<Long> values) {
|
||||
addCriterion("HeaderId not in", values, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidBetween(Long value1, Long value2) {
|
||||
addCriterion("HeaderId between", value1, value2, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHeaderidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("HeaderId not between", value1, value2, "headerid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidIsNull() {
|
||||
addCriterion("AccountId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidIsNotNull() {
|
||||
addCriterion("AccountId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidEqualTo(Long value) {
|
||||
addCriterion("AccountId =", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidNotEqualTo(Long value) {
|
||||
addCriterion("AccountId <>", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidGreaterThan(Long value) {
|
||||
addCriterion("AccountId >", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("AccountId >=", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidLessThan(Long value) {
|
||||
addCriterion("AccountId <", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("AccountId <=", value, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidIn(List<Long> values) {
|
||||
addCriterion("AccountId in", values, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidNotIn(List<Long> values) {
|
||||
addCriterion("AccountId not in", values, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidBetween(Long value1, Long value2) {
|
||||
addCriterion("AccountId between", value1, value2, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("AccountId not between", value1, value2, "accountid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidIsNull() {
|
||||
addCriterion("InOutItemId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidIsNotNull() {
|
||||
addCriterion("InOutItemId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidEqualTo(Long value) {
|
||||
addCriterion("InOutItemId =", value, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidNotEqualTo(Long value) {
|
||||
addCriterion("InOutItemId <>", value, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidGreaterThan(Long value) {
|
||||
addCriterion("InOutItemId >", value, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("InOutItemId >=", value, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidLessThan(Long value) {
|
||||
addCriterion("InOutItemId <", value, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("InOutItemId <=", value, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidIn(List<Long> values) {
|
||||
addCriterion("InOutItemId in", values, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidNotIn(List<Long> values) {
|
||||
addCriterion("InOutItemId not in", values, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidBetween(Long value1, Long value2) {
|
||||
addCriterion("InOutItemId between", value1, value2, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInoutitemidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("InOutItemId not between", value1, value2, "inoutitemid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountIsNull() {
|
||||
addCriterion("EachAmount is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountIsNotNull() {
|
||||
addCriterion("EachAmount is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountEqualTo(Double value) {
|
||||
addCriterion("EachAmount =", value, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountNotEqualTo(Double value) {
|
||||
addCriterion("EachAmount <>", value, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountGreaterThan(Double value) {
|
||||
addCriterion("EachAmount >", value, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("EachAmount >=", value, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountLessThan(Double value) {
|
||||
addCriterion("EachAmount <", value, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountLessThanOrEqualTo(Double value) {
|
||||
addCriterion("EachAmount <=", value, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountIn(List<Double> values) {
|
||||
addCriterion("EachAmount in", values, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountNotIn(List<Double> values) {
|
||||
addCriterion("EachAmount not in", values, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountBetween(Double value1, Double value2) {
|
||||
addCriterion("EachAmount between", value1, value2, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEachamountNotBetween(Double value1, Double value2) {
|
||||
addCriterion("EachAmount not between", value1, value2, "eachamount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNull() {
|
||||
addCriterion("Remark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNotNull() {
|
||||
addCriterion("Remark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkEqualTo(String value) {
|
||||
addCriterion("Remark =", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotEqualTo(String value) {
|
||||
addCriterion("Remark <>", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThan(String value) {
|
||||
addCriterion("Remark >", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Remark >=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThan(String value) {
|
||||
addCriterion("Remark <", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThanOrEqualTo(String value) {
|
||||
addCriterion("Remark <=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLike(String value) {
|
||||
addCriterion("Remark like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotLike(String value) {
|
||||
addCriterion("Remark not like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIn(List<String> values) {
|
||||
addCriterion("Remark in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotIn(List<String> values) {
|
||||
addCriterion("Remark not in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkBetween(String value1, String value2) {
|
||||
addCriterion("Remark between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotBetween(String value1, String value2) {
|
||||
addCriterion("Remark not between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
483
src/main/java/com/jsh/erp/datasource/entities/App.java
Normal file
483
src/main/java/com/jsh/erp/datasource/entities/App.java
Normal file
@@ -0,0 +1,483 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class App {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String number;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Icon
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.URL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Width
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String width;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Height
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String height;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.ReSize
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean resize;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.OpenMax
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean openmax;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Flash
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean flash;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.ZL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String zl;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String sort;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_app.Enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean enabled;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Id
|
||||
*
|
||||
* @return the value of jsh_app.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Id
|
||||
*
|
||||
* @param id the value for jsh_app.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Number
|
||||
*
|
||||
* @return the value of jsh_app.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Number
|
||||
*
|
||||
* @param number the value for jsh_app.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setNumber(String number) {
|
||||
this.number = number == null ? null : number.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Name
|
||||
*
|
||||
* @return the value of jsh_app.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Name
|
||||
*
|
||||
* @param name the value for jsh_app.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Type
|
||||
*
|
||||
* @return the value of jsh_app.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Type
|
||||
*
|
||||
* @param type the value for jsh_app.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Icon
|
||||
*
|
||||
* @return the value of jsh_app.Icon
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Icon
|
||||
*
|
||||
* @param icon the value for jsh_app.Icon
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon == null ? null : icon.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.URL
|
||||
*
|
||||
* @return the value of jsh_app.URL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.URL
|
||||
*
|
||||
* @param url the value for jsh_app.URL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUrl(String url) {
|
||||
this.url = url == null ? null : url.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Width
|
||||
*
|
||||
* @return the value of jsh_app.Width
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getWidth() {
|
||||
return width;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Width
|
||||
*
|
||||
* @param width the value for jsh_app.Width
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setWidth(String width) {
|
||||
this.width = width == null ? null : width.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Height
|
||||
*
|
||||
* @return the value of jsh_app.Height
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getHeight() {
|
||||
return height;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Height
|
||||
*
|
||||
* @param height the value for jsh_app.Height
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setHeight(String height) {
|
||||
this.height = height == null ? null : height.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.ReSize
|
||||
*
|
||||
* @return the value of jsh_app.ReSize
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getResize() {
|
||||
return resize;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.ReSize
|
||||
*
|
||||
* @param resize the value for jsh_app.ReSize
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setResize(Boolean resize) {
|
||||
this.resize = resize;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.OpenMax
|
||||
*
|
||||
* @return the value of jsh_app.OpenMax
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getOpenmax() {
|
||||
return openmax;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.OpenMax
|
||||
*
|
||||
* @param openmax the value for jsh_app.OpenMax
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOpenmax(Boolean openmax) {
|
||||
this.openmax = openmax;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Flash
|
||||
*
|
||||
* @return the value of jsh_app.Flash
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getFlash() {
|
||||
return flash;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Flash
|
||||
*
|
||||
* @param flash the value for jsh_app.Flash
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setFlash(Boolean flash) {
|
||||
this.flash = flash;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.ZL
|
||||
*
|
||||
* @return the value of jsh_app.ZL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getZl() {
|
||||
return zl;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.ZL
|
||||
*
|
||||
* @param zl the value for jsh_app.ZL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setZl(String zl) {
|
||||
this.zl = zl == null ? null : zl.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Sort
|
||||
*
|
||||
* @return the value of jsh_app.Sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Sort
|
||||
*
|
||||
* @param sort the value for jsh_app.Sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSort(String sort) {
|
||||
this.sort = sort == null ? null : sort.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Remark
|
||||
*
|
||||
* @return the value of jsh_app.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Remark
|
||||
*
|
||||
* @param remark the value for jsh_app.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_app.Enabled
|
||||
*
|
||||
* @return the value of jsh_app.Enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_app.Enabled
|
||||
*
|
||||
* @param enabled the value for jsh_app.Enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
}
|
||||
1302
src/main/java/com/jsh/erp/datasource/entities/AppExample.java
Normal file
1302
src/main/java/com/jsh/erp/datasource/entities/AppExample.java
Normal file
File diff suppressed because it is too large
Load Diff
613
src/main/java/com/jsh/erp/datasource/entities/Asset.java
Normal file
613
src/main/java/com/jsh/erp/datasource/entities/Asset.java
Normal file
@@ -0,0 +1,613 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Asset {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.assetnameID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long assetnameid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.location
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String location;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.labels
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String labels;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Short status;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.userID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long userid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.price
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double price;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.purchasedate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date purchasedate;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.periodofvalidity
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date periodofvalidity;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.warrantydate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date warrantydate;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.assetnum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String assetnum;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.serialnum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String serialnum;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long supplier;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.createtime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date createtime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.creator
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long creator;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.updatetime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date updatetime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.updator
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long updator;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_asset.addMonth
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String addmonth;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.id
|
||||
*
|
||||
* @return the value of jsh_asset.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.id
|
||||
*
|
||||
* @param id the value for jsh_asset.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.assetnameID
|
||||
*
|
||||
* @return the value of jsh_asset.assetnameID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getAssetnameid() {
|
||||
return assetnameid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.assetnameID
|
||||
*
|
||||
* @param assetnameid the value for jsh_asset.assetnameID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAssetnameid(Long assetnameid) {
|
||||
this.assetnameid = assetnameid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.location
|
||||
*
|
||||
* @return the value of jsh_asset.location
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.location
|
||||
*
|
||||
* @param location the value for jsh_asset.location
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setLocation(String location) {
|
||||
this.location = location == null ? null : location.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.labels
|
||||
*
|
||||
* @return the value of jsh_asset.labels
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getLabels() {
|
||||
return labels;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.labels
|
||||
*
|
||||
* @param labels the value for jsh_asset.labels
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setLabels(String labels) {
|
||||
this.labels = labels == null ? null : labels.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.status
|
||||
*
|
||||
* @return the value of jsh_asset.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Short getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.status
|
||||
*
|
||||
* @param status the value for jsh_asset.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setStatus(Short status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.userID
|
||||
*
|
||||
* @return the value of jsh_asset.userID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.userID
|
||||
*
|
||||
* @param userid the value for jsh_asset.userID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUserid(Long userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.price
|
||||
*
|
||||
* @return the value of jsh_asset.price
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.price
|
||||
*
|
||||
* @param price the value for jsh_asset.price
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPrice(Double price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.purchasedate
|
||||
*
|
||||
* @return the value of jsh_asset.purchasedate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getPurchasedate() {
|
||||
return purchasedate;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.purchasedate
|
||||
*
|
||||
* @param purchasedate the value for jsh_asset.purchasedate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPurchasedate(Date purchasedate) {
|
||||
this.purchasedate = purchasedate;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.periodofvalidity
|
||||
*
|
||||
* @return the value of jsh_asset.periodofvalidity
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getPeriodofvalidity() {
|
||||
return periodofvalidity;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.periodofvalidity
|
||||
*
|
||||
* @param periodofvalidity the value for jsh_asset.periodofvalidity
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPeriodofvalidity(Date periodofvalidity) {
|
||||
this.periodofvalidity = periodofvalidity;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.warrantydate
|
||||
*
|
||||
* @return the value of jsh_asset.warrantydate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getWarrantydate() {
|
||||
return warrantydate;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.warrantydate
|
||||
*
|
||||
* @param warrantydate the value for jsh_asset.warrantydate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setWarrantydate(Date warrantydate) {
|
||||
this.warrantydate = warrantydate;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.assetnum
|
||||
*
|
||||
* @return the value of jsh_asset.assetnum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAssetnum() {
|
||||
return assetnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.assetnum
|
||||
*
|
||||
* @param assetnum the value for jsh_asset.assetnum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAssetnum(String assetnum) {
|
||||
this.assetnum = assetnum == null ? null : assetnum.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.serialnum
|
||||
*
|
||||
* @return the value of jsh_asset.serialnum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSerialnum() {
|
||||
return serialnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.serialnum
|
||||
*
|
||||
* @param serialnum the value for jsh_asset.serialnum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSerialnum(String serialnum) {
|
||||
this.serialnum = serialnum == null ? null : serialnum.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.supplier
|
||||
*
|
||||
* @return the value of jsh_asset.supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.supplier
|
||||
*
|
||||
* @param supplier the value for jsh_asset.supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSupplier(Long supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.createtime
|
||||
*
|
||||
* @return the value of jsh_asset.createtime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.createtime
|
||||
*
|
||||
* @param createtime the value for jsh_asset.createtime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setCreatetime(Date createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.creator
|
||||
*
|
||||
* @return the value of jsh_asset.creator
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getCreator() {
|
||||
return creator;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.creator
|
||||
*
|
||||
* @param creator the value for jsh_asset.creator
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setCreator(Long creator) {
|
||||
this.creator = creator;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.updatetime
|
||||
*
|
||||
* @return the value of jsh_asset.updatetime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getUpdatetime() {
|
||||
return updatetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.updatetime
|
||||
*
|
||||
* @param updatetime the value for jsh_asset.updatetime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUpdatetime(Date updatetime) {
|
||||
this.updatetime = updatetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.updator
|
||||
*
|
||||
* @return the value of jsh_asset.updator
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getUpdator() {
|
||||
return updator;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.updator
|
||||
*
|
||||
* @param updator the value for jsh_asset.updator
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUpdator(Long updator) {
|
||||
this.updator = updator;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.description
|
||||
*
|
||||
* @return the value of jsh_asset.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.description
|
||||
*
|
||||
* @param description the value for jsh_asset.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_asset.addMonth
|
||||
*
|
||||
* @return the value of jsh_asset.addMonth
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAddmonth() {
|
||||
return addmonth;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_asset.addMonth
|
||||
*
|
||||
* @param addmonth the value for jsh_asset.addMonth
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAddmonth(String addmonth) {
|
||||
this.addmonth = addmonth == null ? null : addmonth.trim();
|
||||
}
|
||||
}
|
||||
131
src/main/java/com/jsh/erp/datasource/entities/AssetCategory.java
Normal file
131
src/main/java/com/jsh/erp/datasource/entities/AssetCategory.java
Normal file
@@ -0,0 +1,131 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class AssetCategory {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetcategory.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetcategory.assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String assetname;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetcategory.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Byte isystem;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetcategory.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetcategory.id
|
||||
*
|
||||
* @return the value of jsh_assetcategory.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetcategory.id
|
||||
*
|
||||
* @param id the value for jsh_assetcategory.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetcategory.assetname
|
||||
*
|
||||
* @return the value of jsh_assetcategory.assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAssetname() {
|
||||
return assetname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetcategory.assetname
|
||||
*
|
||||
* @param assetname the value for jsh_assetcategory.assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAssetname(String assetname) {
|
||||
this.assetname = assetname == null ? null : assetname.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetcategory.isystem
|
||||
*
|
||||
* @return the value of jsh_assetcategory.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Byte getIsystem() {
|
||||
return isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetcategory.isystem
|
||||
*
|
||||
* @param isystem the value for jsh_assetcategory.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIsystem(Byte isystem) {
|
||||
this.isystem = isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetcategory.description
|
||||
*
|
||||
* @return the value of jsh_assetcategory.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetcategory.description
|
||||
*
|
||||
* @param description the value for jsh_assetcategory.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,562 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AssetCategoryExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public AssetCategoryExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameIsNull() {
|
||||
addCriterion("assetname is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameIsNotNull() {
|
||||
addCriterion("assetname is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameEqualTo(String value) {
|
||||
addCriterion("assetname =", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotEqualTo(String value) {
|
||||
addCriterion("assetname <>", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameGreaterThan(String value) {
|
||||
addCriterion("assetname >", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("assetname >=", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameLessThan(String value) {
|
||||
addCriterion("assetname <", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameLessThanOrEqualTo(String value) {
|
||||
addCriterion("assetname <=", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameLike(String value) {
|
||||
addCriterion("assetname like", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotLike(String value) {
|
||||
addCriterion("assetname not like", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameIn(List<String> values) {
|
||||
addCriterion("assetname in", values, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotIn(List<String> values) {
|
||||
addCriterion("assetname not in", values, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameBetween(String value1, String value2) {
|
||||
addCriterion("assetname between", value1, value2, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotBetween(String value1, String value2) {
|
||||
addCriterion("assetname not between", value1, value2, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemIsNull() {
|
||||
addCriterion("isystem is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemIsNotNull() {
|
||||
addCriterion("isystem is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemEqualTo(Byte value) {
|
||||
addCriterion("isystem =", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemNotEqualTo(Byte value) {
|
||||
addCriterion("isystem <>", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemGreaterThan(Byte value) {
|
||||
addCriterion("isystem >", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemGreaterThanOrEqualTo(Byte value) {
|
||||
addCriterion("isystem >=", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemLessThan(Byte value) {
|
||||
addCriterion("isystem <", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemLessThanOrEqualTo(Byte value) {
|
||||
addCriterion("isystem <=", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemIn(List<Byte> values) {
|
||||
addCriterion("isystem in", values, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemNotIn(List<Byte> values) {
|
||||
addCriterion("isystem not in", values, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemBetween(Byte value1, Byte value2) {
|
||||
addCriterion("isystem between", value1, value2, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemNotBetween(Byte value1, Byte value2) {
|
||||
addCriterion("isystem not between", value1, value2, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNull() {
|
||||
addCriterion("description is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNotNull() {
|
||||
addCriterion("description is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionEqualTo(String value) {
|
||||
addCriterion("description =", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotEqualTo(String value) {
|
||||
addCriterion("description <>", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThan(String value) {
|
||||
addCriterion("description >", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("description >=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThan(String value) {
|
||||
addCriterion("description <", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThanOrEqualTo(String value) {
|
||||
addCriterion("description <=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLike(String value) {
|
||||
addCriterion("description like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotLike(String value) {
|
||||
addCriterion("description not like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIn(List<String> values) {
|
||||
addCriterion("description in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotIn(List<String> values) {
|
||||
addCriterion("description not in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionBetween(String value1, String value2) {
|
||||
addCriterion("description between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotBetween(String value1, String value2) {
|
||||
addCriterion("description not between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
1363
src/main/java/com/jsh/erp/datasource/entities/AssetExample.java
Normal file
1363
src/main/java/com/jsh/erp/datasource/entities/AssetExample.java
Normal file
File diff suppressed because it is too large
Load Diff
195
src/main/java/com/jsh/erp/datasource/entities/AssetName.java
Normal file
195
src/main/java/com/jsh/erp/datasource/entities/AssetName.java
Normal file
@@ -0,0 +1,195 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class AssetName {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetname.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetname.assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String assetname;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetname.assetcategoryID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long assetcategoryid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetname.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Short isystem;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetname.isconsumables
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Short isconsumables;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_assetname.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetname.id
|
||||
*
|
||||
* @return the value of jsh_assetname.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetname.id
|
||||
*
|
||||
* @param id the value for jsh_assetname.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetname.assetname
|
||||
*
|
||||
* @return the value of jsh_assetname.assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAssetname() {
|
||||
return assetname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetname.assetname
|
||||
*
|
||||
* @param assetname the value for jsh_assetname.assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAssetname(String assetname) {
|
||||
this.assetname = assetname == null ? null : assetname.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetname.assetcategoryID
|
||||
*
|
||||
* @return the value of jsh_assetname.assetcategoryID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getAssetcategoryid() {
|
||||
return assetcategoryid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetname.assetcategoryID
|
||||
*
|
||||
* @param assetcategoryid the value for jsh_assetname.assetcategoryID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAssetcategoryid(Long assetcategoryid) {
|
||||
this.assetcategoryid = assetcategoryid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetname.isystem
|
||||
*
|
||||
* @return the value of jsh_assetname.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Short getIsystem() {
|
||||
return isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetname.isystem
|
||||
*
|
||||
* @param isystem the value for jsh_assetname.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIsystem(Short isystem) {
|
||||
this.isystem = isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetname.isconsumables
|
||||
*
|
||||
* @return the value of jsh_assetname.isconsumables
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Short getIsconsumables() {
|
||||
return isconsumables;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetname.isconsumables
|
||||
*
|
||||
* @param isconsumables the value for jsh_assetname.isconsumables
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIsconsumables(Short isconsumables) {
|
||||
this.isconsumables = isconsumables;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_assetname.description
|
||||
*
|
||||
* @return the value of jsh_assetname.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_assetname.description
|
||||
*
|
||||
* @param description the value for jsh_assetname.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,612 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AssetNameExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public AssetNameExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameIsNull() {
|
||||
addCriterion("assetname is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameIsNotNull() {
|
||||
addCriterion("assetname is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameEqualTo(String value) {
|
||||
addCriterion("assetname =", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotEqualTo(String value) {
|
||||
addCriterion("assetname <>", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameGreaterThan(String value) {
|
||||
addCriterion("assetname >", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("assetname >=", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameLessThan(String value) {
|
||||
addCriterion("assetname <", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameLessThanOrEqualTo(String value) {
|
||||
addCriterion("assetname <=", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameLike(String value) {
|
||||
addCriterion("assetname like", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotLike(String value) {
|
||||
addCriterion("assetname not like", value, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameIn(List<String> values) {
|
||||
addCriterion("assetname in", values, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotIn(List<String> values) {
|
||||
addCriterion("assetname not in", values, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameBetween(String value1, String value2) {
|
||||
addCriterion("assetname between", value1, value2, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetnameNotBetween(String value1, String value2) {
|
||||
addCriterion("assetname not between", value1, value2, "assetname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidIsNull() {
|
||||
addCriterion("assetcategoryID is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidIsNotNull() {
|
||||
addCriterion("assetcategoryID is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidEqualTo(Long value) {
|
||||
addCriterion("assetcategoryID =", value, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidNotEqualTo(Long value) {
|
||||
addCriterion("assetcategoryID <>", value, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidGreaterThan(Long value) {
|
||||
addCriterion("assetcategoryID >", value, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("assetcategoryID >=", value, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidLessThan(Long value) {
|
||||
addCriterion("assetcategoryID <", value, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("assetcategoryID <=", value, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidIn(List<Long> values) {
|
||||
addCriterion("assetcategoryID in", values, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidNotIn(List<Long> values) {
|
||||
addCriterion("assetcategoryID not in", values, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidBetween(Long value1, Long value2) {
|
||||
addCriterion("assetcategoryID between", value1, value2, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAssetcategoryidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("assetcategoryID not between", value1, value2, "assetcategoryid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemIsNull() {
|
||||
addCriterion("isystem is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemIsNotNull() {
|
||||
addCriterion("isystem is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemEqualTo(Short value) {
|
||||
addCriterion("isystem =", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemNotEqualTo(Short value) {
|
||||
addCriterion("isystem <>", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemGreaterThan(Short value) {
|
||||
addCriterion("isystem >", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemGreaterThanOrEqualTo(Short value) {
|
||||
addCriterion("isystem >=", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemLessThan(Short value) {
|
||||
addCriterion("isystem <", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemLessThanOrEqualTo(Short value) {
|
||||
addCriterion("isystem <=", value, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemIn(List<Short> values) {
|
||||
addCriterion("isystem in", values, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemNotIn(List<Short> values) {
|
||||
addCriterion("isystem not in", values, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemBetween(Short value1, Short value2) {
|
||||
addCriterion("isystem between", value1, value2, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsystemNotBetween(Short value1, Short value2) {
|
||||
addCriterion("isystem not between", value1, value2, "isystem");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesIsNull() {
|
||||
addCriterion("isconsumables is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesIsNotNull() {
|
||||
addCriterion("isconsumables is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesEqualTo(Short value) {
|
||||
addCriterion("isconsumables =", value, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesNotEqualTo(Short value) {
|
||||
addCriterion("isconsumables <>", value, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesGreaterThan(Short value) {
|
||||
addCriterion("isconsumables >", value, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesGreaterThanOrEqualTo(Short value) {
|
||||
addCriterion("isconsumables >=", value, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesLessThan(Short value) {
|
||||
addCriterion("isconsumables <", value, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesLessThanOrEqualTo(Short value) {
|
||||
addCriterion("isconsumables <=", value, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesIn(List<Short> values) {
|
||||
addCriterion("isconsumables in", values, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesNotIn(List<Short> values) {
|
||||
addCriterion("isconsumables not in", values, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesBetween(Short value1, Short value2) {
|
||||
addCriterion("isconsumables between", value1, value2, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsconsumablesNotBetween(Short value1, Short value2) {
|
||||
addCriterion("isconsumables not between", value1, value2, "isconsumables");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
259
src/main/java/com/jsh/erp/datasource/entities/Depot.java
Normal file
259
src/main/java/com/jsh/erp/datasource/entities/Depot.java
Normal file
@@ -0,0 +1,259 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Depot {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.address
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.warehousing
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double warehousing;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.truckage
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double truckage;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String sort;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depot.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.id
|
||||
*
|
||||
* @return the value of jsh_depot.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.id
|
||||
*
|
||||
* @param id the value for jsh_depot.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.name
|
||||
*
|
||||
* @return the value of jsh_depot.name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.name
|
||||
*
|
||||
* @param name the value for jsh_depot.name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.address
|
||||
*
|
||||
* @return the value of jsh_depot.address
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.address
|
||||
*
|
||||
* @param address the value for jsh_depot.address
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAddress(String address) {
|
||||
this.address = address == null ? null : address.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.warehousing
|
||||
*
|
||||
* @return the value of jsh_depot.warehousing
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getWarehousing() {
|
||||
return warehousing;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.warehousing
|
||||
*
|
||||
* @param warehousing the value for jsh_depot.warehousing
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setWarehousing(Double warehousing) {
|
||||
this.warehousing = warehousing;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.truckage
|
||||
*
|
||||
* @return the value of jsh_depot.truckage
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTruckage() {
|
||||
return truckage;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.truckage
|
||||
*
|
||||
* @param truckage the value for jsh_depot.truckage
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTruckage(Double truckage) {
|
||||
this.truckage = truckage;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.type
|
||||
*
|
||||
* @return the value of jsh_depot.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Integer getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.type
|
||||
*
|
||||
* @param type the value for jsh_depot.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(Integer type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.sort
|
||||
*
|
||||
* @return the value of jsh_depot.sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.sort
|
||||
*
|
||||
* @param sort the value for jsh_depot.sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSort(String sort) {
|
||||
this.sort = sort == null ? null : sort.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depot.remark
|
||||
*
|
||||
* @return the value of jsh_depot.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depot.remark
|
||||
*
|
||||
* @param remark the value for jsh_depot.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
822
src/main/java/com/jsh/erp/datasource/entities/DepotExample.java
Normal file
822
src/main/java/com/jsh/erp/datasource/entities/DepotExample.java
Normal file
@@ -0,0 +1,822 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class DepotExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public DepotExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressIsNull() {
|
||||
addCriterion("address is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressIsNotNull() {
|
||||
addCriterion("address is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressEqualTo(String value) {
|
||||
addCriterion("address =", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotEqualTo(String value) {
|
||||
addCriterion("address <>", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressGreaterThan(String value) {
|
||||
addCriterion("address >", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("address >=", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressLessThan(String value) {
|
||||
addCriterion("address <", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressLessThanOrEqualTo(String value) {
|
||||
addCriterion("address <=", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressLike(String value) {
|
||||
addCriterion("address like", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotLike(String value) {
|
||||
addCriterion("address not like", value, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressIn(List<String> values) {
|
||||
addCriterion("address in", values, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotIn(List<String> values) {
|
||||
addCriterion("address not in", values, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressBetween(String value1, String value2) {
|
||||
addCriterion("address between", value1, value2, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAddressNotBetween(String value1, String value2) {
|
||||
addCriterion("address not between", value1, value2, "address");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingIsNull() {
|
||||
addCriterion("warehousing is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingIsNotNull() {
|
||||
addCriterion("warehousing is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingEqualTo(Double value) {
|
||||
addCriterion("warehousing =", value, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingNotEqualTo(Double value) {
|
||||
addCriterion("warehousing <>", value, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingGreaterThan(Double value) {
|
||||
addCriterion("warehousing >", value, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("warehousing >=", value, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingLessThan(Double value) {
|
||||
addCriterion("warehousing <", value, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingLessThanOrEqualTo(Double value) {
|
||||
addCriterion("warehousing <=", value, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingIn(List<Double> values) {
|
||||
addCriterion("warehousing in", values, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingNotIn(List<Double> values) {
|
||||
addCriterion("warehousing not in", values, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingBetween(Double value1, Double value2) {
|
||||
addCriterion("warehousing between", value1, value2, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andWarehousingNotBetween(Double value1, Double value2) {
|
||||
addCriterion("warehousing not between", value1, value2, "warehousing");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageIsNull() {
|
||||
addCriterion("truckage is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageIsNotNull() {
|
||||
addCriterion("truckage is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageEqualTo(Double value) {
|
||||
addCriterion("truckage =", value, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageNotEqualTo(Double value) {
|
||||
addCriterion("truckage <>", value, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageGreaterThan(Double value) {
|
||||
addCriterion("truckage >", value, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("truckage >=", value, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageLessThan(Double value) {
|
||||
addCriterion("truckage <", value, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageLessThanOrEqualTo(Double value) {
|
||||
addCriterion("truckage <=", value, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageIn(List<Double> values) {
|
||||
addCriterion("truckage in", values, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageNotIn(List<Double> values) {
|
||||
addCriterion("truckage not in", values, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageBetween(Double value1, Double value2) {
|
||||
addCriterion("truckage between", value1, value2, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTruckageNotBetween(Double value1, Double value2) {
|
||||
addCriterion("truckage not between", value1, value2, "truckage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(Integer value) {
|
||||
addCriterion("type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(Integer value) {
|
||||
addCriterion("type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(Integer value) {
|
||||
addCriterion("type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(Integer value) {
|
||||
addCriterion("type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<Integer> values) {
|
||||
addCriterion("type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<Integer> values) {
|
||||
addCriterion("type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(Integer value1, Integer value2) {
|
||||
addCriterion("type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNull() {
|
||||
addCriterion("sort is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNotNull() {
|
||||
addCriterion("sort is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortEqualTo(String value) {
|
||||
addCriterion("sort =", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotEqualTo(String value) {
|
||||
addCriterion("sort <>", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThan(String value) {
|
||||
addCriterion("sort >", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("sort >=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThan(String value) {
|
||||
addCriterion("sort <", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThanOrEqualTo(String value) {
|
||||
addCriterion("sort <=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLike(String value) {
|
||||
addCriterion("sort like", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotLike(String value) {
|
||||
addCriterion("sort not like", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIn(List<String> values) {
|
||||
addCriterion("sort in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotIn(List<String> values) {
|
||||
addCriterion("sort not in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortBetween(String value1, String value2) {
|
||||
addCriterion("sort between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotBetween(String value1, String value2) {
|
||||
addCriterion("sort not between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNull() {
|
||||
addCriterion("remark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNotNull() {
|
||||
addCriterion("remark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkEqualTo(String value) {
|
||||
addCriterion("remark =", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotEqualTo(String value) {
|
||||
addCriterion("remark <>", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThan(String value) {
|
||||
addCriterion("remark >", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("remark >=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThan(String value) {
|
||||
addCriterion("remark <", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThanOrEqualTo(String value) {
|
||||
addCriterion("remark <=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLike(String value) {
|
||||
addCriterion("remark like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotLike(String value) {
|
||||
addCriterion("remark not like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIn(List<String> values) {
|
||||
addCriterion("remark in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotIn(List<String> values) {
|
||||
addCriterion("remark not in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkBetween(String value1, String value2) {
|
||||
addCriterion("remark between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotBetween(String value1, String value2) {
|
||||
addCriterion("remark not between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
901
src/main/java/com/jsh/erp/datasource/entities/DepotHead.java
Normal file
901
src/main/java/com/jsh/erp/datasource/entities/DepotHead.java
Normal file
@@ -0,0 +1,901 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class DepotHead {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.SubType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String subtype;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.ProjectId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long projectid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.DefaultNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String defaultnumber;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String number;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.OperPersonName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String operpersonname;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.CreateTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date createtime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.OperTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date opertime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.OrganId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long organid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.HandsPersonId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long handspersonid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long accountid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.ChangeAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double changeamount;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.AllocationProjectId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long allocationprojectid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.TotalPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double totalprice;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.PayType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String paytype;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.Salesman
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String salesman;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.AccountIdList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String accountidlist;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.AccountMoneyList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String accountmoneylist;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.Discount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double discount;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.DiscountMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double discountmoney;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.DiscountLastMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double discountlastmoney;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.OtherMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double othermoney;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.OtherMoneyList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String othermoneylist;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.OtherMoneyItem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String othermoneyitem;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.AccountDay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Integer accountday;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depothead.Status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.Id
|
||||
*
|
||||
* @return the value of jsh_depothead.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.Id
|
||||
*
|
||||
* @param id the value for jsh_depothead.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.Type
|
||||
*
|
||||
* @return the value of jsh_depothead.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.Type
|
||||
*
|
||||
* @param type the value for jsh_depothead.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.SubType
|
||||
*
|
||||
* @return the value of jsh_depothead.SubType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSubtype() {
|
||||
return subtype;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.SubType
|
||||
*
|
||||
* @param subtype the value for jsh_depothead.SubType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSubtype(String subtype) {
|
||||
this.subtype = subtype == null ? null : subtype.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.ProjectId
|
||||
*
|
||||
* @return the value of jsh_depothead.ProjectId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getProjectid() {
|
||||
return projectid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.ProjectId
|
||||
*
|
||||
* @param projectid the value for jsh_depothead.ProjectId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setProjectid(Long projectid) {
|
||||
this.projectid = projectid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.DefaultNumber
|
||||
*
|
||||
* @return the value of jsh_depothead.DefaultNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDefaultnumber() {
|
||||
return defaultnumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.DefaultNumber
|
||||
*
|
||||
* @param defaultnumber the value for jsh_depothead.DefaultNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDefaultnumber(String defaultnumber) {
|
||||
this.defaultnumber = defaultnumber == null ? null : defaultnumber.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.Number
|
||||
*
|
||||
* @return the value of jsh_depothead.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.Number
|
||||
*
|
||||
* @param number the value for jsh_depothead.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setNumber(String number) {
|
||||
this.number = number == null ? null : number.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.OperPersonName
|
||||
*
|
||||
* @return the value of jsh_depothead.OperPersonName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOperpersonname() {
|
||||
return operpersonname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.OperPersonName
|
||||
*
|
||||
* @param operpersonname the value for jsh_depothead.OperPersonName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOperpersonname(String operpersonname) {
|
||||
this.operpersonname = operpersonname == null ? null : operpersonname.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.CreateTime
|
||||
*
|
||||
* @return the value of jsh_depothead.CreateTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.CreateTime
|
||||
*
|
||||
* @param createtime the value for jsh_depothead.CreateTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setCreatetime(Date createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.OperTime
|
||||
*
|
||||
* @return the value of jsh_depothead.OperTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getOpertime() {
|
||||
return opertime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.OperTime
|
||||
*
|
||||
* @param opertime the value for jsh_depothead.OperTime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOpertime(Date opertime) {
|
||||
this.opertime = opertime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.OrganId
|
||||
*
|
||||
* @return the value of jsh_depothead.OrganId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getOrganid() {
|
||||
return organid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.OrganId
|
||||
*
|
||||
* @param organid the value for jsh_depothead.OrganId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrganid(Long organid) {
|
||||
this.organid = organid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.HandsPersonId
|
||||
*
|
||||
* @return the value of jsh_depothead.HandsPersonId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getHandspersonid() {
|
||||
return handspersonid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.HandsPersonId
|
||||
*
|
||||
* @param handspersonid the value for jsh_depothead.HandsPersonId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setHandspersonid(Long handspersonid) {
|
||||
this.handspersonid = handspersonid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.AccountId
|
||||
*
|
||||
* @return the value of jsh_depothead.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getAccountid() {
|
||||
return accountid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.AccountId
|
||||
*
|
||||
* @param accountid the value for jsh_depothead.AccountId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAccountid(Long accountid) {
|
||||
this.accountid = accountid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.ChangeAmount
|
||||
*
|
||||
* @return the value of jsh_depothead.ChangeAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getChangeamount() {
|
||||
return changeamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.ChangeAmount
|
||||
*
|
||||
* @param changeamount the value for jsh_depothead.ChangeAmount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setChangeamount(Double changeamount) {
|
||||
this.changeamount = changeamount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.AllocationProjectId
|
||||
*
|
||||
* @return the value of jsh_depothead.AllocationProjectId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getAllocationprojectid() {
|
||||
return allocationprojectid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.AllocationProjectId
|
||||
*
|
||||
* @param allocationprojectid the value for jsh_depothead.AllocationProjectId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAllocationprojectid(Long allocationprojectid) {
|
||||
this.allocationprojectid = allocationprojectid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.TotalPrice
|
||||
*
|
||||
* @return the value of jsh_depothead.TotalPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTotalprice() {
|
||||
return totalprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.TotalPrice
|
||||
*
|
||||
* @param totalprice the value for jsh_depothead.TotalPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTotalprice(Double totalprice) {
|
||||
this.totalprice = totalprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.PayType
|
||||
*
|
||||
* @return the value of jsh_depothead.PayType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getPaytype() {
|
||||
return paytype;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.PayType
|
||||
*
|
||||
* @param paytype the value for jsh_depothead.PayType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPaytype(String paytype) {
|
||||
this.paytype = paytype == null ? null : paytype.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.Remark
|
||||
*
|
||||
* @return the value of jsh_depothead.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.Remark
|
||||
*
|
||||
* @param remark the value for jsh_depothead.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.Salesman
|
||||
*
|
||||
* @return the value of jsh_depothead.Salesman
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSalesman() {
|
||||
return salesman;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.Salesman
|
||||
*
|
||||
* @param salesman the value for jsh_depothead.Salesman
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSalesman(String salesman) {
|
||||
this.salesman = salesman == null ? null : salesman.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.AccountIdList
|
||||
*
|
||||
* @return the value of jsh_depothead.AccountIdList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAccountidlist() {
|
||||
return accountidlist;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.AccountIdList
|
||||
*
|
||||
* @param accountidlist the value for jsh_depothead.AccountIdList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAccountidlist(String accountidlist) {
|
||||
this.accountidlist = accountidlist == null ? null : accountidlist.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.AccountMoneyList
|
||||
*
|
||||
* @return the value of jsh_depothead.AccountMoneyList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAccountmoneylist() {
|
||||
return accountmoneylist;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.AccountMoneyList
|
||||
*
|
||||
* @param accountmoneylist the value for jsh_depothead.AccountMoneyList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAccountmoneylist(String accountmoneylist) {
|
||||
this.accountmoneylist = accountmoneylist == null ? null : accountmoneylist.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.Discount
|
||||
*
|
||||
* @return the value of jsh_depothead.Discount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getDiscount() {
|
||||
return discount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.Discount
|
||||
*
|
||||
* @param discount the value for jsh_depothead.Discount
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDiscount(Double discount) {
|
||||
this.discount = discount;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.DiscountMoney
|
||||
*
|
||||
* @return the value of jsh_depothead.DiscountMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getDiscountmoney() {
|
||||
return discountmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.DiscountMoney
|
||||
*
|
||||
* @param discountmoney the value for jsh_depothead.DiscountMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDiscountmoney(Double discountmoney) {
|
||||
this.discountmoney = discountmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.DiscountLastMoney
|
||||
*
|
||||
* @return the value of jsh_depothead.DiscountLastMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getDiscountlastmoney() {
|
||||
return discountlastmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.DiscountLastMoney
|
||||
*
|
||||
* @param discountlastmoney the value for jsh_depothead.DiscountLastMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDiscountlastmoney(Double discountlastmoney) {
|
||||
this.discountlastmoney = discountlastmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.OtherMoney
|
||||
*
|
||||
* @return the value of jsh_depothead.OtherMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getOthermoney() {
|
||||
return othermoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.OtherMoney
|
||||
*
|
||||
* @param othermoney the value for jsh_depothead.OtherMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOthermoney(Double othermoney) {
|
||||
this.othermoney = othermoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.OtherMoneyList
|
||||
*
|
||||
* @return the value of jsh_depothead.OtherMoneyList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOthermoneylist() {
|
||||
return othermoneylist;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.OtherMoneyList
|
||||
*
|
||||
* @param othermoneylist the value for jsh_depothead.OtherMoneyList
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOthermoneylist(String othermoneylist) {
|
||||
this.othermoneylist = othermoneylist == null ? null : othermoneylist.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.OtherMoneyItem
|
||||
*
|
||||
* @return the value of jsh_depothead.OtherMoneyItem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOthermoneyitem() {
|
||||
return othermoneyitem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.OtherMoneyItem
|
||||
*
|
||||
* @param othermoneyitem the value for jsh_depothead.OtherMoneyItem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOthermoneyitem(String othermoneyitem) {
|
||||
this.othermoneyitem = othermoneyitem == null ? null : othermoneyitem.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.AccountDay
|
||||
*
|
||||
* @return the value of jsh_depothead.AccountDay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Integer getAccountday() {
|
||||
return accountday;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.AccountDay
|
||||
*
|
||||
* @param accountday the value for jsh_depothead.AccountDay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAccountday(Integer accountday) {
|
||||
this.accountday = accountday;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depothead.Status
|
||||
*
|
||||
* @return the value of jsh_depothead.Status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depothead.Status
|
||||
*
|
||||
* @param status the value for jsh_depothead.Status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setStatus(Boolean status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
2103
src/main/java/com/jsh/erp/datasource/entities/DepotHeadExample.java
Normal file
2103
src/main/java/com/jsh/erp/datasource/entities/DepotHeadExample.java
Normal file
File diff suppressed because it is too large
Load Diff
739
src/main/java/com/jsh/erp/datasource/entities/DepotItem.java
Normal file
739
src/main/java/com/jsh/erp/datasource/entities/DepotItem.java
Normal file
@@ -0,0 +1,739 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class DepotItem {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.HeaderId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long headerid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.MaterialId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long materialid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.MUnit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String munit;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.OperNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double opernumber;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.BasicNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double basicnumber;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.UnitPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double unitprice;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.TaxUnitPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double taxunitprice;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.AllPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double allprice;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.Img
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String img;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.Incidentals
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double incidentals;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.DepotId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long depotid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.AnotherDepotId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long anotherdepotid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.TaxRate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double taxrate;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.TaxMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double taxmoney;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.TaxLastMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double taxlastmoney;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.OtherField1
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield1;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.OtherField2
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield2;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.OtherField3
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield3;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.OtherField4
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield4;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.OtherField5
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield5;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_depotitem.MType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String mtype;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.Id
|
||||
*
|
||||
* @return the value of jsh_depotitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.Id
|
||||
*
|
||||
* @param id the value for jsh_depotitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.HeaderId
|
||||
*
|
||||
* @return the value of jsh_depotitem.HeaderId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getHeaderid() {
|
||||
return headerid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.HeaderId
|
||||
*
|
||||
* @param headerid the value for jsh_depotitem.HeaderId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setHeaderid(Long headerid) {
|
||||
this.headerid = headerid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.MaterialId
|
||||
*
|
||||
* @return the value of jsh_depotitem.MaterialId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getMaterialid() {
|
||||
return materialid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.MaterialId
|
||||
*
|
||||
* @param materialid the value for jsh_depotitem.MaterialId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setMaterialid(Long materialid) {
|
||||
this.materialid = materialid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.MUnit
|
||||
*
|
||||
* @return the value of jsh_depotitem.MUnit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getMunit() {
|
||||
return munit;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.MUnit
|
||||
*
|
||||
* @param munit the value for jsh_depotitem.MUnit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setMunit(String munit) {
|
||||
this.munit = munit == null ? null : munit.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.OperNumber
|
||||
*
|
||||
* @return the value of jsh_depotitem.OperNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getOpernumber() {
|
||||
return opernumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.OperNumber
|
||||
*
|
||||
* @param opernumber the value for jsh_depotitem.OperNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOpernumber(Double opernumber) {
|
||||
this.opernumber = opernumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.BasicNumber
|
||||
*
|
||||
* @return the value of jsh_depotitem.BasicNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getBasicnumber() {
|
||||
return basicnumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.BasicNumber
|
||||
*
|
||||
* @param basicnumber the value for jsh_depotitem.BasicNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setBasicnumber(Double basicnumber) {
|
||||
this.basicnumber = basicnumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.UnitPrice
|
||||
*
|
||||
* @return the value of jsh_depotitem.UnitPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getUnitprice() {
|
||||
return unitprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.UnitPrice
|
||||
*
|
||||
* @param unitprice the value for jsh_depotitem.UnitPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUnitprice(Double unitprice) {
|
||||
this.unitprice = unitprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.TaxUnitPrice
|
||||
*
|
||||
* @return the value of jsh_depotitem.TaxUnitPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTaxunitprice() {
|
||||
return taxunitprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.TaxUnitPrice
|
||||
*
|
||||
* @param taxunitprice the value for jsh_depotitem.TaxUnitPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTaxunitprice(Double taxunitprice) {
|
||||
this.taxunitprice = taxunitprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.AllPrice
|
||||
*
|
||||
* @return the value of jsh_depotitem.AllPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getAllprice() {
|
||||
return allprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.AllPrice
|
||||
*
|
||||
* @param allprice the value for jsh_depotitem.AllPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAllprice(Double allprice) {
|
||||
this.allprice = allprice;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.Remark
|
||||
*
|
||||
* @return the value of jsh_depotitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.Remark
|
||||
*
|
||||
* @param remark the value for jsh_depotitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.Img
|
||||
*
|
||||
* @return the value of jsh_depotitem.Img
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getImg() {
|
||||
return img;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.Img
|
||||
*
|
||||
* @param img the value for jsh_depotitem.Img
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setImg(String img) {
|
||||
this.img = img == null ? null : img.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.Incidentals
|
||||
*
|
||||
* @return the value of jsh_depotitem.Incidentals
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getIncidentals() {
|
||||
return incidentals;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.Incidentals
|
||||
*
|
||||
* @param incidentals the value for jsh_depotitem.Incidentals
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIncidentals(Double incidentals) {
|
||||
this.incidentals = incidentals;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.DepotId
|
||||
*
|
||||
* @return the value of jsh_depotitem.DepotId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getDepotid() {
|
||||
return depotid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.DepotId
|
||||
*
|
||||
* @param depotid the value for jsh_depotitem.DepotId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDepotid(Long depotid) {
|
||||
this.depotid = depotid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.AnotherDepotId
|
||||
*
|
||||
* @return the value of jsh_depotitem.AnotherDepotId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getAnotherdepotid() {
|
||||
return anotherdepotid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.AnotherDepotId
|
||||
*
|
||||
* @param anotherdepotid the value for jsh_depotitem.AnotherDepotId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAnotherdepotid(Long anotherdepotid) {
|
||||
this.anotherdepotid = anotherdepotid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.TaxRate
|
||||
*
|
||||
* @return the value of jsh_depotitem.TaxRate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTaxrate() {
|
||||
return taxrate;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.TaxRate
|
||||
*
|
||||
* @param taxrate the value for jsh_depotitem.TaxRate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTaxrate(Double taxrate) {
|
||||
this.taxrate = taxrate;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.TaxMoney
|
||||
*
|
||||
* @return the value of jsh_depotitem.TaxMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTaxmoney() {
|
||||
return taxmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.TaxMoney
|
||||
*
|
||||
* @param taxmoney the value for jsh_depotitem.TaxMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTaxmoney(Double taxmoney) {
|
||||
this.taxmoney = taxmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.TaxLastMoney
|
||||
*
|
||||
* @return the value of jsh_depotitem.TaxLastMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTaxlastmoney() {
|
||||
return taxlastmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.TaxLastMoney
|
||||
*
|
||||
* @param taxlastmoney the value for jsh_depotitem.TaxLastMoney
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTaxlastmoney(Double taxlastmoney) {
|
||||
this.taxlastmoney = taxlastmoney;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.OtherField1
|
||||
*
|
||||
* @return the value of jsh_depotitem.OtherField1
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOtherfield1() {
|
||||
return otherfield1;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.OtherField1
|
||||
*
|
||||
* @param otherfield1 the value for jsh_depotitem.OtherField1
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOtherfield1(String otherfield1) {
|
||||
this.otherfield1 = otherfield1 == null ? null : otherfield1.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.OtherField2
|
||||
*
|
||||
* @return the value of jsh_depotitem.OtherField2
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOtherfield2() {
|
||||
return otherfield2;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.OtherField2
|
||||
*
|
||||
* @param otherfield2 the value for jsh_depotitem.OtherField2
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOtherfield2(String otherfield2) {
|
||||
this.otherfield2 = otherfield2 == null ? null : otherfield2.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.OtherField3
|
||||
*
|
||||
* @return the value of jsh_depotitem.OtherField3
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOtherfield3() {
|
||||
return otherfield3;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.OtherField3
|
||||
*
|
||||
* @param otherfield3 the value for jsh_depotitem.OtherField3
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOtherfield3(String otherfield3) {
|
||||
this.otherfield3 = otherfield3 == null ? null : otherfield3.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.OtherField4
|
||||
*
|
||||
* @return the value of jsh_depotitem.OtherField4
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOtherfield4() {
|
||||
return otherfield4;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.OtherField4
|
||||
*
|
||||
* @param otherfield4 the value for jsh_depotitem.OtherField4
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOtherfield4(String otherfield4) {
|
||||
this.otherfield4 = otherfield4 == null ? null : otherfield4.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.OtherField5
|
||||
*
|
||||
* @return the value of jsh_depotitem.OtherField5
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOtherfield5() {
|
||||
return otherfield5;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.OtherField5
|
||||
*
|
||||
* @param otherfield5 the value for jsh_depotitem.OtherField5
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOtherfield5(String otherfield5) {
|
||||
this.otherfield5 = otherfield5 == null ? null : otherfield5.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_depotitem.MType
|
||||
*
|
||||
* @return the value of jsh_depotitem.MType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getMtype() {
|
||||
return mtype;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_depotitem.MType
|
||||
*
|
||||
* @param mtype the value for jsh_depotitem.MType
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setMtype(String mtype) {
|
||||
this.mtype = mtype == null ? null : mtype.trim();
|
||||
}
|
||||
}
|
||||
1772
src/main/java/com/jsh/erp/datasource/entities/DepotItemExample.java
Normal file
1772
src/main/java/com/jsh/erp/datasource/entities/DepotItemExample.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,46 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class DepotItemVo4DetailByTypeAndMId {
|
||||
|
||||
private String number;
|
||||
|
||||
private String newtype;
|
||||
|
||||
private Integer bnum;
|
||||
|
||||
private Date otime;
|
||||
|
||||
public String getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
public void setNumber(String number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getNewtype() {
|
||||
return newtype;
|
||||
}
|
||||
|
||||
public void setNewtype(String newtype) {
|
||||
this.newtype = newtype;
|
||||
}
|
||||
|
||||
public Integer getBnum() {
|
||||
return bnum;
|
||||
}
|
||||
|
||||
public void setBnum(Integer bnum) {
|
||||
this.bnum = bnum;
|
||||
}
|
||||
|
||||
public Date getOtime() {
|
||||
return otime;
|
||||
}
|
||||
|
||||
public void setOtime(Date otime) {
|
||||
this.otime = otime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class DepotItemVo4HeaderId {
|
||||
|
||||
private Long headerid;
|
||||
|
||||
public Long getHeaderid() {
|
||||
return headerid;
|
||||
}
|
||||
|
||||
public void setHeaderid(Long headerid) {
|
||||
this.headerid = headerid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,256 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class DepotItemVo4Material {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long headerid;
|
||||
|
||||
private Long materialid;
|
||||
|
||||
private String munit;
|
||||
|
||||
private Double opernumber;
|
||||
|
||||
private Double basicnumber;
|
||||
|
||||
private Double unitprice;
|
||||
|
||||
private Double taxunitprice;
|
||||
|
||||
private Double allprice;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String img;
|
||||
|
||||
private Double incidentals;
|
||||
|
||||
private Long depotid;
|
||||
|
||||
private Long anotherdepotid;
|
||||
|
||||
private Double taxrate;
|
||||
|
||||
private Double taxmoney;
|
||||
|
||||
private Double taxlastmoney;
|
||||
|
||||
private String otherfield1;
|
||||
|
||||
private String otherfield2;
|
||||
|
||||
private String otherfield3;
|
||||
|
||||
private String otherfield4;
|
||||
|
||||
private String otherfield5;
|
||||
|
||||
private String mtype;
|
||||
|
||||
private String mname;
|
||||
|
||||
private String mmodel;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getHeaderid() {
|
||||
return headerid;
|
||||
}
|
||||
|
||||
public void setHeaderid(Long headerid) {
|
||||
this.headerid = headerid;
|
||||
}
|
||||
|
||||
public Long getMaterialid() {
|
||||
return materialid;
|
||||
}
|
||||
|
||||
public void setMaterialid(Long materialid) {
|
||||
this.materialid = materialid;
|
||||
}
|
||||
|
||||
public String getMunit() {
|
||||
return munit;
|
||||
}
|
||||
|
||||
public void setMunit(String munit) {
|
||||
this.munit = munit;
|
||||
}
|
||||
|
||||
public Double getOpernumber() {
|
||||
return opernumber;
|
||||
}
|
||||
|
||||
public void setOpernumber(Double opernumber) {
|
||||
this.opernumber = opernumber;
|
||||
}
|
||||
|
||||
public Double getBasicnumber() {
|
||||
return basicnumber;
|
||||
}
|
||||
|
||||
public void setBasicnumber(Double basicnumber) {
|
||||
this.basicnumber = basicnumber;
|
||||
}
|
||||
|
||||
public Double getUnitprice() {
|
||||
return unitprice;
|
||||
}
|
||||
|
||||
public void setUnitprice(Double unitprice) {
|
||||
this.unitprice = unitprice;
|
||||
}
|
||||
|
||||
public Double getTaxunitprice() {
|
||||
return taxunitprice;
|
||||
}
|
||||
|
||||
public void setTaxunitprice(Double taxunitprice) {
|
||||
this.taxunitprice = taxunitprice;
|
||||
}
|
||||
|
||||
public Double getAllprice() {
|
||||
return allprice;
|
||||
}
|
||||
|
||||
public void setAllprice(Double allprice) {
|
||||
this.allprice = allprice;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getImg() {
|
||||
return img;
|
||||
}
|
||||
|
||||
public void setImg(String img) {
|
||||
this.img = img;
|
||||
}
|
||||
|
||||
public Double getIncidentals() {
|
||||
return incidentals;
|
||||
}
|
||||
|
||||
public void setIncidentals(Double incidentals) {
|
||||
this.incidentals = incidentals;
|
||||
}
|
||||
|
||||
public Long getDepotid() {
|
||||
return depotid;
|
||||
}
|
||||
|
||||
public void setDepotid(Long depotid) {
|
||||
this.depotid = depotid;
|
||||
}
|
||||
|
||||
public Long getAnotherdepotid() {
|
||||
return anotherdepotid;
|
||||
}
|
||||
|
||||
public void setAnotherdepotid(Long anotherdepotid) {
|
||||
this.anotherdepotid = anotherdepotid;
|
||||
}
|
||||
|
||||
public Double getTaxrate() {
|
||||
return taxrate;
|
||||
}
|
||||
|
||||
public void setTaxrate(Double taxrate) {
|
||||
this.taxrate = taxrate;
|
||||
}
|
||||
|
||||
public Double getTaxmoney() {
|
||||
return taxmoney;
|
||||
}
|
||||
|
||||
public void setTaxmoney(Double taxmoney) {
|
||||
this.taxmoney = taxmoney;
|
||||
}
|
||||
|
||||
public Double getTaxlastmoney() {
|
||||
return taxlastmoney;
|
||||
}
|
||||
|
||||
public void setTaxlastmoney(Double taxlastmoney) {
|
||||
this.taxlastmoney = taxlastmoney;
|
||||
}
|
||||
|
||||
public String getOtherfield1() {
|
||||
return otherfield1;
|
||||
}
|
||||
|
||||
public void setOtherfield1(String otherfield1) {
|
||||
this.otherfield1 = otherfield1;
|
||||
}
|
||||
|
||||
public String getOtherfield2() {
|
||||
return otherfield2;
|
||||
}
|
||||
|
||||
public void setOtherfield2(String otherfield2) {
|
||||
this.otherfield2 = otherfield2;
|
||||
}
|
||||
|
||||
public String getOtherfield3() {
|
||||
return otherfield3;
|
||||
}
|
||||
|
||||
public void setOtherfield3(String otherfield3) {
|
||||
this.otherfield3 = otherfield3;
|
||||
}
|
||||
|
||||
public String getOtherfield4() {
|
||||
return otherfield4;
|
||||
}
|
||||
|
||||
public void setOtherfield4(String otherfield4) {
|
||||
this.otherfield4 = otherfield4;
|
||||
}
|
||||
|
||||
public String getOtherfield5() {
|
||||
return otherfield5;
|
||||
}
|
||||
|
||||
public void setOtherfield5(String otherfield5) {
|
||||
this.otherfield5 = otherfield5;
|
||||
}
|
||||
|
||||
public String getMtype() {
|
||||
return mtype;
|
||||
}
|
||||
|
||||
public void setMtype(String mtype) {
|
||||
this.mtype = mtype;
|
||||
}
|
||||
|
||||
public String getMname() {
|
||||
return mname;
|
||||
}
|
||||
|
||||
public void setMname(String mname) {
|
||||
this.mname = mname;
|
||||
}
|
||||
|
||||
public String getMmodel() {
|
||||
return mmodel;
|
||||
}
|
||||
|
||||
public void setMmodel(String mmodel) {
|
||||
this.mmodel = mmodel;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,364 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class DepotItemVo4WithInfoEx {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long headerid;
|
||||
|
||||
private Long materialid;
|
||||
|
||||
private String munit;
|
||||
|
||||
private Double opernumber;
|
||||
|
||||
private Double basicnumber;
|
||||
|
||||
private Double unitprice;
|
||||
|
||||
private Double taxunitprice;
|
||||
|
||||
private Double allprice;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String img;
|
||||
|
||||
private Double incidentals;
|
||||
|
||||
private Long depotid;
|
||||
|
||||
private Long anotherdepotid;
|
||||
|
||||
private Double taxrate;
|
||||
|
||||
private Double taxmoney;
|
||||
|
||||
private Double taxlastmoney;
|
||||
|
||||
private String otherfield1;
|
||||
|
||||
private String otherfield2;
|
||||
|
||||
private String otherfield3;
|
||||
|
||||
private String otherfield4;
|
||||
|
||||
private String otherfield5;
|
||||
|
||||
private String mtype;
|
||||
|
||||
private String MName;
|
||||
|
||||
private String MModel;
|
||||
|
||||
private String MaterialUnit;
|
||||
|
||||
private String MColor;
|
||||
|
||||
private String MStandard;
|
||||
|
||||
private String MMfrs;
|
||||
|
||||
private String MOtherField1;
|
||||
|
||||
private String MOtherField2;
|
||||
|
||||
private String MOtherField3;
|
||||
|
||||
private String DepotName;
|
||||
|
||||
private String AnotherDepotName;
|
||||
|
||||
private Long UnitId;
|
||||
|
||||
private String UName;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getHeaderid() {
|
||||
return headerid;
|
||||
}
|
||||
|
||||
public void setHeaderid(Long headerid) {
|
||||
this.headerid = headerid;
|
||||
}
|
||||
|
||||
public Long getMaterialid() {
|
||||
return materialid;
|
||||
}
|
||||
|
||||
public void setMaterialid(Long materialid) {
|
||||
this.materialid = materialid;
|
||||
}
|
||||
|
||||
public String getMunit() {
|
||||
return munit;
|
||||
}
|
||||
|
||||
public void setMunit(String munit) {
|
||||
this.munit = munit;
|
||||
}
|
||||
|
||||
public Double getOpernumber() {
|
||||
return opernumber;
|
||||
}
|
||||
|
||||
public void setOpernumber(Double opernumber) {
|
||||
this.opernumber = opernumber;
|
||||
}
|
||||
|
||||
public Double getBasicnumber() {
|
||||
return basicnumber;
|
||||
}
|
||||
|
||||
public void setBasicnumber(Double basicnumber) {
|
||||
this.basicnumber = basicnumber;
|
||||
}
|
||||
|
||||
public Double getUnitprice() {
|
||||
return unitprice;
|
||||
}
|
||||
|
||||
public void setUnitprice(Double unitprice) {
|
||||
this.unitprice = unitprice;
|
||||
}
|
||||
|
||||
public Double getTaxunitprice() {
|
||||
return taxunitprice;
|
||||
}
|
||||
|
||||
public void setTaxunitprice(Double taxunitprice) {
|
||||
this.taxunitprice = taxunitprice;
|
||||
}
|
||||
|
||||
public Double getAllprice() {
|
||||
return allprice;
|
||||
}
|
||||
|
||||
public void setAllprice(Double allprice) {
|
||||
this.allprice = allprice;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getImg() {
|
||||
return img;
|
||||
}
|
||||
|
||||
public void setImg(String img) {
|
||||
this.img = img;
|
||||
}
|
||||
|
||||
public Double getIncidentals() {
|
||||
return incidentals;
|
||||
}
|
||||
|
||||
public void setIncidentals(Double incidentals) {
|
||||
this.incidentals = incidentals;
|
||||
}
|
||||
|
||||
public Long getDepotid() {
|
||||
return depotid;
|
||||
}
|
||||
|
||||
public void setDepotid(Long depotid) {
|
||||
this.depotid = depotid;
|
||||
}
|
||||
|
||||
public Long getAnotherdepotid() {
|
||||
return anotherdepotid;
|
||||
}
|
||||
|
||||
public void setAnotherdepotid(Long anotherdepotid) {
|
||||
this.anotherdepotid = anotherdepotid;
|
||||
}
|
||||
|
||||
public Double getTaxrate() {
|
||||
return taxrate;
|
||||
}
|
||||
|
||||
public void setTaxrate(Double taxrate) {
|
||||
this.taxrate = taxrate;
|
||||
}
|
||||
|
||||
public Double getTaxmoney() {
|
||||
return taxmoney;
|
||||
}
|
||||
|
||||
public void setTaxmoney(Double taxmoney) {
|
||||
this.taxmoney = taxmoney;
|
||||
}
|
||||
|
||||
public Double getTaxlastmoney() {
|
||||
return taxlastmoney;
|
||||
}
|
||||
|
||||
public void setTaxlastmoney(Double taxlastmoney) {
|
||||
this.taxlastmoney = taxlastmoney;
|
||||
}
|
||||
|
||||
public String getOtherfield1() {
|
||||
return otherfield1;
|
||||
}
|
||||
|
||||
public void setOtherfield1(String otherfield1) {
|
||||
this.otherfield1 = otherfield1;
|
||||
}
|
||||
|
||||
public String getOtherfield2() {
|
||||
return otherfield2;
|
||||
}
|
||||
|
||||
public void setOtherfield2(String otherfield2) {
|
||||
this.otherfield2 = otherfield2;
|
||||
}
|
||||
|
||||
public String getOtherfield3() {
|
||||
return otherfield3;
|
||||
}
|
||||
|
||||
public void setOtherfield3(String otherfield3) {
|
||||
this.otherfield3 = otherfield3;
|
||||
}
|
||||
|
||||
public String getOtherfield4() {
|
||||
return otherfield4;
|
||||
}
|
||||
|
||||
public void setOtherfield4(String otherfield4) {
|
||||
this.otherfield4 = otherfield4;
|
||||
}
|
||||
|
||||
public String getOtherfield5() {
|
||||
return otherfield5;
|
||||
}
|
||||
|
||||
public void setOtherfield5(String otherfield5) {
|
||||
this.otherfield5 = otherfield5;
|
||||
}
|
||||
|
||||
public String getMtype() {
|
||||
return mtype;
|
||||
}
|
||||
|
||||
public void setMtype(String mtype) {
|
||||
this.mtype = mtype;
|
||||
}
|
||||
|
||||
public String getMName() {
|
||||
return MName;
|
||||
}
|
||||
|
||||
public void setMName(String MName) {
|
||||
this.MName = MName;
|
||||
}
|
||||
|
||||
public String getMModel() {
|
||||
return MModel;
|
||||
}
|
||||
|
||||
public void setMModel(String MModel) {
|
||||
this.MModel = MModel;
|
||||
}
|
||||
|
||||
public String getMaterialUnit() {
|
||||
return MaterialUnit;
|
||||
}
|
||||
|
||||
public void setMaterialUnit(String materialUnit) {
|
||||
MaterialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMColor() {
|
||||
return MColor;
|
||||
}
|
||||
|
||||
public void setMColor(String MColor) {
|
||||
this.MColor = MColor;
|
||||
}
|
||||
|
||||
public String getMStandard() {
|
||||
return MStandard;
|
||||
}
|
||||
|
||||
public void setMStandard(String MStandard) {
|
||||
this.MStandard = MStandard;
|
||||
}
|
||||
|
||||
public String getMMfrs() {
|
||||
return MMfrs;
|
||||
}
|
||||
|
||||
public void setMMfrs(String MMfrs) {
|
||||
this.MMfrs = MMfrs;
|
||||
}
|
||||
|
||||
public String getMOtherField1() {
|
||||
return MOtherField1;
|
||||
}
|
||||
|
||||
public void setMOtherField1(String MOtherField1) {
|
||||
this.MOtherField1 = MOtherField1;
|
||||
}
|
||||
|
||||
public String getMOtherField2() {
|
||||
return MOtherField2;
|
||||
}
|
||||
|
||||
public void setMOtherField2(String MOtherField2) {
|
||||
this.MOtherField2 = MOtherField2;
|
||||
}
|
||||
|
||||
public String getMOtherField3() {
|
||||
return MOtherField3;
|
||||
}
|
||||
|
||||
public void setMOtherField3(String MOtherField3) {
|
||||
this.MOtherField3 = MOtherField3;
|
||||
}
|
||||
|
||||
public String getDepotName() {
|
||||
return DepotName;
|
||||
}
|
||||
|
||||
public void setDepotName(String depotName) {
|
||||
DepotName = depotName;
|
||||
}
|
||||
|
||||
public String getAnotherDepotName() {
|
||||
return AnotherDepotName;
|
||||
}
|
||||
|
||||
public void setAnotherDepotName(String anotherDepotName) {
|
||||
AnotherDepotName = anotherDepotName;
|
||||
}
|
||||
|
||||
public Long getUnitId() {
|
||||
return UnitId;
|
||||
}
|
||||
|
||||
public void setUnitId(Long unitId) {
|
||||
UnitId = unitId;
|
||||
}
|
||||
|
||||
public String getUName() {
|
||||
return UName;
|
||||
}
|
||||
|
||||
public void setUName(String UName) {
|
||||
this.UName = UName;
|
||||
}
|
||||
}
|
||||
323
src/main/java/com/jsh/erp/datasource/entities/Functions.java
Normal file
323
src/main/java/com/jsh/erp/datasource/entities/Functions.java
Normal file
@@ -0,0 +1,323 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Functions {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String number;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.PNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String pnumber;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.URL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.State
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean state;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.Sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String sort;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.Enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean enabled;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_functions.PushBtn
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String pushbtn;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.Id
|
||||
*
|
||||
* @return the value of jsh_functions.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.Id
|
||||
*
|
||||
* @param id the value for jsh_functions.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.Number
|
||||
*
|
||||
* @return the value of jsh_functions.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.Number
|
||||
*
|
||||
* @param number the value for jsh_functions.Number
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setNumber(String number) {
|
||||
this.number = number == null ? null : number.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.Name
|
||||
*
|
||||
* @return the value of jsh_functions.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.Name
|
||||
*
|
||||
* @param name the value for jsh_functions.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.PNumber
|
||||
*
|
||||
* @return the value of jsh_functions.PNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getPnumber() {
|
||||
return pnumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.PNumber
|
||||
*
|
||||
* @param pnumber the value for jsh_functions.PNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPnumber(String pnumber) {
|
||||
this.pnumber = pnumber == null ? null : pnumber.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.URL
|
||||
*
|
||||
* @return the value of jsh_functions.URL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.URL
|
||||
*
|
||||
* @param url the value for jsh_functions.URL
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUrl(String url) {
|
||||
this.url = url == null ? null : url.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.State
|
||||
*
|
||||
* @return the value of jsh_functions.State
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.State
|
||||
*
|
||||
* @param state the value for jsh_functions.State
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setState(Boolean state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.Sort
|
||||
*
|
||||
* @return the value of jsh_functions.Sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.Sort
|
||||
*
|
||||
* @param sort the value for jsh_functions.Sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSort(String sort) {
|
||||
this.sort = sort == null ? null : sort.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.Enabled
|
||||
*
|
||||
* @return the value of jsh_functions.Enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.Enabled
|
||||
*
|
||||
* @param enabled the value for jsh_functions.Enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.Type
|
||||
*
|
||||
* @return the value of jsh_functions.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.Type
|
||||
*
|
||||
* @param type the value for jsh_functions.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_functions.PushBtn
|
||||
*
|
||||
* @return the value of jsh_functions.PushBtn
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getPushbtn() {
|
||||
return pushbtn;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_functions.PushBtn
|
||||
*
|
||||
* @param pushbtn the value for jsh_functions.PushBtn
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPushbtn(String pushbtn) {
|
||||
this.pushbtn = pushbtn == null ? null : pushbtn.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,972 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class FunctionsExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public FunctionsExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberIsNull() {
|
||||
addCriterion("Number is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberIsNotNull() {
|
||||
addCriterion("Number is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberEqualTo(String value) {
|
||||
addCriterion("Number =", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberNotEqualTo(String value) {
|
||||
addCriterion("Number <>", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberGreaterThan(String value) {
|
||||
addCriterion("Number >", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Number >=", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberLessThan(String value) {
|
||||
addCriterion("Number <", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberLessThanOrEqualTo(String value) {
|
||||
addCriterion("Number <=", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberLike(String value) {
|
||||
addCriterion("Number like", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberNotLike(String value) {
|
||||
addCriterion("Number not like", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberIn(List<String> values) {
|
||||
addCriterion("Number in", values, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberNotIn(List<String> values) {
|
||||
addCriterion("Number not in", values, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberBetween(String value1, String value2) {
|
||||
addCriterion("Number between", value1, value2, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberNotBetween(String value1, String value2) {
|
||||
addCriterion("Number not between", value1, value2, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("Name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("Name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("Name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("Name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("Name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("Name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("Name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("Name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("Name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("Name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("Name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("Name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("Name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberIsNull() {
|
||||
addCriterion("PNumber is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberIsNotNull() {
|
||||
addCriterion("PNumber is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberEqualTo(String value) {
|
||||
addCriterion("PNumber =", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberNotEqualTo(String value) {
|
||||
addCriterion("PNumber <>", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberGreaterThan(String value) {
|
||||
addCriterion("PNumber >", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("PNumber >=", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberLessThan(String value) {
|
||||
addCriterion("PNumber <", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberLessThanOrEqualTo(String value) {
|
||||
addCriterion("PNumber <=", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberLike(String value) {
|
||||
addCriterion("PNumber like", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberNotLike(String value) {
|
||||
addCriterion("PNumber not like", value, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberIn(List<String> values) {
|
||||
addCriterion("PNumber in", values, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberNotIn(List<String> values) {
|
||||
addCriterion("PNumber not in", values, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberBetween(String value1, String value2) {
|
||||
addCriterion("PNumber between", value1, value2, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPnumberNotBetween(String value1, String value2) {
|
||||
addCriterion("PNumber not between", value1, value2, "pnumber");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNull() {
|
||||
addCriterion("URL is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNotNull() {
|
||||
addCriterion("URL is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlEqualTo(String value) {
|
||||
addCriterion("URL =", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotEqualTo(String value) {
|
||||
addCriterion("URL <>", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThan(String value) {
|
||||
addCriterion("URL >", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("URL >=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThan(String value) {
|
||||
addCriterion("URL <", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("URL <=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLike(String value) {
|
||||
addCriterion("URL like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotLike(String value) {
|
||||
addCriterion("URL not like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIn(List<String> values) {
|
||||
addCriterion("URL in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotIn(List<String> values) {
|
||||
addCriterion("URL not in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlBetween(String value1, String value2) {
|
||||
addCriterion("URL between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("URL not between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateIsNull() {
|
||||
addCriterion("State is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateIsNotNull() {
|
||||
addCriterion("State is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateEqualTo(Boolean value) {
|
||||
addCriterion("State =", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateNotEqualTo(Boolean value) {
|
||||
addCriterion("State <>", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateGreaterThan(Boolean value) {
|
||||
addCriterion("State >", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateGreaterThanOrEqualTo(Boolean value) {
|
||||
addCriterion("State >=", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateLessThan(Boolean value) {
|
||||
addCriterion("State <", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateLessThanOrEqualTo(Boolean value) {
|
||||
addCriterion("State <=", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateIn(List<Boolean> values) {
|
||||
addCriterion("State in", values, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateNotIn(List<Boolean> values) {
|
||||
addCriterion("State not in", values, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("State between", value1, value2, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateNotBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("State not between", value1, value2, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNull() {
|
||||
addCriterion("Sort is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNotNull() {
|
||||
addCriterion("Sort is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortEqualTo(String value) {
|
||||
addCriterion("Sort =", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotEqualTo(String value) {
|
||||
addCriterion("Sort <>", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThan(String value) {
|
||||
addCriterion("Sort >", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Sort >=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThan(String value) {
|
||||
addCriterion("Sort <", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThanOrEqualTo(String value) {
|
||||
addCriterion("Sort <=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLike(String value) {
|
||||
addCriterion("Sort like", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotLike(String value) {
|
||||
addCriterion("Sort not like", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIn(List<String> values) {
|
||||
addCriterion("Sort in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotIn(List<String> values) {
|
||||
addCriterion("Sort not in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortBetween(String value1, String value2) {
|
||||
addCriterion("Sort between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotBetween(String value1, String value2) {
|
||||
addCriterion("Sort not between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledIsNull() {
|
||||
addCriterion("Enabled is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledIsNotNull() {
|
||||
addCriterion("Enabled is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledEqualTo(Boolean value) {
|
||||
addCriterion("Enabled =", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledNotEqualTo(Boolean value) {
|
||||
addCriterion("Enabled <>", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledGreaterThan(Boolean value) {
|
||||
addCriterion("Enabled >", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledGreaterThanOrEqualTo(Boolean value) {
|
||||
addCriterion("Enabled >=", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledLessThan(Boolean value) {
|
||||
addCriterion("Enabled <", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledLessThanOrEqualTo(Boolean value) {
|
||||
addCriterion("Enabled <=", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledIn(List<Boolean> values) {
|
||||
addCriterion("Enabled in", values, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledNotIn(List<Boolean> values) {
|
||||
addCriterion("Enabled not in", values, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("Enabled between", value1, value2, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledNotBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("Enabled not between", value1, value2, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("Type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("Type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("Type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("Type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("Type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("Type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("Type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("Type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("Type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("Type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("Type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("Type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("Type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnIsNull() {
|
||||
addCriterion("PushBtn is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnIsNotNull() {
|
||||
addCriterion("PushBtn is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnEqualTo(String value) {
|
||||
addCriterion("PushBtn =", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnNotEqualTo(String value) {
|
||||
addCriterion("PushBtn <>", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnGreaterThan(String value) {
|
||||
addCriterion("PushBtn >", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("PushBtn >=", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnLessThan(String value) {
|
||||
addCriterion("PushBtn <", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnLessThanOrEqualTo(String value) {
|
||||
addCriterion("PushBtn <=", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnLike(String value) {
|
||||
addCriterion("PushBtn like", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnNotLike(String value) {
|
||||
addCriterion("PushBtn not like", value, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnIn(List<String> values) {
|
||||
addCriterion("PushBtn in", values, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnNotIn(List<String> values) {
|
||||
addCriterion("PushBtn not in", values, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnBetween(String value1, String value2) {
|
||||
addCriterion("PushBtn between", value1, value2, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPushbtnNotBetween(String value1, String value2) {
|
||||
addCriterion("PushBtn not between", value1, value2, "pushbtn");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
131
src/main/java/com/jsh/erp/datasource/entities/InOutItem.java
Normal file
131
src/main/java/com/jsh/erp/datasource/entities/InOutItem.java
Normal file
@@ -0,0 +1,131 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class InOutItem {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_inoutitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_inoutitem.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_inoutitem.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_inoutitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_inoutitem.Id
|
||||
*
|
||||
* @return the value of jsh_inoutitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_inoutitem.Id
|
||||
*
|
||||
* @param id the value for jsh_inoutitem.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_inoutitem.Name
|
||||
*
|
||||
* @return the value of jsh_inoutitem.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_inoutitem.Name
|
||||
*
|
||||
* @param name the value for jsh_inoutitem.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_inoutitem.Type
|
||||
*
|
||||
* @return the value of jsh_inoutitem.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_inoutitem.Type
|
||||
*
|
||||
* @param type the value for jsh_inoutitem.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_inoutitem.Remark
|
||||
*
|
||||
* @return the value of jsh_inoutitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_inoutitem.Remark
|
||||
*
|
||||
* @param remark the value for jsh_inoutitem.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,572 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class InOutItemExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public InOutItemExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("Name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("Name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("Name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("Name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("Name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("Name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("Name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("Name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("Name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("Name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("Name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("Name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("Name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("Type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("Type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("Type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("Type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("Type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("Type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("Type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("Type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("Type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("Type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("Type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("Type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("Type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNull() {
|
||||
addCriterion("Remark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNotNull() {
|
||||
addCriterion("Remark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkEqualTo(String value) {
|
||||
addCriterion("Remark =", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotEqualTo(String value) {
|
||||
addCriterion("Remark <>", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThan(String value) {
|
||||
addCriterion("Remark >", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Remark >=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThan(String value) {
|
||||
addCriterion("Remark <", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThanOrEqualTo(String value) {
|
||||
addCriterion("Remark <=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLike(String value) {
|
||||
addCriterion("Remark like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotLike(String value) {
|
||||
addCriterion("Remark not like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIn(List<String> values) {
|
||||
addCriterion("Remark in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotIn(List<String> values) {
|
||||
addCriterion("Remark not in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkBetween(String value1, String value2) {
|
||||
addCriterion("Remark between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotBetween(String value1, String value2) {
|
||||
addCriterion("Remark not between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
261
src/main/java/com/jsh/erp/datasource/entities/Log.java
Normal file
261
src/main/java/com/jsh/erp/datasource/entities/Log.java
Normal file
@@ -0,0 +1,261 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Log {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.userID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long userid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.operation
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String operation;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.clientIP
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String clientip;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.createtime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Date createtime;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Byte status;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.contentdetails
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String contentdetails;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_log.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.id
|
||||
*
|
||||
* @return the value of jsh_log.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.id
|
||||
*
|
||||
* @param id the value for jsh_log.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.userID
|
||||
*
|
||||
* @return the value of jsh_log.userID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.userID
|
||||
*
|
||||
* @param userid the value for jsh_log.userID
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUserid(Long userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.operation
|
||||
*
|
||||
* @return the value of jsh_log.operation
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOperation() {
|
||||
return operation;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.operation
|
||||
*
|
||||
* @param operation the value for jsh_log.operation
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOperation(String operation) {
|
||||
this.operation = operation == null ? null : operation.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.clientIP
|
||||
*
|
||||
* @return the value of jsh_log.clientIP
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getClientip() {
|
||||
return clientip;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.clientIP
|
||||
*
|
||||
* @param clientip the value for jsh_log.clientIP
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setClientip(String clientip) {
|
||||
this.clientip = clientip == null ? null : clientip.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.createtime
|
||||
*
|
||||
* @return the value of jsh_log.createtime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Date getCreatetime() {
|
||||
return createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.createtime
|
||||
*
|
||||
* @param createtime the value for jsh_log.createtime
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setCreatetime(Date createtime) {
|
||||
this.createtime = createtime;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.status
|
||||
*
|
||||
* @return the value of jsh_log.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Byte getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.status
|
||||
*
|
||||
* @param status the value for jsh_log.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setStatus(Byte status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.contentdetails
|
||||
*
|
||||
* @return the value of jsh_log.contentdetails
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getContentdetails() {
|
||||
return contentdetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.contentdetails
|
||||
*
|
||||
* @param contentdetails the value for jsh_log.contentdetails
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setContentdetails(String contentdetails) {
|
||||
this.contentdetails = contentdetails == null ? null : contentdetails.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_log.remark
|
||||
*
|
||||
* @return the value of jsh_log.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_log.remark
|
||||
*
|
||||
* @param remark the value for jsh_log.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
823
src/main/java/com/jsh/erp/datasource/entities/LogExample.java
Normal file
823
src/main/java/com/jsh/erp/datasource/entities/LogExample.java
Normal file
@@ -0,0 +1,823 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class LogExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public LogExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridIsNull() {
|
||||
addCriterion("userID is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridIsNotNull() {
|
||||
addCriterion("userID is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridEqualTo(Long value) {
|
||||
addCriterion("userID =", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridNotEqualTo(Long value) {
|
||||
addCriterion("userID <>", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridGreaterThan(Long value) {
|
||||
addCriterion("userID >", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("userID >=", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridLessThan(Long value) {
|
||||
addCriterion("userID <", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridLessThanOrEqualTo(Long value) {
|
||||
addCriterion("userID <=", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridIn(List<Long> values) {
|
||||
addCriterion("userID in", values, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridNotIn(List<Long> values) {
|
||||
addCriterion("userID not in", values, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridBetween(Long value1, Long value2) {
|
||||
addCriterion("userID between", value1, value2, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridNotBetween(Long value1, Long value2) {
|
||||
addCriterion("userID not between", value1, value2, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationIsNull() {
|
||||
addCriterion("operation is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationIsNotNull() {
|
||||
addCriterion("operation is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationEqualTo(String value) {
|
||||
addCriterion("operation =", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationNotEqualTo(String value) {
|
||||
addCriterion("operation <>", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationGreaterThan(String value) {
|
||||
addCriterion("operation >", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("operation >=", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationLessThan(String value) {
|
||||
addCriterion("operation <", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationLessThanOrEqualTo(String value) {
|
||||
addCriterion("operation <=", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationLike(String value) {
|
||||
addCriterion("operation like", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationNotLike(String value) {
|
||||
addCriterion("operation not like", value, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationIn(List<String> values) {
|
||||
addCriterion("operation in", values, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationNotIn(List<String> values) {
|
||||
addCriterion("operation not in", values, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationBetween(String value1, String value2) {
|
||||
addCriterion("operation between", value1, value2, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOperationNotBetween(String value1, String value2) {
|
||||
addCriterion("operation not between", value1, value2, "operation");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipIsNull() {
|
||||
addCriterion("clientIP is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipIsNotNull() {
|
||||
addCriterion("clientIP is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipEqualTo(String value) {
|
||||
addCriterion("clientIP =", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipNotEqualTo(String value) {
|
||||
addCriterion("clientIP <>", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipGreaterThan(String value) {
|
||||
addCriterion("clientIP >", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("clientIP >=", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipLessThan(String value) {
|
||||
addCriterion("clientIP <", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipLessThanOrEqualTo(String value) {
|
||||
addCriterion("clientIP <=", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipLike(String value) {
|
||||
addCriterion("clientIP like", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipNotLike(String value) {
|
||||
addCriterion("clientIP not like", value, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipIn(List<String> values) {
|
||||
addCriterion("clientIP in", values, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipNotIn(List<String> values) {
|
||||
addCriterion("clientIP not in", values, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipBetween(String value1, String value2) {
|
||||
addCriterion("clientIP between", value1, value2, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andClientipNotBetween(String value1, String value2) {
|
||||
addCriterion("clientIP not between", value1, value2, "clientip");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNull() {
|
||||
addCriterion("createtime is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIsNotNull() {
|
||||
addCriterion("createtime is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeEqualTo(Date value) {
|
||||
addCriterion("createtime =", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotEqualTo(Date value) {
|
||||
addCriterion("createtime <>", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThan(Date value) {
|
||||
addCriterion("createtime >", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("createtime >=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThan(Date value) {
|
||||
addCriterion("createtime <", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("createtime <=", value, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeIn(List<Date> values) {
|
||||
addCriterion("createtime in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotIn(List<Date> values) {
|
||||
addCriterion("createtime not in", values, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeBetween(Date value1, Date value2) {
|
||||
addCriterion("createtime between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("createtime not between", value1, value2, "createtime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("status is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("status is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Byte value) {
|
||||
addCriterion("status =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Byte value) {
|
||||
addCriterion("status <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Byte value) {
|
||||
addCriterion("status >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
|
||||
addCriterion("status >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Byte value) {
|
||||
addCriterion("status <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Byte value) {
|
||||
addCriterion("status <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Byte> values) {
|
||||
addCriterion("status in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Byte> values) {
|
||||
addCriterion("status not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Byte value1, Byte value2) {
|
||||
addCriterion("status between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
|
||||
addCriterion("status not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsIsNull() {
|
||||
addCriterion("contentdetails is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsIsNotNull() {
|
||||
addCriterion("contentdetails is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsEqualTo(String value) {
|
||||
addCriterion("contentdetails =", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsNotEqualTo(String value) {
|
||||
addCriterion("contentdetails <>", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsGreaterThan(String value) {
|
||||
addCriterion("contentdetails >", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("contentdetails >=", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsLessThan(String value) {
|
||||
addCriterion("contentdetails <", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsLessThanOrEqualTo(String value) {
|
||||
addCriterion("contentdetails <=", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsLike(String value) {
|
||||
addCriterion("contentdetails like", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsNotLike(String value) {
|
||||
addCriterion("contentdetails not like", value, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsIn(List<String> values) {
|
||||
addCriterion("contentdetails in", values, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsNotIn(List<String> values) {
|
||||
addCriterion("contentdetails not in", values, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsBetween(String value1, String value2) {
|
||||
addCriterion("contentdetails between", value1, value2, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andContentdetailsNotBetween(String value1, String value2) {
|
||||
addCriterion("contentdetails not between", value1, value2, "contentdetails");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNull() {
|
||||
addCriterion("remark is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIsNotNull() {
|
||||
addCriterion("remark is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkEqualTo(String value) {
|
||||
addCriterion("remark =", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotEqualTo(String value) {
|
||||
addCriterion("remark <>", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThan(String value) {
|
||||
addCriterion("remark >", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("remark >=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThan(String value) {
|
||||
addCriterion("remark <", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLessThanOrEqualTo(String value) {
|
||||
addCriterion("remark <=", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkLike(String value) {
|
||||
addCriterion("remark like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotLike(String value) {
|
||||
addCriterion("remark not like", value, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkIn(List<String> values) {
|
||||
addCriterion("remark in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotIn(List<String> values) {
|
||||
addCriterion("remark not in", values, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkBetween(String value1, String value2) {
|
||||
addCriterion("remark between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarkNotBetween(String value1, String value2) {
|
||||
addCriterion("remark not between", value1, value2, "remark");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
739
src/main/java/com/jsh/erp/datasource/entities/Material.java
Normal file
739
src/main/java/com/jsh/erp/datasource/entities/Material.java
Normal file
@@ -0,0 +1,739 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Material {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.CategoryId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long categoryid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Mfrs
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String mfrs;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Packing
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double packing;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.SafetyStock
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double safetystock;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Model
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String model;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Standard
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String standard;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Color
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String color;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.Remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.RetailPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double retailprice;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.LowPrice
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double lowprice;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.PresetPriceOne
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double presetpriceone;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.PresetPriceTwo
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double presetpricetwo;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.UnitId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.OtherField1
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield1;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.OtherField2
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield2;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_material.OtherField3
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String otherfield3;
|
||||
|
||||
/**
|
||||
* 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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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 Double 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(Double 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 Double getSafetystock() {
|
||||
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(Double 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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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 Double 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(Double 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 Double 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(Double 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 Double 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(Double 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 Double 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(Double 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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
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() {
|
||||
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) {
|
||||
this.otherfield3 = otherfield3 == null ? null : otherfield3.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class MaterialCategory {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialcategory.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialcategory.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialcategory.CategoryLevel
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Short categorylevel;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialcategory.ParentId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long parentid;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialcategory.Id
|
||||
*
|
||||
* @return the value of jsh_materialcategory.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialcategory.Id
|
||||
*
|
||||
* @param id the value for jsh_materialcategory.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialcategory.Name
|
||||
*
|
||||
* @return the value of jsh_materialcategory.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialcategory.Name
|
||||
*
|
||||
* @param name the value for jsh_materialcategory.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialcategory.CategoryLevel
|
||||
*
|
||||
* @return the value of jsh_materialcategory.CategoryLevel
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Short getCategorylevel() {
|
||||
return categorylevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialcategory.CategoryLevel
|
||||
*
|
||||
* @param categorylevel the value for jsh_materialcategory.CategoryLevel
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setCategorylevel(Short categorylevel) {
|
||||
this.categorylevel = categorylevel;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialcategory.ParentId
|
||||
*
|
||||
* @return the value of jsh_materialcategory.ParentId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getParentid() {
|
||||
return parentid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialcategory.ParentId
|
||||
*
|
||||
* @param parentid the value for jsh_materialcategory.ParentId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setParentid(Long parentid) {
|
||||
this.parentid = parentid;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,552 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MaterialCategoryExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public MaterialCategoryExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("Name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("Name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("Name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("Name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("Name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("Name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("Name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("Name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("Name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("Name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("Name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("Name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("Name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelIsNull() {
|
||||
addCriterion("CategoryLevel is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelIsNotNull() {
|
||||
addCriterion("CategoryLevel is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelEqualTo(Short value) {
|
||||
addCriterion("CategoryLevel =", value, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelNotEqualTo(Short value) {
|
||||
addCriterion("CategoryLevel <>", value, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelGreaterThan(Short value) {
|
||||
addCriterion("CategoryLevel >", value, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelGreaterThanOrEqualTo(Short value) {
|
||||
addCriterion("CategoryLevel >=", value, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelLessThan(Short value) {
|
||||
addCriterion("CategoryLevel <", value, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelLessThanOrEqualTo(Short value) {
|
||||
addCriterion("CategoryLevel <=", value, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelIn(List<Short> values) {
|
||||
addCriterion("CategoryLevel in", values, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelNotIn(List<Short> values) {
|
||||
addCriterion("CategoryLevel not in", values, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelBetween(Short value1, Short value2) {
|
||||
addCriterion("CategoryLevel between", value1, value2, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategorylevelNotBetween(Short value1, Short value2) {
|
||||
addCriterion("CategoryLevel not between", value1, value2, "categorylevel");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidIsNull() {
|
||||
addCriterion("ParentId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidIsNotNull() {
|
||||
addCriterion("ParentId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidEqualTo(Long value) {
|
||||
addCriterion("ParentId =", value, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidNotEqualTo(Long value) {
|
||||
addCriterion("ParentId <>", value, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidGreaterThan(Long value) {
|
||||
addCriterion("ParentId >", value, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("ParentId >=", value, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidLessThan(Long value) {
|
||||
addCriterion("ParentId <", value, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidLessThanOrEqualTo(Long value) {
|
||||
addCriterion("ParentId <=", value, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidIn(List<Long> values) {
|
||||
addCriterion("ParentId in", values, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidNotIn(List<Long> values) {
|
||||
addCriterion("ParentId not in", values, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidBetween(Long value1, Long value2) {
|
||||
addCriterion("ParentId between", value1, value2, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParentidNotBetween(Long value1, Long value2) {
|
||||
addCriterion("ParentId not between", value1, value2, "parentid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
1812
src/main/java/com/jsh/erp/datasource/entities/MaterialExample.java
Normal file
1812
src/main/java/com/jsh/erp/datasource/entities/MaterialExample.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,163 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class MaterialProperty {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialproperty.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialproperty.nativeName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String nativename;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialproperty.enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean enabled;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialproperty.sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String sort;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_materialproperty.anotherName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String anothername;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialproperty.id
|
||||
*
|
||||
* @return the value of jsh_materialproperty.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialproperty.id
|
||||
*
|
||||
* @param id the value for jsh_materialproperty.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialproperty.nativeName
|
||||
*
|
||||
* @return the value of jsh_materialproperty.nativeName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getNativename() {
|
||||
return nativename;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialproperty.nativeName
|
||||
*
|
||||
* @param nativename the value for jsh_materialproperty.nativeName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setNativename(String nativename) {
|
||||
this.nativename = nativename == null ? null : nativename.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialproperty.enabled
|
||||
*
|
||||
* @return the value of jsh_materialproperty.enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialproperty.enabled
|
||||
*
|
||||
* @param enabled the value for jsh_materialproperty.enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialproperty.sort
|
||||
*
|
||||
* @return the value of jsh_materialproperty.sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSort() {
|
||||
return sort;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialproperty.sort
|
||||
*
|
||||
* @param sort the value for jsh_materialproperty.sort
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSort(String sort) {
|
||||
this.sort = sort == null ? null : sort.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_materialproperty.anotherName
|
||||
*
|
||||
* @return the value of jsh_materialproperty.anotherName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAnothername() {
|
||||
return anothername;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_materialproperty.anotherName
|
||||
*
|
||||
* @param anothername the value for jsh_materialproperty.anotherName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAnothername(String anothername) {
|
||||
this.anothername = anothername == null ? null : anothername.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,632 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MaterialPropertyExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public MaterialPropertyExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameIsNull() {
|
||||
addCriterion("nativeName is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameIsNotNull() {
|
||||
addCriterion("nativeName is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameEqualTo(String value) {
|
||||
addCriterion("nativeName =", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameNotEqualTo(String value) {
|
||||
addCriterion("nativeName <>", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameGreaterThan(String value) {
|
||||
addCriterion("nativeName >", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("nativeName >=", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameLessThan(String value) {
|
||||
addCriterion("nativeName <", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameLessThanOrEqualTo(String value) {
|
||||
addCriterion("nativeName <=", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameLike(String value) {
|
||||
addCriterion("nativeName like", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameNotLike(String value) {
|
||||
addCriterion("nativeName not like", value, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameIn(List<String> values) {
|
||||
addCriterion("nativeName in", values, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameNotIn(List<String> values) {
|
||||
addCriterion("nativeName not in", values, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameBetween(String value1, String value2) {
|
||||
addCriterion("nativeName between", value1, value2, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNativenameNotBetween(String value1, String value2) {
|
||||
addCriterion("nativeName not between", value1, value2, "nativename");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledIsNull() {
|
||||
addCriterion("enabled is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledIsNotNull() {
|
||||
addCriterion("enabled is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledEqualTo(Boolean value) {
|
||||
addCriterion("enabled =", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledNotEqualTo(Boolean value) {
|
||||
addCriterion("enabled <>", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledGreaterThan(Boolean value) {
|
||||
addCriterion("enabled >", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledGreaterThanOrEqualTo(Boolean value) {
|
||||
addCriterion("enabled >=", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledLessThan(Boolean value) {
|
||||
addCriterion("enabled <", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledLessThanOrEqualTo(Boolean value) {
|
||||
addCriterion("enabled <=", value, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledIn(List<Boolean> values) {
|
||||
addCriterion("enabled in", values, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledNotIn(List<Boolean> values) {
|
||||
addCriterion("enabled not in", values, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("enabled between", value1, value2, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andEnabledNotBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("enabled not between", value1, value2, "enabled");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNull() {
|
||||
addCriterion("sort is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIsNotNull() {
|
||||
addCriterion("sort is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortEqualTo(String value) {
|
||||
addCriterion("sort =", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotEqualTo(String value) {
|
||||
addCriterion("sort <>", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThan(String value) {
|
||||
addCriterion("sort >", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("sort >=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThan(String value) {
|
||||
addCriterion("sort <", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLessThanOrEqualTo(String value) {
|
||||
addCriterion("sort <=", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortLike(String value) {
|
||||
addCriterion("sort like", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotLike(String value) {
|
||||
addCriterion("sort not like", value, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortIn(List<String> values) {
|
||||
addCriterion("sort in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotIn(List<String> values) {
|
||||
addCriterion("sort not in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortBetween(String value1, String value2) {
|
||||
addCriterion("sort between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotBetween(String value1, String value2) {
|
||||
addCriterion("sort not between", value1, value2, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameIsNull() {
|
||||
addCriterion("anotherName is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameIsNotNull() {
|
||||
addCriterion("anotherName is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameEqualTo(String value) {
|
||||
addCriterion("anotherName =", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameNotEqualTo(String value) {
|
||||
addCriterion("anotherName <>", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameGreaterThan(String value) {
|
||||
addCriterion("anotherName >", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("anotherName >=", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameLessThan(String value) {
|
||||
addCriterion("anotherName <", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameLessThanOrEqualTo(String value) {
|
||||
addCriterion("anotherName <=", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameLike(String value) {
|
||||
addCriterion("anotherName like", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameNotLike(String value) {
|
||||
addCriterion("anotherName not like", value, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameIn(List<String> values) {
|
||||
addCriterion("anotherName in", values, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameNotIn(List<String> values) {
|
||||
addCriterion("anotherName not in", values, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameBetween(String value1, String value2) {
|
||||
addCriterion("anotherName between", value1, value2, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAnothernameNotBetween(String value1, String value2) {
|
||||
addCriterion("anotherName not between", value1, value2, "anothername");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class MaterialVo4Unit {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long categoryid;
|
||||
|
||||
private String name;
|
||||
|
||||
private String mfrs;
|
||||
|
||||
private Double packing;
|
||||
|
||||
private Double safetystock;
|
||||
|
||||
private String model;
|
||||
|
||||
private String standard;
|
||||
|
||||
private String color;
|
||||
|
||||
private String unit;
|
||||
|
||||
private String remark;
|
||||
|
||||
private Double retailprice;
|
||||
|
||||
private Double lowprice;
|
||||
|
||||
private Double presetpriceone;
|
||||
|
||||
private Double presetpricetwo;
|
||||
|
||||
private Long unitid;
|
||||
|
||||
private String firstoutunit;
|
||||
|
||||
private String firstinunit;
|
||||
|
||||
private String pricestrategy;
|
||||
|
||||
private Boolean enabled;
|
||||
|
||||
private String otherfield1;
|
||||
|
||||
private String otherfield2;
|
||||
|
||||
private String otherfield3;
|
||||
|
||||
private String unitName;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getCategoryid() {
|
||||
return categoryid;
|
||||
}
|
||||
|
||||
public void setCategoryid(Long categoryid) {
|
||||
this.categoryid = categoryid;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getMfrs() {
|
||||
return mfrs;
|
||||
}
|
||||
|
||||
public void setMfrs(String mfrs) {
|
||||
this.mfrs = mfrs;
|
||||
}
|
||||
|
||||
public Double getPacking() {
|
||||
return packing;
|
||||
}
|
||||
|
||||
public void setPacking(Double packing) {
|
||||
this.packing = packing;
|
||||
}
|
||||
|
||||
public Double getSafetystock() {
|
||||
return safetystock;
|
||||
}
|
||||
|
||||
public void setSafetystock(Double safetystock) {
|
||||
this.safetystock = safetystock;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public String getStandard() {
|
||||
return standard;
|
||||
}
|
||||
|
||||
public void setStandard(String standard) {
|
||||
this.standard = standard;
|
||||
}
|
||||
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Double getRetailprice() {
|
||||
return retailprice;
|
||||
}
|
||||
|
||||
public void setRetailprice(Double retailprice) {
|
||||
this.retailprice = retailprice;
|
||||
}
|
||||
|
||||
public Double getLowprice() {
|
||||
return lowprice;
|
||||
}
|
||||
|
||||
public void setLowprice(Double lowprice) {
|
||||
this.lowprice = lowprice;
|
||||
}
|
||||
|
||||
public Double getPresetpriceone() {
|
||||
return presetpriceone;
|
||||
}
|
||||
|
||||
public void setPresetpriceone(Double presetpriceone) {
|
||||
this.presetpriceone = presetpriceone;
|
||||
}
|
||||
|
||||
public Double getPresetpricetwo() {
|
||||
return presetpricetwo;
|
||||
}
|
||||
|
||||
public void setPresetpricetwo(Double presetpricetwo) {
|
||||
this.presetpricetwo = presetpricetwo;
|
||||
}
|
||||
|
||||
public Long getUnitid() {
|
||||
return unitid;
|
||||
}
|
||||
|
||||
public void setUnitid(Long unitid) {
|
||||
this.unitid = unitid;
|
||||
}
|
||||
|
||||
public String getFirstoutunit() {
|
||||
return firstoutunit;
|
||||
}
|
||||
|
||||
public void setFirstoutunit(String firstoutunit) {
|
||||
this.firstoutunit = firstoutunit;
|
||||
}
|
||||
|
||||
public String getFirstinunit() {
|
||||
return firstinunit;
|
||||
}
|
||||
|
||||
public void setFirstinunit(String firstinunit) {
|
||||
this.firstinunit = firstinunit;
|
||||
}
|
||||
|
||||
public String getPricestrategy() {
|
||||
return pricestrategy;
|
||||
}
|
||||
|
||||
public void setPricestrategy(String pricestrategy) {
|
||||
this.pricestrategy = pricestrategy;
|
||||
}
|
||||
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public String getOtherfield1() {
|
||||
return otherfield1;
|
||||
}
|
||||
|
||||
public void setOtherfield1(String otherfield1) {
|
||||
this.otherfield1 = otherfield1;
|
||||
}
|
||||
|
||||
public String getOtherfield2() {
|
||||
return otherfield2;
|
||||
}
|
||||
|
||||
public void setOtherfield2(String otherfield2) {
|
||||
this.otherfield2 = otherfield2;
|
||||
}
|
||||
|
||||
public String getOtherfield3() {
|
||||
return otherfield3;
|
||||
}
|
||||
|
||||
public void setOtherfield3(String otherfield3) {
|
||||
this.otherfield3 = otherfield3;
|
||||
}
|
||||
|
||||
public String getUnitName() {
|
||||
return unitName;
|
||||
}
|
||||
|
||||
public void setUnitName(String unitName) {
|
||||
this.unitName = unitName;
|
||||
}
|
||||
}
|
||||
99
src/main/java/com/jsh/erp/datasource/entities/Person.java
Normal file
99
src/main/java/com/jsh/erp/datasource/entities/Person.java
Normal file
@@ -0,0 +1,99 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Person {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_person.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_person.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_person.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_person.Id
|
||||
*
|
||||
* @return the value of jsh_person.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_person.Id
|
||||
*
|
||||
* @param id the value for jsh_person.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_person.Type
|
||||
*
|
||||
* @return the value of jsh_person.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_person.Type
|
||||
*
|
||||
* @param type the value for jsh_person.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_person.Name
|
||||
*
|
||||
* @return the value of jsh_person.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_person.Name
|
||||
*
|
||||
* @param name the value for jsh_person.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
}
|
||||
502
src/main/java/com/jsh/erp/datasource/entities/PersonExample.java
Normal file
502
src/main/java/com/jsh/erp/datasource/entities/PersonExample.java
Normal file
@@ -0,0 +1,502 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class PersonExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public PersonExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("Type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("Type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("Type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("Type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("Type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("Type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("Type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("Type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("Type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("Type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("Type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("Type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("Type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("Name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("Name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("Name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("Name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("Name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("Name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("Name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("Name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("Name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("Name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("Name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("Name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("Name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
163
src/main/java/com/jsh/erp/datasource/entities/Role.java
Normal file
163
src/main/java/com/jsh/erp/datasource/entities/Role.java
Normal file
@@ -0,0 +1,163 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Role {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_role.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_role.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_role.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_role.value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_role.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_role.Id
|
||||
*
|
||||
* @return the value of jsh_role.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_role.Id
|
||||
*
|
||||
* @param id the value for jsh_role.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_role.Name
|
||||
*
|
||||
* @return the value of jsh_role.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_role.Name
|
||||
*
|
||||
* @param name the value for jsh_role.Name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_role.type
|
||||
*
|
||||
* @return the value of jsh_role.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_role.type
|
||||
*
|
||||
* @param type the value for jsh_role.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_role.value
|
||||
*
|
||||
* @return the value of jsh_role.value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_role.value
|
||||
*
|
||||
* @param value the value for jsh_role.value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value == null ? null : value.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_role.description
|
||||
*
|
||||
* @return the value of jsh_role.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_role.description
|
||||
*
|
||||
* @param description the value for jsh_role.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
}
|
||||
642
src/main/java/com/jsh/erp/datasource/entities/RoleExample.java
Normal file
642
src/main/java/com/jsh/erp/datasource/entities/RoleExample.java
Normal file
@@ -0,0 +1,642 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class RoleExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public RoleExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("Name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("Name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("Name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("Name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("Name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("Name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("Name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("Name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("Name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("Name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("Name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("Name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("Name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIsNull() {
|
||||
addCriterion("value is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIsNotNull() {
|
||||
addCriterion("value is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueEqualTo(String value) {
|
||||
addCriterion("value =", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotEqualTo(String value) {
|
||||
addCriterion("value <>", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueGreaterThan(String value) {
|
||||
addCriterion("value >", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("value >=", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLessThan(String value) {
|
||||
addCriterion("value <", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLessThanOrEqualTo(String value) {
|
||||
addCriterion("value <=", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLike(String value) {
|
||||
addCriterion("value like", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotLike(String value) {
|
||||
addCriterion("value not like", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIn(List<String> values) {
|
||||
addCriterion("value in", values, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotIn(List<String> values) {
|
||||
addCriterion("value not in", values, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueBetween(String value1, String value2) {
|
||||
addCriterion("value between", value1, value2, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotBetween(String value1, String value2) {
|
||||
addCriterion("value not between", value1, value2, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNull() {
|
||||
addCriterion("description is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNotNull() {
|
||||
addCriterion("description is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionEqualTo(String value) {
|
||||
addCriterion("description =", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotEqualTo(String value) {
|
||||
addCriterion("description <>", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThan(String value) {
|
||||
addCriterion("description >", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("description >=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThan(String value) {
|
||||
addCriterion("description <", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThanOrEqualTo(String value) {
|
||||
addCriterion("description <=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLike(String value) {
|
||||
addCriterion("description like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotLike(String value) {
|
||||
addCriterion("description not like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIn(List<String> values) {
|
||||
addCriterion("description in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotIn(List<String> values) {
|
||||
addCriterion("description not in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionBetween(String value1, String value2) {
|
||||
addCriterion("description between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotBetween(String value1, String value2) {
|
||||
addCriterion("description not between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
675
src/main/java/com/jsh/erp/datasource/entities/Supplier.java
Normal file
675
src/main/java/com/jsh/erp/datasource/entities/Supplier.java
Normal file
@@ -0,0 +1,675 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Supplier {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String supplier;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.contacts
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String contacts;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.phonenum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String phonenum;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.email
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Byte isystem;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Boolean enabled;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.AdvanceIn
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double advancein;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.BeginNeedGet
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double beginneedget;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.BeginNeedPay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double beginneedpay;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.AllNeedGet
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double allneedget;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.AllNeedPay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double allneedpay;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.fax
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String fax;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.telephone
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String telephone;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.address
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.taxNum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String taxnum;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.bankName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String bankname;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.accountNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String accountnumber;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_supplier.taxRate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Double taxrate;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.id
|
||||
*
|
||||
* @return the value of jsh_supplier.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.id
|
||||
*
|
||||
* @param id the value for jsh_supplier.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.supplier
|
||||
*
|
||||
* @return the value of jsh_supplier.supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.supplier
|
||||
*
|
||||
* @param supplier the value for jsh_supplier.supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setSupplier(String supplier) {
|
||||
this.supplier = supplier == null ? null : supplier.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.contacts
|
||||
*
|
||||
* @return the value of jsh_supplier.contacts
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getContacts() {
|
||||
return contacts;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.contacts
|
||||
*
|
||||
* @param contacts the value for jsh_supplier.contacts
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setContacts(String contacts) {
|
||||
this.contacts = contacts == null ? null : contacts.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.phonenum
|
||||
*
|
||||
* @return the value of jsh_supplier.phonenum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getPhonenum() {
|
||||
return phonenum;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.phonenum
|
||||
*
|
||||
* @param phonenum the value for jsh_supplier.phonenum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPhonenum(String phonenum) {
|
||||
this.phonenum = phonenum == null ? null : phonenum.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.email
|
||||
*
|
||||
* @return the value of jsh_supplier.email
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.email
|
||||
*
|
||||
* @param email the value for jsh_supplier.email
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setEmail(String email) {
|
||||
this.email = email == null ? null : email.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.description
|
||||
*
|
||||
* @return the value of jsh_supplier.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.description
|
||||
*
|
||||
* @param description the value for jsh_supplier.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.isystem
|
||||
*
|
||||
* @return the value of jsh_supplier.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Byte getIsystem() {
|
||||
return isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.isystem
|
||||
*
|
||||
* @param isystem the value for jsh_supplier.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIsystem(Byte isystem) {
|
||||
this.isystem = isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.type
|
||||
*
|
||||
* @return the value of jsh_supplier.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.type
|
||||
*
|
||||
* @param type the value for jsh_supplier.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.enabled
|
||||
*
|
||||
* @return the value of jsh_supplier.enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.enabled
|
||||
*
|
||||
* @param enabled the value for jsh_supplier.enabled
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.AdvanceIn
|
||||
*
|
||||
* @return the value of jsh_supplier.AdvanceIn
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getAdvancein() {
|
||||
return advancein;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.AdvanceIn
|
||||
*
|
||||
* @param advancein the value for jsh_supplier.AdvanceIn
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAdvancein(Double advancein) {
|
||||
this.advancein = advancein;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.BeginNeedGet
|
||||
*
|
||||
* @return the value of jsh_supplier.BeginNeedGet
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getBeginneedget() {
|
||||
return beginneedget;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.BeginNeedGet
|
||||
*
|
||||
* @param beginneedget the value for jsh_supplier.BeginNeedGet
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setBeginneedget(Double beginneedget) {
|
||||
this.beginneedget = beginneedget;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.BeginNeedPay
|
||||
*
|
||||
* @return the value of jsh_supplier.BeginNeedPay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getBeginneedpay() {
|
||||
return beginneedpay;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.BeginNeedPay
|
||||
*
|
||||
* @param beginneedpay the value for jsh_supplier.BeginNeedPay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setBeginneedpay(Double beginneedpay) {
|
||||
this.beginneedpay = beginneedpay;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.AllNeedGet
|
||||
*
|
||||
* @return the value of jsh_supplier.AllNeedGet
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getAllneedget() {
|
||||
return allneedget;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.AllNeedGet
|
||||
*
|
||||
* @param allneedget the value for jsh_supplier.AllNeedGet
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAllneedget(Double allneedget) {
|
||||
this.allneedget = allneedget;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.AllNeedPay
|
||||
*
|
||||
* @return the value of jsh_supplier.AllNeedPay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getAllneedpay() {
|
||||
return allneedpay;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.AllNeedPay
|
||||
*
|
||||
* @param allneedpay the value for jsh_supplier.AllNeedPay
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAllneedpay(Double allneedpay) {
|
||||
this.allneedpay = allneedpay;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.fax
|
||||
*
|
||||
* @return the value of jsh_supplier.fax
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getFax() {
|
||||
return fax;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.fax
|
||||
*
|
||||
* @param fax the value for jsh_supplier.fax
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setFax(String fax) {
|
||||
this.fax = fax == null ? null : fax.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.telephone
|
||||
*
|
||||
* @return the value of jsh_supplier.telephone
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getTelephone() {
|
||||
return telephone;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.telephone
|
||||
*
|
||||
* @param telephone the value for jsh_supplier.telephone
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone == null ? null : telephone.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.address
|
||||
*
|
||||
* @return the value of jsh_supplier.address
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.address
|
||||
*
|
||||
* @param address the value for jsh_supplier.address
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAddress(String address) {
|
||||
this.address = address == null ? null : address.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.taxNum
|
||||
*
|
||||
* @return the value of jsh_supplier.taxNum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getTaxnum() {
|
||||
return taxnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.taxNum
|
||||
*
|
||||
* @param taxnum the value for jsh_supplier.taxNum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTaxnum(String taxnum) {
|
||||
this.taxnum = taxnum == null ? null : taxnum.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.bankName
|
||||
*
|
||||
* @return the value of jsh_supplier.bankName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getBankname() {
|
||||
return bankname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.bankName
|
||||
*
|
||||
* @param bankname the value for jsh_supplier.bankName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setBankname(String bankname) {
|
||||
this.bankname = bankname == null ? null : bankname.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.accountNumber
|
||||
*
|
||||
* @return the value of jsh_supplier.accountNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getAccountnumber() {
|
||||
return accountnumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.accountNumber
|
||||
*
|
||||
* @param accountnumber the value for jsh_supplier.accountNumber
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setAccountnumber(String accountnumber) {
|
||||
this.accountnumber = accountnumber == null ? null : accountnumber.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_supplier.taxRate
|
||||
*
|
||||
* @return the value of jsh_supplier.taxRate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Double getTaxrate() {
|
||||
return taxrate;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_supplier.taxRate
|
||||
*
|
||||
* @param taxrate the value for jsh_supplier.taxRate
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setTaxrate(Double taxrate) {
|
||||
this.taxrate = taxrate;
|
||||
}
|
||||
}
|
||||
1682
src/main/java/com/jsh/erp/datasource/entities/SupplierExample.java
Normal file
1682
src/main/java/com/jsh/erp/datasource/entities/SupplierExample.java
Normal file
File diff suppressed because it is too large
Load Diff
163
src/main/java/com/jsh/erp/datasource/entities/SystemConfig.java
Normal file
163
src/main/java/com/jsh/erp/datasource/entities/SystemConfig.java
Normal file
@@ -0,0 +1,163 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class SystemConfig {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_systemconfig.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_systemconfig.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_systemconfig.name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_systemconfig.value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_systemconfig.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_systemconfig.id
|
||||
*
|
||||
* @return the value of jsh_systemconfig.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_systemconfig.id
|
||||
*
|
||||
* @param id the value for jsh_systemconfig.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_systemconfig.type
|
||||
*
|
||||
* @return the value of jsh_systemconfig.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_systemconfig.type
|
||||
*
|
||||
* @param type the value for jsh_systemconfig.type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_systemconfig.name
|
||||
*
|
||||
* @return the value of jsh_systemconfig.name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_systemconfig.name
|
||||
*
|
||||
* @param name the value for jsh_systemconfig.name
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_systemconfig.value
|
||||
*
|
||||
* @return the value of jsh_systemconfig.value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_systemconfig.value
|
||||
*
|
||||
* @param value the value for jsh_systemconfig.value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value == null ? null : value.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_systemconfig.description
|
||||
*
|
||||
* @return the value of jsh_systemconfig.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_systemconfig.description
|
||||
*
|
||||
* @param description the value for jsh_systemconfig.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,642 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SystemConfigExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public SystemConfigExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIsNull() {
|
||||
addCriterion("value is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIsNotNull() {
|
||||
addCriterion("value is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueEqualTo(String value) {
|
||||
addCriterion("value =", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotEqualTo(String value) {
|
||||
addCriterion("value <>", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueGreaterThan(String value) {
|
||||
addCriterion("value >", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("value >=", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLessThan(String value) {
|
||||
addCriterion("value <", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLessThanOrEqualTo(String value) {
|
||||
addCriterion("value <=", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLike(String value) {
|
||||
addCriterion("value like", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotLike(String value) {
|
||||
addCriterion("value not like", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIn(List<String> values) {
|
||||
addCriterion("value in", values, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotIn(List<String> values) {
|
||||
addCriterion("value not in", values, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueBetween(String value1, String value2) {
|
||||
addCriterion("value between", value1, value2, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotBetween(String value1, String value2) {
|
||||
addCriterion("value not between", value1, value2, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNull() {
|
||||
addCriterion("description is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIsNotNull() {
|
||||
addCriterion("description is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionEqualTo(String value) {
|
||||
addCriterion("description =", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotEqualTo(String value) {
|
||||
addCriterion("description <>", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThan(String value) {
|
||||
addCriterion("description >", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("description >=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThan(String value) {
|
||||
addCriterion("description <", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLessThanOrEqualTo(String value) {
|
||||
addCriterion("description <=", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionLike(String value) {
|
||||
addCriterion("description like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotLike(String value) {
|
||||
addCriterion("description not like", value, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionIn(List<String> values) {
|
||||
addCriterion("description in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotIn(List<String> values) {
|
||||
addCriterion("description not in", values, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionBetween(String value1, String value2) {
|
||||
addCriterion("description between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andDescriptionNotBetween(String value1, String value2) {
|
||||
addCriterion("description not between", value1, value2, "description");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
67
src/main/java/com/jsh/erp/datasource/entities/Unit.java
Normal file
67
src/main/java/com/jsh/erp/datasource/entities/Unit.java
Normal file
@@ -0,0 +1,67 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class Unit {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_unit.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_unit.UName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String uname;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_unit.id
|
||||
*
|
||||
* @return the value of jsh_unit.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_unit.id
|
||||
*
|
||||
* @param id the value for jsh_unit.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_unit.UName
|
||||
*
|
||||
* @return the value of jsh_unit.UName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_unit.UName
|
||||
*
|
||||
* @param uname the value for jsh_unit.UName
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname == null ? null : uname.trim();
|
||||
}
|
||||
}
|
||||
432
src/main/java/com/jsh/erp/datasource/entities/UnitExample.java
Normal file
432
src/main/java/com/jsh/erp/datasource/entities/UnitExample.java
Normal file
@@ -0,0 +1,432 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UnitExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public UnitExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameIsNull() {
|
||||
addCriterion("UName is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameIsNotNull() {
|
||||
addCriterion("UName is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameEqualTo(String value) {
|
||||
addCriterion("UName =", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotEqualTo(String value) {
|
||||
addCriterion("UName <>", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameGreaterThan(String value) {
|
||||
addCriterion("UName >", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("UName >=", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameLessThan(String value) {
|
||||
addCriterion("UName <", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameLessThanOrEqualTo(String value) {
|
||||
addCriterion("UName <=", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameLike(String value) {
|
||||
addCriterion("UName like", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotLike(String value) {
|
||||
addCriterion("UName not like", value, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameIn(List<String> values) {
|
||||
addCriterion("UName in", values, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotIn(List<String> values) {
|
||||
addCriterion("UName not in", values, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameBetween(String value1, String value2) {
|
||||
addCriterion("UName between", value1, value2, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnameNotBetween(String value1, String value2) {
|
||||
addCriterion("UName not between", value1, value2, "uname");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
419
src/main/java/com/jsh/erp/datasource/entities/User.java
Normal file
419
src/main/java/com/jsh/erp/datasource/entities/User.java
Normal file
@@ -0,0 +1,419 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class User {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.username
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.loginame
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String loginame;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.password
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.position
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String position;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.department
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String department;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.email
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.phonenum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String phonenum;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.ismanager
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Byte ismanager;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Byte isystem;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Byte status;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_user.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.id
|
||||
*
|
||||
* @return the value of jsh_user.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.id
|
||||
*
|
||||
* @param id the value for jsh_user.id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.username
|
||||
*
|
||||
* @return the value of jsh_user.username
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.username
|
||||
*
|
||||
* @param username the value for jsh_user.username
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setUsername(String username) {
|
||||
this.username = username == null ? null : username.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.loginame
|
||||
*
|
||||
* @return the value of jsh_user.loginame
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getLoginame() {
|
||||
return loginame;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.loginame
|
||||
*
|
||||
* @param loginame the value for jsh_user.loginame
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setLoginame(String loginame) {
|
||||
this.loginame = loginame == null ? null : loginame.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.password
|
||||
*
|
||||
* @return the value of jsh_user.password
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.password
|
||||
*
|
||||
* @param password the value for jsh_user.password
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPassword(String password) {
|
||||
this.password = password == null ? null : password.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.position
|
||||
*
|
||||
* @return the value of jsh_user.position
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.position
|
||||
*
|
||||
* @param position the value for jsh_user.position
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPosition(String position) {
|
||||
this.position = position == null ? null : position.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.department
|
||||
*
|
||||
* @return the value of jsh_user.department
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDepartment() {
|
||||
return department;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.department
|
||||
*
|
||||
* @param department the value for jsh_user.department
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDepartment(String department) {
|
||||
this.department = department == null ? null : department.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.email
|
||||
*
|
||||
* @return the value of jsh_user.email
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.email
|
||||
*
|
||||
* @param email the value for jsh_user.email
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setEmail(String email) {
|
||||
this.email = email == null ? null : email.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.phonenum
|
||||
*
|
||||
* @return the value of jsh_user.phonenum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getPhonenum() {
|
||||
return phonenum;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.phonenum
|
||||
*
|
||||
* @param phonenum the value for jsh_user.phonenum
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setPhonenum(String phonenum) {
|
||||
this.phonenum = phonenum == null ? null : phonenum.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.ismanager
|
||||
*
|
||||
* @return the value of jsh_user.ismanager
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Byte getIsmanager() {
|
||||
return ismanager;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.ismanager
|
||||
*
|
||||
* @param ismanager the value for jsh_user.ismanager
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIsmanager(Byte ismanager) {
|
||||
this.ismanager = ismanager;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.isystem
|
||||
*
|
||||
* @return the value of jsh_user.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Byte getIsystem() {
|
||||
return isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.isystem
|
||||
*
|
||||
* @param isystem the value for jsh_user.isystem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setIsystem(Byte isystem) {
|
||||
this.isystem = isystem;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.status
|
||||
*
|
||||
* @return the value of jsh_user.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Byte getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.status
|
||||
*
|
||||
* @param status the value for jsh_user.status
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setStatus(Byte status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.description
|
||||
*
|
||||
* @return the value of jsh_user.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.description
|
||||
*
|
||||
* @param description the value for jsh_user.description
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDescription(String description) {
|
||||
this.description = description == null ? null : description.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_user.remark
|
||||
*
|
||||
* @return the value of jsh_user.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_user.remark
|
||||
*
|
||||
* @param remark the value for jsh_user.remark
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
}
|
||||
163
src/main/java/com/jsh/erp/datasource/entities/UserBusiness.java
Normal file
163
src/main/java/com/jsh/erp/datasource/entities/UserBusiness.java
Normal file
@@ -0,0 +1,163 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
public class UserBusiness {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_userbusiness.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_userbusiness.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_userbusiness.KeyId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String keyid;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_userbusiness.Value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String value;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database column jsh_userbusiness.BtnStr
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
private String btnstr;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_userbusiness.Id
|
||||
*
|
||||
* @return the value of jsh_userbusiness.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_userbusiness.Id
|
||||
*
|
||||
* @param id the value for jsh_userbusiness.Id
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_userbusiness.Type
|
||||
*
|
||||
* @return the value of jsh_userbusiness.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_userbusiness.Type
|
||||
*
|
||||
* @param type the value for jsh_userbusiness.Type
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setType(String type) {
|
||||
this.type = type == null ? null : type.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_userbusiness.KeyId
|
||||
*
|
||||
* @return the value of jsh_userbusiness.KeyId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getKeyid() {
|
||||
return keyid;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_userbusiness.KeyId
|
||||
*
|
||||
* @param keyid the value for jsh_userbusiness.KeyId
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setKeyid(String keyid) {
|
||||
this.keyid = keyid == null ? null : keyid.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_userbusiness.Value
|
||||
*
|
||||
* @return the value of jsh_userbusiness.Value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_userbusiness.Value
|
||||
*
|
||||
* @param value the value for jsh_userbusiness.Value
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setValue(String value) {
|
||||
this.value = value == null ? null : value.trim();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method returns the value of the database column jsh_userbusiness.BtnStr
|
||||
*
|
||||
* @return the value of jsh_userbusiness.BtnStr
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getBtnstr() {
|
||||
return btnstr;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method sets the value of the database column jsh_userbusiness.BtnStr
|
||||
*
|
||||
* @param btnstr the value for jsh_userbusiness.BtnStr
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setBtnstr(String btnstr) {
|
||||
this.btnstr = btnstr == null ? null : btnstr.trim();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,642 @@
|
||||
package com.jsh.erp.datasource.entities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UserBusinessExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public UserBusinessExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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 andIdIsNull() {
|
||||
addCriterion("Id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("Id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Long value) {
|
||||
addCriterion("Id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Long value) {
|
||||
addCriterion("Id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Long value) {
|
||||
addCriterion("Id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Long value) {
|
||||
addCriterion("Id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Long value) {
|
||||
addCriterion("Id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Long value) {
|
||||
addCriterion("Id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Long> values) {
|
||||
addCriterion("Id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> values) {
|
||||
addCriterion("Id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Long value1, Long value2) {
|
||||
addCriterion("Id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Long value1, Long value2) {
|
||||
addCriterion("Id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNull() {
|
||||
addCriterion("Type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIsNotNull() {
|
||||
addCriterion("Type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeEqualTo(String value) {
|
||||
addCriterion("Type =", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotEqualTo(String value) {
|
||||
addCriterion("Type <>", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThan(String value) {
|
||||
addCriterion("Type >", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Type >=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThan(String value) {
|
||||
addCriterion("Type <", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("Type <=", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeLike(String value) {
|
||||
addCriterion("Type like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotLike(String value) {
|
||||
addCriterion("Type not like", value, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeIn(List<String> values) {
|
||||
addCriterion("Type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<String> values) {
|
||||
addCriterion("Type not in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeBetween(String value1, String value2) {
|
||||
addCriterion("Type between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("Type not between", value1, value2, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidIsNull() {
|
||||
addCriterion("KeyId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidIsNotNull() {
|
||||
addCriterion("KeyId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidEqualTo(String value) {
|
||||
addCriterion("KeyId =", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidNotEqualTo(String value) {
|
||||
addCriterion("KeyId <>", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidGreaterThan(String value) {
|
||||
addCriterion("KeyId >", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("KeyId >=", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidLessThan(String value) {
|
||||
addCriterion("KeyId <", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidLessThanOrEqualTo(String value) {
|
||||
addCriterion("KeyId <=", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidLike(String value) {
|
||||
addCriterion("KeyId like", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidNotLike(String value) {
|
||||
addCriterion("KeyId not like", value, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidIn(List<String> values) {
|
||||
addCriterion("KeyId in", values, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidNotIn(List<String> values) {
|
||||
addCriterion("KeyId not in", values, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidBetween(String value1, String value2) {
|
||||
addCriterion("KeyId between", value1, value2, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andKeyidNotBetween(String value1, String value2) {
|
||||
addCriterion("KeyId not between", value1, value2, "keyid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIsNull() {
|
||||
addCriterion("Value is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIsNotNull() {
|
||||
addCriterion("Value is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueEqualTo(String value) {
|
||||
addCriterion("Value =", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotEqualTo(String value) {
|
||||
addCriterion("Value <>", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueGreaterThan(String value) {
|
||||
addCriterion("Value >", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("Value >=", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLessThan(String value) {
|
||||
addCriterion("Value <", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLessThanOrEqualTo(String value) {
|
||||
addCriterion("Value <=", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueLike(String value) {
|
||||
addCriterion("Value like", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotLike(String value) {
|
||||
addCriterion("Value not like", value, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueIn(List<String> values) {
|
||||
addCriterion("Value in", values, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotIn(List<String> values) {
|
||||
addCriterion("Value not in", values, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueBetween(String value1, String value2) {
|
||||
addCriterion("Value between", value1, value2, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andValueNotBetween(String value1, String value2) {
|
||||
addCriterion("Value not between", value1, value2, "value");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrIsNull() {
|
||||
addCriterion("BtnStr is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrIsNotNull() {
|
||||
addCriterion("BtnStr is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrEqualTo(String value) {
|
||||
addCriterion("BtnStr =", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrNotEqualTo(String value) {
|
||||
addCriterion("BtnStr <>", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrGreaterThan(String value) {
|
||||
addCriterion("BtnStr >", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("BtnStr >=", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrLessThan(String value) {
|
||||
addCriterion("BtnStr <", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrLessThanOrEqualTo(String value) {
|
||||
addCriterion("BtnStr <=", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrLike(String value) {
|
||||
addCriterion("BtnStr like", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrNotLike(String value) {
|
||||
addCriterion("BtnStr not like", value, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrIn(List<String> values) {
|
||||
addCriterion("BtnStr in", values, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrNotIn(List<String> values) {
|
||||
addCriterion("BtnStr not in", values, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrBetween(String value1, String value2) {
|
||||
addCriterion("BtnStr between", value1, value2, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBtnstrNotBetween(String value1, String value2) {
|
||||
addCriterion("BtnStr not between", value1, value2, "btnstr");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
1172
src/main/java/com/jsh/erp/datasource/entities/UserExample.java
Normal file
1172
src/main/java/com/jsh/erp/datasource/entities/UserExample.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,123 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.AccountHead;
|
||||
import com.jsh.erp.datasource.entities.AccountHeadExample;
|
||||
import java.util.List;
|
||||
|
||||
import com.jsh.erp.datasource.entities.AccountHeadVo4ListEx;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AccountHeadMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(AccountHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(AccountHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(AccountHead record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(AccountHead record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<AccountHead> selectByExample(AccountHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
AccountHead selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") AccountHead record, @Param("example") AccountHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") AccountHead record, @Param("example") AccountHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(AccountHead record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accounthead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(AccountHead record);
|
||||
|
||||
List<AccountHeadVo4ListEx> selectByConditionAccountHead(
|
||||
@Param("type") String type,
|
||||
@Param("billNo") String billNo,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByAccountHead(
|
||||
@Param("type") String type,
|
||||
@Param("billNo") String billNo,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
Long getMaxId();
|
||||
|
||||
Double findAllMoney(
|
||||
@Param("supplierId") Integer supplierId,
|
||||
@Param("type") String type,
|
||||
@Param("modeName") String modeName,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
List<AccountHeadVo4ListEx> getDetailByNumber(
|
||||
@Param("billNo") String billNo);
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.AccountItem;
|
||||
import com.jsh.erp.datasource.entities.AccountItemExample;
|
||||
import java.util.List;
|
||||
|
||||
import com.jsh.erp.datasource.vo.AccountItemVo4List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AccountItemMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(AccountItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(AccountItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(AccountItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(AccountItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<AccountItem> selectByExample(AccountItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
AccountItem selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") AccountItem record, @Param("example") AccountItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") AccountItem record, @Param("example") AccountItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(AccountItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_accountitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(AccountItem record);
|
||||
|
||||
List<AccountItem> selectByConditionAccountItem(
|
||||
@Param("name") String name,
|
||||
@Param("type") Integer type,
|
||||
@Param("remark") String remark,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByAccountItem(
|
||||
@Param("name") String name,
|
||||
@Param("type") Integer type,
|
||||
@Param("remark") String remark);
|
||||
|
||||
List<AccountItemVo4List> getDetailList(
|
||||
@Param("headerId") Long headerId);
|
||||
|
||||
}
|
||||
119
src/main/java/com/jsh/erp/datasource/mappers/AccountMapper.java
Normal file
119
src/main/java/com/jsh/erp/datasource/mappers/AccountMapper.java
Normal file
@@ -0,0 +1,119 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Account;
|
||||
import com.jsh.erp.datasource.entities.AccountExample;
|
||||
import java.util.List;
|
||||
|
||||
import com.jsh.erp.datasource.vo.AccountVo4InOutList;
|
||||
import com.jsh.erp.datasource.vo.AccountVo4List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AccountMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(AccountExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(AccountExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Account record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Account record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Account> selectByExample(AccountExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Account selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Account record, @Param("example") AccountExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Account record, @Param("example") AccountExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Account record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_account
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Account record);
|
||||
|
||||
List<AccountVo4List> selectByConditionAccount(
|
||||
@Param("name") String name,
|
||||
@Param("serialNo") String serialNo,
|
||||
@Param("remark") String remark,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByAccount(
|
||||
@Param("name") String name,
|
||||
@Param("serialNo") String serialNo,
|
||||
@Param("remark") String remark);
|
||||
|
||||
List<AccountVo4InOutList> findAccountInOutList(
|
||||
@Param("accountId") Long accountId,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findAccountInOutListCount(
|
||||
@Param("accountId") Long accountId);
|
||||
}
|
||||
106
src/main/java/com/jsh/erp/datasource/mappers/AppMapper.java
Normal file
106
src/main/java/com/jsh/erp/datasource/mappers/AppMapper.java
Normal file
@@ -0,0 +1,106 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.App;
|
||||
import com.jsh.erp.datasource.entities.AppExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AppMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(AppExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(AppExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(App record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(App record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<App> selectByExample(AppExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
App selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") App record, @Param("example") AppExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") App record, @Param("example") AppExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(App record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_app
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(App record);
|
||||
|
||||
List<App> selectByConditionApp(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByApp(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.AssetCategory;
|
||||
import com.jsh.erp.datasource.entities.AssetCategoryExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AssetCategoryMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(AssetCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(AssetCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(AssetCategory record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(AssetCategory record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<AssetCategory> selectByExample(AssetCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
AssetCategory selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") AssetCategory record, @Param("example") AssetCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") AssetCategory record, @Param("example") AssetCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(AssetCategory record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(AssetCategory record);
|
||||
}
|
||||
120
src/main/java/com/jsh/erp/datasource/mappers/AssetMapper.java
Normal file
120
src/main/java/com/jsh/erp/datasource/mappers/AssetMapper.java
Normal file
@@ -0,0 +1,120 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Asset;
|
||||
import com.jsh.erp.datasource.entities.AssetExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AssetMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(AssetExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(AssetExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Asset record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Asset record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Asset> selectByExampleWithBLOBs(AssetExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Asset> selectByExample(AssetExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Asset selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Asset record, @Param("example") AssetExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleWithBLOBs(@Param("record") Asset record, @Param("example") AssetExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Asset record, @Param("example") AssetExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Asset record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeyWithBLOBs(Asset record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_asset
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Asset record);
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.AssetName;
|
||||
import com.jsh.erp.datasource.entities.AssetNameExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AssetNameMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(AssetNameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(AssetNameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(AssetName record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(AssetName record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<AssetName> selectByExampleWithBLOBs(AssetNameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<AssetName> selectByExample(AssetNameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
AssetName selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") AssetName record, @Param("example") AssetNameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleWithBLOBs(@Param("record") AssetName record, @Param("example") AssetNameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") AssetName record, @Param("example") AssetNameExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(AssetName record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeyWithBLOBs(AssetName record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_assetname
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(AssetName record);
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.DepotHead;
|
||||
import com.jsh.erp.datasource.entities.DepotHeadExample;
|
||||
import java.util.List;
|
||||
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4InDetail;
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4InOutMCount;
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4List;
|
||||
import com.jsh.erp.datasource.vo.DepotHeadVo4StatementAccount;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface DepotHeadMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(DepotHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(DepotHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(DepotHead record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(DepotHead record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<DepotHead> selectByExample(DepotHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
DepotHead selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") DepotHead record, @Param("example") DepotHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") DepotHead record, @Param("example") DepotHeadExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(DepotHead record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depothead
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(DepotHead record);
|
||||
|
||||
List<DepotHeadVo4List> selectByConditionDepotHead(
|
||||
@Param("type") String type,
|
||||
@Param("subType") String subType,
|
||||
@Param("number") String number,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("dhIds") String dhIds,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByDepotHead(
|
||||
@Param("type") String type,
|
||||
@Param("subType") String subType,
|
||||
@Param("number") String number,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("dhIds") String dhIds);
|
||||
|
||||
Long getMaxId();
|
||||
|
||||
String findMaterialsListByHeaderId(
|
||||
@Param("id") Long id);
|
||||
|
||||
List<DepotHeadVo4InDetail> findByAll(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("type") String type,
|
||||
@Param("pid") Integer pid,
|
||||
@Param("dids") String dids,
|
||||
@Param("oId") Integer oId,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findByAllCount(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("type") String type,
|
||||
@Param("pid") Integer pid,
|
||||
@Param("dids") String dids,
|
||||
@Param("oId") Integer oId);
|
||||
|
||||
List<DepotHeadVo4InOutMCount> findInOutMaterialCount(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("type") String type,
|
||||
@Param("pid") Integer pid,
|
||||
@Param("dids") String dids,
|
||||
@Param("oId") Integer oId,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findInOutMaterialCountTotal(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("type") String type,
|
||||
@Param("pid") Integer pid,
|
||||
@Param("dids") String dids,
|
||||
@Param("oId") Integer oId);
|
||||
|
||||
List<DepotHeadVo4StatementAccount> findStatementAccount(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("organId") Integer organId,
|
||||
@Param("supType") String supType,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findStatementAccountCount(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("organId") Integer organId,
|
||||
@Param("supType") String supType);
|
||||
|
||||
Double findAllMoney(
|
||||
@Param("supplierId") Integer supplierId,
|
||||
@Param("type") String type,
|
||||
@Param("subType") String subType,
|
||||
@Param("modeName") String modeName,
|
||||
@Param("endTime") String endTime);
|
||||
|
||||
List<DepotHeadVo4List> getDetailByNumber(
|
||||
@Param("number") String number);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface DepotItemMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(DepotItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(DepotItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(DepotItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(DepotItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<DepotItem> selectByExample(DepotItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
DepotItem selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") DepotItem record, @Param("example") DepotItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") DepotItem record, @Param("example") DepotItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(DepotItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depotitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(DepotItem record);
|
||||
|
||||
List<DepotItem> selectByConditionDepotItem(
|
||||
@Param("name") String name,
|
||||
@Param("type") Integer type,
|
||||
@Param("remark") String remark,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByDepotItem(
|
||||
@Param("name") String name,
|
||||
@Param("type") Integer type,
|
||||
@Param("remark") String remark);
|
||||
|
||||
List<DepotItemVo4HeaderId> getHeaderIdByMaterial(
|
||||
@Param("materialParam") String materialParam,
|
||||
@Param("depotIds") String depotIds);
|
||||
|
||||
List<DepotItemVo4DetailByTypeAndMId> findDetailByTypeAndMaterialIdList(
|
||||
@Param("mId") Long mId,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findDetailByTypeAndMaterialIdCounts(
|
||||
@Param("mId") Long mId);
|
||||
|
||||
List<DepotItemVo4Material> findStockNumByMaterialIdList(
|
||||
@Param("mId") Long mId,
|
||||
@Param("monthTime") String monthTime,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findStockNumByMaterialIdCounts(
|
||||
@Param("mId") Long mId,
|
||||
@Param("monthTime") String monthTime);
|
||||
|
||||
int findByTypeAndMaterialIdIn(
|
||||
@Param("mId") Long mId);
|
||||
|
||||
int findByTypeAndMaterialIdOut(
|
||||
@Param("mId") Long mId);
|
||||
|
||||
List<DepotItemVo4WithInfoEx> getDetailList(
|
||||
@Param("headerId") Long headerId);
|
||||
|
||||
List<DepotItemVo4WithInfoEx> findByAll(
|
||||
@Param("headIds") String headIds,
|
||||
@Param("materialIds") String materialIds,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findByAllCount(
|
||||
@Param("headIds") String headIds,
|
||||
@Param("materialIds") String materialIds);
|
||||
|
||||
Double findByTypeInIsPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
Double findByTypeInIsNotPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
Double findByTypeOutIsPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
Double findByTypeOutIsNotPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
|
||||
|
||||
Double findPriceByTypeInIsPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
Double findPriceByTypeInIsNotPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
Double findPriceByTypeOutIsPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
Double findPriceByTypeOutIsNotPrev(
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime);
|
||||
|
||||
Double buyOrSaleNumber(
|
||||
@Param("type") String type,
|
||||
@Param("subType") String subType,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime,
|
||||
@Param("sumType") String sumType);
|
||||
|
||||
Double buyOrSalePrice(
|
||||
@Param("type") String type,
|
||||
@Param("subType") String subType,
|
||||
@Param("MId") Long MId,
|
||||
@Param("MonthTime") String MonthTime,
|
||||
@Param("sumType") String sumType);
|
||||
|
||||
Double findGiftByTypeIn(
|
||||
@Param("subType") String subType,
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId);
|
||||
|
||||
Double findGiftByTypeOut(
|
||||
@Param("subType") String subType,
|
||||
@Param("ProjectId") Integer ProjectId,
|
||||
@Param("MId") Long MId);
|
||||
|
||||
}
|
||||
108
src/main/java/com/jsh/erp/datasource/mappers/DepotMapper.java
Normal file
108
src/main/java/com/jsh/erp/datasource/mappers/DepotMapper.java
Normal file
@@ -0,0 +1,108 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Depot;
|
||||
import com.jsh.erp.datasource.entities.DepotExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface DepotMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(DepotExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(DepotExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Depot record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Depot record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Depot> selectByExample(DepotExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Depot selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Depot record, @Param("example") DepotExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Depot record, @Param("example") DepotExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Depot record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_depot
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Depot record);
|
||||
|
||||
List<Depot> selectByConditionDepot(
|
||||
@Param("name") String name,
|
||||
@Param("type") Integer type,
|
||||
@Param("remark") String remark,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByDepot(
|
||||
@Param("name") String name,
|
||||
@Param("type") Integer type,
|
||||
@Param("remark") String remark);
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Functions;
|
||||
import com.jsh.erp.datasource.entities.FunctionsExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface FunctionsMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(FunctionsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(FunctionsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Functions record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Functions record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Functions> selectByExample(FunctionsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Functions selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Functions record, @Param("example") FunctionsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Functions record, @Param("example") FunctionsExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Functions record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_functions
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Functions record);
|
||||
|
||||
List<Functions> selectByConditionFunctions(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByFunctions(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type);
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.InOutItem;
|
||||
import com.jsh.erp.datasource.entities.InOutItemExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface InOutItemMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(InOutItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(InOutItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(InOutItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(InOutItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<InOutItem> selectByExample(InOutItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
InOutItem selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") InOutItem record, @Param("example") InOutItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") InOutItem record, @Param("example") InOutItemExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(InOutItem record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_inoutitem
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(InOutItem record);
|
||||
|
||||
List<InOutItem> selectByConditionInOutItem(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type,
|
||||
@Param("remark") String remark,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByInOutItem(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type,
|
||||
@Param("remark") String remark);
|
||||
}
|
||||
116
src/main/java/com/jsh/erp/datasource/mappers/LogMapper.java
Normal file
116
src/main/java/com/jsh/erp/datasource/mappers/LogMapper.java
Normal file
@@ -0,0 +1,116 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Log;
|
||||
import com.jsh.erp.datasource.entities.LogExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface LogMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(LogExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(LogExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Log record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Log record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Log> selectByExample(LogExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Log selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Log record, @Param("example") LogExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Log record, @Param("example") LogExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Log record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_log
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Log record);
|
||||
|
||||
List<Log> selectByConditionLog(
|
||||
@Param("operation") String operation,
|
||||
@Param("usernameID") Integer usernameID,
|
||||
@Param("clientIp") String clientIp,
|
||||
@Param("status") Integer status,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("contentdetails") String contentdetails,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByLog(
|
||||
@Param("operation") String operation,
|
||||
@Param("usernameID") Integer usernameID,
|
||||
@Param("clientIp") String clientIp,
|
||||
@Param("status") Integer status,
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("contentdetails") String contentdetails);
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.MaterialCategory;
|
||||
import com.jsh.erp.datasource.entities.MaterialCategoryExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MaterialCategoryMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(MaterialCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(MaterialCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(MaterialCategory record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(MaterialCategory record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<MaterialCategory> selectByExample(MaterialCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
MaterialCategory selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MaterialCategory record, @Param("example") MaterialCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") MaterialCategory record, @Param("example") MaterialCategoryExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MaterialCategory record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialcategory
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(MaterialCategory record);
|
||||
|
||||
List<MaterialCategory> selectByConditionMaterialCategory(
|
||||
@Param("name") String name,
|
||||
@Param("parentId") Integer parentId,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByMaterialCategory(
|
||||
@Param("name") String name,
|
||||
@Param("parentId") Integer parentId);
|
||||
}
|
||||
115
src/main/java/com/jsh/erp/datasource/mappers/MaterialMapper.java
Normal file
115
src/main/java/com/jsh/erp/datasource/mappers/MaterialMapper.java
Normal file
@@ -0,0 +1,115 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Material;
|
||||
import com.jsh.erp.datasource.entities.MaterialExample;
|
||||
import java.util.List;
|
||||
|
||||
import com.jsh.erp.datasource.entities.MaterialVo4Unit;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MaterialMapper {
|
||||
/**
|
||||
* 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);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_material
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_material
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_material
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
|
||||
/**
|
||||
* 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);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_material
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
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);
|
||||
|
||||
List<Material> selectByConditionMaterial(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByMaterial(
|
||||
@Param("name") String name,
|
||||
@Param("model") String model);
|
||||
|
||||
String findUnitName(@Param("mId") Long mId);
|
||||
|
||||
List<MaterialVo4Unit> findById(@Param("id") Long id);
|
||||
|
||||
List<MaterialVo4Unit> findBySelect();
|
||||
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.MaterialProperty;
|
||||
import com.jsh.erp.datasource.entities.MaterialPropertyExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface MaterialPropertyMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(MaterialPropertyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(MaterialPropertyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(MaterialProperty record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(MaterialProperty record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<MaterialProperty> selectByExample(MaterialPropertyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
MaterialProperty selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") MaterialProperty record, @Param("example") MaterialPropertyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") MaterialProperty record, @Param("example") MaterialPropertyExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(MaterialProperty record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_materialproperty
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(MaterialProperty record);
|
||||
|
||||
List<MaterialProperty> selectByConditionMaterialProperty(
|
||||
@Param("name") String name,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByMaterialProperty(@Param("name") String name);
|
||||
}
|
||||
106
src/main/java/com/jsh/erp/datasource/mappers/PersonMapper.java
Normal file
106
src/main/java/com/jsh/erp/datasource/mappers/PersonMapper.java
Normal file
@@ -0,0 +1,106 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Person;
|
||||
import com.jsh.erp.datasource.entities.PersonExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface PersonMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(PersonExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(PersonExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Person record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Person record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Person> selectByExample(PersonExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Person selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Person record, @Param("example") PersonExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Person record, @Param("example") PersonExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Person record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_person
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Person record);
|
||||
|
||||
List<Person> selectByConditionPerson(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByPerson(
|
||||
@Param("name") String name,
|
||||
@Param("type") String type);
|
||||
}
|
||||
104
src/main/java/com/jsh/erp/datasource/mappers/RoleMapper.java
Normal file
104
src/main/java/com/jsh/erp/datasource/mappers/RoleMapper.java
Normal file
@@ -0,0 +1,104 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Role;
|
||||
import com.jsh.erp.datasource.entities.RoleExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface RoleMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(RoleExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(RoleExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Role record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Role record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Role> selectByExample(RoleExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Role selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Role record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_role
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Role record);
|
||||
|
||||
List<Role> selectByConditionRole(
|
||||
@Param("name") String name,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByRole(
|
||||
@Param("name") String name);
|
||||
}
|
||||
112
src/main/java/com/jsh/erp/datasource/mappers/SupplierMapper.java
Normal file
112
src/main/java/com/jsh/erp/datasource/mappers/SupplierMapper.java
Normal file
@@ -0,0 +1,112 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Supplier;
|
||||
import com.jsh.erp.datasource.entities.SupplierExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface SupplierMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(SupplierExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(SupplierExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Supplier record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Supplier record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Supplier> selectByExample(SupplierExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Supplier selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Supplier record, @Param("example") SupplierExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Supplier record, @Param("example") SupplierExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Supplier record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_supplier
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Supplier record);
|
||||
|
||||
List<Supplier> selectByConditionSupplier(
|
||||
@Param("supplier") String supplier,
|
||||
@Param("type") String type,
|
||||
@Param("phonenum") String phonenum,
|
||||
@Param("telephone") String telephone,
|
||||
@Param("description") String description,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsBySupplier(
|
||||
@Param("supplier") String supplier,
|
||||
@Param("type") String type,
|
||||
@Param("phonenum") String phonenum,
|
||||
@Param("telephone") String telephone,
|
||||
@Param("description") String description);
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.SystemConfig;
|
||||
import com.jsh.erp.datasource.entities.SystemConfigExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface SystemConfigMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(SystemConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(SystemConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(SystemConfig record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(SystemConfig record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<SystemConfig> selectByExample(SystemConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
SystemConfig selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") SystemConfig record, @Param("example") SystemConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") SystemConfig record, @Param("example") SystemConfigExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(SystemConfig record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_systemconfig
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(SystemConfig record);
|
||||
|
||||
List<SystemConfig> selectByConditionSystemConfig(
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsBySystemConfig();
|
||||
}
|
||||
104
src/main/java/com/jsh/erp/datasource/mappers/UnitMapper.java
Normal file
104
src/main/java/com/jsh/erp/datasource/mappers/UnitMapper.java
Normal file
@@ -0,0 +1,104 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.Unit;
|
||||
import com.jsh.erp.datasource.entities.UnitExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UnitMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(UnitExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(UnitExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(Unit record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(Unit record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<Unit> selectByExample(UnitExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
Unit selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") Unit record, @Param("example") UnitExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") Unit record, @Param("example") UnitExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Unit record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_unit
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(Unit record);
|
||||
|
||||
List<Unit> selectByConditionUnit(
|
||||
@Param("name") String name,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByUnit(
|
||||
@Param("name") String name);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.UserBusiness;
|
||||
import com.jsh.erp.datasource.entities.UserBusinessExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UserBusinessMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(UserBusinessExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(UserBusinessExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(UserBusiness record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(UserBusiness record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<UserBusiness> selectByExample(UserBusinessExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
UserBusiness selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") UserBusiness record, @Param("example") UserBusinessExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") UserBusiness record, @Param("example") UserBusinessExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(UserBusiness record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_userbusiness
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(UserBusiness record);
|
||||
}
|
||||
106
src/main/java/com/jsh/erp/datasource/mappers/UserMapper.java
Normal file
106
src/main/java/com/jsh/erp/datasource/mappers/UserMapper.java
Normal file
@@ -0,0 +1,106 @@
|
||||
package com.jsh.erp.datasource.mappers;
|
||||
|
||||
import com.jsh.erp.datasource.entities.User;
|
||||
import com.jsh.erp.datasource.entities.UserExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface UserMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int countByExample(UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByExample(UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insert(User record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int insertSelective(User record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
List<User> selectByExample(UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
User selectByPrimaryKey(Long id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByExample(@Param("record") User record, @Param("example") UserExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(User record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table jsh_user
|
||||
*
|
||||
* @mbggenerated
|
||||
*/
|
||||
int updateByPrimaryKey(User record);
|
||||
|
||||
List<User> selectByConditionUser(
|
||||
@Param("userName") String userName,
|
||||
@Param("loginName") String loginName,
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int countsByUser(
|
||||
@Param("userName") String userName,
|
||||
@Param("loginName") String loginName);
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.jsh.erp.datasource.vo;
|
||||
|
||||
public class AccountItemVo4List {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long headerid;
|
||||
|
||||
private Long accountid;
|
||||
|
||||
private Long inoutitemid;
|
||||
|
||||
private Double eachamount;
|
||||
|
||||
private String remark;
|
||||
|
||||
private String accountName;
|
||||
|
||||
private String inOutItemName;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getHeaderid() {
|
||||
return headerid;
|
||||
}
|
||||
|
||||
public void setHeaderid(Long headerid) {
|
||||
this.headerid = headerid;
|
||||
}
|
||||
|
||||
public Long getAccountid() {
|
||||
return accountid;
|
||||
}
|
||||
|
||||
public void setAccountid(Long accountid) {
|
||||
this.accountid = accountid;
|
||||
}
|
||||
|
||||
public Long getInoutitemid() {
|
||||
return inoutitemid;
|
||||
}
|
||||
|
||||
public void setInoutitemid(Long inoutitemid) {
|
||||
this.inoutitemid = inoutitemid;
|
||||
}
|
||||
|
||||
public Double getEachamount() {
|
||||
return eachamount;
|
||||
}
|
||||
|
||||
public void setEachamount(Double eachamount) {
|
||||
this.eachamount = eachamount;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getAccountName() {
|
||||
return accountName;
|
||||
}
|
||||
|
||||
public void setAccountName(String accountName) {
|
||||
this.accountName = accountName;
|
||||
}
|
||||
|
||||
public String getInOutItemName() {
|
||||
return inOutItemName;
|
||||
}
|
||||
|
||||
public void setInOutItemName(String inOutItemName) {
|
||||
this.inOutItemName = inOutItemName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.jsh.erp.datasource.vo;
|
||||
|
||||
public class AccountVo4InOutList {
|
||||
|
||||
private String number;
|
||||
|
||||
private String type;
|
||||
|
||||
private String supplierName;
|
||||
|
||||
private Double changeAmount;
|
||||
|
||||
private Double balance;
|
||||
|
||||
private String operTime;
|
||||
|
||||
private String aList;
|
||||
|
||||
private String amList;
|
||||
|
||||
public String getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
public void setNumber(String number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getSupplierName() {
|
||||
return supplierName;
|
||||
}
|
||||
|
||||
public void setSupplierName(String supplierName) {
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public Double getChangeAmount() {
|
||||
return changeAmount;
|
||||
}
|
||||
|
||||
public void setChangeAmount(Double changeAmount) {
|
||||
this.changeAmount = changeAmount;
|
||||
}
|
||||
|
||||
public Double getBalance() {
|
||||
return balance;
|
||||
}
|
||||
|
||||
public void setBalance(Double balance) {
|
||||
this.balance = balance;
|
||||
}
|
||||
|
||||
public String getOperTime() {
|
||||
return operTime;
|
||||
}
|
||||
|
||||
public void setOperTime(String operTime) {
|
||||
this.operTime = operTime;
|
||||
}
|
||||
|
||||
public String getaList() {
|
||||
return aList;
|
||||
}
|
||||
|
||||
public void setaList(String aList) {
|
||||
this.aList = aList;
|
||||
}
|
||||
|
||||
public String getAmList() {
|
||||
return amList;
|
||||
}
|
||||
|
||||
public void setAmList(String amList) {
|
||||
this.amList = amList;
|
||||
}
|
||||
}
|
||||
84
src/main/java/com/jsh/erp/datasource/vo/AccountVo4List.java
Normal file
84
src/main/java/com/jsh/erp/datasource/vo/AccountVo4List.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package com.jsh.erp.datasource.vo;
|
||||
|
||||
public class AccountVo4List {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String serialno;
|
||||
|
||||
private Double initialamount;
|
||||
|
||||
private Double currentamount;
|
||||
|
||||
private String remark;
|
||||
|
||||
private Boolean isdefault;
|
||||
|
||||
private String thismonthamount;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getSerialno() {
|
||||
return serialno;
|
||||
}
|
||||
|
||||
public void setSerialno(String serialno) {
|
||||
this.serialno = serialno;
|
||||
}
|
||||
|
||||
public Double getInitialamount() {
|
||||
return initialamount;
|
||||
}
|
||||
|
||||
public void setInitialamount(Double initialamount) {
|
||||
this.initialamount = initialamount;
|
||||
}
|
||||
|
||||
public Double getCurrentamount() {
|
||||
return currentamount;
|
||||
}
|
||||
|
||||
public void setCurrentamount(Double currentamount) {
|
||||
this.currentamount = currentamount;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Boolean getIsdefault() {
|
||||
return isdefault;
|
||||
}
|
||||
|
||||
public void setIsdefault(Boolean isdefault) {
|
||||
this.isdefault = isdefault;
|
||||
}
|
||||
|
||||
public String getThismonthamount() {
|
||||
return thismonthamount;
|
||||
}
|
||||
|
||||
public void setThismonthamount(String thismonthamount) {
|
||||
this.thismonthamount = thismonthamount;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.jsh.erp.datasource.vo;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class DepotHeadVo4InDetail {
|
||||
|
||||
private String Number;
|
||||
|
||||
private String MName;
|
||||
|
||||
private String Model;
|
||||
|
||||
private Double UnitPrice;
|
||||
|
||||
private Double OperNumber;
|
||||
|
||||
private Double AllPrice;
|
||||
|
||||
private String SName;
|
||||
|
||||
private String DName;
|
||||
|
||||
private String OperTime;
|
||||
|
||||
private String NewType;
|
||||
|
||||
public String getNumber() {
|
||||
return Number;
|
||||
}
|
||||
|
||||
public void setNumber(String number) {
|
||||
Number = number;
|
||||
}
|
||||
|
||||
public String getMName() {
|
||||
return MName;
|
||||
}
|
||||
|
||||
public void setMName(String MName) {
|
||||
this.MName = MName;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return Model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
Model = model;
|
||||
}
|
||||
|
||||
public Double getUnitPrice() {
|
||||
return UnitPrice;
|
||||
}
|
||||
|
||||
public void setUnitPrice(Double unitPrice) {
|
||||
UnitPrice = unitPrice;
|
||||
}
|
||||
|
||||
public Double getOperNumber() {
|
||||
return OperNumber;
|
||||
}
|
||||
|
||||
public void setOperNumber(Double operNumber) {
|
||||
OperNumber = operNumber;
|
||||
}
|
||||
|
||||
public Double getAllPrice() {
|
||||
return AllPrice;
|
||||
}
|
||||
|
||||
public void setAllPrice(Double allPrice) {
|
||||
AllPrice = allPrice;
|
||||
}
|
||||
|
||||
public String getSName() {
|
||||
return SName;
|
||||
}
|
||||
|
||||
public void setSName(String SName) {
|
||||
this.SName = SName;
|
||||
}
|
||||
|
||||
public String getDName() {
|
||||
return DName;
|
||||
}
|
||||
|
||||
public void setDName(String DName) {
|
||||
this.DName = DName;
|
||||
}
|
||||
|
||||
public String getOperTime() {
|
||||
return OperTime;
|
||||
}
|
||||
|
||||
public void setOperTime(String operTime) {
|
||||
OperTime = operTime;
|
||||
}
|
||||
|
||||
public String getNewType() {
|
||||
return NewType;
|
||||
}
|
||||
|
||||
public void setNewType(String newType) {
|
||||
NewType = newType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.jsh.erp.datasource.vo;
|
||||
|
||||
|
||||
public class DepotHeadVo4InOutMCount {
|
||||
|
||||
private Long MaterialId;
|
||||
|
||||
private String mName;
|
||||
|
||||
private String Model;
|
||||
|
||||
private String categoryName;
|
||||
|
||||
private Double numSum;
|
||||
|
||||
private Double priceSum;
|
||||
|
||||
public Long getMaterialId() {
|
||||
return MaterialId;
|
||||
}
|
||||
|
||||
public void setMaterialId(Long materialId) {
|
||||
MaterialId = materialId;
|
||||
}
|
||||
|
||||
public String getmName() {
|
||||
return mName;
|
||||
}
|
||||
|
||||
public void setmName(String mName) {
|
||||
this.mName = mName;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return Model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
Model = model;
|
||||
}
|
||||
|
||||
public String getCategoryName() {
|
||||
return categoryName;
|
||||
}
|
||||
|
||||
public void setCategoryName(String categoryName) {
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public Double getNumSum() {
|
||||
return numSum;
|
||||
}
|
||||
|
||||
public void setNumSum(Double numSum) {
|
||||
this.numSum = numSum;
|
||||
}
|
||||
|
||||
public Double getPriceSum() {
|
||||
return priceSum;
|
||||
}
|
||||
|
||||
public void setPriceSum(Double priceSum) {
|
||||
this.priceSum = priceSum;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user