package com.sunxung.factoring.web.acceptancesheet;

import com.sunxung.factoring.entity.ResponseJson;
import com.sunxung.factoring.entity.acceptance.CAcceptancePriceAdjustInfo;
import com.sunxung.factoring.service.acceptancesheet.ICAcceptancePriceAdjustInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 验收单单价调整对外controller
 * @Author Yafan Wang
 * @Date 2023/12/25 14:09
 */
@RestController
@RequestMapping("api/acceptancePriceAdjust")
public class AcceptancePriceAdjustApiController {

    @Autowired
    private ICAcceptancePriceAdjustInfoService acceptancePriceAdjustInfoService;

    @RequestMapping("startProcess")
    public ResponseJson startProcess(@RequestBody CAcceptancePriceAdjustInfo acceptancePriceAdjustInfo){
        acceptancePriceAdjustInfoService.startProcess(acceptancePriceAdjustInfo);
        return new ResponseJson("操作成功！");
    }

    @RequestMapping("handleProcess")
    public ResponseJson handleProcess(@RequestBody  CAcceptancePriceAdjustInfo acceptancePriceAdjustInfo){
        acceptancePriceAdjustInfoService.handleProcess(acceptancePriceAdjustInfo);
        return new ResponseJson("操作成功！");
    }

}
