philip 4 years ago
parent 44798dd703
commit 4ffd875b1e

@ -0,0 +1,43 @@
package com.foreverwin.mesnac.common.enums;
public enum InspectionTypeEnum {
S("首件检验","S"),
H("互检检验","H"),
Z("自检检验","Z"),
P("专检检验","P"),
EM("日常保养","EM"),
OM("一级保养","OM"),
SM("二级保养","SM"),
DM("日点检","DM"),
WM("周点检","WM"),
MM("月点检","MM"),
YM("年点检","YM"),
T("文本","T"),
N("数字","N"),
B("布尔","B");
private String code;
private String value;
InspectionTypeEnum(String code,String value) {
this.code = code;
this.value = value;
}
public String getCode() {
return code;
}
public String getValue() {
return value;
}
public static String getValue(String code) {
for (InspectionTypeEnum ele : values()) {
if(ele.getCode().equals(code)) return ele.getValue();
}
return null;
}
}

@ -23,5 +23,5 @@ public interface InspectionItemMapper extends BaseMapper<InspectionItem> {
List<InspectionItemDetail> selectWidestQualityInspection(@Param("site")String site,@Param("inspectionType")String inspectionType,@Param("additionalObject")String additionalObject);
Integer checkRouterStep(@Param("site")String site,@Param("operation") String operation,@Param("step") String step);
Integer checkRouterStep(@Param("site")String site,@Param("operation") String operation,@Param("stepId") String stepId);
}

@ -1,13 +1,14 @@
package com.foreverwin.mesnac.common.model;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
/**
* <p>
@ -73,7 +74,7 @@ public class InspectionItemDetail extends Model<InspectionItemDetail> {
*
*/
@TableField("MIN_VALUE")
private Double minValue;
private BigDecimal minValue;
/**
*
*/
@ -83,7 +84,7 @@ public class InspectionItemDetail extends Model<InspectionItemDetail> {
*
*/
@TableField("MAX_VALUE")
private Double maxValue;
private BigDecimal maxValue;
/**
* FALSE
*/
@ -198,11 +199,11 @@ public class InspectionItemDetail extends Model<InspectionItemDetail> {
this.decimalNum = decimalNum;
}
public Double getMinValue() {
public BigDecimal getMinValue() {
return minValue;
}
public void setMinValue(Double minValue) {
public void setMinValue(BigDecimal minValue) {
this.minValue = minValue;
}
@ -214,11 +215,11 @@ public class InspectionItemDetail extends Model<InspectionItemDetail> {
this.standardValue = standardValue;
}
public Double getMaxValue() {
public BigDecimal getMaxValue() {
return maxValue;
}
public void setMaxValue(Double maxValue) {
public void setMaxValue(BigDecimal maxValue) {
this.maxValue = maxValue;
}

@ -1,5 +1,6 @@
package com.foreverwin.mesnac.common.service;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.foreverwin.mesnac.common.model.InspectionItem;
import com.baomidou.mybatisplus.extension.service.IService;
@ -37,4 +38,6 @@ public interface InspectionItemService extends IService<InspectionItem> {
//是否存在质量检验项目
List<InspectionItemDetail> selectQualityInspection(String sfc, String operation, String stepId, String inspectionType);
void insert(JSONObject jsonObject);
}

@ -1,5 +1,6 @@
package com.foreverwin.mesnac.common.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
@ -7,6 +8,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.foreverwin.mesnac.common.constant.Constants;
import com.foreverwin.mesnac.common.enums.HandleEnum;
import com.foreverwin.mesnac.common.enums.InspectionTypeEnum;
import com.foreverwin.mesnac.common.mapper.InspectionItemMapper;
import com.foreverwin.mesnac.common.model.InspectionItem;
import com.foreverwin.mesnac.common.model.InspectionItemAddition;
@ -16,16 +18,19 @@ import com.foreverwin.mesnac.common.service.InspectionItemDetailService;
import com.foreverwin.mesnac.common.service.InspectionItemService;
import com.foreverwin.mesnac.common.util.StringUtil;
import com.foreverwin.mesnac.meapi.model.Item;
import com.foreverwin.mesnac.meapi.model.Operation;
import com.foreverwin.mesnac.meapi.model.ResourceType;
import com.foreverwin.mesnac.meapi.service.ItemService;
import com.foreverwin.mesnac.meapi.service.OperationService;
import com.foreverwin.mesnac.meapi.service.ResourceTypeService;
import com.foreverwin.modular.core.exception.BaseException;
import com.foreverwin.modular.core.util.CommonMethods;
import com.foreverwin.modular.core.util.FrontPage;
import com.visiprise.common.exception.BaseException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
@ -46,6 +51,8 @@ public class InspectionItemServiceImpl extends ServiceImpl<InspectionItemMapper,
@Autowired
private ItemService itemService;
@Autowired
private OperationService operationService;
@Autowired
private ResourceTypeService resourceTypeService;
@Autowired
private InspectionItemMapper inspectionItemMapper;
@ -229,5 +236,210 @@ public class InspectionItemServiceImpl extends ServiceImpl<InspectionItemMapper,
return inspectionItemDetails;
}
@Override
public void insert(JSONObject jsonObject) {
String user = CommonMethods.getUser();
LocalDateTime now = LocalDateTime.now();
String description = jsonObject.getString("description");
String site = jsonObject.getString("site");
String inspectionType = jsonObject.getString("inspectionType");
inspectionType = InspectionTypeEnum.getValue(inspectionType);
if (inspectionType==null){
throw new BaseException("不存在的检验类型");
}
String inspectionItemNo = jsonObject.getString("inspectionItemNo");
if (StringUtil.isBlank(inspectionItemNo)){
throw new BaseException("检验项目编号不能为空");
}
String revision = jsonObject.getString("revision");
if (StringUtil.isBlank(revision)){
throw new BaseException("版本不能为空");
}
String item = jsonObject.getString("item");
String operation = jsonObject.getString("operation");
if (StringUtil.isBlank(operation)){
throw new BaseException("工序不能为空");
}
String resrceType = jsonObject.getString("resrceType");
String paramNo = jsonObject.getString("paramNo");
if (StringUtil.isBlank(paramNo)){
throw new BaseException("参数名称不能为空");
}
String paramDescription = jsonObject.getString("paramDescription");
String inspectionMethod = jsonObject.getString("inspectionMethod");
if (StringUtil.isBlank(inspectionMethod)){
throw new BaseException("检验方法不能为空");
}
String paramType = jsonObject.getString("paramType");
paramType = InspectionTypeEnum.getValue(paramType);
if (StringUtil.isBlank(paramType)){
throw new BaseException("不存在的参数类型");
}
String decimalNum = jsonObject.getString("decimalNum");
String paramUnit = jsonObject.getString("paramUnit");
String maxValue = jsonObject.getString("maxValue");
String standardValue = jsonObject.getString("standardValue");
String minValue = jsonObject.getString("minValue");
String falseValue = jsonObject.getString("falseValue");
String trueValue = jsonObject.getString("trueValue");
String isRequired = jsonObject.getString("isRequired");
if (StringUtil.isBlank(isRequired)){
throw new BaseException("是否重要项不能为空");
}
String checkNum = jsonObject.getString("checkNum");
String handle = HandleEnum.INSPECTION_ITEM.getHandle(site, inspectionItemNo, revision);
InspectionItem byId = getById(handle);
if (byId==null){
InspectionItem entity=new InspectionItem();
entity.setHandle(HandleEnum.INSPECTION_ITEM.getHandle(site,inspectionItemNo,revision));
entity.setSite(site);
entity.setInspectionItemNo(inspectionItemNo);
if (inspectionType.length() > 1) {
entity.setCategory("EQ");
} else {
entity.setCategory("QC");
}
entity.setInspectionType(inspectionType);
entity.setRevision(revision);
entity.setCurrentRevision(Constants.BOOL_TRUE);
entity.setDescription(description);
entity.setStatus(Constants.STATUS_Y);
entity.setCreateUser(user);
entity.setCreatedDateTime(now);
entity.setModifyUser(user);
entity.setModifiedDateTime(now);
entity.setCategory(user);
save(entity);
}
ResourceType selectResourceType = null;
Item currentItem = null;
Operation currentRevisionRef = null;
if (inspectionType.length() == 1) {
if (StringUtil.isBlank(item)){
throw new BaseException("物料不能为空");
}
if (StringUtil.isBlank(operation)){
throw new BaseException("工序不能为空");
}
if ( !item.equals("*")) {
currentItem = itemService.selectCurrent(CommonMethods.getSite(), item);
if (currentItem == null) {
throw new BaseException("物料[" + item + "]不存在");
}
}
if (!operation.equals("*")) {
String[] split = operation.split("/");
String op = split[0];
currentRevisionRef = operationService.getCurrentRevisionRef(site, op);
String step = split[1];
Integer integer = inspectionItemMapper.checkRouterStep(site, op, step);
if (integer < 1) {
throw new BaseException("工序/步骤[" + operation + "]不存在");
}
}
}else {
if (StringUtil.notBlank(resrceType)&&!resrceType.equals("*")) {
String resourceTypeHandle = HandleEnum.RESOURCE_TYPE.getHandle(site, resrceType);
selectResourceType = resourceTypeService.getById(resourceTypeHandle);
if (selectResourceType == null) {
throw new BaseException("设备类型[" + resrceType + "]不存在");
}
}
}
QueryWrapper queryWrapper=new QueryWrapper<InspectionItemAddition>();
queryWrapper.eq(InspectionItemAddition.INSPECTION_ITEM_BO,handle);
List<InspectionItemAddition> additionList = inspectionItemAdditionService.list(queryWrapper);
if (additionList.size()>0){
for (InspectionItemAddition inspectionItemAddition : additionList) {
if (inspectionItemAddition.getAdditionalObjectType().equals(Constants.ADDITIONAL_OBJECT_TYPE_ITEM)&&!inspectionItemAddition.getAdditionalObject().equals(item)){
throw new BaseException("检验项目中物料[" + item + "]不相同");
}
if (inspectionItemAddition.getAdditionalObjectType().equals(Constants.ADDITIONAL_OBJECT_TYPE_OPERATION)&&!inspectionItemAddition.getAdditionalObject().equals(operation)){
throw new BaseException("检验项目中工序[" + operation + "]不相同");
}
if (inspectionItemAddition.getAdditionalObjectType().equals(Constants.ADDITIONAL_OBJECT_TYPE_RESOURCE_TYPE)&&!inspectionItemAddition.getAdditionalObject().equals(resrceType)){
throw new BaseException("检验项目中设备类型[" + resrceType + "]不相同");
}
}
}else {
if (inspectionType.length()==1){
InspectionItemAddition itemAddition = new InspectionItemAddition();
itemAddition.setHandle(UUID.randomUUID().toString());
itemAddition.setInspectionItemBo(handle);
itemAddition.setSeq(1L);
itemAddition.setAdditionalObjectType(Constants.ADDITIONAL_OBJECT_TYPE_ITEM);
itemAddition.setAdditionalObject(item);
itemAddition.setDescription(currentItem.getDescription());
itemAddition.setCreateUser(user);
itemAddition.setCreatedDateTime(now);
itemAddition.setModifyUser(user);
itemAddition.setModifiedDateTime(now);
inspectionItemAdditionService.save(itemAddition);
InspectionItemAddition operationAddition = new InspectionItemAddition();
operationAddition.setHandle(UUID.randomUUID().toString());
operationAddition.setInspectionItemBo(handle);
operationAddition.setSeq(2L);
operationAddition.setAdditionalObjectType(Constants.ADDITIONAL_OBJECT_TYPE_OPERATION);
operationAddition.setAdditionalObject(operation);
operationAddition.setDescription(currentRevisionRef.getDescription());
operationAddition.setCreateUser(user);
operationAddition.setCreatedDateTime(now);
operationAddition.setModifyUser(user);
operationAddition.setModifiedDateTime(now);
inspectionItemAdditionService.save(operationAddition);
}else {
if (StringUtil.notBlank(resrceType)){
InspectionItemAddition inspectionItemAddition = new InspectionItemAddition();
inspectionItemAddition.setHandle(UUID.randomUUID().toString());
inspectionItemAddition.setInspectionItemBo(handle);
inspectionItemAddition.setSeq(1L);
inspectionItemAddition.setAdditionalObjectType(Constants.ADDITIONAL_OBJECT_TYPE_RESOURCE_TYPE);
inspectionItemAddition.setAdditionalObject(resrceType);
inspectionItemAddition.setDescription(selectResourceType.getDescription());
inspectionItemAddition.setCreateUser(user);
inspectionItemAddition.setCreatedDateTime(now);
inspectionItemAddition.setModifyUser(user);
inspectionItemAddition.setModifiedDateTime(now);
inspectionItemAdditionService.save(inspectionItemAddition);
}
}
}
queryWrapper=new QueryWrapper<InspectionItemDetail>();
queryWrapper.eq(InspectionItemDetail.INSPECTION_ITEM_BO,handle);
List<InspectionItemDetail> inspectionItemDetailList = inspectionItemDetailService.list(queryWrapper);
if (inspectionItemDetailList.size()>0){
long count = inspectionItemDetailList.stream().filter(inspectionItemDetail ->
inspectionItemDetail.getParamNo().equals(paramNo)
).count();
if (count>0){
throw new BaseException("检验名称不能重复");
}
}
InspectionItemDetail inspectionItemDetail = new InspectionItemDetail();
inspectionItemDetail.setHandle(UUID.randomUUID().toString());
inspectionItemDetail.setInspectionItemBo(handle);
inspectionItemDetail.setSeq(new Long(inspectionItemDetailList.size())+1L);
inspectionItemDetail.setParamNo(paramNo);
inspectionItemDetail.setDescription(paramDescription);
inspectionItemDetail.setInspectionMethod(inspectionMethod);
inspectionItemDetail.setParamType(paramType);
inspectionItemDetail.setParamUnit(paramUnit);
inspectionItemDetail.setDecimalNum(StringUtil.isBlank(decimalNum)?null:new Long(decimalNum));
inspectionItemDetail.setMinValue(StringUtil.isBlank(minValue)?null:new BigDecimal(minValue));
inspectionItemDetail.setStandardValue(standardValue);
inspectionItemDetail.setMaxValue(StringUtil.isBlank(maxValue)?null:new BigDecimal(maxValue));
inspectionItemDetail.setFalseValue(falseValue);
inspectionItemDetail.setTrueValue(trueValue);
inspectionItemDetail.setIsRequired(isRequired.equals("是")?"Y":"N");
inspectionItemDetail.setCheckNum(StringUtil.isBlank(checkNum)?null:new Long(checkNum));
inspectionItemDetail.setCreateUser(user);
inspectionItemDetail.setCreatedDateTime(now);
inspectionItemDetail.setModifyUser(user);
inspectionItemDetail.setModifiedDateTime(now);
inspectionItemDetailService.save(inspectionItemDetail);
}
}

@ -463,7 +463,7 @@
</select>
<select id="checkRouterStep" resultType="java.lang.Integer">
SELECTRS FROM ROUTER_STEP RS
SELECT COUNT(rs.HANDLE) FROM ROUTER_STEP RS
JOIN ROUTER_OPERATION ro ON RS.HANDLE =ro.ROUTER_STEP_BO
JOIN OPERATION OP ON OP.HANDLE= ro.OPERATION_BO OR ('OperationBO:' || OP.SITE || ',' || OP.OPERATION || ',#' = ro.OPERATION_BO AND OP.CURRENT_REVISION = 'true')
WHERE op.SITE=#{site} AND rs.STEP_ID=#{stepId} AND op.OPERATION=#{operation}

@ -1,7 +1,7 @@
package com.foreverwin.mesnac.dataimport.handler;
import com.alibaba.fastjson.JSONObject;
import com.foreverwin.mesnac.dataimport.client.ResourceTypeWSClient;
import com.foreverwin.mesnac.common.service.InspectionItemService;
import com.foreverwin.mesnac.dataimport.handler.base.BaseHandler;
import com.foreverwin.mesnac.dataimport.reader.FileReader;
import com.foreverwin.mesnac.dataimport.reader.FileReaderBuilder;
@ -9,13 +9,14 @@ import com.foreverwin.mesnac.dataimport.reader.RowVisitor;
import com.foreverwin.mesnac.dataimport.service.MasterObjectDefine;
import com.foreverwin.modular.core.exception.BusinessException;
import com.foreverwin.modular.core.util.I18nUtil;
import com.sap.me.plant.ResourceTypeBasicConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import java.io.InputStream;
import java.util.Collection;
import java.util.Map;
public class InspectionItemHandler extends BaseHandler {
@Autowired
private InspectionItemService inspectionItemService;
@Override
public String importFile(String site, InputStream inputStream, String fileType, String mode) throws Exception {
@ -42,7 +43,7 @@ public class InspectionItemHandler extends BaseHandler {
@Override
public Map<String, String> getHeaders() {
return MasterObjectDefine.getHeadsMapping("RESOURCE_TYPE");
return MasterObjectDefine.getHeadsMapping("INSPECTION_ITEM");
}
public RowVisitor<JSONObject> getRowVisitor(String site, String mode, StringBuffer buffer, Integer[] failedNumber) {
@ -52,28 +53,19 @@ public class InspectionItemHandler extends BaseHandler {
public int visit(long index, JSONObject jsonObject) {
Object[] params = new Object[10];
params[0] = index;
params[1] = jsonObject.getString("resourceType");
String resultMessage = null;
try {
if (jsonObject.containsKey("resourceType") && jsonObject.getString("resourceType").trim().length() > 0) {
jsonObject.put("site", site);
Collection<ResourceTypeBasicConfiguration> collection = ResourceTypeWSClient.find(jsonObject);
if (collection.size() > 0) {
resultMessage = "资源类型主数据已经存在";
} else {
resultMessage = ResourceTypeWSClient.insert(jsonObject);
if (resultMessage == null) {
return 1;
}
}
if (resultMessage != null) {
params[2] = resultMessage;
failedNumber[0]++;
buffer.append("第" + index + "行:" + I18nUtil.getI18nText("MaterData.import.insert.fail", params) + "\n");
return 0;
}
jsonObject.put("site", site);
inspectionItemService.insert(jsonObject);
if (resultMessage == null) {
return 1;
}
if (resultMessage != null) {
params[2] = resultMessage;
failedNumber[0]++;
buffer.append("第" + index + "行:" + I18nUtil.getI18nText("MaterData.import.insert.fail", params) + "\n");
return 0;
}
return 0;
} catch (Exception e) {

@ -143,17 +143,27 @@ public class MasterObjectDefine {
cvsHeadsMapping = new HashMap<>();
cvsHeadsMapping.put("seqNum","序号");
cvsHeadsMapping.put("seqNum","消息类型");
cvsHeadsMapping.put("seqNum","消息正文");
cvsHeadsMapping.put("seqNum","响应用户组");
cvsHeadsMapping.put("seqNum","响应用户组");
cvsHeadsMapping.put("seqNum","响应时间(H)");
cvsHeadsMapping.put("seqNum","响应超期上报用户组");
cvsHeadsMapping.put("seqNum","出具方案时间(H)");
cvsHeadsMapping.put("seqNum","方案关闭时通知用户组");
cvsHeadsMapping.put("seqNum","纠正预防措施用户组");
cvsHeadsMapping.put("seqNum","纠正预防措施时间");
break;
cvsHeadsMapping.put("inspectionType","检验流程");
cvsHeadsMapping.put("inspectionItemNo","检验项目编号");
cvsHeadsMapping.put("description","检验项目描述");
cvsHeadsMapping.put("revision","版本");
cvsHeadsMapping.put("item","物料编码");
cvsHeadsMapping.put("operation","工序");
cvsHeadsMapping.put("resrceType","资源类型");
cvsHeadsMapping.put("paramNo","参数名称");
cvsHeadsMapping.put("paramDescription","参数描述");
cvsHeadsMapping.put("inspectionMethod","检验方法");
cvsHeadsMapping.put("paramType","数据类型");
cvsHeadsMapping.put("decimalNum","单位");
cvsHeadsMapping.put("paramUnit","小数位数");
cvsHeadsMapping.put("maxValue","规格上限");
cvsHeadsMapping.put("standardValue","目标规格");
cvsHeadsMapping.put("minValue","规格下限");
cvsHeadsMapping.put("falseValue","FALSE值");
cvsHeadsMapping.put("trueValue","TRUE值");
cvsHeadsMapping.put("isRequired","是否重要项目");
cvsHeadsMapping.put("checkNum","收集次数");
break;
default:
break;
}

@ -1,32 +1,31 @@
package com.foreverwin.mesnac.equip.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.foreverwin.mesnac.common.constant.Constants;
import com.foreverwin.mesnac.common.enums.HandleEnum;
import com.foreverwin.mesnac.common.model.InspectionItemDetail;
import com.foreverwin.mesnac.common.service.InspectionItemDetailService;
import com.foreverwin.mesnac.equip.dto.ResourceInspectTaskDto;
import com.foreverwin.mesnac.equip.mapper.ResourceInspectTaskMapper;
import com.foreverwin.mesnac.equip.model.ResourceInspectPlan;
import com.foreverwin.mesnac.equip.model.ResourceInspectTask;
import com.foreverwin.mesnac.equip.model.ResourceInspectTaskParam;
import com.foreverwin.mesnac.equip.model.ResourceInspectTaskSpare;
import com.foreverwin.mesnac.equip.service.ResourceInspectPlanService;
import com.foreverwin.mesnac.equip.service.ResourceInspectTaskParamService;
import com.foreverwin.mesnac.equip.service.ResourceInspectTaskService;
import com.foreverwin.mesnac.equip.service.ResourceInspectTaskSpareService;
import com.foreverwin.modular.core.exception.BusinessException;
import com.foreverwin.modular.core.util.CommonMethods;
import com.foreverwin.modular.core.util.FrontPage;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.foreverwin.mesnac.equip.model.ResourceInspectTask;
import com.foreverwin.mesnac.equip.mapper.ResourceInspectTaskMapper;
import com.foreverwin.mesnac.equip.service.ResourceInspectTaskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
@ -268,8 +267,8 @@ public class ResourceInspectTaskServiceImpl extends ServiceImpl<ResourceInspectT
resourceInspectTaskParam.setParamUnit(detail.getParamUnit());
// 是否必填、最大最、最小值、标准值
resourceInspectTaskParam.setRequired(detail.getIsRequired());
resourceInspectTaskParam.setMaxValue(detail.getMaxValue());
resourceInspectTaskParam.setMinValue(detail.getMinValue());
resourceInspectTaskParam.setMaxValue(detail.getMaxValue().doubleValue());
resourceInspectTaskParam.setMinValue(detail.getMinValue().doubleValue());
resourceInspectTaskParam.setStandardValue(detail.getStandardValue());
resourceInspectTaskParam.setCreateUser("测试数据DEL");
resourceInspectTaskParam.setCreatedDateTime(LocalDateTime.now());

@ -31,11 +31,11 @@ public class GeneratorApplication {
dataSourceConfig.setTypeConvert( new OracleTypeConvert() );
MpGenerator mpGenerator = mpGeneratorBuilder.dataSourceConfig(dataSourceConfig)
.tablePrefix( "APS_", "DS_", "Z_" )
.packageName( "com.foreverwin.mesnac.anomaly" )
.tables("Z_ABNORMAL_BILL")
.author("赵嘉伟")
.packageName( "com.foreverwin.mesnac.production" )
.tables("Z_CUTTER_LOG")
.author("Philip")
.uiAppId("com.foreverwin.me")
.uiPackage("com.foreverwin.me.migration")
.uiPackage("com.foreverwin.me.production")
.build();
mpGenerator.execute();
}

@ -13,9 +13,9 @@ import com.foreverwin.mesnac.meapi.dto.SfcDto;
import com.foreverwin.mesnac.production.mapper.CutterLogMapper;
import com.foreverwin.mesnac.production.mapper.SfcCrossMapper;
import com.foreverwin.mesnac.production.model.CutterLog;
import com.foreverwin.mesnac.production.model.Tool;
import com.foreverwin.mesnac.common.model.Tool;
import com.foreverwin.mesnac.production.service.CutterLogService;
import com.foreverwin.mesnac.production.service.ToolService;
import com.foreverwin.mesnac.common.service.ToolService;
import com.foreverwin.modular.core.exception.BaseException;
import com.foreverwin.modular.core.util.CommonMethods;
import com.foreverwin.modular.core.util.FrontPage;

Loading…
Cancel
Save