将系统参数表的金额审核启用标记字段改为强审核标记字段

This commit is contained in:
季圣华
2023-03-17 23:05:03 +08:00
parent 234ac15087
commit e9098efcd2
16 changed files with 162 additions and 276 deletions

View File

@@ -10,7 +10,7 @@ Target Server Type : MYSQL
Target Server Version : 50704 Target Server Version : 50704
File Encoding : 65001 File Encoding : 65001
Date: 2023-03-17 19:37:08 Date: 2023-03-17 22:17:41
*/ */
SET FOREIGN_KEY_CHECKS=0; SET FOREIGN_KEY_CHECKS=0;
@@ -852,8 +852,7 @@ CREATE TABLE `jsh_system_config` (
`purchase_by_sale_flag` varchar(1) DEFAULT '0' COMMENT '以销定购启用标记0未启用1启用', `purchase_by_sale_flag` varchar(1) DEFAULT '0' COMMENT '以销定购启用标记0未启用1启用',
`multi_level_approval_flag` varchar(1) DEFAULT '0' COMMENT '多级审核启用标记0未启用1启用', `multi_level_approval_flag` varchar(1) DEFAULT '0' COMMENT '多级审核启用标记0未启用1启用',
`multi_bill_type` varchar(200) DEFAULT NULL COMMENT '流程类型,可多选', `multi_bill_type` varchar(200) DEFAULT NULL COMMENT '流程类型,可多选',
`amount_approval_flag` varchar(1) DEFAULT '0' COMMENT '金额审核启用标记0未启用1启用', `force_approval_flag` varchar(1) DEFAULT '0' COMMENT '审核启用标记0未启用1启用',
`stock_approval_flag` varchar(1) DEFAULT '0' COMMENT '库存审核启用标记0未启用1启用',
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id', `tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
`delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记0未删除1删除', `delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记0未删除1删除',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
@@ -862,7 +861,7 @@ CREATE TABLE `jsh_system_config` (
-- ---------------------------- -- ----------------------------
-- Records of jsh_system_config -- Records of jsh_system_config
-- ---------------------------- -- ----------------------------
INSERT INTO `jsh_system_config` VALUES ('11', '公司test', '小李', '地址1', '12345678', null, null, '注:本单为我公司与客户约定账期内结款的依据,由客户或其单位员工签字生效,并承担法律责任。', '0', '0', '1', '0', '0', '', '0', '0', '63', '0'); INSERT INTO `jsh_system_config` VALUES ('11', '公司test', '小李', '地址1', '12345678', null, null, '注:本单为我公司与客户约定账期内结款的依据,由客户或其单位员工签字生效,并承担法律责任。', '0', '0', '1', '0', '0', '', '0', '63', '0');
-- ---------------------------- -- ----------------------------
-- Table structure for jsh_tenant -- Table structure for jsh_tenant

View File

@@ -1462,8 +1462,8 @@ alter table jsh_account_head add source varchar(1) DEFAULT '0' COMMENT '单据
-- -------------------------------------------------------- -- --------------------------------------------------------
-- 时间 2023年03月16日 -- 时间 2023年03月16日
-- by jishenghua -- by jishenghua
-- 系统参数表增加库存审核启用标记 -- 系统参数表的金额审核启用标记改为强审核标记
-- 增加零售统计菜单 -- 增加零售统计菜单
-- -------------------------------------------------------- -- --------------------------------------------------------
alter table jsh_system_config add stock_approval_flag varchar(1) DEFAULT '0' COMMENT '库存审核启用标记0未启用1启用' after amount_approval_flag; alter table jsh_system_config change amount_approval_flag force_approval_flag varchar(1) DEFAULT '0' COMMENT '审核启用标记0未启用1启用';
insert into `jsh_function` (`number`, `name`, `parent_number`, `url`, `component`, `state`, `sort`, `enabled`, `type`, `push_btn`, `icon`, `delete_flag`) VALUES ('030105', '零售统计', '0301', '/report/retail_out_report', '/report/RetailOutReport', b'0', '0615', b'1', '电脑版', '', 'profile', '0'); insert into `jsh_function` (`number`, `name`, `parent_number`, `url`, `component`, `state`, `sort`, `enabled`, `type`, `push_btn`, `icon`, `delete_flag`) VALUES ('030105', '零售统计', '0301', '/report/retail_out_report', '/report/RetailOutReport', b'0', '0615', b'1', '电脑版', '', 'profile', '0');

View File

@@ -121,13 +121,13 @@ public class AccountController {
//存放数据json数组 //存放数据json数组
JSONArray dataArray = new JSONArray(); JSONArray dataArray = new JSONArray();
if (null != dataList) { if (null != dataList) {
Boolean apprFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
for (AccountVo4InOutList aEx : dataList) { for (AccountVo4InOutList aEx : dataList) {
String type = aEx.getType().replace("其它", ""); String type = aEx.getType().replace("其它", "");
aEx.setType(type); aEx.setType(type);
String timeStr = aEx.getOperTime().toString(); String timeStr = aEx.getOperTime().toString();
BigDecimal balance = accountService.getAccountSum(accountId, timeStr, "date", apprFlag).add(accountService.getAccountSumByHead(accountId, timeStr, "date", apprFlag)) BigDecimal balance = accountService.getAccountSum(accountId, timeStr, "date", forceFlag).add(accountService.getAccountSumByHead(accountId, timeStr, "date", forceFlag))
.add(accountService.getAccountSumByDetail(accountId, timeStr, "date", apprFlag)).add(accountService.getManyAccountSum(accountId, timeStr, "date", apprFlag)).add(initialAmount); .add(accountService.getAccountSumByDetail(accountId, timeStr, "date", forceFlag)).add(accountService.getManyAccountSum(accountId, timeStr, "date", forceFlag)).add(initialAmount);
aEx.setBalance(balance); aEx.setBalance(balance);
aEx.setAccountId(accountId); aEx.setAccountId(accountId);
dataArray.add(aEx); dataArray.add(aEx);

View File

@@ -130,10 +130,10 @@ public class DepotHeadController {
String [] organArray = depotHeadService.getOrganArray(subType, ""); String [] organArray = depotHeadService.getOrganArray(subType, "");
beginTime = Tools.parseDayToTime(beginTime, BusinessConstants.DAY_FIRST_TIME); beginTime = Tools.parseDayToTime(beginTime, BusinessConstants.DAY_FIRST_TIME);
endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME); endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
List<DepotHeadVo4InDetail> list = depotHeadService.findInOutDetail(beginTime, endTime, type, creatorArray, organArray, amountApprovalFlag, List<DepotHeadVo4InDetail> list = depotHeadService.findInOutDetail(beginTime, endTime, type, creatorArray, organArray, forceFlag,
StringUtil.toNull(materialParam), depotList, oId, StringUtil.toNull(number), remark, (currentPage-1)*pageSize, pageSize); StringUtil.toNull(materialParam), depotList, oId, StringUtil.toNull(number), remark, (currentPage-1)*pageSize, pageSize);
int total = depotHeadService.findInOutDetailCount(beginTime, endTime, type, creatorArray, organArray, amountApprovalFlag, int total = depotHeadService.findInOutDetailCount(beginTime, endTime, type, creatorArray, organArray, forceFlag,
StringUtil.toNull(materialParam), depotList, oId, StringUtil.toNull(number), remark); StringUtil.toNull(materialParam), depotList, oId, StringUtil.toNull(number), remark);
map.put("total", total); map.put("total", total);
//存放数据json数组 //存放数据json数组
@@ -194,10 +194,10 @@ public class DepotHeadController {
} }
beginTime = Tools.parseDayToTime(beginTime,BusinessConstants.DAY_FIRST_TIME); beginTime = Tools.parseDayToTime(beginTime,BusinessConstants.DAY_FIRST_TIME);
endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME); endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
List<DepotHeadVo4InOutMCount> list = depotHeadService.findInOutMaterialCount(beginTime, endTime, type, amountApprovalFlag, StringUtil.toNull(materialParam), List<DepotHeadVo4InOutMCount> list = depotHeadService.findInOutMaterialCount(beginTime, endTime, type, forceFlag, StringUtil.toNull(materialParam),
depotList, oId, roleType, (currentPage-1)*pageSize, pageSize); depotList, oId, roleType, (currentPage-1)*pageSize, pageSize);
int total = depotHeadService.findInOutMaterialCountTotal(beginTime, endTime, type, amountApprovalFlag, StringUtil.toNull(materialParam), int total = depotHeadService.findInOutMaterialCountTotal(beginTime, endTime, type, forceFlag, StringUtil.toNull(materialParam),
depotList, oId, roleType); depotList, oId, roleType);
map.put("total", total); map.put("total", total);
map.put("rows", list); map.put("rows", list);
@@ -267,11 +267,11 @@ public class DepotHeadController {
String [] creatorArray = depotHeadService.getCreatorArray(roleType); String [] creatorArray = depotHeadService.getCreatorArray(roleType);
beginTime = Tools.parseDayToTime(beginTime, BusinessConstants.DAY_FIRST_TIME); beginTime = Tools.parseDayToTime(beginTime, BusinessConstants.DAY_FIRST_TIME);
endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME); endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
List<DepotHeadVo4InDetail> list = depotHeadService.findAllocationDetail(beginTime, endTime, subType, StringUtil.toNull(number), List<DepotHeadVo4InDetail> list = depotHeadService.findAllocationDetail(beginTime, endTime, subType, StringUtil.toNull(number),
creatorArray, amountApprovalFlag, StringUtil.toNull(materialParam), depotList, depotFList, remark, (currentPage-1)*pageSize, pageSize); creatorArray, forceFlag, StringUtil.toNull(materialParam), depotList, depotFList, remark, (currentPage-1)*pageSize, pageSize);
int total = depotHeadService.findAllocationDetailCount(beginTime, endTime, subType, StringUtil.toNull(number), int total = depotHeadService.findAllocationDetailCount(beginTime, endTime, subType, StringUtil.toNull(number),
creatorArray, amountApprovalFlag, StringUtil.toNull(materialParam), depotList, depotFList, remark); creatorArray, forceFlag, StringUtil.toNull(materialParam), depotList, depotFList, remark);
map.put("rows", list); map.put("rows", list);
map.put("total", total); map.put("total", total);
res.code = 200; res.code = 200;

View File

@@ -480,12 +480,12 @@ public class DepotItemController {
String [] creatorArray = depotHeadService.getCreatorArray(roleType); String [] creatorArray = depotHeadService.getCreatorArray(roleType);
String [] organArray = null; String [] organArray = null;
List<Long> depotList = depotService.parseDepotList(null); List<Long> depotList = depotService.parseDepotList(null);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam), List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
"buy", beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag, (currentPage-1)*pageSize, pageSize); "buy", beginTime, endTime, creatorArray, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
String[] mpArr = mpList.split(","); String[] mpArr = mpList.split(",");
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam), int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
"buy", beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag); "buy", beginTime, endTime, creatorArray, organArray, depotList, forceFlag);
map.put("total", total); map.put("total", total);
//存放数据json数组 //存放数据json数组
JSONArray dataArray = new JSONArray(); JSONArray dataArray = new JSONArray();
@@ -555,12 +555,12 @@ public class DepotItemController {
String [] creatorArray = depotHeadService.getCreatorArray(roleType); String [] creatorArray = depotHeadService.getCreatorArray(roleType);
String [] organArray = null; String [] organArray = null;
List<Long> depotList = depotService.parseDepotList(null); List<Long> depotList = depotService.parseDepotList(null);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam), List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
"sale", beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag, (currentPage-1)*pageSize, pageSize); "sale", beginTime, endTime, creatorArray, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
String[] mpArr = mpList.split(","); String[] mpArr = mpList.split(",");
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam), int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
"sale", beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag); "sale", beginTime, endTime, creatorArray, organArray, depotList, forceFlag);
map.put("total", total); map.put("total", total);
//存放数据json数组 //存放数据json数组
JSONArray dataArray = new JSONArray(); JSONArray dataArray = new JSONArray();
@@ -631,12 +631,12 @@ public class DepotItemController {
String [] creatorArray = depotHeadService.getCreatorArray(roleType); String [] creatorArray = depotHeadService.getCreatorArray(roleType);
String [] organArray = depotHeadService.getOrganArray("销售", ""); String [] organArray = depotHeadService.getOrganArray("销售", "");
List<Long> depotList = depotService.parseDepotList(null); List<Long> depotList = depotService.parseDepotList(null);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam), List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
"sale", beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag, (currentPage-1)*pageSize, pageSize); "sale", beginTime, endTime, creatorArray, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
String[] mpArr = mpList.split(","); String[] mpArr = mpList.split(",");
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam), int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
"sale", beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag); "sale", beginTime, endTime, creatorArray, organArray, depotList, forceFlag);
map.put("total", total); map.put("total", total);
//存放数据json数组 //存放数据json数组
JSONArray dataArray = new JSONArray(); JSONArray dataArray = new JSONArray();

View File

@@ -29,9 +29,7 @@ public class SystemConfig {
private String multiBillType; private String multiBillType;
private String amountApprovalFlag; private String forceApprovalFlag;
private String stockApprovalFlag;
private Long tenantId; private Long tenantId;
@@ -149,20 +147,12 @@ public class SystemConfig {
this.multiBillType = multiBillType == null ? null : multiBillType.trim(); this.multiBillType = multiBillType == null ? null : multiBillType.trim();
} }
public String getAmountApprovalFlag() { public String getForceApprovalFlag() {
return amountApprovalFlag; return forceApprovalFlag;
} }
public void setAmountApprovalFlag(String amountApprovalFlag) { public void setForceApprovalFlag(String forceApprovalFlag) {
this.amountApprovalFlag = amountApprovalFlag == null ? null : amountApprovalFlag.trim(); this.forceApprovalFlag = forceApprovalFlag == null ? null : forceApprovalFlag.trim();
}
public String getStockApprovalFlag() {
return stockApprovalFlag;
}
public void setStockApprovalFlag(String stockApprovalFlag) {
this.stockApprovalFlag = stockApprovalFlag == null ? null : stockApprovalFlag.trim();
} }
public Long getTenantId() { public Long getTenantId() {

View File

@@ -1074,143 +1074,73 @@ public class SystemConfigExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagIsNull() { public Criteria andForceApprovalFlagIsNull() {
addCriterion("amount_approval_flag is null"); addCriterion("force_approval_flag is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagIsNotNull() { public Criteria andForceApprovalFlagIsNotNull() {
addCriterion("amount_approval_flag is not null"); addCriterion("force_approval_flag is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagEqualTo(String value) { public Criteria andForceApprovalFlagEqualTo(String value) {
addCriterion("amount_approval_flag =", value, "amountApprovalFlag"); addCriterion("force_approval_flag =", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagNotEqualTo(String value) { public Criteria andForceApprovalFlagNotEqualTo(String value) {
addCriterion("amount_approval_flag <>", value, "amountApprovalFlag"); addCriterion("force_approval_flag <>", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagGreaterThan(String value) { public Criteria andForceApprovalFlagGreaterThan(String value) {
addCriterion("amount_approval_flag >", value, "amountApprovalFlag"); addCriterion("force_approval_flag >", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagGreaterThanOrEqualTo(String value) { public Criteria andForceApprovalFlagGreaterThanOrEqualTo(String value) {
addCriterion("amount_approval_flag >=", value, "amountApprovalFlag"); addCriterion("force_approval_flag >=", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagLessThan(String value) { public Criteria andForceApprovalFlagLessThan(String value) {
addCriterion("amount_approval_flag <", value, "amountApprovalFlag"); addCriterion("force_approval_flag <", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagLessThanOrEqualTo(String value) { public Criteria andForceApprovalFlagLessThanOrEqualTo(String value) {
addCriterion("amount_approval_flag <=", value, "amountApprovalFlag"); addCriterion("force_approval_flag <=", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagLike(String value) { public Criteria andForceApprovalFlagLike(String value) {
addCriterion("amount_approval_flag like", value, "amountApprovalFlag"); addCriterion("force_approval_flag like", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagNotLike(String value) { public Criteria andForceApprovalFlagNotLike(String value) {
addCriterion("amount_approval_flag not like", value, "amountApprovalFlag"); addCriterion("force_approval_flag not like", value, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagIn(List<String> values) { public Criteria andForceApprovalFlagIn(List<String> values) {
addCriterion("amount_approval_flag in", values, "amountApprovalFlag"); addCriterion("force_approval_flag in", values, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagNotIn(List<String> values) { public Criteria andForceApprovalFlagNotIn(List<String> values) {
addCriterion("amount_approval_flag not in", values, "amountApprovalFlag"); addCriterion("force_approval_flag not in", values, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagBetween(String value1, String value2) { public Criteria andForceApprovalFlagBetween(String value1, String value2) {
addCriterion("amount_approval_flag between", value1, value2, "amountApprovalFlag"); addCriterion("force_approval_flag between", value1, value2, "forceApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andAmountApprovalFlagNotBetween(String value1, String value2) { public Criteria andForceApprovalFlagNotBetween(String value1, String value2) {
addCriterion("amount_approval_flag not between", value1, value2, "amountApprovalFlag"); addCriterion("force_approval_flag not between", value1, value2, "forceApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagIsNull() {
addCriterion("stock_approval_flag is null");
return (Criteria) this;
}
public Criteria andStockApprovalFlagIsNotNull() {
addCriterion("stock_approval_flag is not null");
return (Criteria) this;
}
public Criteria andStockApprovalFlagEqualTo(String value) {
addCriterion("stock_approval_flag =", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagNotEqualTo(String value) {
addCriterion("stock_approval_flag <>", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagGreaterThan(String value) {
addCriterion("stock_approval_flag >", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagGreaterThanOrEqualTo(String value) {
addCriterion("stock_approval_flag >=", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagLessThan(String value) {
addCriterion("stock_approval_flag <", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagLessThanOrEqualTo(String value) {
addCriterion("stock_approval_flag <=", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagLike(String value) {
addCriterion("stock_approval_flag like", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagNotLike(String value) {
addCriterion("stock_approval_flag not like", value, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagIn(List<String> values) {
addCriterion("stock_approval_flag in", values, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagNotIn(List<String> values) {
addCriterion("stock_approval_flag not in", values, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagBetween(String value1, String value2) {
addCriterion("stock_approval_flag between", value1, value2, "stockApprovalFlag");
return (Criteria) this;
}
public Criteria andStockApprovalFlagNotBetween(String value1, String value2) {
addCriterion("stock_approval_flag not between", value1, value2, "stockApprovalFlag");
return (Criteria) this; return (Criteria) this;
} }

View File

@@ -69,7 +69,7 @@ public interface DepotHeadMapperEx {
@Param("type") String type, @Param("type") String type,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("organArray") String[] organArray, @Param("organArray") String[] organArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("materialParam") String materialParam, @Param("materialParam") String materialParam,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("oId") Integer oId, @Param("oId") Integer oId,
@@ -84,7 +84,7 @@ public interface DepotHeadMapperEx {
@Param("type") String type, @Param("type") String type,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("organArray") String[] organArray, @Param("organArray") String[] organArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("materialParam") String materialParam, @Param("materialParam") String materialParam,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("oId") Integer oId, @Param("oId") Integer oId,
@@ -95,7 +95,7 @@ public interface DepotHeadMapperEx {
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime, @Param("endTime") String endTime,
@Param("type") String type, @Param("type") String type,
@Param("amountApprovalFlag") Boolean amountApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("materialParam") String materialParam, @Param("materialParam") String materialParam,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("oId") Integer oId, @Param("oId") Integer oId,
@@ -108,7 +108,7 @@ public interface DepotHeadMapperEx {
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime, @Param("endTime") String endTime,
@Param("type") String type, @Param("type") String type,
@Param("amountApprovalFlag") Boolean amountApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("materialParam") String materialParam, @Param("materialParam") String materialParam,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("oId") Integer oId, @Param("oId") Integer oId,
@@ -121,7 +121,7 @@ public interface DepotHeadMapperEx {
@Param("subType") String subType, @Param("subType") String subType,
@Param("number") String number, @Param("number") String number,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("materialParam") String materialParam, @Param("materialParam") String materialParam,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("depotFList") List<Long> depotFList, @Param("depotFList") List<Long> depotFList,
@@ -135,7 +135,7 @@ public interface DepotHeadMapperEx {
@Param("subType") String subType, @Param("subType") String subType,
@Param("number") String number, @Param("number") String number,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("materialParam") String materialParam, @Param("materialParam") String materialParam,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("depotFList") List<Long> depotFList, @Param("depotFList") List<Long> depotFList,
@@ -213,7 +213,7 @@ public interface DepotHeadMapperEx {
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime, @Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag); @Param("forceFlag") Boolean forceFlag);
BigDecimal getBuyAndSaleRetailStatistics( BigDecimal getBuyAndSaleRetailStatistics(
@Param("type") String type, @Param("type") String type,
@@ -221,7 +221,7 @@ public interface DepotHeadMapperEx {
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime, @Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag); @Param("forceFlag") Boolean forceFlag);
List<DepotHeadVo4List> debtList( List<DepotHeadVo4List> debtList(
@Param("organId") Long organId, @Param("organId") Long organId,

View File

@@ -70,7 +70,7 @@ public interface DepotItemMapperEx {
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("organArray") String [] organArray, @Param("organArray") String [] organArray,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("amountApprovalFlag") Boolean amountApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("offset") Integer offset, @Param("offset") Integer offset,
@Param("rows") Integer rows); @Param("rows") Integer rows);
@@ -82,7 +82,7 @@ public interface DepotItemMapperEx {
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("organArray") String [] organArray, @Param("organArray") String [] organArray,
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("amountApprovalFlag") Boolean amountApprovalFlag); @Param("forceFlag") Boolean forceFlag);
BigDecimal buyOrSaleNumber( BigDecimal buyOrSaleNumber(
@Param("type") String type, @Param("type") String type,
@@ -112,7 +112,7 @@ public interface DepotItemMapperEx {
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime, @Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag); @Param("forceFlag") Boolean forceFlag);
BigDecimal inOrOutRetailPrice( BigDecimal inOrOutRetailPrice(
@Param("type") String type, @Param("type") String type,
@@ -120,26 +120,26 @@ public interface DepotItemMapperEx {
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime, @Param("endTime") String endTime,
@Param("creatorArray") String[] creatorArray, @Param("creatorArray") String[] creatorArray,
@Param("amountApprovalFlag") Boolean amountApprovalFlag); @Param("forceFlag") Boolean forceFlag);
BigDecimal getStockCheckSumByDepotList( BigDecimal getStockCheckSumByDepotList(
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("mId") Long mId, @Param("mId") Long mId,
@Param("stockApprovalFlag") Boolean stockApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime); @Param("endTime") String endTime);
DepotItemVo4Stock getSkuStockByParamWithDepotList( DepotItemVo4Stock getSkuStockByParamWithDepotList(
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("meId") Long meId, @Param("meId") Long meId,
@Param("stockApprovalFlag") Boolean stockApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime); @Param("endTime") String endTime);
DepotItemVo4Stock getStockByParamWithDepotList( DepotItemVo4Stock getStockByParamWithDepotList(
@Param("depotList") List<Long> depotList, @Param("depotList") List<Long> depotList,
@Param("mId") Long mId, @Param("mId") Long mId,
@Param("stockApprovalFlag") Boolean stockApprovalFlag, @Param("forceFlag") Boolean forceFlag,
@Param("beginTime") String beginTime, @Param("beginTime") String beginTime,
@Param("endTime") String endTime); @Param("endTime") String endTime);

View File

@@ -108,19 +108,19 @@ public class AccountService {
JshException.readFail(logger, e); JshException.readFail(logger, e);
} }
String timeStr = Tools.getCurrentMonth(); String timeStr = Tools.getCurrentMonth();
Boolean apprFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
if (null != list && null !=timeStr) { if (null != list && null !=timeStr) {
for (AccountVo4List al : list) { for (AccountVo4List al : list) {
DecimalFormat df = new DecimalFormat(".##"); DecimalFormat df = new DecimalFormat(".##");
BigDecimal thisMonthAmount = getAccountSum(al.getId(), timeStr, "month", apprFlag).add(getAccountSumByHead(al.getId(), timeStr, "month", apprFlag)) BigDecimal thisMonthAmount = getAccountSum(al.getId(), timeStr, "month", forceFlag).add(getAccountSumByHead(al.getId(), timeStr, "month", forceFlag))
.add(getAccountSumByDetail(al.getId(), timeStr, "month", apprFlag)).add(getManyAccountSum(al.getId(), timeStr, "month", apprFlag)); .add(getAccountSumByDetail(al.getId(), timeStr, "month", forceFlag)).add(getManyAccountSum(al.getId(), timeStr, "month", forceFlag));
String thisMonthAmountFmt = "0"; String thisMonthAmountFmt = "0";
if ((thisMonthAmount.compareTo(BigDecimal.ZERO))!=0) { if ((thisMonthAmount.compareTo(BigDecimal.ZERO))!=0) {
thisMonthAmountFmt = df.format(thisMonthAmount); thisMonthAmountFmt = df.format(thisMonthAmount);
} }
al.setThisMonthAmount(thisMonthAmountFmt); //本月发生额 al.setThisMonthAmount(thisMonthAmountFmt); //本月发生额
BigDecimal currentAmount = getAccountSum(al.getId(), "", "month", apprFlag).add(getAccountSumByHead(al.getId(), "", "month", apprFlag)) BigDecimal currentAmount = getAccountSum(al.getId(), "", "month", forceFlag).add(getAccountSumByHead(al.getId(), "", "month", forceFlag))
.add(getAccountSumByDetail(al.getId(), "", "month", apprFlag)).add(getManyAccountSum(al.getId(), "", "month", apprFlag)) .add(al.getInitialAmount()) ; .add(getAccountSumByDetail(al.getId(), "", "month", forceFlag)).add(getManyAccountSum(al.getId(), "", "month", forceFlag)) .add(al.getInitialAmount()) ;
al.setCurrentAmount(currentAmount); al.setCurrentAmount(currentAmount);
resList.add(al); resList.add(al);
} }
@@ -279,7 +279,7 @@ public class AccountService {
* @param id * @param id
* @return * @return
*/ */
public BigDecimal getAccountSum(Long id, String timeStr, String type, Boolean apprFlag) throws Exception{ public BigDecimal getAccountSum(Long id, String timeStr, String type, Boolean forceFlag) throws Exception{
BigDecimal accountSum = BigDecimal.ZERO; BigDecimal accountSum = BigDecimal.ZERO;
try { try {
DepotHeadExample example = new DepotHeadExample(); DepotHeadExample example = new DepotHeadExample();
@@ -302,7 +302,7 @@ public class AccountService {
} }
List<DepotHead> dataList=null; List<DepotHead> dataList=null;
try{ try{
if(apprFlag) { if(forceFlag) {
criteria.andStatusEqualTo("1"); criteria.andStatusEqualTo("1");
} }
dataList = depotHeadMapper.selectByExample(example); dataList = depotHeadMapper.selectByExample(example);
@@ -328,7 +328,7 @@ public class AccountService {
* @param id * @param id
* @return * @return
*/ */
public BigDecimal getAccountSumByHead(Long id, String timeStr, String type, Boolean apprFlag) throws Exception{ public BigDecimal getAccountSumByHead(Long id, String timeStr, String type, Boolean forceFlag) throws Exception{
BigDecimal accountSum = BigDecimal.ZERO; BigDecimal accountSum = BigDecimal.ZERO;
try { try {
AccountHeadExample example = new AccountHeadExample(); AccountHeadExample example = new AccountHeadExample();
@@ -352,7 +352,7 @@ public class AccountService {
} }
List<AccountHead> dataList=null; List<AccountHead> dataList=null;
try{ try{
if(apprFlag) { if(forceFlag) {
criteria.andStatusEqualTo("1"); criteria.andStatusEqualTo("1");
} }
dataList = accountHeadMapper.selectByExample(example); dataList = accountHeadMapper.selectByExample(example);
@@ -378,7 +378,7 @@ public class AccountService {
* @param id * @param id
* @return * @return
*/ */
public BigDecimal getAccountSumByDetail(Long id, String timeStr, String type, Boolean apprFlag)throws Exception { public BigDecimal getAccountSumByDetail(Long id, String timeStr, String type, Boolean forceFlag)throws Exception {
BigDecimal accountSum =BigDecimal.ZERO ; BigDecimal accountSum =BigDecimal.ZERO ;
try { try {
AccountHeadExample example = new AccountHeadExample(); AccountHeadExample example = new AccountHeadExample();
@@ -397,7 +397,7 @@ public class AccountService {
} }
List<AccountHead> dataList=null; List<AccountHead> dataList=null;
try{ try{
if(apprFlag) { if(forceFlag) {
criteria.andStatusEqualTo("1"); criteria.andStatusEqualTo("1");
} }
dataList = accountHeadMapper.selectByExample(example); dataList = accountHeadMapper.selectByExample(example);
@@ -441,7 +441,7 @@ public class AccountService {
* @param id * @param id
* @return * @return
*/ */
public BigDecimal getManyAccountSum(Long id, String timeStr, String type, Boolean apprFlag)throws Exception { public BigDecimal getManyAccountSum(Long id, String timeStr, String type, Boolean forceFlag)throws Exception {
BigDecimal accountSum = BigDecimal.ZERO; BigDecimal accountSum = BigDecimal.ZERO;
try { try {
DepotHeadExample example = new DepotHeadExample(); DepotHeadExample example = new DepotHeadExample();
@@ -465,7 +465,7 @@ public class AccountService {
} }
List<DepotHead> dataList=null; List<DepotHead> dataList=null;
try{ try{
if(apprFlag) { if(forceFlag) {
criteria.andStatusEqualTo("1"); criteria.andStatusEqualTo("1");
} }
dataList = depotHeadMapper.selectByExample(example); dataList = depotHeadMapper.selectByExample(example);
@@ -570,13 +570,13 @@ public class AccountService {
String timeStr = Tools.getCurrentMonth(); String timeStr = Tools.getCurrentMonth();
BigDecimal allMonthAmount = BigDecimal.ZERO; BigDecimal allMonthAmount = BigDecimal.ZERO;
BigDecimal allCurrentAmount = BigDecimal.ZERO; BigDecimal allCurrentAmount = BigDecimal.ZERO;
Boolean apprFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
if (null != list && null !=timeStr) { if (null != list && null !=timeStr) {
for (Account a : list) { for (Account a : list) {
BigDecimal monthAmount = getAccountSum(a.getId(), timeStr, "month", apprFlag).add(getAccountSumByHead(a.getId(), timeStr, "month", apprFlag)) BigDecimal monthAmount = getAccountSum(a.getId(), timeStr, "month", forceFlag).add(getAccountSumByHead(a.getId(), timeStr, "month", forceFlag))
.add(getAccountSumByDetail(a.getId(), timeStr, "month", apprFlag)).add(getManyAccountSum(a.getId(), timeStr, "month", apprFlag)); .add(getAccountSumByDetail(a.getId(), timeStr, "month", forceFlag)).add(getManyAccountSum(a.getId(), timeStr, "month", forceFlag));
BigDecimal currentAmount = getAccountSum(a.getId(), "", "month", apprFlag).add(getAccountSumByHead(a.getId(), "", "month", apprFlag)) BigDecimal currentAmount = getAccountSum(a.getId(), "", "month", forceFlag).add(getAccountSumByHead(a.getId(), "", "month", forceFlag))
.add(getAccountSumByDetail(a.getId(), "", "month", apprFlag)).add(getManyAccountSum(a.getId(), "", "month", apprFlag)).add(a.getInitialAmount()); .add(getAccountSumByDetail(a.getId(), "", "month", forceFlag)).add(getManyAccountSum(a.getId(), "", "month", forceFlag)).add(a.getInitialAmount());
allMonthAmount = allMonthAmount.add(monthAmount); allMonthAmount = allMonthAmount.add(monthAmount);
allCurrentAmount = allCurrentAmount.add(currentAmount); allCurrentAmount = allCurrentAmount.add(currentAmount);
} }

View File

@@ -564,7 +564,7 @@ public class DepotHeadService {
example.createCriteria().andIdIn(dhIds); example.createCriteria().andIdIn(dhIds);
result = depotHeadMapper.updateByExampleSelective(depotHead, example); result = depotHeadMapper.updateByExampleSelective(depotHead, example);
//更新当前库存 //更新当前库存
if(systemConfigService.getStockApprovalFlag()) { if(systemConfigService.getForceApprovalFlag()) {
for(Long dhId: dhIds) { for(Long dhId: dhIds) {
List<DepotItem> list = depotItemService.getListByHeaderId(dhId); List<DepotItem> list = depotItemService.getListByHeaderId(dhId);
for (DepotItem depotItem : list) { for (DepotItem depotItem : list) {
@@ -595,11 +595,11 @@ public class DepotHeadService {
} }
public List<DepotHeadVo4InDetail> findInOutDetail(String beginTime, String endTime, String type, String [] creatorArray, public List<DepotHeadVo4InDetail> findInOutDetail(String beginTime, String endTime, String type, String [] creatorArray,
String [] organArray, Boolean amountApprovalFlag, String materialParam, List<Long> depotList, Integer oId, String number, String [] organArray, Boolean forceFlag, String materialParam, List<Long> depotList, Integer oId, String number,
String remark, Integer offset, Integer rows) throws Exception{ String remark, Integer offset, Integer rows) throws Exception{
List<DepotHeadVo4InDetail> list = null; List<DepotHeadVo4InDetail> list = null;
try{ try{
list =depotHeadMapperEx.findInOutDetail(beginTime, endTime, type, creatorArray, organArray, amountApprovalFlag, materialParam, depotList, oId, number, remark, offset, rows); list =depotHeadMapperEx.findInOutDetail(beginTime, endTime, type, creatorArray, organArray, forceFlag, materialParam, depotList, oId, number, remark, offset, rows);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
} }
@@ -607,25 +607,25 @@ public class DepotHeadService {
} }
public int findInOutDetailCount(String beginTime, String endTime, String type, String [] creatorArray, public int findInOutDetailCount(String beginTime, String endTime, String type, String [] creatorArray,
String [] organArray, Boolean amountApprovalFlag, String materialParam, List<Long> depotList, Integer oId, String number, String [] organArray, Boolean forceFlag, String materialParam, List<Long> depotList, Integer oId, String number,
String remark) throws Exception{ String remark) throws Exception{
int result = 0; int result = 0;
try{ try{
result =depotHeadMapperEx.findInOutDetailCount(beginTime, endTime, type, creatorArray, organArray, amountApprovalFlag, materialParam, depotList, oId, number, remark); result =depotHeadMapperEx.findInOutDetailCount(beginTime, endTime, type, creatorArray, organArray, forceFlag, materialParam, depotList, oId, number, remark);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
} }
return result; return result;
} }
public List<DepotHeadVo4InOutMCount> findInOutMaterialCount(String beginTime, String endTime, String type, Boolean amountApprovalFlag, String materialParam, public List<DepotHeadVo4InOutMCount> findInOutMaterialCount(String beginTime, String endTime, String type, Boolean forceFlag, String materialParam,
List<Long> depotList, Integer oId, String roleType, Integer offset, Integer rows)throws Exception { List<Long> depotList, Integer oId, String roleType, Integer offset, Integer rows)throws Exception {
List<DepotHeadVo4InOutMCount> list = null; List<DepotHeadVo4InOutMCount> list = null;
try{ try{
String [] creatorArray = getCreatorArray(roleType); String [] creatorArray = getCreatorArray(roleType);
String subType = "出库".equals(type)? "销售" : ""; String subType = "出库".equals(type)? "销售" : "";
String [] organArray = getOrganArray(subType, ""); String [] organArray = getOrganArray(subType, "");
list =depotHeadMapperEx.findInOutMaterialCount(beginTime, endTime, type, amountApprovalFlag, materialParam, depotList, oId, list =depotHeadMapperEx.findInOutMaterialCount(beginTime, endTime, type, forceFlag, materialParam, depotList, oId,
creatorArray, organArray, offset, rows); creatorArray, organArray, offset, rows);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
@@ -633,14 +633,14 @@ public class DepotHeadService {
return list; return list;
} }
public int findInOutMaterialCountTotal(String beginTime, String endTime, String type, Boolean amountApprovalFlag, String materialParam, public int findInOutMaterialCountTotal(String beginTime, String endTime, String type, Boolean forceFlag, String materialParam,
List<Long> depotList, Integer oId, String roleType)throws Exception { List<Long> depotList, Integer oId, String roleType)throws Exception {
int result = 0; int result = 0;
try{ try{
String [] creatorArray = getCreatorArray(roleType); String [] creatorArray = getCreatorArray(roleType);
String subType = "出库".equals(type)? "销售" : ""; String subType = "出库".equals(type)? "销售" : "";
String [] organArray = getOrganArray(subType, ""); String [] organArray = getOrganArray(subType, "");
result =depotHeadMapperEx.findInOutMaterialCountTotal(beginTime, endTime, type, amountApprovalFlag, materialParam, depotList, oId, result =depotHeadMapperEx.findInOutMaterialCountTotal(beginTime, endTime, type, forceFlag, materialParam, depotList, oId,
creatorArray, organArray); creatorArray, organArray);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
@@ -649,11 +649,11 @@ public class DepotHeadService {
} }
public List<DepotHeadVo4InDetail> findAllocationDetail(String beginTime, String endTime, String subType, String number, public List<DepotHeadVo4InDetail> findAllocationDetail(String beginTime, String endTime, String subType, String number,
String [] creatorArray, Boolean amountApprovalFlag, String materialParam, List<Long> depotList, List<Long> depotFList, String [] creatorArray, Boolean forceFlag, String materialParam, List<Long> depotList, List<Long> depotFList,
String remark, Integer offset, Integer rows) throws Exception{ String remark, Integer offset, Integer rows) throws Exception{
List<DepotHeadVo4InDetail> list = null; List<DepotHeadVo4InDetail> list = null;
try{ try{
list =depotHeadMapperEx.findAllocationDetail(beginTime, endTime, subType, number, creatorArray, amountApprovalFlag, list =depotHeadMapperEx.findAllocationDetail(beginTime, endTime, subType, number, creatorArray, forceFlag,
materialParam, depotList, depotFList, remark, offset, rows); materialParam, depotList, depotFList, remark, offset, rows);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
@@ -662,11 +662,11 @@ public class DepotHeadService {
} }
public int findAllocationDetailCount(String beginTime, String endTime, String subType, String number, public int findAllocationDetailCount(String beginTime, String endTime, String subType, String number,
String [] creatorArray, Boolean amountApprovalFlag, String materialParam, List<Long> depotList, List<Long> depotFList, String [] creatorArray, Boolean forceFlag, String materialParam, List<Long> depotList, List<Long> depotFList,
String remark) throws Exception{ String remark) throws Exception{
int result = 0; int result = 0;
try{ try{
result =depotHeadMapperEx.findAllocationDetailCount(beginTime, endTime, subType, number, creatorArray, amountApprovalFlag, result =depotHeadMapperEx.findAllocationDetailCount(beginTime, endTime, subType, number, creatorArray, forceFlag,
materialParam, depotList, depotFList, remark); materialParam, depotList, depotFList, remark);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
@@ -1208,14 +1208,14 @@ public class DepotHeadService {
public BigDecimal getBuyAndSaleBasicStatistics(String type, String subType, Integer hasSupplier, public BigDecimal getBuyAndSaleBasicStatistics(String type, String subType, Integer hasSupplier,
String beginTime, String endTime, String[] creatorArray) throws Exception { String beginTime, String endTime, String[] creatorArray) throws Exception {
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
return depotHeadMapperEx.getBuyAndSaleBasicStatistics(type, subType, hasSupplier, beginTime, endTime, creatorArray, amountApprovalFlag); return depotHeadMapperEx.getBuyAndSaleBasicStatistics(type, subType, hasSupplier, beginTime, endTime, creatorArray, forceFlag);
} }
public BigDecimal getBuyAndSaleRetailStatistics(String type, String subType, public BigDecimal getBuyAndSaleRetailStatistics(String type, String subType,
String beginTime, String endTime, String[] creatorArray) throws Exception { String beginTime, String endTime, String[] creatorArray) throws Exception {
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
return depotHeadMapperEx.getBuyAndSaleRetailStatistics(type, subType, beginTime, endTime, creatorArray, amountApprovalFlag).abs(); return depotHeadMapperEx.getBuyAndSaleRetailStatistics(type, subType, beginTime, endTime, creatorArray, forceFlag).abs();
} }
public DepotHead getDepotHead(String number)throws Exception { public DepotHead getDepotHead(String number)throws Exception {

View File

@@ -318,10 +318,10 @@ public class DepotItemService {
} }
public List<DepotItemVo4WithInfoEx> getListWithBugOrSale(String materialParam, String billType, public List<DepotItemVo4WithInfoEx> getListWithBugOrSale(String materialParam, String billType,
String beginTime, String endTime, String[] creatorArray, String [] organArray, List<Long> depotList, Boolean amountApprovalFlag, Integer offset, Integer rows)throws Exception { String beginTime, String endTime, String[] creatorArray, String [] organArray, List<Long> depotList, Boolean forceFlag, Integer offset, Integer rows)throws Exception {
List<DepotItemVo4WithInfoEx> list =null; List<DepotItemVo4WithInfoEx> list =null;
try{ try{
list = depotItemMapperEx.getListWithBugOrSale(materialParam, billType, beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag, offset, rows); list = depotItemMapperEx.getListWithBugOrSale(materialParam, billType, beginTime, endTime, creatorArray, organArray, depotList, forceFlag, offset, rows);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
} }
@@ -329,10 +329,10 @@ public class DepotItemService {
} }
public int getListWithBugOrSaleCount(String materialParam, String billType, public int getListWithBugOrSaleCount(String materialParam, String billType,
String beginTime, String endTime, String[] creatorArray, String [] organArray, List<Long> depotList, Boolean amountApprovalFlag)throws Exception { String beginTime, String endTime, String[] creatorArray, String [] organArray, List<Long> depotList, Boolean forceFlag)throws Exception {
int result=0; int result=0;
try{ try{
result = depotItemMapperEx.getListWithBugOrSaleCount(materialParam, billType, beginTime, endTime, creatorArray, organArray, depotList, amountApprovalFlag); result = depotItemMapperEx.getListWithBugOrSaleCount(materialParam, billType, beginTime, endTime, creatorArray, organArray, depotList, forceFlag);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
} }
@@ -367,10 +367,10 @@ public class DepotItemService {
BigDecimal result= BigDecimal.ZERO; BigDecimal result= BigDecimal.ZERO;
try{ try{
String [] creatorArray = depotHeadService.getCreatorArray(roleType); String [] creatorArray = depotHeadService.getCreatorArray(roleType);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
String beginTime = Tools.firstDayOfMonth(month) + BusinessConstants.DAY_FIRST_TIME; String beginTime = Tools.firstDayOfMonth(month) + BusinessConstants.DAY_FIRST_TIME;
String endTime = Tools.lastDayOfMonth(month) + BusinessConstants.DAY_LAST_TIME; String endTime = Tools.lastDayOfMonth(month) + BusinessConstants.DAY_LAST_TIME;
result = depotItemMapperEx.inOrOutPrice(type, subType, beginTime, endTime, creatorArray, amountApprovalFlag); result = depotItemMapperEx.inOrOutPrice(type, subType, beginTime, endTime, creatorArray, forceFlag);
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
} }
@@ -389,10 +389,10 @@ public class DepotItemService {
BigDecimal result= BigDecimal.ZERO; BigDecimal result= BigDecimal.ZERO;
try{ try{
String [] creatorArray = depotHeadService.getCreatorArray(roleType); String [] creatorArray = depotHeadService.getCreatorArray(roleType);
Boolean amountApprovalFlag = systemConfigService.getAmountApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
String beginTime = Tools.firstDayOfMonth(month) + BusinessConstants.DAY_FIRST_TIME; String beginTime = Tools.firstDayOfMonth(month) + BusinessConstants.DAY_FIRST_TIME;
String endTime = Tools.lastDayOfMonth(month) + BusinessConstants.DAY_LAST_TIME; String endTime = Tools.lastDayOfMonth(month) + BusinessConstants.DAY_LAST_TIME;
result = depotItemMapperEx.inOrOutRetailPrice(type, subType, beginTime, endTime, creatorArray, amountApprovalFlag); result = depotItemMapperEx.inOrOutRetailPrice(type, subType, beginTime, endTime, creatorArray, forceFlag);
result = result.abs(); result = result.abs();
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
@@ -874,9 +874,9 @@ public class DepotItemService {
*/ */
public BigDecimal getSkuStockByParam(Long depotId, Long meId, String beginTime, String endTime) throws Exception { public BigDecimal getSkuStockByParam(Long depotId, Long meId, String beginTime, String endTime) throws Exception {
//获取库存审核开关 //获取库存审核开关
Boolean stockApprovalFlag = systemConfigService.getStockApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
List<Long> depotList = depotService.parseDepotList(depotId); List<Long> depotList = depotService.parseDepotList(depotId);
DepotItemVo4Stock stockObj = depotItemMapperEx.getSkuStockByParamWithDepotList(depotList, meId, stockApprovalFlag, beginTime, endTime); DepotItemVo4Stock stockObj = depotItemMapperEx.getSkuStockByParamWithDepotList(depotList, meId, forceFlag, beginTime, endTime);
BigDecimal stockSum = BigDecimal.ZERO; BigDecimal stockSum = BigDecimal.ZERO;
if(stockObj!=null) { if(stockObj!=null) {
BigDecimal inTotal = stockObj.getInTotal(); BigDecimal inTotal = stockObj.getInTotal();
@@ -916,12 +916,12 @@ public class DepotItemService {
*/ */
public BigDecimal getStockByParamWithDepotList(List<Long> depotList, Long mId, String beginTime, String endTime) throws Exception { public BigDecimal getStockByParamWithDepotList(List<Long> depotList, Long mId, String beginTime, String endTime) throws Exception {
//获取库存审核开关 //获取库存审核开关
Boolean stockApprovalFlag = systemConfigService.getStockApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
//初始库存 //初始库存
BigDecimal initStock = materialService.getInitStockByMidAndDepotList(depotList, mId); BigDecimal initStock = materialService.getInitStockByMidAndDepotList(depotList, mId);
//盘点复盘后数量的变动 //盘点复盘后数量的变动
BigDecimal stockCheckSum = depotItemMapperEx.getStockCheckSumByDepotList(depotList, mId, stockApprovalFlag, beginTime, endTime); BigDecimal stockCheckSum = depotItemMapperEx.getStockCheckSumByDepotList(depotList, mId, forceFlag, beginTime, endTime);
DepotItemVo4Stock stockObj = depotItemMapperEx.getStockByParamWithDepotList(depotList, mId, stockApprovalFlag, beginTime, endTime); DepotItemVo4Stock stockObj = depotItemMapperEx.getStockByParamWithDepotList(depotList, mId, forceFlag, beginTime, endTime);
BigDecimal stockSum = BigDecimal.ZERO; BigDecimal stockSum = BigDecimal.ZERO;
if(stockObj!=null) { if(stockObj!=null) {
BigDecimal inTotal = stockObj.getInTotal(); BigDecimal inTotal = stockObj.getInTotal();
@@ -948,13 +948,13 @@ public class DepotItemService {
*/ */
public Map<String, BigDecimal> getIntervalMapByParamWithDepotList(List<Long> depotList, Long mId, String beginTime, String endTime) throws Exception { public Map<String, BigDecimal> getIntervalMapByParamWithDepotList(List<Long> depotList, Long mId, String beginTime, String endTime) throws Exception {
//获取库存审核开关 //获取库存审核开关
Boolean stockApprovalFlag = systemConfigService.getStockApprovalFlag(); Boolean forceFlag = systemConfigService.getForceApprovalFlag();
Map<String,BigDecimal> intervalMap = new HashMap<>(); Map<String,BigDecimal> intervalMap = new HashMap<>();
BigDecimal inSum = BigDecimal.ZERO; BigDecimal inSum = BigDecimal.ZERO;
BigDecimal outSum = BigDecimal.ZERO; BigDecimal outSum = BigDecimal.ZERO;
//盘点复盘后数量的变动 //盘点复盘后数量的变动
BigDecimal stockCheckSum = depotItemMapperEx.getStockCheckSumByDepotList(depotList, mId, stockApprovalFlag, beginTime, endTime); BigDecimal stockCheckSum = depotItemMapperEx.getStockCheckSumByDepotList(depotList, mId, forceFlag, beginTime, endTime);
DepotItemVo4Stock stockObj = depotItemMapperEx.getStockByParamWithDepotList(depotList, mId, stockApprovalFlag, beginTime, endTime); DepotItemVo4Stock stockObj = depotItemMapperEx.getStockByParamWithDepotList(depotList, mId, forceFlag, beginTime, endTime);
if(stockObj!=null) { if(stockObj!=null) {
BigDecimal inTotal = stockObj.getInTotal(); BigDecimal inTotal = stockObj.getInTotal();
BigDecimal transfInTotal = stockObj.getTransfInTotal(); BigDecimal transfInTotal = stockObj.getTransfInTotal();

View File

@@ -201,37 +201,20 @@ public class SystemConfigService {
} }
/** /**
* 获取金额审核开关 * 获取审核开关
* @return * @return
* @throws Exception * @throws Exception
*/ */
public boolean getAmountApprovalFlag() throws Exception { public boolean getForceApprovalFlag() throws Exception {
boolean amountApprovalFlag = false; boolean forceApprovalFlag = false;
List<SystemConfig> list = getSystemConfig(); List<SystemConfig> list = getSystemConfig();
if(list.size()>0) { if(list.size()>0) {
String flag = list.get(0).getAmountApprovalFlag(); String flag = list.get(0).getForceApprovalFlag();
if(("1").equals(flag)) { if(("1").equals(flag)) {
amountApprovalFlag = true; forceApprovalFlag = true;
} }
} }
return amountApprovalFlag; return forceApprovalFlag;
}
/**
* 获取库存审核开关
* @return
* @throws Exception
*/
public boolean getStockApprovalFlag() throws Exception {
boolean amountApprovalFlag = false;
List<SystemConfig> list = getSystemConfig();
if(list.size()>0) {
String flag = list.get(0).getStockApprovalFlag();
if(("1").equals(flag)) {
amountApprovalFlag = true;
}
}
return amountApprovalFlag;
} }
/** /**

View File

@@ -313,7 +313,7 @@
</foreach> </foreach>
) or dh.sub_type='采购退货' or dh.sub_type='零售' or dh.sub_type='其它') ) or dh.sub_type='采购退货' or dh.sub_type='零售' or dh.sub_type='其它')
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="number != null and number !=''"> <if test="number != null and number !=''">
@@ -371,7 +371,7 @@
</foreach> </foreach>
) or dh.sub_type='采购退货' or dh.sub_type='零售' or dh.sub_type='其它') ) or dh.sub_type='采购退货' or dh.sub_type='零售' or dh.sub_type='其它')
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="number != null and number !=''"> <if test="number != null and number !=''">
@@ -445,7 +445,7 @@
<bind name="bindKey" value="'%'+materialParam+'%'"/> <bind name="bindKey" value="'%'+materialParam+'%'"/>
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}) and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
@@ -505,7 +505,7 @@
<bind name="bindKey" value="'%'+materialParam+'%'"/> <bind name="bindKey" value="'%'+materialParam+'%'"/>
and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey}) and (me.bar_code like #{bindKey} or m.name like #{bindKey} or m.standard like #{bindKey} or m.model like #{bindKey})
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
@@ -549,7 +549,7 @@
</foreach> </foreach>
) )
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="materialParam != null and materialParam !=''"> <if test="materialParam != null and materialParam !=''">
@@ -601,7 +601,7 @@
</foreach> </foreach>
) )
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="materialParam != null and materialParam !=''"> <if test="materialParam != null and materialParam !=''">
@@ -902,7 +902,7 @@
<if test="endTime != null"> <if test="endTime != null">
and dh.oper_time &lt;= #{endTime} and dh.oper_time &lt;= #{endTime}
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="creatorArray != null"> <if test="creatorArray != null">
@@ -936,7 +936,7 @@
<if test="endTime != null"> <if test="endTime != null">
and dh.oper_time &lt;= #{endTime} and dh.oper_time &lt;= #{endTime}
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="creatorArray != null"> <if test="creatorArray != null">

View File

@@ -389,7 +389,7 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
and ifnull(m.delete_flag,'0') !='1' and ifnull(m.delete_flag,'0') !='1'
@@ -443,7 +443,7 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
and ifnull(di.delete_flag,'0') !='1' and ifnull(di.delete_flag,'0') !='1'
@@ -522,7 +522,7 @@
and dh.type=#{type} and dh.sub_type=#{subType} and dh.type=#{type} and dh.sub_type=#{subType}
and dh.oper_time &gt;= #{beginTime} and dh.oper_time &gt;= #{beginTime}
and dh.oper_time &lt;= #{endTime} and dh.oper_time &lt;= #{endTime}
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="creatorArray != null"> <if test="creatorArray != null">
@@ -546,7 +546,7 @@
and dh.type=#{type} and dh.sub_type=#{subType} and dh.type=#{type} and dh.sub_type=#{subType}
and dh.oper_time &gt;= #{beginTime} and dh.oper_time &gt;= #{beginTime}
and dh.oper_time &lt;= #{endTime} and dh.oper_time &lt;= #{endTime}
<if test="amountApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="creatorArray != null"> <if test="creatorArray != null">
@@ -574,7 +574,7 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="stockApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="beginTime != null"> <if test="beginTime != null">
@@ -604,7 +604,7 @@
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
and di.material_extend_id=#{meId} and di.material_extend_id=#{meId}
and ifnull(di.sku,'') !='' and ifnull(di.sku,'') !=''
<if test="stockApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="beginTime != null"> <if test="beginTime != null">
@@ -631,7 +631,7 @@
where 1=1 where 1=1
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
and di.material_id=#{mId} and di.material_id=#{mId}
<if test="stockApprovalFlag"> <if test="forceFlag">
and dh.status = '1' and dh.status = '1'
</if> </if>
<if test="beginTime != null"> <if test="beginTime != null">

View File

@@ -16,8 +16,7 @@
<result column="purchase_by_sale_flag" jdbcType="VARCHAR" property="purchaseBySaleFlag" /> <result column="purchase_by_sale_flag" jdbcType="VARCHAR" property="purchaseBySaleFlag" />
<result column="multi_level_approval_flag" jdbcType="VARCHAR" property="multiLevelApprovalFlag" /> <result column="multi_level_approval_flag" jdbcType="VARCHAR" property="multiLevelApprovalFlag" />
<result column="multi_bill_type" jdbcType="VARCHAR" property="multiBillType" /> <result column="multi_bill_type" jdbcType="VARCHAR" property="multiBillType" />
<result column="amount_approval_flag" jdbcType="VARCHAR" property="amountApprovalFlag" /> <result column="force_approval_flag" jdbcType="VARCHAR" property="forceApprovalFlag" />
<result column="stock_approval_flag" jdbcType="VARCHAR" property="stockApprovalFlag" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> <result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" /> <result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
</resultMap> </resultMap>
@@ -82,8 +81,7 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code, id, company_name, company_contacts, company_address, company_tel, company_fax, company_post_code,
sale_agreement, depot_flag, customer_flag, minus_stock_flag, purchase_by_sale_flag, sale_agreement, depot_flag, customer_flag, minus_stock_flag, purchase_by_sale_flag,
multi_level_approval_flag, multi_bill_type, amount_approval_flag, stock_approval_flag, multi_level_approval_flag, multi_bill_type, force_approval_flag, tenant_id, delete_flag
tenant_id, delete_flag
</sql> </sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SystemConfigExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SystemConfigExample" resultMap="BaseResultMap">
select select
@@ -121,15 +119,15 @@
company_post_code, sale_agreement, depot_flag, company_post_code, sale_agreement, depot_flag,
customer_flag, minus_stock_flag, purchase_by_sale_flag, customer_flag, minus_stock_flag, purchase_by_sale_flag,
multi_level_approval_flag, multi_bill_type, multi_level_approval_flag, multi_bill_type,
amount_approval_flag, stock_approval_flag, force_approval_flag, tenant_id, delete_flag
tenant_id, delete_flag) )
values (#{id,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{companyContacts,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{companyName,jdbcType=VARCHAR}, #{companyContacts,jdbcType=VARCHAR},
#{companyAddress,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR}, #{companyFax,jdbcType=VARCHAR}, #{companyAddress,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR}, #{companyFax,jdbcType=VARCHAR},
#{companyPostCode,jdbcType=VARCHAR}, #{saleAgreement,jdbcType=VARCHAR}, #{depotFlag,jdbcType=VARCHAR}, #{companyPostCode,jdbcType=VARCHAR}, #{saleAgreement,jdbcType=VARCHAR}, #{depotFlag,jdbcType=VARCHAR},
#{customerFlag,jdbcType=VARCHAR}, #{minusStockFlag,jdbcType=VARCHAR}, #{purchaseBySaleFlag,jdbcType=VARCHAR}, #{customerFlag,jdbcType=VARCHAR}, #{minusStockFlag,jdbcType=VARCHAR}, #{purchaseBySaleFlag,jdbcType=VARCHAR},
#{multiLevelApprovalFlag,jdbcType=VARCHAR}, #{multiBillType,jdbcType=VARCHAR}, #{multiLevelApprovalFlag,jdbcType=VARCHAR}, #{multiBillType,jdbcType=VARCHAR},
#{amountApprovalFlag,jdbcType=VARCHAR}, #{stockApprovalFlag,jdbcType=VARCHAR}, #{forceApprovalFlag,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}) )
</insert> </insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SystemConfig"> <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.SystemConfig">
insert into jsh_system_config insert into jsh_system_config
@@ -176,11 +174,8 @@
<if test="multiBillType != null"> <if test="multiBillType != null">
multi_bill_type, multi_bill_type,
</if> </if>
<if test="amountApprovalFlag != null"> <if test="forceApprovalFlag != null">
amount_approval_flag, force_approval_flag,
</if>
<if test="stockApprovalFlag != null">
stock_approval_flag,
</if> </if>
<if test="tenantId != null"> <if test="tenantId != null">
tenant_id, tenant_id,
@@ -232,11 +227,8 @@
<if test="multiBillType != null"> <if test="multiBillType != null">
#{multiBillType,jdbcType=VARCHAR}, #{multiBillType,jdbcType=VARCHAR},
</if> </if>
<if test="amountApprovalFlag != null"> <if test="forceApprovalFlag != null">
#{amountApprovalFlag,jdbcType=VARCHAR}, #{forceApprovalFlag,jdbcType=VARCHAR},
</if>
<if test="stockApprovalFlag != null">
#{stockApprovalFlag,jdbcType=VARCHAR},
</if> </if>
<if test="tenantId != null"> <if test="tenantId != null">
#{tenantId,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT},
@@ -297,11 +289,8 @@
<if test="record.multiBillType != null"> <if test="record.multiBillType != null">
multi_bill_type = #{record.multiBillType,jdbcType=VARCHAR}, multi_bill_type = #{record.multiBillType,jdbcType=VARCHAR},
</if> </if>
<if test="record.amountApprovalFlag != null"> <if test="record.forceApprovalFlag != null">
amount_approval_flag = #{record.amountApprovalFlag,jdbcType=VARCHAR}, force_approval_flag = #{record.forceApprovalFlag,jdbcType=VARCHAR},
</if>
<if test="record.stockApprovalFlag != null">
stock_approval_flag = #{record.stockApprovalFlag,jdbcType=VARCHAR},
</if> </if>
<if test="record.tenantId != null"> <if test="record.tenantId != null">
tenant_id = #{record.tenantId,jdbcType=BIGINT}, tenant_id = #{record.tenantId,jdbcType=BIGINT},
@@ -330,8 +319,7 @@
purchase_by_sale_flag = #{record.purchaseBySaleFlag,jdbcType=VARCHAR}, purchase_by_sale_flag = #{record.purchaseBySaleFlag,jdbcType=VARCHAR},
multi_level_approval_flag = #{record.multiLevelApprovalFlag,jdbcType=VARCHAR}, multi_level_approval_flag = #{record.multiLevelApprovalFlag,jdbcType=VARCHAR},
multi_bill_type = #{record.multiBillType,jdbcType=VARCHAR}, multi_bill_type = #{record.multiBillType,jdbcType=VARCHAR},
amount_approval_flag = #{record.amountApprovalFlag,jdbcType=VARCHAR}, force_approval_flag = #{record.forceApprovalFlag,jdbcType=VARCHAR},
stock_approval_flag = #{record.stockApprovalFlag,jdbcType=VARCHAR},
tenant_id = #{record.tenantId,jdbcType=BIGINT}, tenant_id = #{record.tenantId,jdbcType=BIGINT},
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
@@ -380,11 +368,8 @@
<if test="multiBillType != null"> <if test="multiBillType != null">
multi_bill_type = #{multiBillType,jdbcType=VARCHAR}, multi_bill_type = #{multiBillType,jdbcType=VARCHAR},
</if> </if>
<if test="amountApprovalFlag != null"> <if test="forceApprovalFlag != null">
amount_approval_flag = #{amountApprovalFlag,jdbcType=VARCHAR}, force_approval_flag = #{forceApprovalFlag,jdbcType=VARCHAR},
</if>
<if test="stockApprovalFlag != null">
stock_approval_flag = #{stockApprovalFlag,jdbcType=VARCHAR},
</if> </if>
<if test="tenantId != null"> <if test="tenantId != null">
tenant_id = #{tenantId,jdbcType=BIGINT}, tenant_id = #{tenantId,jdbcType=BIGINT},
@@ -410,8 +395,7 @@
purchase_by_sale_flag = #{purchaseBySaleFlag,jdbcType=VARCHAR}, purchase_by_sale_flag = #{purchaseBySaleFlag,jdbcType=VARCHAR},
multi_level_approval_flag = #{multiLevelApprovalFlag,jdbcType=VARCHAR}, multi_level_approval_flag = #{multiLevelApprovalFlag,jdbcType=VARCHAR},
multi_bill_type = #{multiBillType,jdbcType=VARCHAR}, multi_bill_type = #{multiBillType,jdbcType=VARCHAR},
amount_approval_flag = #{amountApprovalFlag,jdbcType=VARCHAR}, force_approval_flag = #{forceApprovalFlag,jdbcType=VARCHAR},
stock_approval_flag = #{stockApprovalFlag,jdbcType=VARCHAR},
tenant_id = #{tenantId,jdbcType=BIGINT}, tenant_id = #{tenantId,jdbcType=BIGINT},
delete_flag = #{deleteFlag,jdbcType=VARCHAR} delete_flag = #{deleteFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}