离线客户条码打印

master
臧学普 6 months ago
parent 648a4974b8
commit a136ddb882

@ -1,15 +1,13 @@
package cn.estsh.i3plus.ext.mes.pcn.apiservice.controller.busi.offlinesn; package cn.estsh.i3plus.ext.mes.pcn.apiservice.controller.busi.offlinesn;
import cn.estsh.i3plus.ext.mes.pcn.apiservice.model.MesCustSnOfflineModel;
import cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.offlineprint.MesOfflinePrintServiceImpl; import cn.estsh.i3plus.ext.mes.pcn.apiservice.serviceimpl.offlineprint.MesOfflinePrintServiceImpl;
import cn.estsh.i3plus.ext.mes.pcn.pojo.constant.MesCommonConstant; import cn.estsh.i3plus.ext.mes.pcn.pojo.constant.MesCommonConstant;
import cn.estsh.impp.framework.boot.util.ResultBean; import cn.estsh.impp.framework.boot.util.ResultBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map; import java.util.Map;
@ -21,12 +19,12 @@ public class MesWuhanOfflinePrintController {
@Autowired @Autowired
private MesOfflinePrintServiceImpl mesOfflinePrintService; private MesOfflinePrintServiceImpl mesOfflinePrintService;
@GetMapping("/cust-sn/{custSn}/{templateCode}/{organizeCode}") @PostMapping("/cust-sn")
public ResultBean custSn(@PathVariable("custSn") String custSn,@PathVariable("templateCode") String templateCode,@PathVariable("organizeCode") String organizeCode) { public ResultBean custSn(@RequestBody MesCustSnOfflineModel model) {
Map<String, Object> custSnOfflineInfo = null; Map<String, Object> custSnOfflineInfo = null;
try { try {
custSnOfflineInfo = mesOfflinePrintService.getCustSnOfflineInfo(custSn, templateCode, organizeCode); custSnOfflineInfo = mesOfflinePrintService.getCustSnOfflineInfo(model.getCustSn(), model.getTemplateCode(), model.getOrganizeCode());
} catch (Exception e) { } catch (Exception e) {
ResultBean.fail().setErrorMsg(e.getMessage()); ResultBean.fail().setErrorMsg(e.getMessage());
} }

@ -0,0 +1,12 @@
package cn.estsh.i3plus.ext.mes.pcn.apiservice.model;
import lombok.Data;
@Data
public class MesCustSnOfflineModel {
private String custSn;
private String templateCode;
private String organizeCode;
}
Loading…
Cancel
Save