Commit 2abae2bb by 杨清松

根据合同查询账单接口区分场站和购砂

parent 074060e1
......@@ -69,7 +69,7 @@ public class StatementAccountController {
}
/**
* 预付款
* 根据合同和类型查询账单
* @param
* @return
*/
......@@ -85,5 +85,41 @@ public class StatementAccountController {
}
}
/**
* 根据合同和类型查询账单(购砂单位)
* @param
* @return
*/
@ResponseBody
@RequestMapping(value = "/sand/user/finance/statementAccount/queryAccountByContractId", method = RequestMethod.POST)
public Object queryAdvanceByContractIdSandUser(@RequestBody String body) {
try{
List<StatementAccount> advanceAmount = statementAccountService.queryAccountByContractId(new JSONObject(body));
return ResponseObj.success("查询成功", advanceAmount);
} catch(Exception e) {
e.printStackTrace();
return ResponseObj.error();
}
}
/**
* 根据合同和类型查询账单(场站)
* @param
* @return
*/
@ResponseBody
@RequestMapping(value = "/warehouseuser/finance/statementAccount/queryAccountByContractId", method = RequestMethod.POST)
public Object queryAdvanceByContractIdWarehouseuser(@RequestBody String body) {
try{
List<StatementAccount> advanceAmount = statementAccountService.queryAccountByContractId(new JSONObject(body));
return ResponseObj.success("查询成功", advanceAmount);
} catch(Exception e) {
e.printStackTrace();
return ResponseObj.error();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment