Commit 1dc95653 authored by cjl's avatar cjl
Browse files

1、修改double类型为BigDecimal

2、修复sql中大于小于少&出错的问题
parents 6abe4bc8 4afc188b
This diff is collapsed.
package com.jsh.erp.controller; package com.jsh.erp.controller;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.Account; import com.jsh.erp.datasource.entities.Account;
import com.jsh.erp.datasource.vo.AccountVo4InOutList; import com.jsh.erp.datasource.vo.AccountVo4InOutList;
import com.jsh.erp.service.account.AccountService; import com.jsh.erp.service.account.AccountService;
import com.jsh.erp.utils.BaseResponseInfo; import com.jsh.erp.utils.BaseResponseInfo;
import com.jsh.erp.utils.ErpInfo; import com.jsh.erp.utils.ErpInfo;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
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 java.util.HashMap; import java.math.BigDecimal;
import java.util.List; import java.util.HashMap;
import java.util.Map; import java.util.List;
import java.util.Map;
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
import static com.jsh.erp.utils.ResponseJsonUtil.returnJson;
/**
* @author jishenghua 75271*8920 /**
*/ * @author jishenghua 75271*8920
@RestController */
@RequestMapping(value = "/account") @RestController
public class AccountController { @RequestMapping(value = "/account")
private Logger logger = LoggerFactory.getLogger(AccountController.class); public class AccountController {
private Logger logger = LoggerFactory.getLogger(AccountController.class);
@Resource
private AccountService accountService; @Resource
private AccountService accountService;
/**
* 查找结算账户信息-下拉框 /**
* @param request * 查找结算账户信息-下拉框
* @return * @param request
*/ * @return
@GetMapping(value = "/findBySelect") */
public String findBySelect(HttpServletRequest request) { @GetMapping(value = "/findBySelect")
String res = null; public String findBySelect(HttpServletRequest request) {
try { String res = null;
List<Account> dataList = accountService.findBySelect(); try {
//存放数据json数组 List<Account> dataList = accountService.findBySelect();
JSONArray dataArray = new JSONArray(); //存放数据json数组
if (null != dataList) { JSONArray dataArray = new JSONArray();
for (Account account : dataList) { if (null != dataList) {
JSONObject item = new JSONObject(); for (Account account : dataList) {
item.put("Id", account.getId()); JSONObject item = new JSONObject();
//结算账户名称 item.put("Id", account.getId());
item.put("AccountName", account.getName()); //结算账户名称
dataArray.add(item); item.put("AccountName", account.getName());
} dataArray.add(item);
} }
res = dataArray.toJSONString(); }
} catch(Exception e){ res = dataArray.toJSONString();
e.printStackTrace(); } catch(Exception e){
res = "获取数据失败"; e.printStackTrace();
} res = "获取数据失败";
return res; }
} return res;
}
/**
* 获取所有结算账户 /**
* @param request * 获取所有结算账户
* @return * @param request
*/ * @return
@GetMapping(value = "/getAccount") */
public BaseResponseInfo getAccount(HttpServletRequest request) { @GetMapping(value = "/getAccount")
BaseResponseInfo res = new BaseResponseInfo(); public BaseResponseInfo getAccount(HttpServletRequest request) {
Map<String, Object> map = new HashMap<String, Object>(); BaseResponseInfo res = new BaseResponseInfo();
try { Map<String, Object> map = new HashMap<String, Object>();
List<Account> accountList = accountService.getAccount(); try {
map.put("accountList", accountList); List<Account> accountList = accountService.getAccount();
res.code = 200; map.put("accountList", accountList);
res.data = map; res.code = 200;
} catch(Exception e){ res.data = map;
e.printStackTrace(); } catch(Exception e){
res.code = 500; e.printStackTrace();
res.data = "获取数据失败"; res.code = 500;
} res.data = "获取数据失败";
return res; }
} return res;
}
/**
* 账户流水信息 /**
* @param currentPage * 账户流水信息
* @param pageSize * @param currentPage
* @param accountId * @param pageSize
* @param initialAmount * @param accountId
* @param request * @param initialAmount
* @return * @param request
*/ * @return
@GetMapping(value = "/findAccountInOutList") */
public BaseResponseInfo findAccountInOutList(@RequestParam("currentPage") Integer currentPage, @GetMapping(value = "/findAccountInOutList")
@RequestParam("pageSize") Integer pageSize, public BaseResponseInfo findAccountInOutList(@RequestParam("currentPage") Integer currentPage,
@RequestParam("accountId") Long accountId, @RequestParam("pageSize") Integer pageSize,
@RequestParam("initialAmount") Double initialAmount, @RequestParam("accountId") Long accountId,
HttpServletRequest request) { @RequestParam("initialAmount") BigDecimal initialAmount,
BaseResponseInfo res = new BaseResponseInfo(); HttpServletRequest request) {
Map<String, Object> map = new HashMap<String, Object>(); BaseResponseInfo res = new BaseResponseInfo();
try { Map<String, Object> map = new HashMap<String, Object>();
List<AccountVo4InOutList> dataList = accountService.findAccountInOutList(accountId, (currentPage-1)*pageSize, pageSize); try {
int total = accountService.findAccountInOutListCount(accountId); List<AccountVo4InOutList> dataList = accountService.findAccountInOutList(accountId, (currentPage-1)*pageSize, pageSize);
map.put("total", total); int total = accountService.findAccountInOutListCount(accountId);
//存放数据json数组 map.put("total", total);
JSONArray dataArray = new JSONArray(); //存放数据json数组
if (null != dataList) { JSONArray dataArray = new JSONArray();
for (AccountVo4InOutList aEx : dataList) { if (null != dataList) {
String timeStr = aEx.getOperTime().toString(); for (AccountVo4InOutList aEx : dataList) {
Double balance = accountService.getAccountSum(accountId, timeStr, "date") + accountService.getAccountSumByHead(accountId, timeStr, "date") String timeStr = aEx.getOperTime().toString();
+ accountService.getAccountSumByDetail(accountId, timeStr, "date") + accountService.getManyAccountSum(accountId, timeStr, "date") + initialAmount; BigDecimal balance = accountService.getAccountSum(accountId, timeStr, "date").add(accountService.getAccountSumByHead(accountId, timeStr, "date"))
aEx.setBalance(balance); .add(accountService.getAccountSumByDetail(accountId, timeStr, "date")).add(accountService.getManyAccountSum(accountId, timeStr, "date")).add(initialAmount);
dataArray.add(aEx); aEx.setBalance(balance);
} dataArray.add(aEx);
} }
map.put("rows", dataArray); }
res.code = 200; map.put("rows", dataArray);
res.data = map; res.code = 200;
} catch(Exception e){ res.data = map;
e.printStackTrace(); } catch(Exception e){
res.code = 500; e.printStackTrace();
res.data = "获取数据失败"; res.code = 500;
} res.data = "获取数据失败";
return res; }
} return res;
}
@PostMapping(value = "/updateAmountIsDefault")
public String updateAmountIsDefault(@RequestParam("isDefault") Boolean isDefault, @PostMapping(value = "/updateAmountIsDefault")
@RequestParam("accountId") Long accountId, public String updateAmountIsDefault(@RequestParam("isDefault") Boolean isDefault,
HttpServletRequest request) { @RequestParam("accountId") Long accountId,
Map<String, Object> objectMap = new HashMap<String, Object>(); HttpServletRequest request) {
int res = accountService.updateAmountIsDefault(isDefault, accountId); Map<String, Object> objectMap = new HashMap<String, Object>();
if(res > 0) { int res = accountService.updateAmountIsDefault(isDefault, accountId);
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code); if(res > 0) {
} else { return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code); } else {
} return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
} }
}
}
}
...@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -12,6 +12,7 @@ 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 java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -69,7 +70,7 @@ public class AccountHeadController { ...@@ -69,7 +70,7 @@ public class AccountHeadController {
Map<String, Object> map = new HashMap<String, Object>(); Map<String, Object> map = new HashMap<String, Object>();
try { try {
JSONObject outer = new JSONObject(); JSONObject outer = new JSONObject();
Double sum = 0.0; BigDecimal sum = BigDecimal.ZERO;
String getS = supplierId.toString(); String getS = supplierId.toString();
int i = 1; int i = 1;
if (supType.equals("customer")) { //客户 if (supType.equals("customer")) { //客户
...@@ -78,10 +79,14 @@ public class AccountHeadController { ...@@ -78,10 +79,14 @@ public class AccountHeadController {
i = -1; 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.add((allMoney(getS, "付款", "合计",endTime).add(allMoney(getS, "付款", "实际",endTime))).multiply(new BigDecimal(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; sum = sum.subtract((allMoney(getS, "收款", "合计",endTime).add(allMoney(getS, "收款", "实际",endTime))).multiply(new BigDecimal(i)));
// sum = sum + (allMoney(getS, "收入", "合计",endTime) - allMoney(getS, "收入", "实际",endTime)) * i;
sum = sum.add((allMoney(getS, "收入", "合计",endTime).subtract(allMoney(getS, "收入", "实际",endTime))).multiply(new BigDecimal(i)));
// sum = sum - (allMoney(getS, "支出", "合计",endTime) - allMoney(getS, "支出", "实际",endTime)) * i;
sum = sum.subtract((allMoney(getS, "支出", "合计",endTime).subtract(allMoney(getS, "支出", "实际",endTime))).multiply(new BigDecimal(i)));
outer.put("getAllMoney", sum); outer.put("getAllMoney", sum);
map.put("rows", outer); map.put("rows", outer);
res.code = 200; res.code = 200;
...@@ -128,11 +133,11 @@ public class AccountHeadController { ...@@ -128,11 +133,11 @@ public class AccountHeadController {
* @param endTime * @param endTime
* @return * @return
*/ */
public Double allMoney(String getS, String type, String mode, String endTime) { public BigDecimal allMoney(String getS, String type, String mode, String endTime) {
Double allMoney = 0.0; BigDecimal allMoney = BigDecimal.ZERO;
try { try {
Integer supplierId = Integer.valueOf(getS); Integer supplierId = Integer.valueOf(getS);
Double sum = accountHeadService.findAllMoney(supplierId, type, mode, endTime); BigDecimal sum = accountHeadService.findAllMoney(supplierId, type, mode, endTime);
if(sum != null) { if(sum != null) {
allMoney = sum; allMoney = sum;
} }
...@@ -140,8 +145,8 @@ public class AccountHeadController { ...@@ -140,8 +145,8 @@ public class AccountHeadController {
e.printStackTrace(); e.printStackTrace();
} }
//返回正数,如果负数也转为正数 //返回正数,如果负数也转为正数
if (allMoney < 0) { if ((allMoney.compareTo(BigDecimal.ZERO))==-1) {
allMoney = -allMoney; allMoney = allMoney.abs();
} }
return allMoney; return allMoney;
} }
......
...@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*; ...@@ -15,6 +15,7 @@ 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 java.io.IOException; import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -86,8 +87,8 @@ public class AccountItemController { ...@@ -86,8 +87,8 @@ public class AccountItemController {
item.put("AccountName", ai.getAccountName()); item.put("AccountName", ai.getAccountName());
item.put("InOutItemId", ai.getInoutitemid()); item.put("InOutItemId", ai.getInoutitemid());
item.put("InOutItemName", ai.getInOutItemName()); item.put("InOutItemName", ai.getInOutItemName());
Double eachAmount = ai.getEachamount(); BigDecimal eachAmount = ai.getEachamount();
item.put("EachAmount", eachAmount < 0 ? 0 - eachAmount : eachAmount); item.put("EachAmount", (eachAmount.compareTo(BigDecimal.ZERO))==-1 ? BigDecimal.ZERO.subtract(eachAmount): eachAmount);
item.put("Remark", ai.getRemark()); item.put("Remark", ai.getRemark());
dataArray.add(item); dataArray.add(item);
} }
......
...@@ -15,6 +15,7 @@ import javax.annotation.Resource; ...@@ -15,6 +15,7 @@ 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.File;
import java.math.BigDecimal;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
...@@ -152,13 +153,13 @@ public class DepotItemController { ...@@ -152,13 +153,13 @@ public class DepotItemController {
if (null != list) { if (null != list) {
for (DepotItemVo4Material di : list) { for (DepotItemVo4Material di : list) {
JSONObject item = new JSONObject(); JSONObject item = new JSONObject();
double prevSum = sumNumber("入库", pid, materialId, monthTime, true) - sumNumber("出库", pid, materialId, monthTime, true); BigDecimal prevSum = sumNumber("入库", pid, materialId, monthTime, true).subtract(sumNumber("出库", pid, materialId, monthTime, true));
double InSum = sumNumber("入库", pid, materialId, monthTime, false); BigDecimal InSum = sumNumber("入库", pid, materialId, monthTime, false);
double OutSum = sumNumber("出库", pid, materialId, monthTime, false); BigDecimal OutSum = sumNumber("出库", pid, materialId, monthTime, false);
item.put("MaterialId", di.getMaterialid() == null ? "" : di.getMaterialid()); item.put("MaterialId", di.getMaterialid() == null ? "" : di.getMaterialid());
item.put("MaterialName", di.getMname()); item.put("MaterialName", di.getMname());
item.put("MaterialModel", di.getMmodel()); item.put("MaterialModel", di.getMmodel());
item.put("thisSum", prevSum + InSum - OutSum); item.put("thisSum", prevSum.add(InSum).subtract(OutSum));
dataArray.add(item); dataArray.add(item);
} }
} }
...@@ -425,12 +426,12 @@ public class DepotItemController { ...@@ -425,12 +426,12 @@ public class DepotItemController {
if (null != dataList) { if (null != dataList) {
for (DepotItemVo4WithInfoEx diEx : dataList) { for (DepotItemVo4WithInfoEx diEx : dataList) {
JSONObject item = new JSONObject(); JSONObject item = new JSONObject();
Double prevSum = sumNumber("入库", pid, diEx.getMId(), monthTime, true) - sumNumber("出库", pid, diEx.getMId(), monthTime, true); BigDecimal prevSum = sumNumber("入库", pid, diEx.getMId(), monthTime, true).subtract(sumNumber("出库", pid, diEx.getMId(), monthTime, true));
Double InSum = sumNumber("入库", pid, diEx.getMId(), monthTime, false); BigDecimal InSum = sumNumber("入库", pid, diEx.getMId(), monthTime, false);
Double OutSum = sumNumber("出库", pid, diEx.getMId(), monthTime, false); BigDecimal OutSum = sumNumber("出库", pid, diEx.getMId(), monthTime, false);
Double prevPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, true) - sumPrice("出库", pid, diEx.getMId(), monthTime, true); BigDecimal prevPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, true).subtract(sumPrice("出库", pid, diEx.getMId(), monthTime, true));
Double InPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, false); BigDecimal InPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, false);
Double OutPrice = sumPrice("出库", pid, diEx.getMId(), monthTime, false); BigDecimal OutPrice = sumPrice("出库", pid, diEx.getMId(), monthTime, false);
item.put("MaterialName", diEx.getMName()); item.put("MaterialName", diEx.getMName());
item.put("MaterialModel", diEx.getMColor()); item.put("MaterialModel", diEx.getMColor());
//扩展信息 //扩展信息
...@@ -438,21 +439,21 @@ public class DepotItemController { ...@@ -438,21 +439,21 @@ public class DepotItemController {
item.put("MaterialOther", materialOther); item.put("MaterialOther", materialOther);
item.put("MaterialColor", diEx.getMColor()); item.put("MaterialColor", diEx.getMColor());
item.put("MaterialUnit", diEx.getMaterialUnit()); item.put("MaterialUnit", diEx.getMaterialUnit());
Double unitPrice = 0.0; BigDecimal unitPrice = BigDecimal.ZERO;
if (prevSum + InSum - OutSum != 0.0) { if ((prevSum .add(InSum).subtract(OutSum)).compareTo(BigDecimal.ZERO)!= 0) {
unitPrice = (prevPrice + InPrice - OutPrice) / (prevSum + InSum - OutSum); unitPrice = (prevPrice.add(InPrice).subtract(OutPrice)).divide(prevSum.add(InSum).subtract(OutSum),2, BigDecimal.ROUND_HALF_UP);
/** /**
* 2019-01-15通过除法算出金额后,保留两位小数 * 2019-01-15通过除法算出金额后,保留两位小数
* */ * */
DecimalFormat df = new DecimalFormat("#.00"); DecimalFormat df = new DecimalFormat("#.00");
unitPrice= Double.parseDouble(df.format(unitPrice)); unitPrice= new BigDecimal(df.format(unitPrice));
} }
item.put("UnitPrice", unitPrice); item.put("UnitPrice", unitPrice);
item.put("prevSum", prevSum); item.put("prevSum", prevSum);
item.put("InSum", InSum); item.put("InSum", InSum);
item.put("OutSum", OutSum); item.put("OutSum", OutSum);
item.put("thisSum", prevSum + InSum - OutSum); item.put("thisSum", prevSum.add(InSum).subtract(OutSum));
item.put("thisAllPrice", prevPrice + InPrice - OutPrice); item.put("thisAllPrice", prevPrice.add(InPrice).subtract(OutPrice));
dataArray.add(item); dataArray.add(item);
} }
} }
...@@ -486,13 +487,13 @@ public class DepotItemController { ...@@ -486,13 +487,13 @@ public class DepotItemController {
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, null, null); List<DepotItemVo4WithInfoEx> dataList = depotItemService.findByAll(headIds, materialIds, null, null);
Double thisAllPrice = 0.0; BigDecimal thisAllPrice = BigDecimal.ZERO;
if (null != dataList) { if (null != dataList) {
for (DepotItemVo4WithInfoEx diEx : dataList) { for (DepotItemVo4WithInfoEx diEx : dataList) {
Double prevPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, true) - sumPrice("出库", pid, diEx.getMId(), monthTime, true); BigDecimal prevPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, true).subtract(sumPrice("出库", pid, diEx.getMId(), monthTime, true));
Double InPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, false); BigDecimal InPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, false);
Double OutPrice = sumPrice("出库", pid, diEx.getMId(), monthTime, false); BigDecimal OutPrice = sumPrice("出库", pid, diEx.getMId(), monthTime, false);
thisAllPrice = thisAllPrice + (prevPrice + InPrice - OutPrice); thisAllPrice = thisAllPrice .add(prevPrice.add(InPrice).subtract(OutPrice));
} }
} }
map.put("totalCount", thisAllPrice); map.put("totalCount", thisAllPrice);
...@@ -537,10 +538,10 @@ public class DepotItemController { ...@@ -537,10 +538,10 @@ public class DepotItemController {
if (null != dataList) { if (null != dataList) {
for (DepotItemVo4WithInfoEx diEx : dataList) { for (DepotItemVo4WithInfoEx diEx : dataList) {
JSONObject item = new JSONObject(); JSONObject item = new JSONObject();
Double InSum = sumNumberBuyOrSale("入库", "采购", diEx.getMId(), monthTime); BigDecimal InSum = sumNumberBuyOrSale("入库", "采购", diEx.getMId(), monthTime);
Double OutSum = sumNumberBuyOrSale("出库", "采购退货", diEx.getMId(), monthTime); BigDecimal OutSum = sumNumberBuyOrSale("出库", "采购退货", diEx.getMId(), monthTime);
Double InSumPrice = sumPriceBuyOrSale("入库", "采购", diEx.getMId(), monthTime); BigDecimal InSumPrice = sumPriceBuyOrSale("入库", "采购", diEx.getMId(), monthTime);
Double OutSumPrice = sumPriceBuyOrSale("出库", "采购退货", diEx.getMId(), monthTime); BigDecimal OutSumPrice = sumPriceBuyOrSale("出库", "采购退货", diEx.getMId(), monthTime);
item.put("MaterialName", diEx.getMName()); item.put("MaterialName", diEx.getMName());
item.put("MaterialModel", diEx.getMModel()); item.put("MaterialModel", diEx.getMModel());
//扩展信息 //扩展信息
...@@ -597,14 +598,14 @@ public class DepotItemController { ...@@ -597,14 +598,14 @@ public class DepotItemController {
if (null != dataList) { if (null != dataList) {
for (DepotItemVo4WithInfoEx diEx : dataList) { for (DepotItemVo4WithInfoEx diEx : dataList) {
JSONObject item = new JSONObject(); JSONObject item = new JSONObject();
Double OutSumRetail = sumNumberBuyOrSale("出库", "零售", diEx.getMId(), monthTime); BigDecimal OutSumRetail = sumNumberBuyOrSale("出库", "零售", diEx.getMId(), monthTime);
Double OutSum = sumNumberBuyOrSale("出库", "销售", diEx.getMId(), monthTime); BigDecimal OutSum = sumNumberBuyOrSale("出库", "销售", diEx.getMId(), monthTime);
Double InSumRetail = sumNumberBuyOrSale("入库", "零售退货", diEx.getMId(), monthTime); BigDecimal InSumRetail = sumNumberBuyOrSale("入库", "零售退货", diEx.getMId(), monthTime);
Double InSum = sumNumberBuyOrSale("入库", "销售退货", diEx.getMId(), monthTime); BigDecimal InSum = sumNumberBuyOrSale("入库", "销售退货", diEx.getMId(), monthTime);
Double OutSumRetailPrice = sumPriceBuyOrSale("出库", "零售", diEx.getMId(), monthTime); BigDecimal OutSumRetailPrice = sumPriceBuyOrSale("出库", "零售", diEx.getMId(), monthTime);
Double OutSumPrice = sumPriceBuyOrSale("出库", "销售", diEx.getMId(), monthTime); BigDecimal OutSumPrice = sumPriceBuyOrSale("出库", "销售", diEx.getMId(), monthTime);
Double InSumRetailPrice = sumPriceBuyOrSale("入库", "零售退货", diEx.getMId(), monthTime); BigDecimal InSumRetailPrice = sumPriceBuyOrSale("入库", "零售退货", diEx.getMId(), monthTime);
Double InSumPrice = sumPriceBuyOrSale("入库", "销售退货", diEx.getMId(), monthTime); BigDecimal InSumPrice = sumPriceBuyOrSale("入库", "销售退货", diEx.getMId(), monthTime);
item.put("MaterialName", diEx.getMName()); item.put("MaterialName", diEx.getMName());
item.put("MaterialModel", diEx.getMModel()); item.put("MaterialModel", diEx.getMModel());
//扩展信息 //扩展信息
...@@ -612,10 +613,10 @@ public class DepotItemController { ...@@ -612,10 +613,10 @@ public class DepotItemController {
item.put("MaterialOther", materialOther); item.put("MaterialOther", materialOther);
item.put("MaterialColor", diEx.getMColor()); item.put("MaterialColor", diEx.getMColor());
item.put("MaterialUnit", diEx.getMaterialUnit()); item.put("MaterialUnit", diEx.getMaterialUnit());
item.put("OutSum", OutSumRetail + OutSum); item.put("OutSum", OutSumRetail.add(OutSum));
item.put("InSum", InSumRetail + InSum); item.put("InSum", InSumRetail.add(InSum));
item.put("OutSumPrice", OutSumRetailPrice + OutSumPrice); item.put("OutSumPrice", OutSumRetailPrice.add(OutSumPrice));
item.put("InSumPrice", InSumRetailPrice + InSumPrice); item.put("InSumPrice", InSumRetailPrice.add(InSumPrice));
dataArray.add(item); dataArray.add(item);
} }
} }
...@@ -661,8 +662,8 @@ public class DepotItemController { ...@@ -661,8 +662,8 @@ public class DepotItemController {
if (null != dataList) { if (null != dataList) {
for (DepotItemVo4WithInfoEx diEx : dataList) { for (DepotItemVo4WithInfoEx diEx : dataList) {
JSONObject item = new JSONObject(); JSONObject item = new JSONObject();
Double InSum = sumNumberGift("礼品充值", pid, diEx.getMId(), "in"); BigDecimal InSum = sumNumberGift("礼品充值", pid, diEx.getMId(), "in");
Double OutSum = sumNumberGift("礼品销售", pid, diEx.getMId(), "out"); BigDecimal OutSum = sumNumberGift("礼品销售", pid, diEx.getMId(), "out");
item.put("MaterialName", diEx.getMName()); item.put("MaterialName", diEx.getMName());
item.put("MaterialModel", diEx.getMModel()); item.put("MaterialModel", diEx.getMModel());
//扩展信息 //扩展信息
...@@ -670,7 +671,7 @@ public class DepotItemController { ...@@ -670,7 +671,7 @@ public class DepotItemController {
item.put("MaterialOther", materialOther); item.put("MaterialOther", materialOther);
item.put("MaterialColor", diEx.getMColor()); item.put("MaterialColor", diEx.getMColor());
item.put("MaterialUnit", diEx.getMaterialUnit()); item.put("MaterialUnit", diEx.getMaterialUnit());
item.put("thisSum", InSum - OutSum); item.put("thisSum", InSum.subtract(OutSum));
dataArray.add(item); dataArray.add(item);
} }
} }
...@@ -718,23 +719,23 @@ public class DepotItemController { ...@@ -718,23 +719,23 @@ public class DepotItemController {
if (null != dataList) { if (null != dataList) {
for (DepotItemVo4WithInfoEx diEx : dataList) { for (DepotItemVo4WithInfoEx diEx : dataList) {
String[] objs = new String[9]; String[] objs = new String[9];
Double prevSum = sumNumber("入库", pid, diEx.getMId(), monthTime, true) - sumNumber("出库", pid, diEx.getMId(), monthTime, true); BigDecimal prevSum = sumNumber("入库", pid, diEx.getMId(), monthTime, true).subtract(sumNumber("出库", pid, diEx.getMId(), monthTime, true));
Double InSum = sumNumber("入库", pid, diEx.getMId(), monthTime, false); BigDecimal InSum = sumNumber("入库", pid, diEx.getMId(), monthTime, false);
Double OutSum = sumNumber("出库", pid, diEx.getMId(), monthTime, false); BigDecimal OutSum = sumNumber("出库", pid, diEx.getMId(), monthTime, false);
Double prevPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, true) - sumPrice("出库", pid, diEx.getMId(), monthTime, true); BigDecimal prevPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, true).subtract(sumPrice("出库", pid, diEx.getMId(), monthTime, true));
Double InPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, false); BigDecimal InPrice = sumPrice("入库", pid, diEx.getMId(), monthTime, false);
Double OutPrice = sumPrice("出库", pid, diEx.getMId(), monthTime, false); BigDecimal OutPrice = sumPrice("出库", pid, diEx.getMId(), monthTime, false);
Double unitPrice = 0.0; BigDecimal unitPrice = BigDecimal.ZERO;
if (prevSum + InSum - OutSum != 0.0) { if ((prevSum.add(InSum).subtract(OutSum)).compareTo(BigDecimal.ZERO) != 0) {
unitPrice = (prevPrice + InPrice - OutPrice) / (prevSum + InSum - OutSum); unitPrice = (prevPrice.add(InPrice).subtract(OutPrice)).divide(prevSum.add(InSum).subtract(OutSum),2, BigDecimal.ROUND_HALF_UP);
/** /**
* 2019-01-15通过除法算出金额后,保留两位小数 * 2019-01-15通过除法算出金额后,保留两位小数
* */ * */
DecimalFormat df = new DecimalFormat("#.00"); DecimalFormat df = new DecimalFormat("#.00");
unitPrice= Double.parseDouble(df.format(unitPrice)); unitPrice= new BigDecimal(df.format(unitPrice));
} }
Double thisSum = prevSum + InSum - OutSum; BigDecimal thisSum = prevSum.add(InSum).subtract(OutSum);
Double thisAllPrice = prevPrice + InPrice - OutPrice; BigDecimal thisAllPrice = prevPrice.add(InPrice).subtract(OutPrice);
objs[0] = diEx.getMName().toString(); objs[0] = diEx.getMName().toString();
objs[1] = diEx.getMModel().toString(); objs[1] = diEx.getMModel().toString();
objs[2] = diEx.getMaterialUnit().toString(); objs[2] = diEx.getMaterialUnit().toString();
...@@ -770,10 +771,10 @@ public class DepotItemController { ...@@ -770,10 +771,10 @@ public class DepotItemController {
* @param isPrev * @param isPrev
* @return * @return
*/ */
public Double sumNumber(String type, Integer ProjectId, Long MId, String MonthTime, Boolean isPrev) { public BigDecimal sumNumber(String type, Integer ProjectId, Long MId, String MonthTime, Boolean isPrev) {
Double sumNumber = 0.0; BigDecimal sumNumber = BigDecimal.ZERO;
try { try {
Double sum = depotItemService.findByType(type, ProjectId, MId, MonthTime, isPrev); BigDecimal sum = depotItemService.findByType(type, ProjectId, MId, MonthTime, isPrev);
if(sum != null) { if(sum != null) {
sumNumber = sum; sumNumber = sum;
} }
...@@ -792,10 +793,10 @@ public class DepotItemController { ...@@ -792,10 +793,10 @@ public class DepotItemController {
* @param isPrev * @param isPrev
* @return * @return
*/ */
public Double sumPrice(String type, Integer ProjectId, Long MId, String MonthTime, Boolean isPrev) { public BigDecimal sumPrice(String type, Integer ProjectId, Long MId, String MonthTime, Boolean isPrev) {
Double sumPrice = 0.0; BigDecimal sumPrice = BigDecimal.ZERO;
try { try {
Double sum = depotItemService.findPriceByType(type, ProjectId, MId, MonthTime, isPrev); BigDecimal sum = depotItemService.findPriceByType(type, ProjectId, MId, MonthTime, isPrev);
if(sum != null) { if(sum != null) {
sumPrice = sum; sumPrice = sum;
} }
...@@ -805,11 +806,11 @@ public class DepotItemController { ...@@ -805,11 +806,11 @@ public class DepotItemController {
return sumPrice; return sumPrice;
} }
public Double sumNumberBuyOrSale(String type, String subType, Long MId, String MonthTime) { public BigDecimal sumNumberBuyOrSale(String type, String subType, Long MId, String MonthTime) {
Double sumNumber = 0.0; BigDecimal sumNumber = BigDecimal.ZERO;
String sumType = "Number"; String sumType = "Number";
try { try {
Double sum = depotItemService.buyOrSale(type, subType, MId, MonthTime, sumType); BigDecimal sum = depotItemService.buyOrSale(type, subType, MId, MonthTime, sumType);
if(sum != null) { if(sum != null) {
sumNumber = sum; sumNumber = sum;
} }
...@@ -819,11 +820,11 @@ public class DepotItemController { ...@@ -819,11 +820,11 @@ public class DepotItemController {
return sumNumber; return sumNumber;
} }
public Double sumPriceBuyOrSale(String type, String subType, Long MId, String MonthTime) { public BigDecimal sumPriceBuyOrSale(String type, String subType, Long MId, String MonthTime) {
Double sumPrice = 0.0; BigDecimal sumPrice = BigDecimal.ZERO;
String sumType = "Price"; String sumType = "Price";
try { try {
Double sum = depotItemService.buyOrSale(type, subType, MId, MonthTime, sumType); BigDecimal sum = depotItemService.buyOrSale(type, subType, MId, MonthTime, sumType);
if(sum != null) { if(sum != null) {
sumPrice = sum; sumPrice = sum;
} }
...@@ -841,12 +842,12 @@ public class DepotItemController { ...@@ -841,12 +842,12 @@ public class DepotItemController {
* @param type * @param type
* @return * @return
*/ */
public Double sumNumberGift(String subType, Integer ProjectId, Long MId, String type) { public BigDecimal sumNumberGift(String subType, Integer ProjectId, Long MId, String type) {
Double sumNumber = 0.0; BigDecimal sumNumber = BigDecimal.ZERO;
String allNumber = ""; String allNumber = "";
try { try {
if (ProjectId != null) { if (ProjectId != null) {
Double sum = depotItemService.findGiftByType(subType, ProjectId, MId, type); BigDecimal sum = depotItemService.findGiftByType(subType, ProjectId, MId, type);
if(sum != null) { if(sum != null) {
sumNumber = sum; sumNumber = sum;
} }
......
...@@ -18,6 +18,7 @@ import javax.annotation.Resource; ...@@ -18,6 +18,7 @@ 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.File;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -270,19 +271,19 @@ public class MaterialController { ...@@ -270,19 +271,19 @@ public class MaterialController {
for (int i = 1; i < src.getRows(); i++) { for (int i = 1; i < src.getRows(); i++) {
Material m = new Material(); Material m = new Material();
m.setName(ExcelUtils.getContent(src, i, 0)); m.setName(ExcelUtils.getContent(src, i, 0));
m.setCategoryid(1l); //根目录 m.setCategoryid(1L); //根目录
m.setModel(ExcelUtils.getContent(src, i, 2)); m.setModel(ExcelUtils.getContent(src, i, 2));
String safetyStock = ExcelUtils.getContent(src, i, 3); String safetyStock = ExcelUtils.getContent(src, i, 3);
m.setSafetystock(parseDoubleEx(safetyStock)); m.setSafetystock(parseBigDecimalEx(safetyStock));
m.setUnit(ExcelUtils.getContent(src, i, 4)); m.setUnit(ExcelUtils.getContent(src, i, 4));
String retailprice = ExcelUtils.getContent(src, i, 5); String retailprice = ExcelUtils.getContent(src, i, 5);
m.setRetailprice(parseDoubleEx(retailprice)); m.setRetailprice(parseBigDecimalEx(retailprice));
String lowPrice = ExcelUtils.getContent(src, i, 6); String lowPrice = ExcelUtils.getContent(src, i, 6);
m.setLowprice(parseDoubleEx(lowPrice)); m.setLowprice(parseBigDecimalEx(lowPrice));
String presetpriceone = ExcelUtils.getContent(src, i, 7); String presetpriceone = ExcelUtils.getContent(src, i, 7);
m.setPresetpriceone(parseDoubleEx(presetpriceone)); m.setPresetpriceone(parseBigDecimalEx(presetpriceone));
String presetpricetwo = ExcelUtils.getContent(src, i, 8); String presetpricetwo = ExcelUtils.getContent(src, i, 8);
m.setPresetpricetwo(parseDoubleEx(presetpricetwo)); m.setPresetpricetwo(parseBigDecimalEx(presetpricetwo));
m.setRemark(ExcelUtils.getContent(src, i, 9)); m.setRemark(ExcelUtils.getContent(src, i, 9));
String enabled = ExcelUtils.getContent(src, i, 10); String enabled = ExcelUtils.getContent(src, i, 10);
m.setEnabled(enabled.equals("启用")? true: false); m.setEnabled(enabled.equals("启用")? true: false);
...@@ -299,9 +300,9 @@ public class MaterialController { ...@@ -299,9 +300,9 @@ public class MaterialController {
response.sendRedirect("../pages/materials/material.html"); response.sendRedirect("../pages/materials/material.html");
} }
public Double parseDoubleEx(String str){ public BigDecimal parseBigDecimalEx(String str){
if(!StringUtil.isEmpty(str)) { if(!StringUtil.isEmpty(str)) {
return Double.parseDouble(str); return new BigDecimal(str);
} else { } else {
return null; return null;
} }
......
...@@ -18,6 +18,7 @@ import javax.annotation.Resource; ...@@ -18,6 +18,7 @@ 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.File;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -48,7 +49,7 @@ public class SupplierController { ...@@ -48,7 +49,7 @@ public class SupplierController {
*/ */
@PostMapping(value = "/updateAdvanceIn") @PostMapping(value = "/updateAdvanceIn")
public String updateAdvanceIn(@RequestParam("supplierId") Long supplierId, public String updateAdvanceIn(@RequestParam("supplierId") Long supplierId,
@RequestParam("advanceIn") Double advanceIn, @RequestParam("advanceIn") BigDecimal advanceIn,
HttpServletRequest request) { HttpServletRequest request) {
Map<String, Object> objectMap = new HashMap<String, Object>(); Map<String, Object> objectMap = new HashMap<String, Object>();
int res = supplierService.updateAdvanceIn(supplierId, advanceIn); int res = supplierService.updateAdvanceIn(supplierId, advanceIn);
...@@ -396,9 +397,9 @@ public class SupplierController { ...@@ -396,9 +397,9 @@ public class SupplierController {
s.setContacts(ExcelUtils.getContent(src, i, 2)); s.setContacts(ExcelUtils.getContent(src, i, 2));
s.setPhonenum(ExcelUtils.getContent(src, i, 3)); s.setPhonenum(ExcelUtils.getContent(src, i, 3));
s.setEmail(ExcelUtils.getContent(src, i, 4)); s.setEmail(ExcelUtils.getContent(src, i, 4));
s.setAdvancein(parseDoubleEx(ExcelUtils.getContent(src, i, 5))); s.setAdvancein(parseBigDecimalEx(ExcelUtils.getContent(src, i, 5)));
s.setBeginneedget(parseDoubleEx(ExcelUtils.getContent(src, i, 6))); s.setBeginneedget(parseBigDecimalEx(ExcelUtils.getContent(src, i, 6)));
s.setBeginneedpay(parseDoubleEx(ExcelUtils.getContent(src, i, 7))); s.setBeginneedpay(parseBigDecimalEx(ExcelUtils.getContent(src, i, 7)));
s.setDescription(ExcelUtils.getContent(src, i, 8)); s.setDescription(ExcelUtils.getContent(src, i, 8));
s.setFax(ExcelUtils.getContent(src, i, 9)); s.setFax(ExcelUtils.getContent(src, i, 9));
s.setTelephone(ExcelUtils.getContent(src, i, 10)); s.setTelephone(ExcelUtils.getContent(src, i, 10));
...@@ -406,7 +407,7 @@ public class SupplierController { ...@@ -406,7 +407,7 @@ public class SupplierController {
s.setTaxnum(ExcelUtils.getContent(src, i, 12)); s.setTaxnum(ExcelUtils.getContent(src, i, 12));
s.setBankname(ExcelUtils.getContent(src, i, 13)); s.setBankname(ExcelUtils.getContent(src, i, 13));
s.setAccountnumber(ExcelUtils.getContent(src, i, 14)); s.setAccountnumber(ExcelUtils.getContent(src, i, 14));
s.setTaxrate(parseDoubleEx(ExcelUtils.getContent(src, i, 15))); s.setTaxrate(parseBigDecimalEx(ExcelUtils.getContent(src, i, 15)));
String enabled = ExcelUtils.getContent(src, i, 16); String enabled = ExcelUtils.getContent(src, i, 16);
s.setEnabled(enabled.equals("启用")? true: false); s.setEnabled(enabled.equals("启用")? true: false);
s.setIsystem(Byte.parseByte("1")); s.setIsystem(Byte.parseByte("1"));
...@@ -423,9 +424,9 @@ public class SupplierController { ...@@ -423,9 +424,9 @@ public class SupplierController {
return null; return null;
} }
public Double parseDoubleEx(String str){ public BigDecimal parseBigDecimalEx(String str){
if(!StringUtil.isEmpty(str)) { if(!StringUtil.isEmpty(str)) {
return Double.parseDouble(str); return new BigDecimal(str);
} else { } else {
return null; return null;
} }
......
package com.jsh.erp.datasource.entities; package com.jsh.erp.datasource.entities;
public class Account { import java.math.BigDecimal;
/**
* This field was generated by MyBatis Generator. public class Account {
* This field corresponds to the database column jsh_account.Id /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_account.Id
*/ *
private Long id; * @mbggenerated
*/
/** private Long id;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.Name /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_account.Name
*/ *
private String name; * @mbggenerated
*/
/** private String name;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.SerialNo /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_account.SerialNo
*/ *
private String serialno; * @mbggenerated
*/
/** private String serialno;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.InitialAmount /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_account.InitialAmount
*/ *
private Double initialamount; * @mbggenerated
*/
/** private BigDecimal initialamount;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.CurrentAmount /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_account.CurrentAmount
*/ *
private Double currentamount; * @mbggenerated
*/
/** private BigDecimal currentamount;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.Remark /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_account.Remark
*/ *
private String remark; * @mbggenerated
*/
/** private String remark;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_account.IsDefault /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_account.IsDefault
*/ *
private Boolean isdefault; * @mbggenerated
*/
/** private Boolean isdefault;
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_account.Id /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_account.Id * This method returns the value of the database column jsh_account.Id
* *
* @mbggenerated * @return the value of jsh_account.Id
*/ *
public Long getId() { * @mbggenerated
return id; */
} public Long getId() {
return id;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.Id /**
* * This method was generated by MyBatis Generator.
* @param id the value for jsh_account.Id * This method sets the value of the database column jsh_account.Id
* *
* @mbggenerated * @param id the value for jsh_account.Id
*/ *
public void setId(Long id) { * @mbggenerated
this.id = id; */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_account.Name * This method returns the value of the database column jsh_account.Name
* *
* @mbggenerated * @return the value of jsh_account.Name
*/ *
public String getName() { * @mbggenerated
return name; */
} public String getName() {
return name;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.Name /**
* * This method was generated by MyBatis Generator.
* @param name the value for jsh_account.Name * This method sets the value of the database column jsh_account.Name
* *
* @mbggenerated * @param name the value for jsh_account.Name
*/ *
public void setName(String name) { * @mbggenerated
this.name = name == null ? null : name.trim(); */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_account.SerialNo * This method returns the value of the database column jsh_account.SerialNo
* *
* @mbggenerated * @return the value of jsh_account.SerialNo
*/ *
public String getSerialno() { * @mbggenerated
return serialno; */
} public String getSerialno() {
return serialno;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.SerialNo /**
* * This method was generated by MyBatis Generator.
* @param serialno the value for jsh_account.SerialNo * This method sets the value of the database column jsh_account.SerialNo
* *
* @mbggenerated * @param serialno the value for jsh_account.SerialNo
*/ *
public void setSerialno(String serialno) { * @mbggenerated
this.serialno = serialno == null ? null : serialno.trim(); */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_account.InitialAmount * This method returns the value of the database column jsh_account.InitialAmount
* *
* @mbggenerated * @return the value of jsh_account.InitialAmount
*/ *
public Double getInitialamount() { * @mbggenerated
return initialamount; */
} public BigDecimal getInitialamount() {
return initialamount;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.InitialAmount /**
* * This method was generated by MyBatis Generator.
* @param initialamount the value for jsh_account.InitialAmount * This method sets the value of the database column jsh_account.InitialAmount
* *
* @mbggenerated * @param initialamount the value for jsh_account.InitialAmount
*/ *
public void setInitialamount(Double initialamount) { * @mbggenerated
this.initialamount = initialamount; */
} public void setInitialamount(BigDecimal initialamount) {
this.initialamount = initialamount;
/** }
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_account.CurrentAmount /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_account.CurrentAmount * This method returns the value of the database column jsh_account.CurrentAmount
* *
* @mbggenerated * @return the value of jsh_account.CurrentAmount
*/ *
public Double getCurrentamount() { * @mbggenerated
return currentamount; */
} public BigDecimal getCurrentamount() {
return currentamount;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.CurrentAmount /**
* * This method was generated by MyBatis Generator.
* @param currentamount the value for jsh_account.CurrentAmount * This method sets the value of the database column jsh_account.CurrentAmount
* *
* @mbggenerated * @param currentamount the value for jsh_account.CurrentAmount
*/ *
public void setCurrentamount(Double currentamount) { * @mbggenerated
this.currentamount = currentamount; */
} public void setCurrentamount(BigDecimal currentamount) {
this.currentamount = currentamount;
/** }
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_account.Remark /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_account.Remark * This method returns the value of the database column jsh_account.Remark
* *
* @mbggenerated * @return the value of jsh_account.Remark
*/ *
public String getRemark() { * @mbggenerated
return remark; */
} public String getRemark() {
return remark;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.Remark /**
* * This method was generated by MyBatis Generator.
* @param remark the value for jsh_account.Remark * This method sets the value of the database column jsh_account.Remark
* *
* @mbggenerated * @param remark the value for jsh_account.Remark
*/ *
public void setRemark(String remark) { * @mbggenerated
this.remark = remark == null ? null : remark.trim(); */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_account.IsDefault * This method returns the value of the database column jsh_account.IsDefault
* *
* @mbggenerated * @return the value of jsh_account.IsDefault
*/ *
public Boolean getIsdefault() { * @mbggenerated
return isdefault; */
} public Boolean getIsdefault() {
return isdefault;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_account.IsDefault /**
* * This method was generated by MyBatis Generator.
* @param isdefault the value for jsh_account.IsDefault * This method sets the value of the database column jsh_account.IsDefault
* *
* @mbggenerated * @param isdefault the value for jsh_account.IsDefault
*/ *
public void setIsdefault(Boolean isdefault) { * @mbggenerated
this.isdefault = isdefault; */
} public void setIsdefault(Boolean isdefault) {
this.isdefault = isdefault;
}
} }
\ No newline at end of file
package com.jsh.erp.datasource.entities; package com.jsh.erp.datasource.entities;
import java.util.Date; import java.math.BigDecimal;
import java.util.Date;
public class AccountHead {
/** public class AccountHead {
* This field was generated by MyBatis Generator. /**
* This field corresponds to the database column jsh_accounthead.Id * This field was generated by MyBatis Generator.
* * 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 corresponds to the database column jsh_accounthead.Type * This field was generated by MyBatis Generator.
* * 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 corresponds to the database column jsh_accounthead.OrganId * This field was generated by MyBatis Generator.
* * 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 corresponds to the database column jsh_accounthead.HandsPersonId * This field was generated by MyBatis Generator.
* * 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 corresponds to the database column jsh_accounthead.ChangeAmount * This field was generated by MyBatis Generator.
* * This field corresponds to the database column jsh_accounthead.ChangeAmount
* @mbggenerated *
*/ * @mbggenerated
private Double changeamount; */
private BigDecimal changeamount;
/**
* This field was generated by MyBatis Generator. /**
* This field corresponds to the database column jsh_accounthead.TotalPrice * This field was generated by MyBatis Generator.
* * This field corresponds to the database column jsh_accounthead.TotalPrice
* @mbggenerated *
*/ * @mbggenerated
private Double totalprice; */
private BigDecimal totalprice;
/**
* This field was generated by MyBatis Generator. /**
* This field corresponds to the database column jsh_accounthead.AccountId * This field was generated by MyBatis Generator.
* * 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 corresponds to the database column jsh_accounthead.BillNo * This field was generated by MyBatis Generator.
* * 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 corresponds to the database column jsh_accounthead.BillTime * This field was generated by MyBatis Generator.
* * 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 corresponds to the database column jsh_accounthead.Remark * This field was generated by MyBatis Generator.
* * 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 method returns the value of the database column jsh_accounthead.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 *
* * @return the value of jsh_accounthead.Id
* @mbggenerated *
*/ * @mbggenerated
public Long getId() { */
return id; public Long getId() {
} return id;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param id the value for jsh_accounthead.Id
* @mbggenerated *
*/ * @mbggenerated
public void setId(Long id) { */
this.id = id; 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 * 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 *
* * @return the value of jsh_accounthead.Type
* @mbggenerated *
*/ * @mbggenerated
public String getType() { */
return type; public String getType() {
} return type;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param type the value for jsh_accounthead.Type
* @mbggenerated *
*/ * @mbggenerated
public void setType(String type) { */
this.type = type == null ? null : type.trim(); 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 * 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 *
* * @return the value of jsh_accounthead.OrganId
* @mbggenerated *
*/ * @mbggenerated
public Long getOrganid() { */
return organid; public Long getOrganid() {
} return organid;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param organid the value for jsh_accounthead.OrganId
* @mbggenerated *
*/ * @mbggenerated
public void setOrganid(Long organid) { */
this.organid = organid; 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 * 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 *
* * @return the value of jsh_accounthead.HandsPersonId
* @mbggenerated *
*/ * @mbggenerated
public Long getHandspersonid() { */
return handspersonid; public Long getHandspersonid() {
} return handspersonid;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param handspersonid the value for jsh_accounthead.HandsPersonId
* @mbggenerated *
*/ * @mbggenerated
public void setHandspersonid(Long handspersonid) { */
this.handspersonid = handspersonid; 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 * 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 *
* * @return the value of jsh_accounthead.ChangeAmount
* @mbggenerated *
*/ * @mbggenerated
public Double getChangeamount() { */
return changeamount; public BigDecimal getChangeamount() {
} return changeamount;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param changeamount the value for jsh_accounthead.ChangeAmount
* @mbggenerated *
*/ * @mbggenerated
public void setChangeamount(Double changeamount) { */
this.changeamount = changeamount; public void setChangeamount(BigDecimal changeamount) {
} this.changeamount = changeamount;
}
/**
* This method was generated by MyBatis Generator. /**
* This method returns the value of the database column jsh_accounthead.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 *
* * @return the value of jsh_accounthead.TotalPrice
* @mbggenerated *
*/ * @mbggenerated
public Double getTotalprice() { */
return totalprice; public BigDecimal getTotalprice() {
} return totalprice;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param totalprice the value for jsh_accounthead.TotalPrice
* @mbggenerated *
*/ * @mbggenerated
public void setTotalprice(Double totalprice) { */
this.totalprice = totalprice; public void setTotalprice(BigDecimal totalprice) {
} this.totalprice = totalprice;
}
/**
* This method was generated by MyBatis Generator. /**
* This method returns the value of the database column jsh_accounthead.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 *
* * @return the value of jsh_accounthead.AccountId
* @mbggenerated *
*/ * @mbggenerated
public Long getAccountid() { */
return accountid; public Long getAccountid() {
} return accountid;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param accountid the value for jsh_accounthead.AccountId
* @mbggenerated *
*/ * @mbggenerated
public void setAccountid(Long accountid) { */
this.accountid = accountid; 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 * 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 *
* * @return the value of jsh_accounthead.BillNo
* @mbggenerated *
*/ * @mbggenerated
public String getBillno() { */
return billno; public String getBillno() {
} return billno;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param billno the value for jsh_accounthead.BillNo
* @mbggenerated *
*/ * @mbggenerated
public void setBillno(String billno) { */
this.billno = billno == null ? null : billno.trim(); 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 * 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 *
* * @return the value of jsh_accounthead.BillTime
* @mbggenerated *
*/ * @mbggenerated
public Date getBilltime() { */
return billtime; public Date getBilltime() {
} return billtime;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param billtime the value for jsh_accounthead.BillTime
* @mbggenerated *
*/ * @mbggenerated
public void setBilltime(Date billtime) { */
this.billtime = billtime; 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 * 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 *
* * @return the value of jsh_accounthead.Remark
* @mbggenerated *
*/ * @mbggenerated
public String getRemark() { */
return remark; public String getRemark() {
} return remark;
}
/**
* This method was generated by MyBatis Generator. /**
* This method sets the value of the database column jsh_accounthead.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 *
* * @param remark the value for jsh_accounthead.Remark
* @mbggenerated *
*/ * @mbggenerated
public void setRemark(String remark) { */
this.remark = remark == null ? null : remark.trim(); public void setRemark(String remark) {
} this.remark = remark == null ? null : remark.trim();
}
} }
\ No newline at end of file
package com.jsh.erp.datasource.entities; package com.jsh.erp.datasource.entities;
import java.util.Date; import java.math.BigDecimal;
import java.util.Date;
public class AccountHeadVo4ListEx {
public class AccountHeadVo4ListEx {
private Long id;
private Long id;
private String type;
private String type;
private Long organid;
private Long organid;
private Long handspersonid;
private Long handspersonid;
private Double changeamount;
private BigDecimal changeamount;
private Double totalprice;
private BigDecimal totalprice;
private Long accountid;
private Long accountid;
private String billno;
private String billno;
private Date billtime;
private Date billtime;
private String remark;
private String remark;
private String organname;
private String organname;
private String handspersonname;
private String handspersonname;
private String accountname;
private String accountname;
public Long getId() {
return id; public Long getId() {
} return id;
}
public void setId(Long id) {
this.id = id; public void setId(Long id) {
} this.id = id;
}
public String getType() {
return type; public String getType() {
} return type;
}
public void setType(String type) {
this.type = type; public void setType(String type) {
} this.type = type;
}
public Long getOrganid() {
return organid; public Long getOrganid() {
} return organid;
}
public void setOrganid(Long organid) {
this.organid = organid; public void setOrganid(Long organid) {
} this.organid = organid;
}
public Long getHandspersonid() {
return handspersonid; public Long getHandspersonid() {
} return handspersonid;
}
public void setHandspersonid(Long handspersonid) {
this.handspersonid = handspersonid; public void setHandspersonid(Long handspersonid) {
} this.handspersonid = handspersonid;
}
public Double getChangeamount() {
return changeamount; public BigDecimal getChangeamount() {
} return changeamount;
}
public void setChangeamount(Double changeamount) {
this.changeamount = changeamount; public void setChangeamount(BigDecimal changeamount) {
} this.changeamount = changeamount;
}
public Double getTotalprice() {
return totalprice; public BigDecimal getTotalprice() {
} return totalprice;
}
public void setTotalprice(Double totalprice) {
this.totalprice = totalprice; public void setTotalprice(BigDecimal totalprice) {
} this.totalprice = totalprice;
}
public Long getAccountid() {
return accountid; public Long getAccountid() {
} return accountid;
}
public void setAccountid(Long accountid) {
this.accountid = accountid; public void setAccountid(Long accountid) {
} this.accountid = accountid;
}
public String getBillno() {
return billno; public String getBillno() {
} return billno;
}
public void setBillno(String billno) {
this.billno = billno; public void setBillno(String billno) {
} this.billno = billno;
}
public Date getBilltime() {
return billtime; public Date getBilltime() {
} return billtime;
}
public void setBilltime(Date billtime) {
this.billtime = billtime; public void setBilltime(Date billtime) {
} this.billtime = billtime;
}
public String getRemark() {
return remark; public String getRemark() {
} return remark;
}
public void setRemark(String remark) {
this.remark = remark; public void setRemark(String remark) {
} this.remark = remark;
}
public String getOrganname() {
return organname; public String getOrganname() {
} return organname;
}
public void setOrganname(String organname) {
this.organname = organname; public void setOrganname(String organname) {
} this.organname = organname;
}
public String getHandspersonname() {
return handspersonname; public String getHandspersonname() {
} return handspersonname;
}
public void setHandspersonname(String handspersonname) {
this.handspersonname = handspersonname; public void setHandspersonname(String handspersonname) {
} this.handspersonname = handspersonname;
}
public String getAccountname() {
return accountname; public String getAccountname() {
} return accountname;
}
public void setAccountname(String accountname) {
this.accountname = accountname; public void setAccountname(String accountname) {
} this.accountname = accountname;
}
} }
\ No newline at end of file
package com.jsh.erp.datasource.entities; package com.jsh.erp.datasource.entities;
public class AccountItem { import java.math.BigDecimal;
/**
* This field was generated by MyBatis Generator. public class AccountItem {
* This field corresponds to the database column jsh_accountitem.Id /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_accountitem.Id
*/ *
private Long id; * @mbggenerated
*/
/** private Long id;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.HeaderId /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_accountitem.HeaderId
*/ *
private Long headerid; * @mbggenerated
*/
/** private Long headerid;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.AccountId /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_accountitem.AccountId
*/ *
private Long accountid; * @mbggenerated
*/
/** private Long accountid;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.InOutItemId /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_accountitem.InOutItemId
*/ *
private Long inoutitemid; * @mbggenerated
*/
/** private Long inoutitemid;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.EachAmount /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_accountitem.EachAmount
*/ *
private Double eachamount; * @mbggenerated
*/
/** private BigDecimal eachamount;
* This field was generated by MyBatis Generator.
* This field corresponds to the database column jsh_accountitem.Remark /**
* * This field was generated by MyBatis Generator.
* @mbggenerated * This field corresponds to the database column jsh_accountitem.Remark
*/ *
private String remark; * @mbggenerated
*/
/** private String remark;
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.Id /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_accountitem.Id * This method returns the value of the database column jsh_accountitem.Id
* *
* @mbggenerated * @return the value of jsh_accountitem.Id
*/ *
public Long getId() { * @mbggenerated
return id; */
} public Long getId() {
return id;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.Id /**
* * This method was generated by MyBatis Generator.
* @param id the value for jsh_accountitem.Id * This method sets the value of the database column jsh_accountitem.Id
* *
* @mbggenerated * @param id the value for jsh_accountitem.Id
*/ *
public void setId(Long id) { * @mbggenerated
this.id = id; */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_accountitem.HeaderId * This method returns the value of the database column jsh_accountitem.HeaderId
* *
* @mbggenerated * @return the value of jsh_accountitem.HeaderId
*/ *
public Long getHeaderid() { * @mbggenerated
return headerid; */
} public Long getHeaderid() {
return headerid;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.HeaderId /**
* * This method was generated by MyBatis Generator.
* @param headerid the value for jsh_accountitem.HeaderId * This method sets the value of the database column jsh_accountitem.HeaderId
* *
* @mbggenerated * @param headerid the value for jsh_accountitem.HeaderId
*/ *
public void setHeaderid(Long headerid) { * @mbggenerated
this.headerid = headerid; */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_accountitem.AccountId * This method returns the value of the database column jsh_accountitem.AccountId
* *
* @mbggenerated * @return the value of jsh_accountitem.AccountId
*/ *
public Long getAccountid() { * @mbggenerated
return accountid; */
} public Long getAccountid() {
return accountid;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.AccountId /**
* * This method was generated by MyBatis Generator.
* @param accountid the value for jsh_accountitem.AccountId * This method sets the value of the database column jsh_accountitem.AccountId
* *
* @mbggenerated * @param accountid the value for jsh_accountitem.AccountId
*/ *
public void setAccountid(Long accountid) { * @mbggenerated
this.accountid = accountid; */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_accountitem.InOutItemId * This method returns the value of the database column jsh_accountitem.InOutItemId
* *
* @mbggenerated * @return the value of jsh_accountitem.InOutItemId
*/ *
public Long getInoutitemid() { * @mbggenerated
return inoutitemid; */
} public Long getInoutitemid() {
return inoutitemid;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.InOutItemId /**
* * This method was generated by MyBatis Generator.
* @param inoutitemid the value for jsh_accountitem.InOutItemId * This method sets the value of the database column jsh_accountitem.InOutItemId
* *
* @mbggenerated * @param inoutitemid the value for jsh_accountitem.InOutItemId
*/ *
public void setInoutitemid(Long inoutitemid) { * @mbggenerated
this.inoutitemid = inoutitemid; */
} 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 /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_accountitem.EachAmount * This method returns the value of the database column jsh_accountitem.EachAmount
* *
* @mbggenerated * @return the value of jsh_accountitem.EachAmount
*/ *
public Double getEachamount() { * @mbggenerated
return eachamount; */
} public BigDecimal getEachamount() {
return eachamount;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.EachAmount /**
* * This method was generated by MyBatis Generator.
* @param eachamount the value for jsh_accountitem.EachAmount * This method sets the value of the database column jsh_accountitem.EachAmount
* *
* @mbggenerated * @param eachamount the value for jsh_accountitem.EachAmount
*/ *
public void setEachamount(Double eachamount) { * @mbggenerated
this.eachamount = eachamount; */
} public void setEachamount(BigDecimal eachamount) {
this.eachamount = eachamount;
/** }
* This method was generated by MyBatis Generator.
* This method returns the value of the database column jsh_accountitem.Remark /**
* * This method was generated by MyBatis Generator.
* @return the value of jsh_accountitem.Remark * This method returns the value of the database column jsh_accountitem.Remark
* *
* @mbggenerated * @return the value of jsh_accountitem.Remark
*/ *
public String getRemark() { * @mbggenerated
return remark; */
} public String getRemark() {
return remark;
/** }
* This method was generated by MyBatis Generator.
* This method sets the value of the database column jsh_accountitem.Remark /**
* * This method was generated by MyBatis Generator.
* @param remark the value for jsh_accountitem.Remark * This method sets the value of the database column jsh_accountitem.Remark
* *
* @mbggenerated * @param remark the value for jsh_accountitem.Remark
*/ *
public void setRemark(String remark) { * @mbggenerated
this.remark = remark == null ? null : remark.trim(); */
} public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
} }
\ No newline at end of file
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