|
|
@ -6,6 +6,7 @@ import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerOriganze;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerOriganze;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.MesPart;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.MesPart;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.mes.model.StationRequestBean;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.MesCustomerOriganizeRepository;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.MesCustomerOriganizeRepository;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.MesLabelTemplateRepository;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.MesLabelTemplateRepository;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.MesPartRepository;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.MesPartRepository;
|
|
|
@ -36,14 +37,14 @@ public class AionPrintStrategy implements IPrintTemplateStrategyService {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private MesPartRepository mesPartRao;
|
|
|
|
private MesPartRepository mesPartRao;
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Map<String,Object> execute(MesProductionPsOutContext sn, String organizeCode) {
|
|
|
|
public Map<String,Object> execute(StationRequestBean reqBean, MesProductionPsOutContext sn, String organizeCode) {
|
|
|
|
//零件条码中获取 serialNo
|
|
|
|
//零件条码中获取 serialNo
|
|
|
|
String productSn = sn.getProductSn();
|
|
|
|
String productSn = sn.getProductSn();
|
|
|
|
//构造标签
|
|
|
|
//构造标签
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
Map<String,Object> map = new HashMap<>();
|
|
|
|
String partNo = sn.getPartNo();
|
|
|
|
String partNo = sn.getPartNo();
|
|
|
|
String partName = sn.getPartName();
|
|
|
|
String partName = sn.getPartName();
|
|
|
|
String factoryName = AuthUtil.getOrganize().getName();
|
|
|
|
String factoryName = reqBean.getOrganizeName();
|
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
|
|
|
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
String productDate = now.format(formatter);
|
|
|
|
String productDate = now.format(formatter);
|
|
|
|