给出入库明细接口增加税率和税额字段
This commit is contained in:
@@ -126,9 +126,9 @@ public class DepotHeadController {
|
||||
String [] organArray = depotHeadService.getOrganArray(subType, "");
|
||||
beginTime = Tools.parseDayToTime(beginTime, BusinessConstants.DAY_FIRST_TIME);
|
||||
endTime = Tools.parseDayToTime(endTime,BusinessConstants.DAY_LAST_TIME);
|
||||
List<DepotHeadVo4InDetail> list = depotHeadService.findByAll(beginTime, endTime, type, creatorArray, organArray,
|
||||
List<DepotHeadVo4InDetail> list = depotHeadService.findInDetail(beginTime, endTime, type, creatorArray, organArray,
|
||||
StringUtil.toNull(materialParam), depotList, oId, StringUtil.toNull(number), remark, (currentPage-1)*pageSize, pageSize);
|
||||
int total = depotHeadService.findByAllCount(beginTime, endTime, type, creatorArray, organArray,
|
||||
int total = depotHeadService.findInDetailCount(beginTime, endTime, type, creatorArray, organArray,
|
||||
StringUtil.toNull(materialParam), depotList, oId, StringUtil.toNull(number), remark);
|
||||
map.put("total", total);
|
||||
//存放数据json数组
|
||||
|
||||
@@ -61,7 +61,7 @@ public interface DepotHeadMapperEx {
|
||||
String findMaterialsListByHeaderId(
|
||||
@Param("id") Long id);
|
||||
|
||||
List<DepotHeadVo4InDetail> findByAll(
|
||||
List<DepotHeadVo4InDetail> findInDetail(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("type") String type,
|
||||
@@ -75,7 +75,7 @@ public interface DepotHeadMapperEx {
|
||||
@Param("offset") Integer offset,
|
||||
@Param("rows") Integer rows);
|
||||
|
||||
int findByAllCount(
|
||||
int findInDetailCount(
|
||||
@Param("beginTime") String beginTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("type") String type,
|
||||
|
||||
@@ -26,6 +26,12 @@ public class DepotHeadVo4InDetail {
|
||||
|
||||
private BigDecimal AllPrice;
|
||||
|
||||
private BigDecimal taxRate;
|
||||
|
||||
private BigDecimal taxMoney;
|
||||
|
||||
private BigDecimal taxLastMoney;
|
||||
|
||||
private String SName;
|
||||
|
||||
private String DName;
|
||||
@@ -116,6 +122,30 @@ public class DepotHeadVo4InDetail {
|
||||
AllPrice = allPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxRate() {
|
||||
return taxRate;
|
||||
}
|
||||
|
||||
public void setTaxRate(BigDecimal taxRate) {
|
||||
this.taxRate = taxRate;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxMoney() {
|
||||
return taxMoney;
|
||||
}
|
||||
|
||||
public void setTaxMoney(BigDecimal taxMoney) {
|
||||
this.taxMoney = taxMoney;
|
||||
}
|
||||
|
||||
public BigDecimal getTaxLastMoney() {
|
||||
return taxLastMoney;
|
||||
}
|
||||
|
||||
public void setTaxLastMoney(BigDecimal taxLastMoney) {
|
||||
this.taxLastMoney = taxLastMoney;
|
||||
}
|
||||
|
||||
public String getSName() {
|
||||
return SName;
|
||||
}
|
||||
|
||||
@@ -486,24 +486,24 @@ public class DepotHeadService {
|
||||
return result;
|
||||
}
|
||||
|
||||
public List<DepotHeadVo4InDetail> findByAll(String beginTime, String endTime, String type, String [] creatorArray,
|
||||
public List<DepotHeadVo4InDetail> findInDetail(String beginTime, String endTime, String type, String [] creatorArray,
|
||||
String [] organArray, String materialParam, List<Long> depotList, Integer oId, String number,
|
||||
String remark, Integer offset, Integer rows) throws Exception{
|
||||
List<DepotHeadVo4InDetail> list = null;
|
||||
try{
|
||||
list =depotHeadMapperEx.findByAll(beginTime, endTime, type, creatorArray, organArray, materialParam, depotList, oId, number, remark, offset, rows);
|
||||
list =depotHeadMapperEx.findInDetail(beginTime, endTime, type, creatorArray, organArray, materialParam, depotList, oId, number, remark, offset, rows);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public int findByAllCount(String beginTime, String endTime, String type, String [] creatorArray,
|
||||
public int findInDetailCount(String beginTime, String endTime, String type, String [] creatorArray,
|
||||
String [] organArray, String materialParam, List<Long> depotList, Integer oId, String number,
|
||||
String remark) throws Exception{
|
||||
int result = 0;
|
||||
try{
|
||||
result =depotHeadMapperEx.findByAllCount(beginTime, endTime, type, creatorArray, organArray, materialParam, depotList, oId, number, remark);
|
||||
result =depotHeadMapperEx.findInDetailCount(beginTime, endTime, type, creatorArray, organArray, materialParam, depotList, oId, number, remark);
|
||||
}catch(Exception e){
|
||||
JshException.readFail(logger, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user