Commit 019e2e45 authored by hanfeng's avatar hanfeng

开票

parent 54f7ecbb
......@@ -79,11 +79,11 @@ public class InvoiceController extends BaseController<InvoiceBiz, Invoice> {
*/
@PostMapping("/invoicing")
public ObjectRestResponse invoicing(@RequestBody InvoiceVo invoiceVo,HttpServletRequest request) throws Exception {
String token = request.getHeader("Authorization");
log.info("开票信息={}", invoiceVo);
IJWTInfo infoFromToken = userAuthUtil.getInfoFromToken(token);
invoiceVo.setUserId(Integer.valueOf(infoFromToken.getId()));
invoiceVo.setCreateBy(infoFromToken.getName());
// String token = request.getHeader("Authorization");
// log.info("开票信息={}", invoiceVo);
// IJWTInfo infoFromToken = userAuthUtil.getInfoFromToken(token);
// invoiceVo.setUserId(Integer.valueOf(infoFromToken.getId()));
// invoiceVo.setCreateBy(infoFromToken.getName());
try {
String invoicing = baseBiz.Invoicing(invoiceVo,request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment