|
|
@ -13,6 +13,8 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Description : 条码打印记录表
|
|
|
|
* @Description : 条码打印记录表
|
|
|
|
* @Reference :
|
|
|
|
* @Reference :
|
|
|
@ -39,6 +41,18 @@ public class MesPrintedSnLogServiceImpl implements IMesPrintedSnLogService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public MesPrintedSnLog getMesCustomPrintedSnLog(String userName, String organizeCode, MesProduceSnPrintDataModel printDataModel, Map<String, Object> printContext) {
|
|
|
|
|
|
|
|
MesPrintedSnLog snLog = new MesPrintedSnLog();
|
|
|
|
|
|
|
|
BeanUtil.copyProperties(printDataModel, snLog);
|
|
|
|
|
|
|
|
snLog.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
snLog.setPrintContext(printContext);
|
|
|
|
|
|
|
|
snLog.setPrintData(JSONObject.toJSONString(printContext));
|
|
|
|
|
|
|
|
snLog.setPrintType(MesExtEnumUtil.PRINT_LOG_TYPE.PRINT_LOG_TYPE_10.getValue());
|
|
|
|
|
|
|
|
ConvertBean.serviceModelInitialize(snLog, userName);
|
|
|
|
|
|
|
|
return snLog;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void insertMesPrintedSnLog(MesPrintedSnLog mesPrintedSnLog, String userName) {
|
|
|
|
public void insertMesPrintedSnLog(MesPrintedSnLog mesPrintedSnLog, String userName) {
|
|
|
|
MesPrintedSnLog snLog = new MesPrintedSnLog();
|
|
|
|
MesPrintedSnLog snLog = new MesPrintedSnLog();
|
|
|
|
BeanUtil.copyProperties(mesPrintedSnLog, snLog, MesPcnExtConstWords.BASE_BEAN_FIELDS);
|
|
|
|
BeanUtil.copyProperties(mesPrintedSnLog, snLog, MesPcnExtConstWords.BASE_BEAN_FIELDS);
|
|
|
|