Commit 54bf4897 authored by 季圣华's avatar 季圣华
Browse files

增加租户的功能

parent d845b9df
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<tr> <tr>
<td style="width:80px;">序列号</td> <td style="width:80px;">序列号</td>
<td style="padding:5px;width:180px;"> <td style="padding:5px;width:180px;">
<select name="enableSerialNumber" id="enableSerialNumber" style="width: 180px;height: 20px"> <select name="EnableSerialNumber" id="EnableSerialNumber" style="width: 180px;height: 20px">
<option value="1">启用</option> <option value="1">启用</option>
<option value="0">禁用</option> <option value="0">禁用</option>
</select> </select>
...@@ -509,7 +509,7 @@ ...@@ -509,7 +509,7 @@
+ 'AaBb' + rec.lowprice + 'AaBb' + rec.presetpriceone + 'AaBb' + rec.presetpricetwo + 'AaBb' + rec.remark + 'AaBb' + rec.standard + 'AaBb' + rec.lowprice + 'AaBb' + rec.presetpriceone + 'AaBb' + rec.presetpricetwo + 'AaBb' + rec.remark + 'AaBb' + rec.standard
+ 'AaBb' + rec.color + 'AaBb' + rec.packing + 'AaBb' + rec.safetystock + 'AaBb' + rec.categoryid + 'AaBb' + rec.categoryName + 'AaBb' + rec.color + 'AaBb' + rec.packing + 'AaBb' + rec.safetystock + 'AaBb' + rec.categoryid + 'AaBb' + rec.categoryName
+ 'AaBb' + rec.unitid + 'AaBb' + rec.unitName + 'AaBb' + rec.firstoutunit + 'AaBb' + rec.firstinunit + 'AaBb' + rec.unitid + 'AaBb' + rec.unitName + 'AaBb' + rec.firstoutunit + 'AaBb' + rec.firstinunit
+ 'AaBb' + rec.mfrs + 'AaBb' + rec.otherfield1 + 'AaBb' + rec.otherfield2 + 'AaBb' + rec.otherfield3+ 'AaBb' + rec.enableSerialNumber; + 'AaBb' + rec.mfrs + 'AaBb' + rec.otherfield1 + 'AaBb' + rec.otherfield2 + 'AaBb' + rec.otherfield3+ 'AaBb' + rec.enableserialnumber;
str += '<img title="编辑" src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editMaterial(\'' + rowInfo + '\');"/>&nbsp;&nbsp;&nbsp;'; str += '<img title="编辑" src="/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editMaterial(\'' + rowInfo + '\');"/>&nbsp;&nbsp;&nbsp;';
str += '<img title="删除" src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteMaterial(' + rec.id + ');"/>'; str += '<img title="删除" src="/js/easyui-1.3.5/themes/icons/edit_remove.png" style="cursor: pointer;" onclick="deleteMaterial(' + rec.id + ');"/>';
return str; return str;
...@@ -572,7 +572,7 @@ ...@@ -572,7 +572,7 @@
} }
}, },
{ {
title: '序列号', field: 'enableSerialNumber', width: 70, align: "center", formatter: function (value) { title: '序列号', field: 'enableserialnumber', width: 70, align: "center", formatter: function (value) {
return value=='1' ? "启用" : "禁用"; return value=='1' ? "启用" : "禁用";
} }
} }
...@@ -1048,8 +1048,8 @@ ...@@ -1048,8 +1048,8 @@
$('#materialFM input').val(""); //将输入框全部清空 $('#materialFM input').val(""); //将输入框全部清空
bindMProperty(); //根据商品属性绑定 bindMProperty(); //根据商品属性绑定
// $("#enableSerialNumber").combobox('setValue','0'); // $("#EnableSerialNumber").combobox('setValue','0');
$("#enableSerialNumber").val('0'); $("#EnableSerialNumber").val('0');
$('#materialDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加商品信息'); $('#materialDlg').dialog('open').dialog('setTitle', '<img src="/js/easyui-1.3.5/themes/icons/edit_add.png"/>&nbsp;增加商品信息');
$(".window-mask").css({width: webW, height: webH}); $(".window-mask").css({width: webW, height: webH});
$("#Name").val("").focus(); $("#Name").val("").focus();
...@@ -1157,7 +1157,7 @@ ...@@ -1157,7 +1157,7 @@
basicList.LowPrice = $("#basicLowPrice").val(); basicList.LowPrice = $("#basicLowPrice").val();
basicList.PresetPriceOne = $("#basicPresetPriceOne").val(); basicList.PresetPriceOne = $("#basicPresetPriceOne").val();
basicList.PresetPriceTwo = $("#basicPresetPriceTwo").val(); basicList.PresetPriceTwo = $("#basicPresetPriceTwo").val();
basicList.enableSerialNumber=$("#enableSerialNumber").val(); basicList.EnableSerialNumber=$("#EnableSerialNumber").val();
otherList.Unit = $("#otherUnit").text(); otherList.Unit = $("#otherUnit").text();
otherList.RetailPrice = $("#otherRetailPrice").val(); otherList.RetailPrice = $("#otherRetailPrice").val();
otherList.LowPrice = $("#otherLowPrice").val(); otherList.LowPrice = $("#otherLowPrice").val();
...@@ -1226,7 +1226,7 @@ ...@@ -1226,7 +1226,7 @@
bindMProperty(); //根据商品属性绑定 bindMProperty(); //根据商品属性绑定
$("#Name").focus().val(materialInfo[1]); $("#Name").focus().val(materialInfo[1]);
$("#Color").focus().val(materialInfo[11]); $("#Color").focus().val(materialInfo[11]);
$("#enableSerialNumber").val(materialInfo[24]=='1'?'1':'0'); $("#EnableSerialNumber").val(materialInfo[24]=='1'?'1':'0');
//商品类别id //商品类别id
$("#parentid").val(materialInfo[14]); $("#parentid").val(materialInfo[14]);
//商品类别名称 //商品类别名称
......
...@@ -103,6 +103,11 @@ ...@@ -103,6 +103,11 @@
<artifactId>pagehelper-spring-boot-starter</artifactId> <artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.10</version> <version>1.2.10</version>
</dependency> </dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.0.7.1</version>
</dependency>
</dependencies> </dependencies>
<repositories> <repositories>
......
...@@ -1472,3 +1472,33 @@ update jsh_user set status='0' where status is null; ...@@ -1472,3 +1472,33 @@ update jsh_user set status='0' where status is null;
-- 设置根目录编号为1 -- 设置根目录编号为1
-- ---------------------------- -- ----------------------------
update jsh_materialcategory set serial_no='1' where id='1'; update jsh_materialcategory set serial_no='1' where id='1';
-- ----------------------------
-- 时间:2019年3月18日
-- version:1.0.11
-- 此次更新
-- 1、批量增加大部分表的tenant_id租户字段
-- 特别提醒:之后的sql都是在之前基础上迭代,可以对已存在的系统进行数据保留更新
-- ----------------------------
alter table jsh_account add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_accounthead add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_accountitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_asset add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_assetcategory add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_assetname add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depot add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depothead add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_depotitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_inoutitem add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_log add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_material add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_materialcategory add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_orga_user_rel add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_organization add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_person add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_role add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_serial_number add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_supplier add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_systemconfig add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_unit add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
alter table jsh_user add tenant_id bigint(20) DEFAULT null COMMENT '租户id';
\ No newline at end of file
...@@ -2,6 +2,7 @@ package com.jsh.erp; ...@@ -2,6 +2,7 @@ package com.jsh.erp;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration; import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration;
...@@ -10,6 +11,8 @@ import org.springframework.context.annotation.Bean; ...@@ -10,6 +11,8 @@ import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.DispatcherServlet; import org.springframework.web.servlet.DispatcherServlet;
import javax.servlet.http.Cookie;
@SpringBootApplication @SpringBootApplication
@MapperScan(basePackages = {"com.jsh.erp.datasource.mappers"}) @MapperScan(basePackages = {"com.jsh.erp.datasource.mappers"})
@ServletComponentScan @ServletComponentScan
......
package com.jsh.erp.config;
import com.baomidou.mybatisplus.core.parser.ISqlParser;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
import com.baomidou.mybatisplus.extension.plugins.tenant.TenantHandler;
import com.baomidou.mybatisplus.extension.plugins.tenant.TenantSqlParser;
import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.LongValue;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;
@Configuration
public class TenantConfig {
@Bean
public PaginationInterceptor paginationInterceptor(HttpServletRequest request) {
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
List<ISqlParser> sqlParserList = new ArrayList<>();
TenantSqlParser tenantSqlParser = new TenantSqlParser();
tenantSqlParser.setTenantHandler(new TenantHandler() {
@Override
public Expression getTenantId() {
//从session中获取租户id
Object tenantId = request.getSession().getAttribute("tenantId");
if(tenantId!=null){
return new LongValue(Long.parseLong(tenantId.toString()));
} else {
return null;
}
}
@Override
public String getTenantIdColumn() {
return "tenant_id";
}
@Override
public boolean doTableFilter(String tableName) {
//从session中获取租户id
Object mybatisPlusStatus = request.getSession().getAttribute("mybatisPlusStatus");
if(mybatisPlusStatus !=null && mybatisPlusStatus.toString().equals("open")) {
// 这里可以判断是否过滤表
if ("databasechangelog".equals(tableName) || "databasechangeloglock".equals(tableName)
|| "jsh_materialproperty".equals(tableName) || "tbl_sequence".equals(tableName) || "dual".equals(tableName)
|| "jsh_userbusiness".equals(tableName) || "jsh_app".equals(tableName) || "jsh_functions".equals(tableName)) {
return true;
} else {
return false;
}
} else {
return true;
}
}
});
sqlParserList.add(tenantSqlParser);
paginationInterceptor.setSqlParserList(sqlParserList);
// paginationInterceptor.setSqlParserFilter(new ISqlParserFilter() {
// @Override
// public boolean doFilter(MetaObject metaObject) {
// MappedStatement ms = PluginUtils.realTarget(metaObject);
// // 过滤自定义查询此时无租户信息约束出现
// if ("com.jsh.erp.datasource.mappers.DepotHeadMapperEx.getBuildOnlyNumber".equals(ms.getId())) {
// return true;
// }
// return false;
// }
// });
return paginationInterceptor;
}
/**
* 相当于顶部的:
* {@code @MapperScan("com.jsh.erp.datasource.mappers*")}
* 这里可以扩展,比如使用配置文件来配置扫描Mapper的路径
*/
@Bean
public MapperScannerConfigurer mapperScannerConfigurer() {
MapperScannerConfigurer scannerConfigurer = new MapperScannerConfigurer();
scannerConfigurer.setBasePackage("com.jsh.erp.datasource.mappers*");
return scannerConfigurer;
}
/**
* 性能分析拦截器,不建议生产使用
*/
@Bean
public PerformanceInterceptor performanceInterceptor(){
return new PerformanceInterceptor();
}
}
...@@ -420,7 +420,7 @@ public class DepotItemController { ...@@ -420,7 +420,7 @@ public class DepotItemController {
BaseResponseInfo res = new BaseResponseInfo(); BaseResponseInfo res = new BaseResponseInfo();
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
try { try {
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize); List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, (currentPage-1)*pageSize, pageSize);
String[] mpArr = mpList.split(","); String[] mpArr = mpList.split(",");
int total = depotItemService.findByAllCount(headIds, materialIds); int total = depotItemService.findByAllCount(headIds, materialIds);
map.put("total", total); map.put("total", total);
...@@ -533,7 +533,7 @@ public class DepotItemController { ...@@ -533,7 +533,7 @@ public class DepotItemController {
BaseResponseInfo res = new BaseResponseInfo(); BaseResponseInfo res = new BaseResponseInfo();
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
try { try {
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize); List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, (currentPage-1)*pageSize, pageSize);
String[] mpArr = mpList.split(","); String[] mpArr = mpList.split(",");
int total = depotItemService.findByAllCount(headIds, materialIds); int total = depotItemService.findByAllCount(headIds, materialIds);
map.put("total", total); map.put("total", total);
...@@ -593,7 +593,7 @@ public class DepotItemController { ...@@ -593,7 +593,7 @@ public class DepotItemController {
BaseResponseInfo res = new BaseResponseInfo(); BaseResponseInfo res = new BaseResponseInfo();
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
try { try {
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize); List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, (currentPage-1)*pageSize, pageSize);
String[] mpArr = mpList.split(","); String[] mpArr = mpList.split(",");
int total = depotItemService.findByAllCount(headIds, materialIds); int total = depotItemService.findByAllCount(headIds, materialIds);
map.put("total", total); map.put("total", total);
...@@ -659,7 +659,7 @@ public class DepotItemController { ...@@ -659,7 +659,7 @@ public class DepotItemController {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
String message = "成功"; String message = "成功";
try { try {
List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, currentPage, pageSize); List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, (currentPage-1)*pageSize, pageSize);
//存放数据json数组 //存放数据json数组
Integer pid = projectId; Integer pid = projectId;
String[] names = {"名称", "型号", "单位", "单价", "上月结存数量", "入库数量", "出库数量", "本月结存数量", "结存金额"}; String[] names = {"名称", "型号", "单位", "单价", "上月结存数量", "入库数量", "出库数量", "本月结存数量", "结存金额"};
......
...@@ -71,4 +71,9 @@ public class RoleController { ...@@ -71,4 +71,9 @@ public class RoleController {
} }
return arr; return arr;
} }
@PostMapping(value = "/list")
public List<Role> list(HttpServletRequest request) {
return roleService.getRole();
}
} }
...@@ -17,11 +17,13 @@ import com.jsh.erp.service.user.UserService; ...@@ -17,11 +17,13 @@ import com.jsh.erp.service.user.UserService;
import com.jsh.erp.utils.*; import com.jsh.erp.utils.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.util.*; import java.util.*;
...@@ -36,6 +38,9 @@ import static com.jsh.erp.utils.ResponseJsonUtil.returnJson; ...@@ -36,6 +38,9 @@ import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
public class UserController { public class UserController {
private Logger logger = LoggerFactory.getLogger(ResourceController.class); private Logger logger = LoggerFactory.getLogger(ResourceController.class);
@Value("${mybatis-plus.status}")
private String mybatisPlusStatus;
@Resource @Resource
private UserService userService; private UserService userService;
...@@ -91,6 +96,8 @@ public class UserController { ...@@ -91,6 +96,8 @@ public class UserController {
// new Timestamp(System.currentTimeMillis()), (short) 0, "管理用户:" + username + " 登录系统", username + " 登录系统")); // new Timestamp(System.currentTimeMillis()), (short) 0, "管理用户:" + username + " 登录系统", username + " 登录系统"));
msgTip = "user can login"; msgTip = "user can login";
request.getSession().setAttribute("user",user); request.getSession().setAttribute("user",user);
request.getSession().setAttribute("tenantId",1L); //租户id
request.getSession().setAttribute("mybatisPlusStatus",mybatisPlusStatus); //开启状态
} catch (Exception e) { } catch (Exception e) {
logger.error(">>>>>>>>>>>>>>>查询用户名为:" + username + " ,用户信息异常", e); logger.error(">>>>>>>>>>>>>>>查询用户名为:" + username + " ,用户信息异常", e);
} }
......
package com.jsh.erp.datasource.entities; package com.jsh.erp.datasource.entities;
import java.math.BigDecimal; import java.math.BigDecimal;
public class Account { public class Account {
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.Id * This field corresponds to the database column jsh_account.Id
* *
* @mbggenerated * @mbggenerated
*/ */
private Long id; private Long id;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.Name * This field corresponds to the database column jsh_account.Name
* *
* @mbggenerated * @mbggenerated
*/ */
private String name; private String name;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.SerialNo * This field corresponds to the database column jsh_account.SerialNo
* *
* @mbggenerated * @mbggenerated
*/ */
private String serialno; private String serialno;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.InitialAmount * This field corresponds to the database column jsh_account.InitialAmount
* *
* @mbggenerated * @mbggenerated
*/ */
private BigDecimal initialamount; private BigDecimal initialamount;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.CurrentAmount * This field corresponds to the database column jsh_account.CurrentAmount
* *
* @mbggenerated * @mbggenerated
*/ */
private BigDecimal currentamount; private BigDecimal currentamount;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.Remark * This field corresponds to the database column jsh_account.Remark
* *
* @mbggenerated * @mbggenerated
*/ */
private String remark; private String remark;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.IsDefault * This field corresponds to the database column jsh_account.IsDefault
* *
* @mbggenerated * @mbggenerated
*/ */
private Boolean isdefault; private Boolean isdefault;
/** /**
* This method was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This method returns the value of the database column jsh_account.Id * This field corresponds to the database column jsh_account.tenant_id
* *
* @return the value of jsh_account.Id * @mbggenerated
* */
* @mbggenerated private Long tenantId;
*/
public Long getId() { /**
return id; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_account.Id * @mbggenerated
* */
* @param id the value for jsh_account.Id public Long getId() {
* return id;
* @mbggenerated }
*/
public void setId(Long id) { /**
this.id = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_account.Name * @mbggenerated
* */
* @return the value of jsh_account.Name public void setId(Long id) {
* this.id = id;
* @mbggenerated }
*/
public String getName() { /**
return name; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_account.Name * @mbggenerated
* */
* @param name the value for jsh_account.Name public String getName() {
* return name;
* @mbggenerated }
*/
public void setName(String name) { /**
this.name = name == null ? null : name.trim(); * 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_account.SerialNo * @mbggenerated
* */
* @return the value of jsh_account.SerialNo public void setName(String name) {
* this.name = name == null ? null : name.trim();
* @mbggenerated }
*/
public String getSerialno() { /**
return serialno; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_account.SerialNo * @mbggenerated
* */
* @param serialno the value for jsh_account.SerialNo public String getSerialno() {
* return serialno;
* @mbggenerated }
*/
public void setSerialno(String serialno) { /**
this.serialno = serialno == null ? null : serialno.trim(); * 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_account.InitialAmount * @mbggenerated
* */
* @return the value of jsh_account.InitialAmount public void setSerialno(String serialno) {
* this.serialno = serialno == null ? null : serialno.trim();
* @mbggenerated }
*/
public BigDecimal getInitialamount() { /**
return initialamount; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_account.InitialAmount * @mbggenerated
* */
* @param initialamount the value for jsh_account.InitialAmount public BigDecimal getInitialamount() {
* return initialamount;
* @mbggenerated }
*/
public void setInitialamount(BigDecimal initialamount) { /**
this.initialamount = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_account.CurrentAmount * @mbggenerated
* */
* @return the value of jsh_account.CurrentAmount public void setInitialamount(BigDecimal initialamount) {
* this.initialamount = initialamount;
* @mbggenerated }
*/
public BigDecimal getCurrentamount() { /**
return currentamount; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_account.CurrentAmount * @mbggenerated
* */
* @param currentamount the value for jsh_account.CurrentAmount public BigDecimal getCurrentamount() {
* return currentamount;
* @mbggenerated }
*/
public void setCurrentamount(BigDecimal currentamount) { /**
this.currentamount = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_account.Remark * @mbggenerated
* */
* @return the value of jsh_account.Remark public void setCurrentamount(BigDecimal currentamount) {
* this.currentamount = currentamount;
* @mbggenerated }
*/
public String getRemark() { /**
return remark; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_account.Remark * @mbggenerated
* */
* @param remark the value for jsh_account.Remark public String getRemark() {
* return remark;
* @mbggenerated }
*/
public void setRemark(String remark) { /**
this.remark = remark == null ? null : remark.trim(); * 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_account.IsDefault * @mbggenerated
* */
* @return the value of jsh_account.IsDefault public void setRemark(String remark) {
* this.remark = remark == null ? null : remark.trim();
* @mbggenerated }
*/
public Boolean getIsdefault() { /**
return isdefault; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_account.IsDefault * @mbggenerated
* */
* @param isdefault the value for jsh_account.IsDefault public Boolean getIsdefault() {
* return isdefault;
* @mbggenerated }
*/
public void setIsdefault(Boolean isdefault) { /**
this.isdefault = 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;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_account.tenant_id
*
* @return the value of jsh_account.tenant_id
*
* @mbggenerated
*/
public Long getTenantId() {
return tenantId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.tenant_id
*
* @param tenantId the value for jsh_account.tenant_id
*
* @mbggenerated
*/
public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
}
} }
\ No newline at end of file
package com.jsh.erp.datasource.entities; package com.jsh.erp.datasource.entities;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
public class AccountHead { public class AccountHead {
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.Id * This field corresponds to the database column jsh_accounthead.Id
* *
* @mbggenerated * @mbggenerated
*/ */
private Long id; private Long id;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.Type * This field corresponds to the database column jsh_accounthead.Type
* *
* @mbggenerated * @mbggenerated
*/ */
private String type; private String type;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.OrganId * This field corresponds to the database column jsh_accounthead.OrganId
* *
* @mbggenerated * @mbggenerated
*/ */
private Long organid; private Long organid;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.HandsPersonId * This field corresponds to the database column jsh_accounthead.HandsPersonId
* *
* @mbggenerated * @mbggenerated
*/ */
private Long handspersonid; private Long handspersonid;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.ChangeAmount * This field corresponds to the database column jsh_accounthead.ChangeAmount
* *
* @mbggenerated * @mbggenerated
*/ */
private BigDecimal changeamount; private BigDecimal changeamount;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.TotalPrice * This field corresponds to the database column jsh_accounthead.TotalPrice
* *
* @mbggenerated * @mbggenerated
*/ */
private BigDecimal totalprice; private BigDecimal totalprice;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.AccountId * This field corresponds to the database column jsh_accounthead.AccountId
* *
* @mbggenerated * @mbggenerated
*/ */
private Long accountid; private Long accountid;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.BillNo * This field corresponds to the database column jsh_accounthead.BillNo
* *
* @mbggenerated * @mbggenerated
*/ */
private String billno; private String billno;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.BillTime * This field corresponds to the database column jsh_accounthead.BillTime
* *
* @mbggenerated * @mbggenerated
*/ */
private Date billtime; private Date billtime;
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accounthead.Remark * This field corresponds to the database column jsh_accounthead.Remark
* *
* @mbggenerated * @mbggenerated
*/ */
private String remark; private String remark;
/** /**
* This method was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.Id * This field corresponds to the database column jsh_accounthead.tenant_id
* *
* @return the value of jsh_accounthead.Id * @mbggenerated
* */
* @mbggenerated private Long tenantId;
*/
public Long getId() { /**
return id; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.Id * @mbggenerated
* */
* @param id the value for jsh_accounthead.Id public Long getId() {
* return id;
* @mbggenerated }
*/
public void setId(Long id) { /**
this.id = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.Type * @mbggenerated
* */
* @return the value of jsh_accounthead.Type public void setId(Long id) {
* this.id = id;
* @mbggenerated }
*/
public String getType() { /**
return type; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.Type * @mbggenerated
* */
* @param type the value for jsh_accounthead.Type public String getType() {
* return type;
* @mbggenerated }
*/
public void setType(String type) { /**
this.type = type == null ? null : type.trim(); * 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.OrganId * @mbggenerated
* */
* @return the value of jsh_accounthead.OrganId public void setType(String type) {
* this.type = type == null ? null : type.trim();
* @mbggenerated }
*/
public Long getOrganid() { /**
return organid; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.OrganId * @mbggenerated
* */
* @param organid the value for jsh_accounthead.OrganId public Long getOrganid() {
* return organid;
* @mbggenerated }
*/
public void setOrganid(Long organid) { /**
this.organid = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.HandsPersonId * @mbggenerated
* */
* @return the value of jsh_accounthead.HandsPersonId public void setOrganid(Long organid) {
* this.organid = organid;
* @mbggenerated }
*/
public Long getHandspersonid() { /**
return handspersonid; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.HandsPersonId * @mbggenerated
* */
* @param handspersonid the value for jsh_accounthead.HandsPersonId public Long getHandspersonid() {
* return handspersonid;
* @mbggenerated }
*/
public void setHandspersonid(Long handspersonid) { /**
this.handspersonid = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.ChangeAmount * @mbggenerated
* */
* @return the value of jsh_accounthead.ChangeAmount public void setHandspersonid(Long handspersonid) {
* this.handspersonid = handspersonid;
* @mbggenerated }
*/
public BigDecimal getChangeamount() { /**
return changeamount; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.ChangeAmount * @mbggenerated
* */
* @param changeamount the value for jsh_accounthead.ChangeAmount public BigDecimal getChangeamount() {
* return changeamount;
* @mbggenerated }
*/
public void setChangeamount(BigDecimal changeamount) { /**
this.changeamount = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.TotalPrice * @mbggenerated
* */
* @return the value of jsh_accounthead.TotalPrice public void setChangeamount(BigDecimal changeamount) {
* this.changeamount = changeamount;
* @mbggenerated }
*/
public BigDecimal getTotalprice() { /**
return totalprice; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.TotalPrice * @mbggenerated
* */
* @param totalprice the value for jsh_accounthead.TotalPrice public BigDecimal getTotalprice() {
* return totalprice;
* @mbggenerated }
*/
public void setTotalprice(BigDecimal totalprice) { /**
this.totalprice = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.AccountId * @mbggenerated
* */
* @return the value of jsh_accounthead.AccountId public void setTotalprice(BigDecimal totalprice) {
* this.totalprice = totalprice;
* @mbggenerated }
*/
public Long getAccountid() { /**
return accountid; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.AccountId * @mbggenerated
* */
* @param accountid the value for jsh_accounthead.AccountId public Long getAccountid() {
* return accountid;
* @mbggenerated }
*/
public void setAccountid(Long accountid) { /**
this.accountid = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.BillNo * @mbggenerated
* */
* @return the value of jsh_accounthead.BillNo public void setAccountid(Long accountid) {
* this.accountid = accountid;
* @mbggenerated }
*/
public String getBillno() { /**
return billno; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.BillNo * @mbggenerated
* */
* @param billno the value for jsh_accounthead.BillNo public String getBillno() {
* return billno;
* @mbggenerated }
*/
public void setBillno(String billno) { /**
this.billno = billno == null ? null : billno.trim(); * 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.BillTime * @mbggenerated
* */
* @return the value of jsh_accounthead.BillTime public void setBillno(String billno) {
* this.billno = billno == null ? null : billno.trim();
* @mbggenerated }
*/
public Date getBilltime() { /**
return billtime; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.BillTime * @mbggenerated
* */
* @param billtime the value for jsh_accounthead.BillTime public Date getBilltime() {
* return billtime;
* @mbggenerated }
*/
public void setBilltime(Date billtime) { /**
this.billtime = 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
* This method was generated by MyBatis Generator. *
* This method returns the value of the database column jsh_accounthead.Remark * @mbggenerated
* */
* @return the value of jsh_accounthead.Remark public void setBilltime(Date billtime) {
* this.billtime = billtime;
* @mbggenerated }
*/
public String getRemark() { /**
return remark; * 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
* This method was generated by MyBatis Generator. *
* This method sets the value of the database column jsh_accounthead.Remark * @mbggenerated
* */
* @param remark the value for jsh_accounthead.Remark public String getRemark() {
* return remark;
* @mbggenerated }
*/
public void setRemark(String remark) { /**
this.remark = remark == null ? null : remark.trim(); * 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();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accounthead.tenant_id
*
* @return the value of jsh_accounthead.tenant_id
*
* @mbggenerated
*/
public Long getTenantId() {
return tenantId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accounthead.tenant_id
*
* @param tenantId the value for jsh_accounthead.tenant_id
*
* @mbggenerated
*/
public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
}
} }
\ No newline at end of file
...@@ -25,6 +25,8 @@ public class AccountHeadVo4ListEx { ...@@ -25,6 +25,8 @@ public class AccountHeadVo4ListEx {
private String remark; private String remark;
private Long tenantId;
private String organname; private String organname;
private String handspersonname; private String handspersonname;
...@@ -111,6 +113,14 @@ public class AccountHeadVo4ListEx { ...@@ -111,6 +113,14 @@ public class AccountHeadVo4ListEx {
this.remark = remark; this.remark = remark;
} }
public Long getTenantId() {
return tenantId;
}
public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
}
public String getOrganname() { public String getOrganname() {
return organname; return organname;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment