|
@@ -33,7 +33,7 @@ public class SupplySettlementController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/detail")
|
|
@PostMapping("/detail")
|
|
|
public Result<SupplySettlement> detail(@RequestBody Map<String, Object> params) {
|
|
public Result<SupplySettlement> detail(@RequestBody Map<String, Object> params) {
|
|
|
- Long id = params.get("id") != null ? ((Number) params.get("id")).longValue() : null;
|
|
|
|
|
|
|
+ Long id = params.get("id") != null ? Long.valueOf(params.get("id").toString()) : null;
|
|
|
if (id == null) {
|
|
if (id == null) {
|
|
|
return Result.error("id不能为空");
|
|
return Result.error("id不能为空");
|
|
|
}
|
|
}
|
|
@@ -46,7 +46,7 @@ public class SupplySettlementController {
|
|
|
@PostMapping("/detail-items")
|
|
@PostMapping("/detail-items")
|
|
|
public Result<List<SupplySettlementDetail>> detailItems(@RequestBody Map<String, Object> params) {
|
|
public Result<List<SupplySettlementDetail>> detailItems(@RequestBody Map<String, Object> params) {
|
|
|
Long settlementId = params.get("settlementId") != null
|
|
Long settlementId = params.get("settlementId") != null
|
|
|
- ? ((Number) params.get("settlementId")).longValue() : null;
|
|
|
|
|
|
|
+ ? Long.valueOf(params.get("settlementId").toString()) : null;
|
|
|
if (settlementId == null) {
|
|
if (settlementId == null) {
|
|
|
return Result.error("settlementId不能为空");
|
|
return Result.error("settlementId不能为空");
|
|
|
}
|
|
}
|
|
@@ -66,7 +66,7 @@ public class SupplySettlementController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/confirm")
|
|
@PostMapping("/confirm")
|
|
|
public Result<Void> confirm(@RequestBody Map<String, Object> params) {
|
|
public Result<Void> confirm(@RequestBody Map<String, Object> params) {
|
|
|
- Long id = params.get("id") != null ? ((Number) params.get("id")).longValue() : null;
|
|
|
|
|
|
|
+ Long id = params.get("id") != null ? Long.valueOf(params.get("id").toString()) : null;
|
|
|
if (id == null) {
|
|
if (id == null) {
|
|
|
return Result.error("id不能为空");
|
|
return Result.error("id不能为空");
|
|
|
}
|
|
}
|