返回给wms写入日志

增加开始结束的时间控制
不再用order_num判定唯一
nanjing-yancao-rfid-wht
LAPTOP-S9HJSOEB\昊天 3 years ago
parent 2e67f1e5df
commit 6f2b5ebda4

4
.gitignore vendored

@ -32,3 +32,7 @@ target
/modules/modules.iml /modules/modules.iml
/modules/filter/filter.iml /modules/filter/filter.iml
/modules/common/common.iml /modules/common/common.iml
lp.key
lp.lic
libs/encrypt/Encryptor.dll
modules/common/src/main/resources/lib/core-1.0.0.jar

@ -261,7 +261,7 @@ public class HikCameraControlModuleImpl implements CameraControlModule {
public void downloadMp4(Integer cameraId, String path, LocalDateTime start, LocalDateTime end) { public void downloadMp4(Integer cameraId, String path, LocalDateTime start, LocalDateTime end) {
ConfigProperties configProperties = SpringContextUtil.getBean(ConfigProperties.class); ConfigProperties configProperties = SpringContextUtil.getBean(ConfigProperties.class);
start = start.minusNanos(1000000000 * configProperties.getKsec().getDownloadStartMp4()); start = start.minusNanos(1000000000 * configProperties.getKsec().getDownloadStartMp4());
start = start.minusNanos(1000000000 * configProperties.getKsec().getDownloadEndMp4()); end = end.plusNanos(1000000000 * configProperties.getKsec().getDownloadEndMp4());
/* start = start.minusMinutes(1); /* start = start.minusMinutes(1);
end = end.minusMinutes(1);*/ end = end.minusMinutes(1);*/
PathUtil.checkDirc(path); PathUtil.checkDirc(path);

@ -11,7 +11,7 @@ import java.util.List;
public interface OrderMapper extends BaseMapper<Order> { public interface OrderMapper extends BaseMapper<Order> {
@Select("select * from `order` where order_num = #{orderNum} limit 1") @Select("select * from `order` where order_num = #{orderNum} ORDER BY start_time desc limit 1")
Order getOneByOrderNum(String orderNum); Order getOneByOrderNum(String orderNum);
List<OrderVO> list(@Param("req")OrderSearch orderSearch); List<OrderVO> list(@Param("req")OrderSearch orderSearch);

@ -88,6 +88,7 @@ public class KsecNettyClient {
public static void write(KsecInfo ksecInfo){ public static void write(KsecInfo ksecInfo){
if(channel != null){ if(channel != null){
log.info("write server:"+ksecInfo);
channel.writeAndFlush(ksecInfo); channel.writeAndFlush(ksecInfo);
}else { }else {
log.error(" no connected upPc"); log.error(" no connected upPc");

Loading…
Cancel
Save