完善报表接口返回字段,增加品牌和制造商
This commit is contained in:
@@ -512,10 +512,12 @@ public class DepotItemController {
|
||||
item.put("materialName", diEx.getMName());
|
||||
item.put("materialModel", diEx.getMModel());
|
||||
item.put("materialStandard", diEx.getMStandard());
|
||||
item.put("materialColor", diEx.getMColor());
|
||||
item.put("materialMfrs", diEx.getMMfrs());
|
||||
item.put("materialBrand", diEx.getBrand());
|
||||
//扩展信息
|
||||
String materialOther = depotItemService.getOtherInfo(mpArr, diEx);
|
||||
item.put("materialOther", materialOther);
|
||||
item.put("materialColor", diEx.getMColor());
|
||||
item.put("unitId", diEx.getUnitId());
|
||||
item.put("unitName", null!=diEx.getUnitId() ? diEx.getMaterialUnit()+"[多单位]" : diEx.getMaterialUnit());
|
||||
BigDecimal prevSum = depotItemService.getStockByParamWithDepotList(depotList,mId,null,beginTime);
|
||||
@@ -672,10 +674,10 @@ public class DepotItemController {
|
||||
String [] organArray = null;
|
||||
List<Long> depotList = depotService.parseDepotList(depotId);
|
||||
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBuyOrSale(StringUtil.toNull(materialParam),
|
||||
"buy", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
|
||||
String[] mpArr = mpList.split(",");
|
||||
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
|
||||
int total = depotItemService.getListWithBuyOrSaleCount(StringUtil.toNull(materialParam),
|
||||
"buy", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
@@ -696,6 +698,8 @@ public class DepotItemController {
|
||||
String materialOther = depotItemService.getOtherInfo(mpArr, diEx);
|
||||
item.put("materialOther", materialOther);
|
||||
item.put("materialColor", diEx.getMColor());
|
||||
item.put("materialBrand", diEx.getBrand());
|
||||
item.put("materialMfrs", diEx.getMMfrs());
|
||||
item.put("materialUnit", diEx.getMaterialUnit());
|
||||
item.put("unitName", diEx.getUnitName());
|
||||
item.put("inSum", InSum);
|
||||
@@ -756,10 +760,10 @@ public class DepotItemController {
|
||||
String [] organArray = null;
|
||||
List<Long> depotList = depotService.parseDepotList(depotId);
|
||||
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBuyOrSale(StringUtil.toNull(materialParam),
|
||||
"retail", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
|
||||
String[] mpArr = mpList.split(",");
|
||||
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
|
||||
int total = depotItemService.getListWithBuyOrSaleCount(StringUtil.toNull(materialParam),
|
||||
"retail", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
@@ -780,6 +784,8 @@ public class DepotItemController {
|
||||
String materialOther = depotItemService.getOtherInfo(mpArr, diEx);
|
||||
item.put("materialOther", materialOther);
|
||||
item.put("materialColor", diEx.getMColor());
|
||||
item.put("materialBrand", diEx.getBrand());
|
||||
item.put("materialMfrs", diEx.getMMfrs());
|
||||
item.put("materialUnit", diEx.getMaterialUnit());
|
||||
item.put("unitName", diEx.getUnitName());
|
||||
item.put("outSum", OutSumRetail);
|
||||
@@ -841,10 +847,10 @@ public class DepotItemController {
|
||||
String [] organArray = depotHeadService.getOrganArray("销售", "");
|
||||
List<Long> depotList = depotService.parseDepotList(depotId);
|
||||
Boolean forceFlag = systemConfigService.getForceApprovalFlag();
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBugOrSale(StringUtil.toNull(materialParam),
|
||||
List<DepotItemVo4WithInfoEx> dataList = depotItemService.getListWithBuyOrSale(StringUtil.toNull(materialParam),
|
||||
"sale", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag, (currentPage-1)*pageSize, pageSize);
|
||||
String[] mpArr = mpList.split(",");
|
||||
int total = depotItemService.getListWithBugOrSaleCount(StringUtil.toNull(materialParam),
|
||||
int total = depotItemService.getListWithBuyOrSaleCount(StringUtil.toNull(materialParam),
|
||||
"sale", beginTime, endTime, creatorArray, organId, organArray, depotList, forceFlag);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
@@ -865,6 +871,8 @@ public class DepotItemController {
|
||||
String materialOther = depotItemService.getOtherInfo(mpArr, diEx);
|
||||
item.put("materialOther", materialOther);
|
||||
item.put("materialColor", diEx.getMColor());
|
||||
item.put("materialBrand", diEx.getBrand());
|
||||
item.put("materialMfrs", diEx.getMMfrs());
|
||||
item.put("materialUnit", diEx.getMaterialUnit());
|
||||
item.put("unitName", diEx.getUnitName());
|
||||
item.put("outSum", OutSum);
|
||||
@@ -939,7 +947,6 @@ public class DepotItemController {
|
||||
if (null != list) {
|
||||
for (DepotItemStockWarningCount disw : list) {
|
||||
DepotItemVo4WithInfoEx diEx = new DepotItemVo4WithInfoEx();
|
||||
diEx.setMMfrs(disw.getMMfrs());
|
||||
diEx.setMOtherField1(disw.getMOtherField1());
|
||||
diEx.setMOtherField2(disw.getMOtherField2());
|
||||
diEx.setMOtherField3(disw.getMOtherField3());
|
||||
|
||||
Reference in New Issue
Block a user