0730 Add File Operation in ODS Module untested

yun-zuoyi
WYnneaoapc 6 years ago
parent d826c47d5a
commit 66e20acfe9

@ -4,8 +4,10 @@ package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
@ -24,6 +26,8 @@ import javax.persistence.Table;
@Entity
@DynamicInsert
@DynamicUpdate
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name="MES_EVENT_ACTION")
@Api("系统业务事件动作")

@ -18,8 +18,12 @@ import java.util.Map;
public class ActionRequestBean<Obj> implements Serializable {
@ApiParam("事件代码")
@Deprecated
public String eventCode;
@ApiParam("按钮代码")
public String buttonCode;
@ApiParam("单个结果")
public Obj resultObject;

@ -0,0 +1,37 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @Author: Wynne.Lu
* @CreateDate: 2019/8/6 9:19 AM
* @Description:
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("动作函数关系model")
public class MesActionMethodModel implements Serializable {
@ApiParam("id")
private Long id;
@ApiParam("动作名称")
private String actionName;
@ApiParam("动作代码")
private String actionCode;
@ApiParam("函数代码")
private String methodCode;
@ApiParam("序号")
private Integer seq;
}

@ -0,0 +1,44 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesEventAction;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @Author: Wynne.Lu
* @CreateDate: 2019/8/6 9:19 AM
* @Description:
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("事件动作关系model")
public class MesEventActionModel implements Serializable {
@ApiParam("id")
private Long id;
@ApiParam("动作名称")
private String actionName;
@ApiParam("事件名称")
private String eventName;
@ApiParam("动作代码")
private String actionCode;
@ApiParam("事件代码")
private String eventCode;
@ApiParam("序号")
private Integer seq;
}

@ -4,6 +4,8 @@ import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesAction;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Description :
* @Reference :
@ -13,4 +15,8 @@ import org.springframework.stereotype.Repository;
**/
@Repository
public interface MesActionRepository extends BaseRepository<MesAction, Long> {
List<MesAction> findByOrganizeCodeAndIsDeleted(String organizeCode,Integer isDeleted);
List<MesAction> findByActionCodeAndIsValidAndIsDeleted(String actionCode,Integer isValid,Integer isDeleted);
}

@ -4,6 +4,8 @@ import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEventAction;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Description :
* @Reference :
@ -13,4 +15,5 @@ import org.springframework.stereotype.Repository;
**/
@Repository
public interface MesEventActionRepository extends BaseRepository<MesEventAction, Long> {
}

@ -4,6 +4,8 @@ import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEvent;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Description :
* @Reference :
@ -13,4 +15,11 @@ import org.springframework.stereotype.Repository;
**/
@Repository
public interface MesEventRepository extends BaseRepository<MesEvent, Long> {
List<MesEvent> findByOrganizeCodeAndIsDeleted(String organizeCode,Integer isDeleted);
List<MesEvent> findByButtonCodeAndIsValidAndIsDeleted(String buttonCode,Integer isValid,Integer isDeleted);
List<MesEvent> findByEventCodeAndIsValidAndIsDeleted(String eventCode,Integer isValid,Integer isDeleted);
}

@ -4,6 +4,8 @@ import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesMethod;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Description :
* @Reference :
@ -13,4 +15,8 @@ import org.springframework.stereotype.Repository;
**/
@Repository
public interface MesMethodRepository extends BaseRepository<MesMethod, Long> {
List<MesMethod> findByMethodCodeAndIsValidAndIsDeleted(String methodCode, Integer isValid, Integer isDeleted);
List<MesMethod> findByOrganizeCodeAndIsDeleted(String organizeCode, int value);
}

@ -264,6 +264,7 @@ public class MesHqlPack {
/**
* MES
*
* @param mesEquipment
* @return
*/
@ -292,6 +293,7 @@ public class MesHqlPack {
packBean.setOrderByStr(mesRoute.orderBy());
return packBean;
}
/**
*
*
@ -310,6 +312,7 @@ public class MesHqlPack {
/**
* MES
*
* @param shift
* @return
*/
@ -330,6 +333,7 @@ public class MesHqlPack {
/**
* MES
*
* @param shiftRest
* @return
*/
@ -344,9 +348,10 @@ public class MesHqlPack {
return packBean;
}
/******************created by wynne*************/
/**
* MES FastDfs
*
* @param mesESOP
* @return
*/
@ -363,7 +368,117 @@ public class MesHqlPack {
}
/**
*
*
* @param mesEvent
* @param organizeCode
* @return
*/
public static DdlPackBean getMesEvent(MesEvent mesEvent, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEvent, organizeCode);
if (StringUtils.isNotEmpty(mesEvent.getButtonCode())) {
DdlPreparedPack.getStringLikerPack(mesEvent.getButtonCode(), "buttonCode", packBean);
}
if (StringUtils.isNotEmpty(mesEvent.getEventCode())) {
DdlPreparedPack.getStringLikerPack(mesEvent.getEventCode(), "eventCode", packBean);
}
if (StringUtils.isNotEmpty(mesEvent.getEventName())) {
DdlPreparedPack.getStringLikerPack(mesEvent.getEventName(), "eventName", packBean);
}
return packBean;
}
/**
*
*
* @param mesAction
* @param organizeCode
* @return
*/
public static DdlPackBean getMesAction(MesAction mesAction, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesAction, organizeCode);
if (StringUtils.isNotEmpty(mesAction.getActionCode())) {
DdlPreparedPack.getStringRightLikerPack(mesAction.getActionCode(), "actionCode", packBean);
}
if (StringUtils.isNotEmpty(mesAction.getActionName())) {
DdlPreparedPack.getStringLikerPack(mesAction.getActionName(), "actionName", packBean);
}
if (mesAction.getActionType() != null && StringUtils.isNotEmpty(mesAction.getActionType() + "")) {
DdlPreparedPack.getStringEqualPack(mesAction.getActionType() + "", "actionType", packBean);
}
return packBean;
}
/**
*
*
* @param mesMethod
* @param organizeCode
* @return
*/
public static DdlPackBean getMesMethod(MesMethod mesMethod, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesMethod, organizeCode);
if (StringUtils.isNotEmpty(mesMethod.getMethodCode())) {
DdlPreparedPack.getStringRightLikerPack(mesMethod.getMethodCode(), "methodCode", packBean);
}
if (StringUtils.isNotEmpty(mesMethod.getMethodName())) {
DdlPreparedPack.getStringLikerPack(mesMethod.getMethodName(), "methodName", packBean);
}
if (StringUtils.isNotEmpty(mesMethod.getCallClass())) {
DdlPreparedPack.getStringRightLikerPack(mesMethod.getCallClass(), "callClass", packBean);
}
if (mesMethod.getMethodType() != null && StringUtils.isNotEmpty(mesMethod.getMethodType() + "")) {
DdlPreparedPack.getStringEqualPack(mesMethod.getMethodType() + "", "methodType", packBean);
}
return packBean;
}
/**
*
*
* @param mesActionMethod
* @param organizeCode
* @return
*/
public static DdlPackBean getMesActionMethod(MesActionMethod mesActionMethod, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesActionMethod, organizeCode);
if (StringUtils.isNotEmpty(mesActionMethod.getActionCode())) {
DdlPreparedPack.getStringLikerPack(mesActionMethod.getActionCode(), "actionCode", packBean);
}
if (StringUtils.isNotEmpty(mesActionMethod.getMethodCode())) {
DdlPreparedPack.getStringLikerPack(mesActionMethod.getMethodCode(), "methodCode", packBean);
}
return packBean;
}
/**
*
*
* @param mesEventAction
* @param organizeCode
* @return
*/
public static DdlPackBean getMesEventAction(MesEventAction mesEventAction, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEventAction, organizeCode);
if (StringUtils.isNotEmpty(mesEventAction.getOrganizeCode())) {
DdlPreparedPack.getStringEqualPack(mesEventAction.getOrganizeCode(), "organizeCode", packBean);
}
if (StringUtils.isNotEmpty(mesEventAction.getEventCode())) {
DdlPreparedPack.getStringLikerPack(mesEventAction.getEventCode(), "eventCode", packBean);
}
if (StringUtils.isNotEmpty(mesEventAction.getActionCode())) {
DdlPreparedPack.getStringLikerPack(mesEventAction.getActionCode(), "actionCode", packBean);
}
return packBean;
}
/******************created by wynne*************/
/**
* MES
*
* @param process
* @return
*/
@ -381,6 +496,7 @@ public class MesHqlPack {
/**
* MES
*
* @param step
* @return
*/
@ -401,6 +517,7 @@ public class MesHqlPack {
/**
* MES
*
* @param stepParam
* @return
*/
@ -421,6 +538,7 @@ public class MesHqlPack {
/**
* MES
*
* @param routeProcessCell
* @return
*/
@ -444,6 +562,7 @@ public class MesHqlPack {
/**
* MES BOM
*
* @param bom
* @return
*/
@ -464,6 +583,7 @@ public class MesHqlPack {
/**
* MESBOM
*
* @param processBom
* @return
*/
@ -484,6 +604,7 @@ public class MesHqlPack {
/**
* MES
*
* @param customer
* @return
*/
@ -501,6 +622,7 @@ public class MesHqlPack {
/**
* MES 线
*
* @param custProdLine
* @return
*/
@ -518,6 +640,7 @@ public class MesHqlPack {
/**
* MES
*
* @param customerPart
* @return
*/
@ -538,6 +661,7 @@ public class MesHqlPack {
/**
* MES
*
* @param keyData
* @return
*/
@ -555,6 +679,7 @@ public class MesHqlPack {
/**
* MES
*
* @param kpData
* @return
*/
@ -572,6 +697,7 @@ public class MesHqlPack {
/**
* MES
*
* @param prodCfgType
* @return
*/
@ -589,6 +715,7 @@ public class MesHqlPack {
/**
* MES
*
* @param prodCfg
* @return
*/
@ -609,6 +736,7 @@ public class MesHqlPack {
/**
* MES
*
* @param prodCfgDetail
* @return
*/
@ -626,6 +754,7 @@ public class MesHqlPack {
/**
* MES
*
* @param part
* @return
*/
@ -652,6 +781,7 @@ public class MesHqlPack {
/**
* MES
*
* @param partCategory
* @return
*/
@ -669,6 +799,7 @@ public class MesHqlPack {
/**
* MES
*
* @param packSpec
* @return
*/
@ -689,6 +820,7 @@ public class MesHqlPack {
/**
* MES
*
* @param produceCategory
* @return
*/
@ -706,6 +838,7 @@ public class MesHqlPack {
/**
* MES
*
* @param kpsnRule
* @return
*/
@ -720,6 +853,7 @@ public class MesHqlPack {
/**
* MES
*
* @param partScheduleBom
* @return
*/
@ -737,6 +871,7 @@ public class MesHqlPack {
/**
* MESdao
*
* @param objectDao
* @return
*/
@ -754,6 +889,7 @@ public class MesHqlPack {
/**
* MES-PCN
*
* @param pcnSyncCfg
* @return
*/
@ -774,6 +910,7 @@ public class MesHqlPack {
/**
* MES
*
* @param workCellParamCfg
* @return
*/
@ -791,6 +928,7 @@ public class MesHqlPack {
/**
* MES
*
* @param workCellPoint
* @return
*/
@ -804,6 +942,7 @@ public class MesHqlPack {
/**
* PLC
*
* @param plcConfigure
* @return
*/

Loading…
Cancel
Save