md
This commit is contained in:
parent
ae0e6bb8bc
commit
51f7c41b40
@ -126,7 +126,6 @@ public class EmisCommonController extends EmisBaseController
|
|||||||
return AjaxResult.success("获取成功",emisElectronicPagService.getCenterTotalAvailablePag("T7080"));
|
return AjaxResult.success("获取成功",emisElectronicPagService.getCenterTotalAvailablePag("T7080"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取网点总可用面单数
|
* 获取网点总可用面单数
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -69,6 +69,25 @@ public class EmisMonthpayAccountController extends EmisBaseController
|
|||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所有月结客户,包含停用的客户
|
||||||
|
* @param emisCustomerUser
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@JacksonFilter(include= {"custNo","custName","payee","salesmen","payeeName","salesmenName"},value= EmisCustomerUser.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||||
|
@GetMapping("/listAllSimple")
|
||||||
|
public TableDataInfo listAllSimple(EmisCustomerUser emisCustomerUser)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
if(!(getLoginUser().getUser().isTopSite())){
|
||||||
|
emisCustomerUser.setBizSite(getLoginUser().getUser().getOwnerSiteCode());
|
||||||
|
}
|
||||||
|
emisCustomerUser.setCustomerType("2");
|
||||||
|
List<EmisCustomerUser> list = emisCustomerUserService.selectEmisCustomerUserList(emisCustomerUser);
|
||||||
|
return getDataTable(list);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取月结卡信息 注意,该接口单独重新包装,使用月结用户信息
|
* 获取月结卡信息 注意,该接口单独重新包装,使用月结用户信息
|
||||||
* @param emisCustomerUser
|
* @param emisCustomerUser
|
||||||
|
|||||||
@ -96,4 +96,7 @@ public class EmisWaybillDeclareGoods extends BaseEntity
|
|||||||
/* 排序 */
|
/* 排序 */
|
||||||
private Integer orderNum;
|
private Integer orderNum;
|
||||||
|
|
||||||
|
// 扩展字段
|
||||||
|
/* 货值=单价x数量 */
|
||||||
|
private BigDecimal totalPrice;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4184,7 +4184,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
tplName="tpl/ws_ls_in_tpl.docx";
|
tplName="tpl/ws_ls_in_tpl.docx";
|
||||||
}
|
}
|
||||||
|
|
||||||
BigDecimal totalPrice=BigDecimal.ZERO;
|
BigDecimal totalAllPrice=BigDecimal.ZERO;
|
||||||
try {
|
try {
|
||||||
OutputStream outputStream = response.getOutputStream();
|
OutputStream outputStream = response.getOutputStream();
|
||||||
InputStream fis = new ClassPathResource(tplName).getInputStream();
|
InputStream fis = new ClassPathResource(tplName).getInputStream();
|
||||||
@ -4208,12 +4208,18 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
|
|
||||||
if(itemGoods.getCargoQty()!=null) {
|
if(itemGoods.getCargoQty()!=null) {
|
||||||
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
||||||
|
}else{
|
||||||
|
itemGoods.setCargoQty(new BigDecimal(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(itemGoods.getPrice()!=null) {
|
if(itemGoods.getPrice()!=null) {
|
||||||
itemGoods.setPrice(new BigDecimal(itemGoods.getPrice().stripTrailingZeros().toPlainString()));
|
itemGoods.setPrice(new BigDecimal(itemGoods.getPrice().stripTrailingZeros().toPlainString()));
|
||||||
totalPrice = totalPrice.add(itemGoods.getPrice());
|
BigDecimal totalPrice = itemGoods.getPrice().multiply(itemGoods.getCargoQty());
|
||||||
|
itemGoods.setTotalPrice(totalPrice);
|
||||||
|
|
||||||
|
totalAllPrice=totalAllPrice.add(totalPrice);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -4314,7 +4320,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
|
|
||||||
fillMap.put("cargoList", declareGoodsList);
|
fillMap.put("cargoList", declareGoodsList);
|
||||||
|
|
||||||
fillMap.put("totalPrice", totalPrice.stripTrailingZeros().toPlainString());
|
fillMap.put("totalAllPrice", totalAllPrice.stripTrailingZeros().toPlainString());
|
||||||
|
|
||||||
// 生成模版
|
// 生成模版
|
||||||
XWPFTemplate template = XWPFTemplate.compile(fis, config).render(fillMap);
|
XWPFTemplate template = XWPFTemplate.compile(fis, config).render(fillMap);
|
||||||
@ -4400,7 +4406,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
tplName="tpl/ws_ls_in_tpl.docx";
|
tplName="tpl/ws_ls_in_tpl.docx";
|
||||||
}
|
}
|
||||||
|
|
||||||
BigDecimal totalPrice=BigDecimal.ZERO;
|
BigDecimal totalAllPrice=BigDecimal.ZERO;
|
||||||
try {
|
try {
|
||||||
OutputStream outputStream = response.getOutputStream();
|
OutputStream outputStream = response.getOutputStream();
|
||||||
InputStream fis = new ClassPathResource(tplName).getInputStream();
|
InputStream fis = new ClassPathResource(tplName).getInputStream();
|
||||||
@ -4426,11 +4432,16 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
|
|
||||||
if(itemGoods.getCargoQty()!=null) {
|
if(itemGoods.getCargoQty()!=null) {
|
||||||
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
itemGoods.setCargoQty(new BigDecimal(itemGoods.getCargoQty().stripTrailingZeros().toPlainString()));
|
||||||
|
}else{
|
||||||
|
itemGoods.setCargoQty(new BigDecimal(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(itemGoods.getPrice()!=null) {
|
if(itemGoods.getPrice()!=null) {
|
||||||
itemGoods.setPrice(new BigDecimal(itemGoods.getPrice().stripTrailingZeros().toPlainString()));
|
itemGoods.setPrice(new BigDecimal(itemGoods.getPrice().stripTrailingZeros().toPlainString()));
|
||||||
totalPrice = totalPrice.add(itemGoods.getPrice());
|
BigDecimal totalPrice = itemGoods.getPrice().multiply(itemGoods.getCargoQty());
|
||||||
|
itemGoods.setTotalPrice(totalPrice);
|
||||||
|
|
||||||
|
totalAllPrice=totalAllPrice.add(totalPrice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4530,7 +4541,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
|
|
||||||
fillMap.put("cargoList", declareGoodsList);
|
fillMap.put("cargoList", declareGoodsList);
|
||||||
|
|
||||||
fillMap.put("totalPrice", totalPrice.stripTrailingZeros().toPlainString());
|
fillMap.put("totalAllPrice", totalAllPrice.stripTrailingZeros().toPlainString());
|
||||||
|
|
||||||
// 生成模版
|
// 生成模版
|
||||||
XWPFTemplate template = XWPFTemplate.compile(fis, config).render(fillMap);
|
XWPFTemplate template = XWPFTemplate.compile(fis, config).render(fillMap);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user