package com.changhong.epc.tenant.controller.bill; import com.changhong.epc.bean.parsing.BillInfo; import com.changhong.epc.constter.tenant.TenantUrlConst; import com.changhong.epc.tenant.service.bill.BillInfoService; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** * 票据信息 */ @RestController public class BillInfoController implements TenantUrlConst { @Resource private BillInfoService billInfoService; /** * 修改票据状态 * @param billInfo * @return */ @PostMapping(REST_TENANT_BILLINFO_UPDATE_START) public int updateBillStart(@RequestBody BillInfo billInfo){ return billInfoService.updateStart(billInfo.getOrderCode()); } }