yun-zuoyi
Chnx 6 years ago
commit eb4914ae7a

@ -7,10 +7,13 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.beanutils.BeanUtils;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
/**
@ -394,4 +397,21 @@ public class AndonManageQueue extends BaseBean {
public AndonManageQueue() {
}
public static void main(String[] args) {
try {
List ds = new ArrayList();
ds.add(new AndonManageQueue());
System.out.println(BeanUtils.describe(ds));
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
}
}

@ -75,4 +75,11 @@ public class AndonPLC extends BaseBean {
@Column(name = "IS_ALARM_STATUS")
@ApiParam(value = "是否按灯状态", example = "1")
private Integer isAlarmStatus;
public int getIsAlarmStatusVal(){
if(isAlarmStatus == null){
return 0;
}
return isAlarmStatus.intValue();
}
}

@ -196,15 +196,15 @@ public class AndonHqlPack {
DdlPreparedPack.getStringEqualPack(andonManageQueue.getShiftCode(), "shiftCode", result);
DdlPreparedPack.getInPackArray(obj, "statusCode", result);
getStringBuilderPack(andonManageQueue, result);
if(andonManageQueue.getCallTimeStart() != null || andonManageQueue.getCallTimeEnd() != null){
if(StringUtils.isNotBlank(andonManageQueue.getCallTimeStart()) || StringUtils.isNotBlank(andonManageQueue.getCallTimeEnd())){
DdlPreparedPack.timeBuilder(andonManageQueue.getCallTimeStart(), andonManageQueue.getCallTimeEnd(), "callTime", result, true);
}
getStringBuilderPack(andonManageQueue, result);
// 根据优先级倒序,序号升序排序
DdlPreparedPack.getOrderByPack(new Object[]{2, 1},
new String[]{"priorityLevel", "seq"}, result);
// DdlPreparedPack.getOrderByPack(new Object[]{2, 1},
// new String[]{"priorityLevel", "seq"}, result);
result.setOrderByStr(andonManageQueue.orderBy());
return result;
}
@ -418,6 +418,23 @@ public class AndonHqlPack {
return result;
}
/**
*
* @param andonAlarmDetailType
* @return
*/
public static DdlPackBean packAndonAlarmDetailTypeLike(AndonAlarmDetailType andonAlarmDetailType) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(andonAlarmDetailType.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getStringLikerPack(andonAlarmDetailType.getAlarmDetailCode(), "alarmDetailCode", result);
DdlPreparedPack.getStringLikerPack(andonAlarmDetailType.getAlarmDetailName(), "alarmDetailName", result);
getStringBuilderPack(andonAlarmDetailType, result);
return result;
}
//
// /**
// * 安灯类型查询条件封装

@ -1,5 +1,8 @@
package cn.estsh.i3plus.pojo.base.bean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import java.util.HashMap;
/**
@ -49,6 +52,30 @@ public class DdlPackBean {
hqlPreparedMap = new HashMap<>();
}
/**
*
* @param organizeCode
* @return
*/
public static DdlPackBean getDdlPackBean(String organizeCode){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(),"isDeleted",result);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(),"isValid",result);
DdlPreparedPack.getNumEqualPack(organizeCode,"organizeCode",result);
return result;
}
public static DdlPackBean getDdlPackBean(){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(),"isDeleted",result);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(),"isValid",result);
return result;
}
public boolean isHql() {
return isHql;
}

@ -247,7 +247,9 @@ public class CommonEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum USER_TYPE {
USER(1, "user", "普通用户"), ADMIN(2, "admin", "系统管理员"), SA(3, "sa", "超级管理员");
USER(1, "user", "普通用户"),
ADMIN(2, "admin", "系统管理员"),
SA(3, "sa", "超级管理员");
private int value;
private String code;
@ -281,6 +283,26 @@ public class CommonEnumUtil {
return tmp;
}
public static USER_TYPE valueOfCode(String code) {
USER_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i];
}
}
return tmp;
}
public static USER_TYPE valueOfDescription(String description) {
USER_TYPE tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i];
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {

@ -503,7 +503,11 @@ public class WmsEnumUtil {
NC_DISMANTLING_PICKING(160, "NC_DISMANTLING_PICKING", "NC拆解领料"),
NC_DISMANTLING_RETREAT(170, "NC_DISMANTLING_RETREAT", "NC拆解退料"),
LINE_EDGE_SCRAPPING_OUT(180, "LINE_EDGE_SCRAPPING_OUT", "线边报废出库"),
AMPR(190, "AMPR", "AMPR");
ASN(190, "ASN", "ASN"),
PO(200, "PO", "PO"),
QC(210, "QC", "QC"),
AMPR(220, "AMPR", "AMPR");
private int value;
private String code;

@ -109,7 +109,6 @@ public class BsonPackTool {
return list;
}
/**
*
* @param startDate
@ -161,7 +160,7 @@ public class BsonPackTool {
* @param showToday true:false:
* @param isShowTime
*/
public static Bson timeBuilder( String date, String columnName, Bson bson, Boolean showToday,boolean isShowTime) {
public static Bson timeBuilder( String date, String columnName, Bson bson, boolean showToday,boolean isShowTime) {
if(date != null && !"null".equals(date) && date.trim().length() > 0){
date = getSafeParam(date);
@ -249,6 +248,68 @@ public class BsonPackTool {
}
/**
*
* @param dateTime
* @param columnName HQL
* @param bson bson
* @param isShowTime
*/
public static Bson timeMore( String dateTime, String columnName, Bson bson, boolean isShowTime) {
if (dateTime == null || dateTime.trim().length() == 0) {
dateTime = "1900-01-01";
} else {
dateTime = getSafeParam(dateTime);
dateTime = dateTime.trim();
}
if (isShowTime && dateTime.trim().length()<=11) {
dateTime+= " 00:00:00";
}
if(bson == null) {
bson = Filters.and(
Filters.gte(columnName, dateTime) //大于等于开始日期
);
}else{
bson = Filters.and(
bson,
Filters.gte(columnName, dateTime) //大于等于开始日期
);
}
return bson;
}
/**
*
* @param dateTime
* @param columnName HQL
* @param bson bson
* @param isShowTime
*/
public static Bson timeLess( String dateTime, String columnName, Bson bson, boolean isShowTime) {
if (dateTime == null || dateTime.trim().length() == 0) {
dateTime = "2100-01-01";
} else {
dateTime = getSafeParam(dateTime);
dateTime = dateTime.trim();
}
if (isShowTime&& dateTime.trim().length()<=11) {
dateTime+= " 23:59:59";
}
if(bson == null) {
bson = Filters.and(
Filters.lte(columnName, dateTime) //小于等于结束日期
);
}else{
bson = Filters.and(
bson,
Filters.lte(columnName, dateTime) //小于等于结束日期
);
}
return bson;
}
/**
* Stringlike
* @param str
* @param columnName

@ -50,6 +50,15 @@ public interface BaseRedis {
Object getObject(Object key);
/**
*
* @param key
* @param start
* @param end 0 -1
* @return
*/
Object getObject(Object key, long start, long end);
/**
*
* @param key
* @param value

@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
@ -55,7 +56,8 @@ public class SysLocaleResource extends BaseBean {
@ApiParam(value = "资源KEY",example = "格式A.B全部大写参考命名规范开发文档")
private String resourceKey;
@Column(name="resource_value",columnDefinition="TEXT")
@Lob
@Column(name="resource_value")
@ApiParam(value = "资源Value",example = "通过resourceTypelanguageId和key获取")
private String resourceValue;

@ -144,7 +144,7 @@ public class SysUser extends BaseBean {
@Transient
@ApiParam(value ="角色ID" , example = "0")
@JsonSerialize(using = ToStringSerializer.class)
private String roleId;
private Long roleId;
@Transient
@ApiParam(value ="角色ID集合" , example = "0")

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.platform.sqlpack;
import cn.estsh.i3plus.pojo.base.tool.BsonPackTool;
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
import cn.estsh.i3plus.pojo.platform.platbean.SysLogException;
import cn.estsh.i3plus.pojo.platform.platbean.SysLogOperate;
import cn.estsh.i3plus.pojo.platform.platbean.SysLogSystem;
@ -19,82 +20,97 @@ public class CoreBsonPack {
/**
*
*
* @param logSystem
* @return
*/
public static Bson packBsonByLogSystem(SysLogSystem logSystem){
public static Bson packBsonByLogSystem(SysLogSystem logSystem) {
Bson bson = new BasicDBObject();
bson = BsonPackTool.getNumEqualPack(logSystem.getLogLevel(),"logLevel",bson);
bson = BsonPackTool.getNumEqualPack(logSystem.getLogModuleId(),"logModuleId",bson);
bson = BsonPackTool.timeBuilder(logSystem.getCreateDatetime(),"createDatetime",bson,false,false);
bson = BsonPackTool.getStringLikerPack(logSystem.getRemoteIp(),"remoteIp",bson);
bson = BsonPackTool.getStringLikerPack(logSystem.getRequestUrl(),"requestUrl",bson);
bson = BsonPackTool.getStringLikerPack(logSystem.getLogMethod(),"logMethod",bson);
bson = BsonPackTool.getNumEqualPack(logSystem.getLogLevel(), "logLevel", bson);
bson = BsonPackTool.getNumEqualPack(logSystem.getLogModuleId(), "logModuleId", bson);
bson = BsonPackTool.timeBuilder(logSystem.getCreateDatetime(), "createDatetime", bson, false, false);
bson = BsonPackTool.getStringLikerPack(logSystem.getRemoteIp(), "remoteIp", bson);
bson = BsonPackTool.getStringLikerPack(logSystem.getRequestUrl(), "requestUrl", bson);
bson = BsonPackTool.getStringLikerPack(logSystem.getLogMethod(), "logMethod", bson);
return bson;
}
/**
*
*
* @param logOperate
* @return
*/
public static Bson packBsonByLogOperate(SysLogOperate logOperate){
public static Bson packBsonByLogOperate(SysLogOperate logOperate) {
Bson bson = new BasicDBObject();
bson = BsonPackTool.getNumEqualPack(logOperate.getOperateType(),"operateType",bson);
bson = BsonPackTool.getNumEqualPack(logOperate.getOperateModule(),"operateModule",bson);
bson = BsonPackTool.timeBuilder(logOperate.getCreateDatetime(),"createDatetime",bson,false,false);
bson = BsonPackTool.getStringLikerPack(logOperate.getRemoteIp(),"remoteIp",bson);
bson = BsonPackTool.getStringLikerPack(logOperate.getOperateMessage(),"operateMessage",bson);
bson = BsonPackTool.getStringLikerPack(logOperate.getCreateUser(),"createUser",bson);
bson = BsonPackTool.getNumEqualPack(logOperate.getOperateType(), "operateType", bson);
bson = BsonPackTool.getNumEqualPack(logOperate.getOperateModule(), "operateModule", bson);
bson = BsonPackTool.timeBuilder(logOperate.getCreateDatetime(), "createDatetime", bson, false, false);
bson = BsonPackTool.getStringLikerPack(logOperate.getRemoteIp(), "remoteIp", bson);
bson = BsonPackTool.getStringLikerPack(logOperate.getOperateMessage(), "operateMessage", bson);
bson = BsonPackTool.getStringLikerPack(logOperate.getCreateUser(), "createUser", bson);
return bson;
}
/**
*
*
* @param sysLogException
* @return
*/
public static Bson packBsonBySysLogException(SysLogException sysLogException){
public static Bson packBsonBySysLogException(SysLogException sysLogException) {
Bson bson = new BasicDBObject();
bson = BsonPackTool.getNumEqualPack(sysLogException.getExcModule(),"excModule",bson);
bson = BsonPackTool.getStringLikerPack(sysLogException.getExcMessage(),"excMessage",bson);
bson = BsonPackTool.timeBuilder(sysLogException.getCreateDatetime(),"createDatetime",bson,false,false);
bson = BsonPackTool.getNumEqualPack(sysLogException.getExcModule(), "excModule", bson);
bson = BsonPackTool.getStringLikerPack(sysLogException.getExcMessage(), "excMessage", bson);
bson = BsonPackTool.timeBuilder(sysLogException.getCreateDatetime(), "createDatetime", bson, false, false);
return bson;
}
/**
*
*
* @param sysLogTaskTime
* @return
*/
public static Bson packBsonByLogTaskTime(SysLogTaskTime sysLogTaskTime){
public static Bson packBsonByLogTaskTime(SysLogTaskTime sysLogTaskTime) {
Bson bson = new BasicDBObject();
bson = BsonPackTool.getStringLikerPack(sysLogTaskTime.getName(),"name",bson);
bson = BsonPackTool.getStringLikerPack(sysLogTaskTime.getGroupName(),"groupName",bson);
bson = BsonPackTool.timeBuilder(sysLogTaskTime.getCreateDatetime(),"createDatetime",bson,false,false);
bson = BsonPackTool.getStringLikerPack(sysLogTaskTime.getName(), "name", bson);
bson = BsonPackTool.getStringLikerPack(sysLogTaskTime.getGroupName(), "groupName", bson);
bson = BsonPackTool.timeBuilder(sysLogTaskTime.getCreateDatetime(), "createDatetime", bson, false, false);
return bson;
}
/**
*
*
* @param colName
* @param min
* @param max
* @return
*/
public static Bson packBsonByInterval(String colName,Object min,Object max){
public static Bson packBsonByInterval(String colName, Object min, Object max) {
Bson bson = new BasicDBObject();
bson = BsonPackTool.getNumBiggerPack(min,colName,bson);
bson = BsonPackTool.getNumSmallerPack(max,colName,bson);
bson = BsonPackTool.getNumBiggerPack(min, colName, bson);
bson = BsonPackTool.getNumSmallerPack(max, colName, bson);
return bson;
}}
}
/**
*
* @param dateTime
* @return
*/
public static Bson packBsonByDateTimeAfter(String dateTime){
return BsonPackTool.timeLess(dateTime, "createDatetime", null, true);
}
}

@ -8,6 +8,7 @@ import cn.estsh.i3plus.pojo.platform.bean.*;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
import java.util.stream.Collectors;
/**
* @Description :
@ -97,14 +98,19 @@ public class CoreHqlPack {
* @return
*/
public static DdlPackBean packHqlSysPosition(SysPosition position){
DdlPackBean result = new DdlPackBean();
return packHqlSysPosition(position,null);
}
public static DdlPackBean packHqlSysPosition(SysPosition position,List<Long> idList){
DdlPackBean result = DdlPackBean.getDdlPackBean(position.getOrganizeCode());
// 查询参数封装
DdlPreparedPack.getNumEqualPack(position.getParentId(),"parentId",result);
DdlPreparedPack.getStringEqualPack(position.getName(),"name",result);
DdlPreparedPack.getStringEqualPack(position.getPositionCode(),"positionCode",result);
DdlPreparedPack.getStringEqualPack(position.getOrganizeCode(),"organizeCode",result);
// DdlPreparedPack.getNumEqualPack(position.getParentId(),"parentId",result);
// String Like
DdlPreparedPack.getStringLikerPack(position.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(position.getPositionCode(),"positionCode",result);
// In
DdlPreparedPack.getInPackList(idList,"id",result);
return result;
}
@ -146,6 +152,17 @@ public class CoreHqlPack {
return result.toString();
}
public static DdlPackBean packHqlSysOrganize(SysOrganize organize,List<Long> idList){
DdlPackBean result = new DdlPackBean();
// String Like
DdlPreparedPack.getStringLikerPack(organize.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(organize.getName(),"organizeCode",result);
// Number In
DdlPreparedPack.getInPackList(idList,"id",result);
return result;
}
public static String packHqlSysOrganize(Long[] ids, Integer typeId){
StringBuffer result = new StringBuffer();
@ -179,6 +196,17 @@ public class CoreHqlPack {
return result.toString();
}
public static DdlPackBean packDdlBeanSysDepartment(SysDepartment department,List<Long> idList){
DdlPackBean result = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getStringLikerPack(department.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(department.getName(),"departmentCode",result);
DdlPreparedPack.getInPackList(idList,"id",result);
result.setOrderByStr(department.orderBy());
return result;
}
/**
*
* @param menu
@ -200,11 +228,27 @@ public class CoreHqlPack {
return result.toString();
}
public static DdlPackBean packDdlBeanSysMenu(SysMenu menu,List<Long> idList){
DdlPackBean result = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getInPackList(idList,"id",result);
DdlPreparedPack.getNumEqualPack(menu.getParentId(),"parentId",result);
DdlPreparedPack.getNumEqualPack(menu.getMenuType(),"menuType",result);
DdlPreparedPack.getNumEqualPack(menu.getMenuStatus(),"menuStatus",result);
DdlPreparedPack.getStringLikerPack(menu.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(menu.getMenuCode(),"menuCode",result);
result.setOrderByStr(menu.orderBy());
return result;
}
/**
*
* @param role
* @return
*/
@Deprecated
public static String packHqlSysRole(SysRole role){
StringBuffer result = new StringBuffer();
@ -219,6 +263,27 @@ public class CoreHqlPack {
}
/**
*
* @param role
* @return
*/
public static DdlPackBean packDdlBeanSysRole(SysRole role){
return packDdlBeanSysRole(role,null);
}
public static DdlPackBean packDdlBeanSysRole(SysRole role,List<Long> idList){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(),"isDeleted",result);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(),"isValid",result);
DdlPreparedPack.getNumEqualPack(role.getRoleStatus(),"roleStatus",result);
DdlPreparedPack.getStringLikerPack(role.getName(),"name",result);
DdlPreparedPack.getInPackList(idList,"id",result);
return result;
}
/**
*
* @param config
* @return
@ -420,6 +485,21 @@ public class CoreHqlPack {
return result.toString();
}
public static DdlPackBean packDdlBeanSysUser(SysUser user,List<Long> idList){
DdlPackBean result = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getNumEqualPack(user.getUserStatus(),"userStatus",result);
DdlPreparedPack.getStringLikerPack(user.getUserLoginName(),"userLoginName",result);
DdlPreparedPack.getStringLikerPack(user.getUserName(),"userName",result);
DdlPreparedPack.getStringLikerPack(user.getUserEmail(),"userEmail",result);
DdlPreparedPack.getStringLikerPack(user.getUserPhone(),"userPhone",result);
DdlPreparedPack.getInPackList(idList,"id",result);
result.setOrderByStr(user.orderBy());
return result;
}
/**
*
* @param user
@ -527,6 +607,25 @@ public class CoreHqlPack {
return result.toString();
}
public static DdlPackBean packDdlBeanSysUserInfo(SysUserInfo userInfo,List<Long> idList){
DdlPackBean result = DdlPackBean.getDdlPackBean();
// And
DdlPreparedPack.getNumEqualPack(userInfo.getPositionId(),"positionId",result);
DdlPreparedPack.getNumEqualPack(userInfo.getUserInfoStatus(),"userInfoStatus",result);
DdlPreparedPack.getStringEqualPack(userInfo.getOrganizeCode(),"organizeCode",result);
DdlPreparedPack.getInPackList(idList,"id",result);
// Like
DdlPreparedPack.getStringLikerPack(userInfo.getName(),"name",result);
DdlPreparedPack.getStringLikerPack(userInfo.getUserEmpNo(),"userEmpNo",result);
// 添加默认排序
result.setOrderByStr(userInfo.orderBy());
return result;
}
/**
*
* @param userInfo
@ -784,4 +883,46 @@ public class CoreHqlPack {
return ddlPackBean;
}
public static DdlPackBean packDdlBeanSysRefUserRole(SysRefUserRole ref){
DdlPackBean result = new DdlPackBean();
// Number Eq
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue(),"isDeleted",result);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue(),"isValid",result);
DdlPreparedPack.getNumEqualPack(ref.getUserId(),"userId",result);
// String Eq
DdlPreparedPack.getStringEqualPack(ref.getOrganizeCode(),"organizeCode",result);
return result;
}
public static DdlPackBean packDdlBeanSysRefUserRole(Long userId,Long roleId,String organizeCode){
DdlPackBean result = DdlPackBean.getDdlPackBean();
// Number Eq
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_DEAL.NO.getValue(),"isDeleted",result);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_VAILD.VAILD.getValue(),"isValid",result);
DdlPreparedPack.getNumEqualPack(userId,"userId",result);
DdlPreparedPack.getNumEqualPack(roleId,"roleId",result);
// String Eq
DdlPreparedPack.getStringEqualPack(organizeCode,"organizeCode",result);
return result;
}
/**
*
* @param sysRefUserDepartments
* @return
*/
public static DdlPackBean packHqlSysOrganize(List<SysRefUserDepartment> sysRefUserDepartments){
DdlPackBean packBean = new DdlPackBean();
DdlPreparedPack.getInPackList(sysRefUserDepartments.stream().map(d -> d.getOrganizeId()).collect(Collectors.toList()),"id",packBean);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_VAILD.VAILD.getValue(),"isValid",packBean);
DdlPreparedPack.getNumEqualPack(CommonEnumUtil.IS_DEAL.NO.getValue(),"isDeleted",packBean);
return packBean;
}
}

@ -42,19 +42,19 @@ public class SapCyco extends SapBase{
@ApiParam(value = "库存状态")
@AnnoOutputColumn
private String zstat;
private String zstat="";
@ApiParam(value = "特殊库存标识")
@AnnoOutputColumn
private String sobkz;
private String sobkz="";
@ApiParam(value = "项目号")
@AnnoOutputColumn
private String zxm;
private String zxm="";
@ApiParam(value = "库存账冻结标志")
@AnnoOutputColumn
private String zdjbs;
private String zdjbs="";
@ApiParam(value = "删除标识")
@AnnoOutputColumn

@ -105,6 +105,10 @@ public class WmsMoveDetails extends BaseBean {
@ApiParam(value = "状态", example = "0")
public Integer itemStatus;
@Column(name="REF_ITEM")
@ApiParam("关联单据行号")
public String refItem;
/**
* ASN,PO,SO
*/

@ -141,7 +141,7 @@ public class WmsPart extends BaseBean {
@Column(name = "OUT_CLOSE_FLAG")
@ApiParam("項目结算标识")
private String outCloseFlag;
private String outCloseFlag = "2";
@Transient
@ApiParam("总数量")
@ -153,7 +153,7 @@ public class WmsPart extends BaseBean {
@Column(name = "IS_PROD_LOT")
@ApiParam(value = "是否录入生产批次", example = "1")
private Integer isProdLot;
private Integer isProdLot = 2;
public int getIqcValue(){
return this.iqc == null ? 0 : this.iqc.intValue();

@ -128,9 +128,30 @@ public class WmsStockQuan extends BaseBean {
private Double totalQty;
@Transient
@ApiParam(value = "项目名称")
private String prodCfgTypeName;
@Transient
@ApiParam(value = "箱数", example = "-1")
private Integer boxQty;
@Transient
@ApiParam(value = "零件数", example = "-1")
private Double partQty;
@Transient
@ApiParam(value = "ERP库存地")
private String areaNo;
@Transient
@ApiParam(value = "存储区集合")
private List<String> zoneList;
public String getAreaNo() {
return areaNo;
}
public Double getQtyVal() {
return this.qty == null ? 0 : this.qty;
}
@ -171,6 +192,14 @@ public class WmsStockQuan extends BaseBean {
return this.totalQty == null ? 0 : this.totalQty;
}
public Double getPartQtyVal() {
return this.partQty == null ? 0 : this.partQty;
}
public Integer getBoxQtyVal() {
return this.boxQty == null ? 0 : this.boxQty;
}
public WmsStockQuan() {
}
@ -201,4 +230,45 @@ public class WmsStockQuan extends BaseBean {
this.lockQty = lockQty;
this.scrapQty = scrapQty;
}
public WmsStockQuan(String locateNo,Integer boxQty,Double partQty,String partNo,String partNameRdd, String unit,
Double sumQty, Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty, Double consignQty, Double lockQty, Double scrapQty) {
this.locateNo = locateNo;
this.boxQty = boxQty;
this.partQty = partQty;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.unit = unit;
this.sumQty = sumQty;
this.qty = qty;
this.failQty = failQty;
this.holdQty = holdQty;
this.qcQty = qcQty;
this.rinQty = rinQty;
this.freezeQty = freezeQty;
this.consignQty = consignQty;
this.lockQty = lockQty;
this.scrapQty = scrapQty;
}
public WmsStockQuan(String whNo, String zoneNo, String locateNo,Integer boxQty,Double partQty,String partNo,String partNameRdd, String unit,
Double qty, Double failQty, Double holdQty, Double qcQty, Double rinQty, Double freezeQty, Double consignQty, Double lockQty, Double scrapQty) {
this.whNo = whNo;
this.zoneNo = zoneNo;
this.locateNo = locateNo;
this.boxQty = boxQty;
this.partQty = partQty;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.unit = unit;
this.qty = qty;
this.failQty = failQty;
this.holdQty = holdQty;
this.qcQty = qcQty;
this.rinQty = rinQty;
this.freezeQty = freezeQty;
this.consignQty = consignQty;
this.lockQty = lockQty;
this.scrapQty = scrapQty;
}
}

@ -807,6 +807,9 @@ public class WmsHqlPack {
DdlPreparedPack.getStringEqualPack(wmsStockSn.getSn(), "sn", result);
DdlPreparedPack.getStringEqualPack(wmsStockSn.getRefSrc(), "refSrc", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getPrinted(), "printed", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getSnStatus(), "snStatus", result);
DdlPreparedPack.getNumEqualPack(wmsStockSn.getQcStatus(), "qcStatus", result);
getStringBuilderPack(wmsStockSn, result);
return result;
@ -2003,8 +2006,8 @@ public class WmsHqlPack {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(wmsUnit.getOrganizeCode(), "organizeCode", result);
DdlPreparedPack.getStringEqualPack(wmsUnit.getUnitCode(), "unitCode", result);
DdlPreparedPack.getStringEqualPack(wmsUnit.getUnitName(), "unitName", result);
DdlPreparedPack.getStringLikerPack(wmsUnit.getUnitCode(), "unitCode", result);
DdlPreparedPack.getStringLikerPack(wmsUnit.getUnitName(), "unitName", result);
DdlPreparedPack.getNumEqualPack(wmsUnit.getUnitPrecision(), "unitPrecision", result);
getStringBuilderPack(wmsUnit, result);

Loading…
Cancel
Save