|
@@ -8,6 +8,7 @@ import com.fjhx.sale.service.contract.ContractService;
|
|
|
import com.fjhx.sale.service.statement.SaleStatementService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -25,7 +26,7 @@ public class SaleStatementController {
|
|
|
* 利润结算表
|
|
|
*/
|
|
|
@PostMapping("/getProfitSettlement")
|
|
|
- public Page<ProfitSettlementVo> getProfitSettlement(ProfitSettlementDto dto) {
|
|
|
+ public Page<ProfitSettlementVo> getProfitSettlement(@RequestBody ProfitSettlementDto dto) {
|
|
|
return saleStatementService.getProfitSettlement(dto);
|
|
|
}
|
|
|
|
|
@@ -33,7 +34,7 @@ public class SaleStatementController {
|
|
|
* 编辑
|
|
|
*/
|
|
|
@PostMapping("/update")
|
|
|
- public void update(Contract contract) {
|
|
|
+ public void update(@RequestBody Contract contract) {
|
|
|
contractService.updateById(contract);
|
|
|
}
|
|
|
|