Merge branch 'dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into dev
commit
d70eec3967
@ -1,4 +1,4 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean;
|
||||
package cn.estsh.i3plus.pojo.platform.platbean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
@ -1,4 +1,4 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean;
|
||||
package cn.estsh.i3plus.pojo.platform.platbean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
@ -1,4 +1,4 @@
|
||||
package cn.estsh.i3plus.pojo.wms.bean;
|
||||
package cn.estsh.i3plus.pojo.platform.platbean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
@ -0,0 +1,14 @@
|
||||
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> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
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> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
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> {
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
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.getNumEqualPack(actionLog.getAgId(), "agId", 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);
|
||||
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.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;
|
||||
}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.BasVendor;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLogData;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : amy
|
||||
* @CreateDate : 2018-11-07 14:49
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsActionLogDataRepository extends BaseRepository<WmsActionLogData, Long> {
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLogDetails;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 作业记录明细
|
||||
* @Reference :
|
||||
* @Author : hansen.ke
|
||||
* @CreateDate : 2018-11-23 14:03
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsActionLogDetailsRepository extends BaseRepository<WmsActionLogDetails, Long> {
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package cn.estsh.i3plus.pojo.wms.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.wms.bean.WmsActionLog;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description : 作业记录表
|
||||
* @Reference :
|
||||
* @Author : hansen.ke
|
||||
* @CreateDate : 2018-11-23 14:02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsActionLogRepository extends BaseRepository<WmsActionLog, Long> {
|
||||
}
|
Loading…
Reference in New Issue