|
|
|
@ -34,9 +34,11 @@ 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; |
|
|
|
|
|
|
|
|
@ -150,6 +152,24 @@ public class OrderInfoController { |
|
|
|
|
return R.error(OrderInfoContentEnum.INTERNAL_SERVER_ERROR); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@PostMapping("/updateBillNumber") |
|
|
|
|
@ApiOperation(value = "发票列表", notes = "发票列表修改报账单号") |
|
|
|
|
@SysLog(operation = "发票列表", operationDesc = "发票列表修改报账单号", key = "订单发票管理") |
|
|
|
|
public R updateBillNumber(@RequestParam("bzdh") String bzdh, @RequestParam("orderInfoId") String orderInfoId) { |
|
|
|
|
if(StringUtils.isBlank(bzdh)||StringUtils.isBlank(orderInfoId)){ |
|
|
|
|
return R.error("请求参数有误"); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
int i = orderInfoService.updateBillNumber(bzdh, orderInfoId); |
|
|
|
|
if(i > 0){ |
|
|
|
|
return R.ok(); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return R.error("更新失败,请稍后重试"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取订单详情 |
|
|
|
|