增加调拨明细

This commit is contained in:
季圣华
2021-07-29 22:21:40 +08:00
parent 6eb3ff526a
commit 20751c6749
7 changed files with 171 additions and 3 deletions

View File

@@ -174,6 +174,50 @@ public class DepotHeadController {
return res;
}
/**
* 调拨明细接口 TODO:by sdw 20210724
* @param currentPage
* @param pageSize
* @param oId
* @param materialParam
* @param depotIdF 调出仓库
* @param depotId 调入仓库
* @param beginTime
* @param endTime
* @param subType
* @param request
* @return
*/
@GetMapping(value = "/findAllocationDetail")
public BaseResponseInfo findallocationDetail(@RequestParam("currentPage") Integer currentPage,
@RequestParam("pageSize") Integer pageSize,
@RequestParam("organId") Integer oId,
@RequestParam("materialParam") String materialParam,
@RequestParam("depotId") Integer depotId,
@RequestParam("depotIdF") Integer depotIdF,
@RequestParam("beginTime") String beginTime,
@RequestParam("endTime") String endTime,
@RequestParam("subType") String subType,
HttpServletRequest request)throws Exception {
BaseResponseInfo res = new BaseResponseInfo();
Map<String, Object> map = new HashMap<String, Object>();
try {
beginTime = Tools.parseDayToTime(beginTime, BusinessConstants.DAY_FIRST_TIME);
endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME);
List<DepotHeadVo4InDetail> list = depotHeadService.findAllocationDetail(beginTime, endTime, subType, materialParam, depotId, depotIdF, oId, (currentPage-1)*pageSize, pageSize);
int total = depotHeadService.findAllocationDetailCount(beginTime, endTime, subType, materialParam, depotId, depotIdF,oId);
map.put("rows", list);
map.put("total", total);
res.code = 200;
res.data = map;
} catch(Exception e){
e.printStackTrace();
res.code = 500;
res.data = "获取数据失败";
}
return res;
}
/**
* 对账单接口
* @param currentPage

View File

@@ -87,6 +87,26 @@ public interface DepotHeadMapperEx {
@Param("depotId") Integer depotId,
@Param("oId") Integer oId);
List<DepotHeadVo4InDetail> findAllocationDetail(
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("subType") String subType,
@Param("materialParam") String materialParam,
@Param("depotId") Integer depotId,
@Param("depotIdF") Integer depotIdF,
@Param("oId") Integer oId,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int findAllocationDetailCount(
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("subType") String subType,
@Param("materialParam") String materialParam,
@Param("depotId") Integer depotId,
@Param("depotIdF") Integer depotIdF,
@Param("oId") Integer oId);
List<DepotHeadVo4StatementAccount> findStatementAccount(
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,

View File

@@ -18,6 +18,10 @@ public class DepotHeadVo4InDetail {
private BigDecimal UnitPrice;
private String mUnit;
private String newRemark;
private BigDecimal OperNumber;
private BigDecimal AllPrice;
@@ -80,6 +84,22 @@ public class DepotHeadVo4InDetail {
UnitPrice = unitPrice;
}
public String getmUnit() {
return mUnit;
}
public void setmUnit(String mUnit) {
this.mUnit = mUnit;
}
public String getNewRemark() {
return newRemark;
}
public void setNewRemark(String newRemark) {
this.newRemark = newRemark;
}
public BigDecimal getOperNumber() {
return OperNumber;
}

View File

@@ -421,6 +421,26 @@ public class DepotHeadService {
return result;
}
public List<DepotHeadVo4InDetail> findAllocationDetail(String beginTime, String endTime, String subType, String materialParam, Integer depotId, Integer depotIdF, Integer oId, Integer offset, Integer rows) throws Exception{
List<DepotHeadVo4InDetail> list = null;
try{
list =depotHeadMapperEx.findAllocationDetail(beginTime, endTime, subType, materialParam, depotId, depotIdF, oId, offset, rows);
}catch(Exception e){
JshException.readFail(logger, e);
}
return list;
}
public int findAllocationDetailCount(String beginTime, String endTime, String subType, String materialParam, Integer depotId, Integer depotIdF,Integer oId) throws Exception{
int result = 0;
try{
result =depotHeadMapperEx.findAllocationDetailCount(beginTime, endTime, subType, materialParam, depotId,depotIdF, oId);
}catch(Exception e){
JshException.readFail(logger, e);
}
return result;
}
public List<DepotHeadVo4StatementAccount> findStatementAccount(String beginTime, String endTime, Integer organId, String supType, Integer offset, Integer rows)throws Exception {
List<DepotHeadVo4StatementAccount> list = null;
try{