package com.changhong.epc.tenant.controller.bill; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import com.changhong.epc.bean.tenant.bill.BillData; import com.changhong.epc.constter.tenant.TenantUrlConst; import com.changhong.epc.tenant.service.bill.BillDataService; @RestController public class BillDataController implements TenantUrlConst{ @Resource(name="billDataService") private BillDataService billDataService; // @Resource(name="billApiService") // private BillApiService billApiService; /* * 按照单号查询 */ @PostMapping(REST_TENANT_BILLDATA_SELECT) public List selectByCode(@RequestBody BillData billData){ return billDataService.selectByCode(billData); } /**暂时主调 * 票据纠偏 * @return */ // @PostMapping(REST_TENANT_BILLDATA_CORRECTBILL) // public String billCorrect(@RequestBody String orderCode ){ // return billApiService.billCorrect(orderCode); // } @PostMapping(REST_TENANT_BILLDATA_UPDATABYJID) public Integer updateBillDataByJouryId(@RequestBody Map paramMap){ billDataService.updateBillDataByJouryId(paramMap); return null; } /** * 根据orderCode ,j_id 查询票据信息 * @param billData * @return */ @PostMapping(REST_TENANT_BILLDATA_SELECTBYCAJ) public BillData selectByOrderCodeAndJ(@RequestBody BillData billData){ return billDataService.selectByOrderCodeAndJ(billData.getOrderCode(),billData.getJId()); } }