|
|
|
@ -5,41 +5,36 @@ import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.dxhy.order.baseservice.module.commodity.model.CommodityCodeEntity; |
|
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.dto.RewriteBzdhDTO; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.vo.OrderInfoVo; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.vo.OrderInfoTotalAmountVO; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderBzdhService; |
|
|
|
|
import com.dxhy.order.exception.OrderReceiveException; |
|
|
|
|
import com.dxhy.order.model.*; |
|
|
|
|
import com.dxhy.order.model.page.OrderListQuery; |
|
|
|
|
import com.dxhy.order.utils.CommonUtils; |
|
|
|
|
import com.dxhy.order.utils.JsonUtils; |
|
|
|
|
import com.dxhy.order.utils.NsrsbhUtils; |
|
|
|
|
import com.dxhy.order.utils.PageBeanConvertUtil; |
|
|
|
|
import com.dxhy.base.constant.OrderSeparationException; |
|
|
|
|
import com.dxhy.order.baseservice.annotation.SysLog; |
|
|
|
|
import com.dxhy.order.baseservice.module.base.service.BaseService; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.model.DeptEntity; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.service.UserInfoService; |
|
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
|
import com.dxhy.order.consumer.model.OderDetailInfo; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.PageKySlReq; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.PageKySlRsp; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.PageSlkjlyYxqRsp; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.vo.OrderInfoTotalAmountVO; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.vo.OrderInfoVo; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderInfoService; |
|
|
|
|
import com.dxhy.order.consumer.utils.PageDataDealUtil; |
|
|
|
|
import com.dxhy.order.consumer.utils.TaxSpecialPolicyUtil; |
|
|
|
|
import com.dxhy.order.exception.OrderReceiveException; |
|
|
|
|
import com.dxhy.order.model.*; |
|
|
|
|
import com.dxhy.order.model.page.OrderListQuery; |
|
|
|
|
import com.dxhy.order.utils.CommonUtils; |
|
|
|
|
import com.dxhy.order.utils.JsonUtils; |
|
|
|
|
import com.dxhy.order.utils.NsrsbhUtils; |
|
|
|
|
import com.dxhy.order.utils.PageBeanConvertUtil; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
|
import java.util.*; |
|
|
|
|
import java.util.regex.Matcher; |
|
|
|
|
|
|
|
|
@ -166,14 +161,15 @@ public class OrderInfoController { |
|
|
|
|
@ApiOperation(value = "发票列表", notes = "发票列表修改报账单号") |
|
|
|
|
@SysLog(operation = "发票列表", operationDesc = "发票列表修改报账单号", key = "订单发票管理") |
|
|
|
|
public R updateBillNumber(@RequestParam("bzdh") String bzdh, |
|
|
|
|
@RequestParam("orderInfoId") String orderInfoId, |
|
|
|
|
@RequestParam("fpqqlsh")String fpqqlsh, |
|
|
|
|
@RequestParam("xhfNsrsbh")String xhfNsrsbh) { |
|
|
|
|
@RequestParam("orderInfoId") String orderInfoId |
|
|
|
|
// @RequestParam("fpqqlsh")String fpqqlsh,
|
|
|
|
|
// @RequestParam("xhfNsrsbh")String xhfNsrsbh
|
|
|
|
|
) { |
|
|
|
|
if(StringUtils.isBlank(bzdh)||StringUtils.isBlank(orderInfoId)){ |
|
|
|
|
return R.error("请求参数有误"); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
int i = orderInfoService.updateBillNumber(bzdh, orderInfoId,fpqqlsh,xhfNsrsbh); |
|
|
|
|
int i = orderInfoService.updateBillNumber(bzdh, orderInfoId,"",""); |
|
|
|
|
if(i > 0){ |
|
|
|
|
return R.ok(); |
|
|
|
|
} |
|
|
|
|