流程管家优化
parent
db3d47cd6e
commit
98041fe58d
@ -1,14 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.platform.platrepositorymongo;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseMongoRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.platbean.WmsActionLogData;
|
||||
|
||||
/**
|
||||
* @Description : 作业日志参数(使用Mongodb)
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-04-11 12:03:00
|
||||
* @Modify :
|
||||
**/
|
||||
public interface WmsActionLogDataMongoRepository extends BaseMongoRepository<WmsActionLogData, Long> {
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.platform.platrepositorymongo;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseMongoRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.platbean.WmsActionLogDetails;
|
||||
|
||||
/**
|
||||
* @Description : 作业日志明细(使用Mongodb)
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-04-11 12:03:00
|
||||
* @Modify :
|
||||
**/
|
||||
public interface WmsActionLogDetailsMongoRepository extends BaseMongoRepository<WmsActionLogDetails, Long> {
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.platform.platrepositorymongo;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseMongoRepository;
|
||||
import cn.estsh.i3plus.pojo.platform.platbean.WmsActionLog;
|
||||
|
||||
/**
|
||||
* @Description : 作业日志(使用Mongodb)
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-04-11 12:03:00
|
||||
* @Modify :
|
||||
**/
|
||||
public interface WmsActionLogMongoRepository extends BaseMongoRepository<WmsActionLog, Long> {
|
||||
}
|
@ -1,80 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.platform.sqlpack;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.tool.BsonPackTool;
|
||||
import cn.estsh.i3plus.pojo.platform.platbean.*;
|
||||
import com.mongodb.BasicDBObject;
|
||||
import org.bson.conversions.Bson;
|
||||
|
||||
/**
|
||||
* @Description : Bson对象封装
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @CreateDate : 2019-04-11 13:15
|
||||
* @Modify:
|
||||
**/
|
||||
public class WmsBsonPack {
|
||||
|
||||
/**
|
||||
* 作业日志复杂查询
|
||||
*
|
||||
* @param actionLog
|
||||
* @return
|
||||
*/
|
||||
public static Bson packBsonByActionLog(WmsActionLog actionLog) {
|
||||
Bson bson = new BasicDBObject();
|
||||
bson = BsonPackTool.timeBuilder(actionLog.getCreateDatetime(), "createDatetime", bson, false, false);
|
||||
bson = BsonPackTool.getStringEqualPack(actionLog.getOrderNo(), "orderNo", bson);
|
||||
bson = BsonPackTool.getStringEqualPack(actionLog.getTransTypeCode(), "transTypeCode", bson);
|
||||
bson = BsonPackTool.getStringEqualPack(actionLog.getFixId(), "fixId", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLog.getAgId(), "agId", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLog.getActionStatus(), "actionStatus", bson);
|
||||
bson = BsonPackTool.getStringEqualPack(actionLog.getAgNameC(), "agNameC", bson);
|
||||
bson = BsonPackTool.getStringEqualPack(actionLog.getOrganizeCode(), "organizeCode", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLog.getIsValid(), "isValid", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLog.getIsDeleted(), "isDeleted", bson);
|
||||
|
||||
if((actionLog.getStartTimeStart() != null&&actionLog.getStartTimeStart() !="")
|
||||
|| (actionLog.getStartTimeEnd() != null&&actionLog.getStartTimeEnd() != "")){
|
||||
bson = BsonPackTool.timeBuilder(actionLog.getStartTimeStart(), actionLog.getStartTimeEnd(), "startTime", bson, true);
|
||||
}
|
||||
|
||||
if((actionLog.getEndTimeStart() != null&&actionLog.getEndTimeStart() != "")
|
||||
|| (actionLog.getEndTimeEnd() != null&&actionLog.getEndTimeEnd() != "")){
|
||||
bson = BsonPackTool.timeBuilder(actionLog.getEndTimeStart(), actionLog.getEndTimeEnd(), "endTime", bson, true);
|
||||
}
|
||||
|
||||
return bson;
|
||||
}
|
||||
|
||||
/**
|
||||
* 作业日志明细复杂查询
|
||||
*
|
||||
* @param actionLogDetails
|
||||
* @return
|
||||
*/
|
||||
public static Bson packBsonByActionLogDetails(WmsActionLogDetails actionLogDetails) {
|
||||
Bson bson = new BasicDBObject();
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogDetails.getAlId(), "alId", bson);
|
||||
bson = BsonPackTool.getStringEqualPack(actionLogDetails.getOrganizeCode(), "organizeCode", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogDetails.getValueType(), "valueType", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogDetails.getSeq(), "seq", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogDetails.getIsValid(), "isValid", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogDetails.getIsDeleted(), "isDeleted", bson);
|
||||
return bson;
|
||||
}
|
||||
|
||||
/**
|
||||
* 调用组件日志复杂查询
|
||||
*
|
||||
* @param actionLogData
|
||||
* @return
|
||||
*/
|
||||
public static Bson packBsonByActionLogData(WmsActionLogData actionLogData) {
|
||||
Bson bson = new BasicDBObject();
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogData.getAldId(), "aldId", bson);
|
||||
bson = BsonPackTool.getStringEqualPack(actionLogData.getOrganizeCode(), "organizeCode", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogData.getIsValid(), "isValid", bson);
|
||||
bson = BsonPackTool.getNumEqualPack(actionLogData.getIsDeleted(), "isDeleted", bson);
|
||||
return bson;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLogData;
|
||||
|
||||
/**
|
||||
* @Description : 作业日志参数(使用Mongodb)
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-04-11 12:03:00
|
||||
* @Modify :
|
||||
**/
|
||||
public interface WmsActionLogDataRepository extends BaseRepository<WmsActionLogData, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLogDetails;
|
||||
|
||||
/**
|
||||
* @Description : 作业日志明细(使用Mongodb)
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-04-11 12:03:00
|
||||
* @Modify :
|
||||
**/
|
||||
public interface WmsActionLogDetailsRepository extends BaseRepository<WmsActionLogDetails, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLog;
|
||||
|
||||
/**
|
||||
* @Description : 作业日志(使用Mongodb)
|
||||
* @Reference :
|
||||
* @Author : siliter
|
||||
* @Date : 2019-04-11 12:03:00
|
||||
* @Modify :
|
||||
**/
|
||||
public interface WmsActionLogRepository extends BaseRepository<WmsActionLog, Long> {
|
||||
}
|
Loading…
Reference in New Issue