增加批量设置会员当前的预付款接口,完善单据中收预付款的更新逻辑

This commit is contained in:
季圣华
2023-12-18 23:35:55 +08:00
parent 1daf602ecc
commit 0e87202d7c
8 changed files with 100 additions and 39 deletions

View File

@@ -391,4 +391,25 @@ public class SupplierController {
}
}
/**
* 批量设置会员当前的预付款
* @param jsonObject
* @param request
* @return
* @throws Exception
*/
@PostMapping(value = "/batchSetAdvanceIn")
@ApiOperation(value = "批量设置会员当前的预付款")
public String batchSetAdvanceIn(@RequestBody JSONObject jsonObject,
HttpServletRequest request)throws Exception {
String ids = jsonObject.getString("ids");
Map<String, Object> objectMap = new HashMap<>();
int res = supplierService.batchSetAdvanceIn(ids);
if(res > 0) {
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
} else {
return returnJson(objectMap, ErpInfo.ERROR.name, ErpInfo.ERROR.code);
}
}
}