|
|
@@ -3,6 +3,7 @@ package com.tld.service.impl;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.tld.mapper.WebPrintMapper;
|
|
|
+import com.tld.model.SupportingCodeSn;
|
|
|
import com.tld.model.TldPrint;
|
|
|
import com.tld.model.User;
|
|
|
import com.tld.service.WebPrintService;
|
|
|
@@ -83,6 +84,21 @@ public class WebPrintServiceImpl implements WebPrintService {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<String, Object> addSupportingCodeSn(SupportingCodeSn supportingCodeSn, HttpServletRequest request) {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ try{
|
|
|
+ supportingCodeSn.setUserId(request.getHeader("userId"));
|
|
|
+ webPrintMapper.addSupportingCodeSn(supportingCodeSn);
|
|
|
+ map.put("msg", "200");
|
|
|
+ } catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ map.put("msg", "500");
|
|
|
+ map.put("errMsg", "服务器请求异常,请稍后再试");
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 供应商编号生成
|
|
|
* @param code 参数
|