|
@@ -241,7 +241,7 @@ public class OwnBillController extends BaseController {
|
|
|
*/
|
|
|
@Log(title = "往来账款金额计算修改", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping(value = "/getAmount")
|
|
|
- public AjaxResult getBillAmount(String zbiId) {
|
|
|
+ public AjaxResult getBillAmount(@RequestBody Map map) {
|
|
|
//获取用户信息
|
|
|
LoginUser userInfo = tokenService.getLoginUser();
|
|
|
//企业id
|
|
@@ -249,7 +249,7 @@ public class OwnBillController extends BaseController {
|
|
|
//查询关联往来账款的发票
|
|
|
LambdaQueryWrapper<ZcBillInvoiceRel> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
//往来账款id
|
|
|
- lambdaQueryWrapper.eq(ZcBillInvoiceRel::getZbirBillId,zbiId);
|
|
|
+ lambdaQueryWrapper.eq(ZcBillInvoiceRel::getZbirBillId,CommonUtil.objToString(map.get("zbiId")));
|
|
|
List<ZcBillInvoiceRel> relList = iZcBillInvoiceRelService.findZcBillInvoiceRels(lambdaQueryWrapper);
|
|
|
//账款金额
|
|
|
String amount = "0.00";
|
|
@@ -262,8 +262,8 @@ public class OwnBillController extends BaseController {
|
|
|
//价税合计
|
|
|
amount = AmtUtil.add(amount, zcInvoiceInf.getZiiAmount());
|
|
|
}
|
|
|
- ZcBillInf zcBillInf = iZcBillInfService.getById(zbiId);
|
|
|
- zcBillInf.setZbiId(zbiId);
|
|
|
+ ZcBillInf zcBillInf = iZcBillInfService.getById(CommonUtil.objToString(map.get("zbiId")));
|
|
|
+ zcBillInf.setZbiId(CommonUtil.objToString(map.get("zbiId")));
|
|
|
//账款金额
|
|
|
zcBillInf.setZbiAmount(amount);
|
|
|
//修改人
|