opt:kit套件优化
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
package org.nl.acs.auto.initial;
|
package org.nl.acs.auto.initial;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.nl.acs.device.service.dto.StorageCellDto;
|
||||||
|
import org.nl.acs.device.service.impl.StorageCellServiceImpl;
|
||||||
|
import org.nl.modules.wql.core.bean.WQLObject;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Lazy;
|
import org.springframework.context.annotation.Lazy;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import com.alibaba.fastjson.JSONArray;
|
|||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.nl.acs.auto.initial.ApplicationAutoInitial;
|
||||||
import org.nl.acs.device.service.StorageCellService;
|
import org.nl.acs.device.service.StorageCellService;
|
||||||
import org.nl.acs.device.service.dto.DeviceDto;
|
import org.nl.acs.device.service.dto.DeviceDto;
|
||||||
import org.nl.acs.device.service.dto.StorageCellDto;
|
import org.nl.acs.device.service.dto.StorageCellDto;
|
||||||
@@ -28,14 +29,12 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author wangs
|
* @author wangs
|
||||||
@@ -45,7 +44,9 @@ import java.util.Map;
|
|||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class StorageCellServiceImpl implements StorageCellService {
|
public class StorageCellServiceImpl implements StorageCellService , ApplicationAutoInitial {
|
||||||
|
|
||||||
|
public static Map<String,StorageCellDto> Storage_Cache_Map = new HashMap<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
||||||
@@ -125,6 +126,7 @@ public class StorageCellServiceImpl implements StorageCellService {
|
|||||||
JSONObject json = (JSONObject) JSONObject.toJSON(dto);
|
JSONObject json = (JSONObject) JSONObject.toJSON(dto);
|
||||||
|
|
||||||
wo.insert(json);
|
wo.insert(json);
|
||||||
|
initCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -142,6 +144,7 @@ public class StorageCellServiceImpl implements StorageCellService {
|
|||||||
JSONObject json = (JSONObject) JSONObject.toJSON(dto);
|
JSONObject json = (JSONObject) JSONObject.toJSON(dto);
|
||||||
|
|
||||||
wo.update(json);
|
wo.update(json);
|
||||||
|
initCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -261,4 +264,18 @@ public class StorageCellServiceImpl implements StorageCellService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void autoInitial() throws Exception {
|
||||||
|
initCache();
|
||||||
|
}
|
||||||
|
public void initCache(){
|
||||||
|
WQLObject wo = WQLObject.getWQLObject("acs_storage_cell");
|
||||||
|
JSONArray array = wo.query().getResultJSONArray(0);
|
||||||
|
for (int i = 0; i < array.size(); i++) {
|
||||||
|
JSONObject json = array.getJSONObject(i);
|
||||||
|
StorageCellDto obj = json.toJavaObject(StorageCellDto.class);
|
||||||
|
Storage_Cache_Map.put(obj.getStorage_code(),obj);
|
||||||
|
}
|
||||||
|
System.out.println("storage缓存数量"+Storage_Cache_Map.size());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ import org.apache.commons.lang3.ObjectUtils;
|
|||||||
import org.nl.acs.agv.server.AgvService;
|
import org.nl.acs.agv.server.AgvService;
|
||||||
import org.nl.acs.agv.server.NDCAgvService;
|
import org.nl.acs.agv.server.NDCAgvService;
|
||||||
import org.nl.acs.device.service.DeviceService;
|
import org.nl.acs.device.service.DeviceService;
|
||||||
|
import org.nl.acs.device.service.StorageCellService;
|
||||||
|
import org.nl.acs.device.service.dto.StorageCellDto;
|
||||||
|
import org.nl.acs.device.service.impl.StorageCellServiceImpl;
|
||||||
import org.nl.acs.device_driver.DeviceDriver;
|
import org.nl.acs.device_driver.DeviceDriver;
|
||||||
import org.nl.acs.device_driver.RouteableDeviceDriver;
|
import org.nl.acs.device_driver.RouteableDeviceDriver;
|
||||||
import org.nl.acs.device_driver.driver.AbstractDeviceDriver;
|
import org.nl.acs.device_driver.driver.AbstractDeviceDriver;
|
||||||
@@ -143,10 +146,17 @@ public class StandardOrdinarySiteDeviceDriver extends AbstractDeviceDriver imple
|
|||||||
this.devicecode = this.getDevice().getDevice_code();
|
this.devicecode = this.getDevice().getDevice_code();
|
||||||
if (this.reqTakeRequireSuccess && ObjectUtil.isNotEmpty(this.reqTakeInstCode)) {
|
if (this.reqTakeRequireSuccess && ObjectUtil.isNotEmpty(this.reqTakeInstCode)) {
|
||||||
Instruction instruction = instructionService.findByCodeFromCache(this.reqTakeInstCode);
|
Instruction instruction = instructionService.findByCodeFromCache(this.reqTakeInstCode);
|
||||||
//取货申请
|
//取货申请F
|
||||||
if (ObjectUtil.isNotEmpty(instruction) && StrUtil.equals(instruction.getStart_point_code(), this.devicecode)) {
|
if (ObjectUtil.isNotEmpty(instruction) && StrUtil.equals(instruction.getStart_point_code(), this.devicecode)) {
|
||||||
if (agvphase == 1) {
|
if (agvphase == 1) {
|
||||||
device = deviceAppService.findDeviceByCode(this.devicecode);
|
device = deviceAppService.findDeviceByCode(this.devicecode);
|
||||||
|
StorageCellDto dto = StorageCellServiceImpl.Storage_Cache_Map.get(instruction.getStart_point_code());
|
||||||
|
if (dto == null) {
|
||||||
|
log.error(instruction.getStart_point_code()+"Storage_Cache_Map数据不存在");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
instruction.setOffSet(dto.getAddress());
|
||||||
|
instruction.setOffSetName(instruction.getStart_point_code());
|
||||||
HttpResponse result = acsToNDCService.genAgvSchedulingTask(instruction, 10);
|
HttpResponse result = acsToNDCService.genAgvSchedulingTask(instruction, 10);
|
||||||
if (ObjectUtils.isEmpty(result) || result.getStatus() != 200) {
|
if (ObjectUtils.isEmpty(result) || result.getStatus() != 200) {
|
||||||
return;
|
return;
|
||||||
@@ -163,6 +173,12 @@ public class StandardOrdinarySiteDeviceDriver extends AbstractDeviceDriver imple
|
|||||||
|
|
||||||
if ((StrUtil.startWith(task.getTask_code(), "-"))) {
|
if ((StrUtil.startWith(task.getTask_code(), "-"))) {
|
||||||
log.info("定点任务下发agv允许取货信号");
|
log.info("定点任务下发agv允许取货信号");
|
||||||
|
StorageCellDto dto = StorageCellServiceImpl.Storage_Cache_Map.get(instruction.getStart_point_code());
|
||||||
|
if (dto == null) {
|
||||||
|
log.error(instruction.getStart_point_code()+"Storage_Cache_Map数据不存在");
|
||||||
|
return;
|
||||||
|
} instruction.setOffSet(dto.getAddress());
|
||||||
|
instruction.setOffSetName(instruction.getNext_point_code());
|
||||||
HttpResponse result = acsToNDCService.genAgvSchedulingTask(instruction, 10);
|
HttpResponse result = acsToNDCService.genAgvSchedulingTask(instruction, 10);
|
||||||
if (ObjectUtils.isEmpty(result) || result.getStatus() != 200) {
|
if (ObjectUtils.isEmpty(result) || result.getStatus() != 200) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -5,15 +5,7 @@ import org.nl.acs.device_driver.DeviceDriver;
|
|||||||
|
|
||||||
public interface ExecutableDeviceDriver extends DeviceDriver {
|
public interface ExecutableDeviceDriver extends DeviceDriver {
|
||||||
default void executeAuto() {
|
default void executeAuto() {
|
||||||
// try {
|
|
||||||
// this.execute();
|
|
||||||
// } catch (Throwable var6) {
|
|
||||||
// String message = "线程调用异常:" + var6.getMessage();
|
|
||||||
// Log.error(message);
|
|
||||||
// } finally {
|
|
||||||
// }
|
|
||||||
this.execute();
|
this.execute();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void execute();
|
void execute();
|
||||||
|
|||||||
@@ -1,26 +1,27 @@
|
|||||||
package org.nl.acs.ext.wms.enums;
|
package org.nl.acs.ext.wms.enums;
|
||||||
|
|
||||||
public enum MsgTypeEnum {
|
public enum MsgTypeEnum {
|
||||||
CREATE_TASK_REQ("3", "创建任务"),
|
CREATE_TASK_REQ(3, "创建任务"),
|
||||||
CANCEL_TASK_REQ("9", "取消任务"),
|
CANCEL_TASK_REQ(9, "取消任务"),
|
||||||
TASK_PICKUP_REQ("10", "取请求应答"),
|
TASK_PICKUP_REQ(10, "取请求应答"),
|
||||||
TASK_RELEASE_REQ("11", "放请求应答"),
|
TASK_RELEASE_REQ(11, "放请求应答"),
|
||||||
TASK_STATE_RPT("7", "任务状态上报"),
|
TASK_STATE_RPT(7, "任务状态上报"),
|
||||||
AGV_POWER_RPT("101", "AGV电量上报"),
|
TASK_RUN_RPT(5, "空"),
|
||||||
AGV_ID_RPT("103", "任务分配车辆上报"),
|
AGV_POWER_RPT(101, "AGV电量上报"),
|
||||||
TASK_INDEX_RPT("8", "车辆任务生成上报"),
|
AGV_ID_RPT(103, "任务分配车辆上报"),
|
||||||
AGV_ERROR_RPT("102", "AGV故障上报"),
|
TASK_INDEX_RPT(8, "车辆任务生成上报"),
|
||||||
AGV_STATE_RPT("100", "AGV状态上报");
|
AGV_ERROR_RPT(102, "AGV故障上报"),
|
||||||
|
AGV_STATE_RPT(100, "AGV状态上报");
|
||||||
|
|
||||||
private final String value;
|
private final Integer value;
|
||||||
private final String description;
|
private final String description;
|
||||||
|
|
||||||
MsgTypeEnum(String value, String description) {
|
MsgTypeEnum(Integer value, String description) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getValue() {
|
public Integer getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ public enum MsgTypeEnum {
|
|||||||
/**
|
/**
|
||||||
* 根据值获取对应的枚举
|
* 根据值获取对应的枚举
|
||||||
*/
|
*/
|
||||||
public static MsgTypeEnum fromValue(String value) {
|
public static MsgTypeEnum fromValue(Integer value) {
|
||||||
for (MsgTypeEnum type : values()) {
|
for (MsgTypeEnum type : values()) {
|
||||||
if (type.getValue() == value) {
|
if (type.getValue() == value) {
|
||||||
return type;
|
return type;
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public class OtherToInterfaceLogAspect {
|
|||||||
.method(methodName)
|
.method(methodName)
|
||||||
.response_param(e.getMessage())
|
.response_param(e.getMessage())
|
||||||
.executeTime(System.currentTimeMillis() - startTime)
|
.executeTime(System.currentTimeMillis() - startTime)
|
||||||
.content("响应请求")
|
.content("执行异常")
|
||||||
.build();
|
.build();
|
||||||
logService.interfaceExecuteLog(logDto);
|
logService.interfaceExecuteLog(logDto);
|
||||||
throw new BadRequestException(e.getMessage());
|
throw new BadRequestException(e.getMessage());
|
||||||
|
|||||||
@@ -7,12 +7,14 @@ import lombok.RequiredArgsConstructor;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.nl.acs.ext.wms.log.OthersToInterfaceLog;
|
import org.nl.acs.ext.wms.log.OthersToInterfaceLog;
|
||||||
import org.nl.acs.ext.wms.service.NDCToAcsService;
|
import org.nl.acs.ext.wms.service.NDCToAcsService;
|
||||||
|
import org.nl.modules.common.exception.BadRequestException;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@@ -27,7 +29,15 @@ public class KitToAcsController {
|
|||||||
@SaIgnore
|
@SaIgnore
|
||||||
@PostMapping("/agvCallback")
|
@PostMapping("/agvCallback")
|
||||||
@OthersToInterfaceLog("kit->ACS")
|
@OthersToInterfaceLog("kit->ACS")
|
||||||
public ResponseEntity<Object> agvCallback(@RequestBody JSONObject requestParam) throws Exception{
|
public ResponseEntity<Object> agvCallback(@RequestParam Map<String,Object> kitToAcsParam) throws Exception{
|
||||||
return new ResponseEntity<>(ndcToAcsService.agvCallback(requestParam), HttpStatus.OK);
|
JSONObject param = null;
|
||||||
|
if (kitToAcsParam == null || CollectionUtils.isEmpty(kitToAcsParam)){
|
||||||
|
throw new BadRequestException("请求参数不能为空");
|
||||||
|
}
|
||||||
|
for (String o : kitToAcsParam.keySet()) {
|
||||||
|
param = JSONObject.parseObject(o);
|
||||||
|
}
|
||||||
|
System.out.println("---kit上报请求---"+param.toString());
|
||||||
|
return new ResponseEntity<>(ndcToAcsService.agvCallback(param), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,14 +49,14 @@ public class AcsToNDCServiceImpl implements AcsToNDCService {
|
|||||||
JSONObject ja = new JSONObject();
|
JSONObject ja = new JSONObject();
|
||||||
//type 3:下发任务
|
//type 3:下发任务
|
||||||
if (type==3) {
|
if (type==3) {
|
||||||
ja.put("taskId", instruction.getInstruction_code());
|
ja.put("taskId", Integer.valueOf(instruction.getInstruction_code()));
|
||||||
DeviceService deviceService = SpringContextHolder.getBean(DeviceServiceImpl.class);
|
DeviceService deviceService = SpringContextHolder.getBean(DeviceServiceImpl.class);
|
||||||
int startAddress = deviceService.queryAddressBydeviceCode(instruction.getStart_point_code());
|
int startAddress = deviceService.queryAddressBydeviceCode(instruction.getStart_point_code());
|
||||||
int nextAddress = deviceService.queryAddressBydeviceCode(instruction.getNext_point_code());
|
int nextAddress = deviceService.queryAddressBydeviceCode(instruction.getNext_point_code());
|
||||||
ja.put("pickId", startAddress);
|
ja.put("pickId", startAddress);
|
||||||
ja.put("pickName", instruction.getStart_point_code());
|
ja.put("pickName", instruction.getStart_point_code());
|
||||||
ja.put("releaseId", nextAddress);
|
ja.put("releaseId", nextAddress);
|
||||||
ja.put("releaseIdName", instruction.getNext_point_code());
|
ja.put("releaseName", instruction.getNext_point_code());
|
||||||
ja.put("taskType", 5);
|
ja.put("taskType", 5);
|
||||||
ja.put("vehicleId", 0);
|
ja.put("vehicleId", 0);
|
||||||
ja.put("priority", 0);
|
ja.put("priority", 0);
|
||||||
@@ -64,17 +64,21 @@ public class AcsToNDCServiceImpl implements AcsToNDCService {
|
|||||||
}
|
}
|
||||||
//type 9:取消任务
|
//type 9:取消任务
|
||||||
else if (type==9){
|
else if (type==9){
|
||||||
ja.put("taskId", instruction.getInstruction_code());
|
ja.put("taskId", Integer.valueOf(instruction.getInstruction_code()));
|
||||||
jo.put("params", ja);
|
jo.put("params", ja);
|
||||||
}
|
}
|
||||||
//type 10:取放货请求应答
|
//type 10:取放货请求应答
|
||||||
else if (type==10){
|
else if (type==10){
|
||||||
ja.put("taskId", instruction.getInstruction_code());
|
ja.put("taskId", Integer.valueOf(instruction.getInstruction_code()));
|
||||||
ja.put("taskPhase", instruction.getExecute_status());
|
ja.put("taskPhase", Integer.valueOf(instruction.getExecute_status()));
|
||||||
|
ja.put("height", 0);
|
||||||
|
ja.put("offset", instruction.getOffSet());
|
||||||
|
ja.put("location_name", instruction.getOffSetName());
|
||||||
jo.put("params", ja);
|
jo.put("params", ja);
|
||||||
}
|
}
|
||||||
String wmsurl = paramService.findByCode(AcsConfig.WCSURL).getValue();
|
String wmsurl = paramService.findByCode(AcsConfig.WCSURL).getValue();
|
||||||
// AddressDto addressDto = addressService.findByCode("applyTaskToWcs");
|
// AddressDto addressDto = addressService.findByCode("
|
||||||
|
// applyTaskToWcs");
|
||||||
String url = wmsurl;
|
String url = wmsurl;
|
||||||
LuceneLogDto logDto =
|
LuceneLogDto logDto =
|
||||||
LuceneLogDto.builder()
|
LuceneLogDto.builder()
|
||||||
@@ -86,13 +90,17 @@ public class AcsToNDCServiceImpl implements AcsToNDCService {
|
|||||||
.content("开始请求")
|
.content("开始请求")
|
||||||
.build();
|
.build();
|
||||||
luceneExecuteLogService.interfaceExecuteLog(logDto);
|
luceneExecuteLogService.interfaceExecuteLog(logDto);
|
||||||
|
System.out.println("-------任务下发----"+JSON.toJSONString(jo));
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
|
log.info("任务号:{},指令号{},状态{},下发agv订单序列下发:{}", instruction.getTask_code(), instruction.getInstruction_code());
|
||||||
HttpResponse result = HttpRequest.post(url)
|
HttpResponse result = HttpRequest.post(url)
|
||||||
//表单内容
|
//表单内容
|
||||||
.body(String.valueOf(jo))
|
.body(String.valueOf(jo))
|
||||||
//超时,毫秒
|
//超时,毫秒
|
||||||
.timeout(20000)
|
.timeout(20000)
|
||||||
.execute();
|
.execute();
|
||||||
|
System.out.println("-------任务结果----"+result.body());
|
||||||
|
|
||||||
LuceneLogDto logResult =
|
LuceneLogDto logResult =
|
||||||
LuceneLogDto.builder()
|
LuceneLogDto.builder()
|
||||||
.logType("接口日志")
|
.logType("接口日志")
|
||||||
|
|||||||
@@ -42,9 +42,8 @@ public class NDCToAcsServiceImpl implements NDCToAcsService {
|
|||||||
@Override
|
@Override
|
||||||
public JSONObject agvCallback(JSONObject requestParam) throws Exception{
|
public JSONObject agvCallback(JSONObject requestParam) throws Exception{
|
||||||
JSONObject resp = new JSONObject();
|
JSONObject resp = new JSONObject();
|
||||||
String type = requestParam.getString("type");
|
Integer type = requestParam.getInteger("type");
|
||||||
JSONObject params = requestParam.getJSONObject("params");
|
JSONObject params = requestParam.getJSONObject("params");
|
||||||
|
|
||||||
//任务状态上报
|
//任务状态上报
|
||||||
if (MsgTypeEnum.TASK_STATE_RPT.getValue().equals(type)) {
|
if (MsgTypeEnum.TASK_STATE_RPT.getValue().equals(type)) {
|
||||||
String taskId = params.getString("taskId");
|
String taskId = params.getString("taskId");
|
||||||
@@ -54,7 +53,9 @@ public class NDCToAcsServiceImpl implements NDCToAcsService {
|
|||||||
StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver;
|
StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver;
|
||||||
StandardInspectSiteDeviceDriver standardInspectSiteDeviceDriver;
|
StandardInspectSiteDeviceDriver standardInspectSiteDeviceDriver;
|
||||||
//请求进入/请求离开
|
//请求进入/请求离开
|
||||||
if (StrUtil.isNotEmpty(taskPhase)&&(TaskPhaseEnum.ENTER_REQUEST_OR_ALLOWED.getValue().equals(taskPhase)||TaskPhaseEnum.LEAVE_NOTICE_OR_ALLOWED.getValue().equals(taskPhase))){
|
if (StrUtil.isNotEmpty(taskPhase)
|
||||||
|
&&(TaskPhaseEnum.ENTER_REQUEST_OR_ALLOWED.getValue().equals(taskPhase)
|
||||||
|
||TaskPhaseEnum.LEAVE_NOTICE_OR_ALLOWED.getValue().equals(taskPhase))){
|
||||||
StorageCellDto storageCellDto = storageCellService.findByAddress(taskPoint);
|
StorageCellDto storageCellDto = storageCellService.findByAddress(taskPoint);
|
||||||
if (ObjectUtil.isEmpty(storageCellDto)) {
|
if (ObjectUtil.isEmpty(storageCellDto)) {
|
||||||
resp.put("code", "400");
|
resp.put("code", "400");
|
||||||
@@ -101,7 +102,13 @@ public class NDCToAcsServiceImpl implements NDCToAcsService {
|
|||||||
resp.put("message", "反馈请求离开成功");
|
resp.put("message", "反馈请求离开成功");
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
} else if (StrUtil.isNotEmpty(taskPhase)&&(TaskPhaseEnum.PICKUP_REQUEST_OR_RESPONSE.getValue().equals(taskPhase)||TaskPhaseEnum.PICKUP_COMPLETE.getValue().equals(taskPhase)||TaskPhaseEnum.RELEASE_REQUEST_OR_RESPONSE.getValue().equals(taskPhase)||TaskPhaseEnum.RELEASE_COMPLETE.getValue().equals(taskPhase)||TaskStateEnum.NOT_STARTED.getValue().equals(taskPhase)||TaskStateEnum.EXECUTING.getValue().equals(taskPhase)||TaskStateEnum.COMPLETED.getValue().equals(taskPhase))){
|
}
|
||||||
|
else if (StrUtil.isNotEmpty(taskPhase)&&(TaskPhaseEnum.PICKUP_REQUEST_OR_RESPONSE.getValue().equals(taskPhase)
|
||||||
|
||TaskPhaseEnum.PICKUP_COMPLETE.getValue().equals(taskPhase)
|
||||||
|
||TaskPhaseEnum.RELEASE_REQUEST_OR_RESPONSE.getValue().equals(taskPhase)
|
||||||
|
||TaskPhaseEnum.RELEASE_COMPLETE.getValue().equals(taskPhase)
|
||||||
|
||TaskStateEnum.NOT_STARTED.getValue().equals(taskPhase)
|
||||||
|
||TaskStateEnum.EXECUTING.getValue().equals(taskPhase)||TaskStateEnum.COMPLETED.getValue().equals(taskPhase))){
|
||||||
Instruction instruction = instructionService.findByCodeFromCache(taskId);
|
Instruction instruction = instructionService.findByCodeFromCache(taskId);
|
||||||
if (ObjectUtil.isEmpty(instruction)) {
|
if (ObjectUtil.isEmpty(instruction)) {
|
||||||
resp.put("code", "400");
|
resp.put("code", "400");
|
||||||
@@ -250,6 +257,12 @@ public class NDCToAcsServiceImpl implements NDCToAcsService {
|
|||||||
resp.put("message", "更新车号成功");
|
resp.put("message", "更新车号成功");
|
||||||
return resp;
|
return resp;
|
||||||
}
|
}
|
||||||
|
else if (MsgTypeEnum.TASK_RUN_RPT.getValue().equals(type)){
|
||||||
|
System.out.println("------");
|
||||||
|
resp.put("code", "200");
|
||||||
|
resp.put("message", "更新车号成功");
|
||||||
|
return resp;
|
||||||
|
}
|
||||||
//车辆任务生成上报
|
//车辆任务生成上报
|
||||||
else if (MsgTypeEnum.TASK_INDEX_RPT.getValue().equals(type)){
|
else if (MsgTypeEnum.TASK_INDEX_RPT.getValue().equals(type)){
|
||||||
String taskId = params.getString("taskId");
|
String taskId = params.getString("taskId");
|
||||||
@@ -266,13 +279,15 @@ public class NDCToAcsServiceImpl implements NDCToAcsService {
|
|||||||
resp.put("code", "200");
|
resp.put("code", "200");
|
||||||
resp.put("message", "更新指令执行中成功");
|
resp.put("message", "更新指令执行中成功");
|
||||||
return resp;
|
return resp;
|
||||||
}else if (MsgTypeEnum.AGV_POWER_RPT.getValue().equals(type)){
|
}
|
||||||
|
else if (MsgTypeEnum.AGV_POWER_RPT.getValue().equals(type)){
|
||||||
int agvId = params.getIntValue("agvId");
|
int agvId = params.getIntValue("agvId");
|
||||||
int stateValue = params.getIntValue("stateValue");
|
int stateValue = params.getIntValue("stateValue");
|
||||||
resp.put("code", "200");
|
resp.put("code", "200");
|
||||||
resp.put("message", "更新指令执行中成功");
|
resp.put("message", "更新指令执行中成功");
|
||||||
return resp;
|
return resp;
|
||||||
}else if (MsgTypeEnum.AGV_STATE_RPT.getValue().equals(type)){
|
}
|
||||||
|
else if (MsgTypeEnum.AGV_STATE_RPT.getValue().equals(type)){
|
||||||
int agvId = params.getIntValue("agvId");
|
int agvId = params.getIntValue("agvId");
|
||||||
int stateValue = params.getIntValue("stateValue");
|
int stateValue = params.getIntValue("stateValue");
|
||||||
int xLocation = params.getIntValue("xLocation");
|
int xLocation = params.getIntValue("xLocation");
|
||||||
@@ -282,7 +297,8 @@ public class NDCToAcsServiceImpl implements NDCToAcsService {
|
|||||||
resp.put("code", "200");
|
resp.put("code", "200");
|
||||||
resp.put("message", "更新指令执行中成功");
|
resp.put("message", "更新指令执行中成功");
|
||||||
return resp;
|
return resp;
|
||||||
}else if (MsgTypeEnum.AGV_ERROR_RPT.getValue().equals(type)){
|
}
|
||||||
|
else if (MsgTypeEnum.AGV_ERROR_RPT.getValue().equals(type)){
|
||||||
int agvId = params.getIntValue("agvId");
|
int agvId = params.getIntValue("agvId");
|
||||||
int errorCode = params.getIntValue("errState");
|
int errorCode = params.getIntValue("errState");
|
||||||
resp.put("code", "200");
|
resp.put("code", "200");
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public class InstructionDto implements Serializable {
|
|||||||
* 起始点位编码
|
* 起始点位编码
|
||||||
*/
|
*/
|
||||||
private String start_point_code;
|
private String start_point_code;
|
||||||
|
private Integer start_add;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 起始设备编码
|
* 起始设备编码
|
||||||
@@ -107,6 +108,9 @@ public class InstructionDto implements Serializable {
|
|||||||
* 目标点位编码
|
* 目标点位编码
|
||||||
*/
|
*/
|
||||||
private String next_point_code;
|
private String next_point_code;
|
||||||
|
private Integer next_add;
|
||||||
|
private Integer offSet;
|
||||||
|
private String offSetName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 目标设备编码
|
* 目标设备编码
|
||||||
|
|||||||
@@ -865,11 +865,8 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
|
|||||||
|
|
||||||
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "2")) {
|
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "2")) {
|
||||||
// NDC agv指令不当场取消指令,需要等agv上报
|
// NDC agv指令不当场取消指令,需要等agv上报
|
||||||
if (!StrUtil.isEmpty(entity.getAgv_jobno())) {
|
acsToNDCService.genAgvSchedulingTask(entity, 9);
|
||||||
acsToNDCService.genAgvSchedulingTask(entity, 9);
|
flag = true;
|
||||||
} else {
|
|
||||||
flag = true;
|
|
||||||
}
|
|
||||||
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "3")
|
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "3")
|
||||||
&& !StrUtil.equals(entity.getSend_status(), "2")) {
|
&& !StrUtil.equals(entity.getSend_status(), "2")) {
|
||||||
XianGongAgvService xianGongAgvService = SpringContextHolder.getBean(XianGongAgvService.class);
|
XianGongAgvService xianGongAgvService = SpringContextHolder.getBean(XianGongAgvService.class);
|
||||||
|
|||||||
@@ -3,16 +3,22 @@ package org.nl.acs.opc;
|
|||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.nl.acs.auto.initial.ApplicationAutoInitial;
|
import org.nl.acs.auto.initial.ApplicationAutoInitial;
|
||||||
import org.nl.acs.device.service.DeviceDriverDefinationAppService;
|
import org.nl.acs.device.service.DeviceDriverDefinationAppService;
|
||||||
|
import org.nl.acs.device.service.dto.StorageCellDto;
|
||||||
|
import org.nl.acs.device.service.impl.StorageCellServiceImpl;
|
||||||
import org.nl.acs.device_driver.DeviceDriver;
|
import org.nl.acs.device_driver.DeviceDriver;
|
||||||
import org.nl.acs.device_driver.DeviceDriverDefination;
|
import org.nl.acs.device_driver.DeviceDriverDefination;
|
||||||
import org.nl.acs.device_driver.LinewayDeviceDriver;
|
import org.nl.acs.device_driver.LinewayDeviceDriver;
|
||||||
import org.nl.acs.device_driver.driver.OpcDeviceDriver;
|
import org.nl.acs.device_driver.driver.OpcDeviceDriver;
|
||||||
|
import org.nl.modules.wql.core.bean.WQLObject;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -311,7 +317,6 @@ public class DeviceAppServiceImpl implements DeviceAppService, ApplicationAutoIn
|
|||||||
log.info("加载所有设备");
|
log.info("加载所有设备");
|
||||||
this.reload();
|
this.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void reload() {
|
public synchronized void reload() {
|
||||||
List<DeviceManageDto> deviceManageDtos = this.deviceManageService.queryAllWithExtra();
|
List<DeviceManageDto> deviceManageDtos = this.deviceManageService.queryAllWithExtra();
|
||||||
this.devices = new ArrayList();
|
this.devices = new ArrayList();
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ public class DeviceExecuteAutoRun extends AbstractAutoRunnable {
|
|||||||
public void autoRun() throws Exception {
|
public void autoRun() throws Exception {
|
||||||
for (int i = 0; !OpcStartTag.is_run; ++i) {
|
for (int i = 0; !OpcStartTag.is_run; ++i) {
|
||||||
log.info("设备执行线程等待opc同步线程...");
|
log.info("设备执行线程等待opc同步线程...");
|
||||||
Thread.sleep(1000L);
|
Thread.sleep(500L);
|
||||||
if (i > 60) {
|
if (i > 10) {
|
||||||
log.info("设备执行线程放弃等待opc同步线程...");
|
log.info("设备执行线程放弃等待opc同步线程...");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,6 +65,10 @@ public class LuceneExecuteLogServiceImpl implements LuceneExecuteLogService {
|
|||||||
if (ObjectUtil.isNotEmpty(luceneLogDto.getMethod())) {
|
if (ObjectUtil.isNotEmpty(luceneLogDto.getMethod())) {
|
||||||
document.add(new StringField("method", luceneLogDto.getMethod(), Field.Store.YES));
|
document.add(new StringField("method", luceneLogDto.getMethod(), Field.Store.YES));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ObjectUtil.isNotEmpty(luceneLogDto.getRequest_url())) {
|
||||||
|
document.add(new StringField("url", luceneLogDto.getRequest_url(), Field.Store.YES));
|
||||||
|
}
|
||||||
if (ObjectUtil.isNotEmpty(luceneLogDto.getStatus_code())) {
|
if (ObjectUtil.isNotEmpty(luceneLogDto.getStatus_code())) {
|
||||||
document.add(new StringField("status_code", luceneLogDto.getStatus_code(), Field.Store.YES));
|
document.add(new StringField("status_code", luceneLogDto.getStatus_code(), Field.Store.YES));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,9 +68,9 @@ public class ExecutionJob extends QuartzJobBean {
|
|||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
logDto.setCronExpression(quartzJob.getCronExpression());
|
logDto.setCronExpression(quartzJob.getCronExpression());
|
||||||
try {
|
try {
|
||||||
// 执行任务
|
// // 执行任务
|
||||||
System.out.println("--------------------------------------------------------------");
|
// System.out.println("--------------------------------------------------------------");
|
||||||
System.out.println("任务开始执行,任务名称:" + quartzJob.getJobName());
|
// System.out.println("任务开始执行,任务名称:" + quartzJob.getJobName());
|
||||||
QuartzRunnable task = new QuartzRunnable(quartzJob.getBeanName(), quartzJob.getMethodName(),
|
QuartzRunnable task = new QuartzRunnable(quartzJob.getBeanName(), quartzJob.getMethodName(),
|
||||||
quartzJob.getParams());
|
quartzJob.getParams());
|
||||||
Future<?> future = EXECUTOR.submit(task);
|
Future<?> future = EXECUTOR.submit(task);
|
||||||
@@ -82,9 +82,9 @@ public class ExecutionJob extends QuartzJobBean {
|
|||||||
}
|
}
|
||||||
// 任务状态
|
// 任务状态
|
||||||
logDto.setIsSuccess(true);
|
logDto.setIsSuccess(true);
|
||||||
System.out.println("任务执行完毕,任务名称:" + quartzJob.getJobName() + ", 执行时间:" + times + "毫秒");
|
// System.out.println("任务执行完毕,任务名称:" + quartzJob.getJobName() + ", 执行时间:" + times + "毫秒");
|
||||||
System.out.println("--------------------------------------------------------------");
|
// System.out.println("--------------------------------------------------------------");
|
||||||
// 判断是否存在子任务
|
// // 判断是否存在子任务
|
||||||
if (StrUtil.isNotEmpty(quartzJob.getSubTask())) {
|
if (StrUtil.isNotEmpty(quartzJob.getSubTask())) {
|
||||||
String[] tasks = quartzJob.getSubTask().split("[,,]");
|
String[] tasks = quartzJob.getSubTask().split("[,,]");
|
||||||
// 执行子任务
|
// 执行子任务
|
||||||
@@ -94,8 +94,8 @@ public class ExecutionJob extends QuartzJobBean {
|
|||||||
if (StrUtil.isNotEmpty(uuid)) {
|
if (StrUtil.isNotEmpty(uuid)) {
|
||||||
redisUtils.set(uuid, false);
|
redisUtils.set(uuid, false);
|
||||||
}
|
}
|
||||||
System.out.println("任务执行失败,任务名称:" + quartzJob.getJobName());
|
// System.out.println("任务执行失败,任务名称:" + quartzJob.getJobName());
|
||||||
System.out.println("--------------------------------------------------------------");
|
// System.out.println("--------------------------------------------------------------");
|
||||||
long times = System.currentTimeMillis() - startTime;
|
long times = System.currentTimeMillis() - startTime;
|
||||||
logDto.setTime(times);
|
logDto.setTime(times);
|
||||||
// 任务状态 0:成功 1:失败
|
// 任务状态 0:成功 1:失败
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
db-type: com.alibaba.druid.pool.DruidDataSource
|
db-type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
url: jdbc:log4jdbc:mysql://${DB_HOST:172.30.15.231}:${DB_PORT:3306}/${DB_NAME:nl5_acs}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true
|
url: jdbc:log4jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:hl5q}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&allowPublicKeyRetrieval=true
|
||||||
username: ${DB_USER:root}
|
username: ${DB_USER:root}
|
||||||
password: ${DB_PWD:123456}
|
password: ${DB_PWD:123456}
|
||||||
# 初始连接数
|
# 初始连接数
|
||||||
|
|||||||
@@ -1,163 +0,0 @@
|
|||||||
server:
|
|
||||||
port: 8011
|
|
||||||
#配置数据源
|
|
||||||
spring:
|
|
||||||
datasource:
|
|
||||||
druid:
|
|
||||||
db-type: com.alibaba.druid.pool.DruidDataSource
|
|
||||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
|
||||||
url: jdbc:log4jdbc:mysql://${DB_HOST:10.1.3.91}:${DB_PORT:3306}/${DB_NAME:acs}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
|
|
||||||
username: ${DB_USER:root}
|
|
||||||
password: ${DB_PWD:123456}
|
|
||||||
# 初始连接数
|
|
||||||
initial-size: 5
|
|
||||||
# 最小连接数
|
|
||||||
min-idle: 15
|
|
||||||
# 最大连接数
|
|
||||||
max-active: 60
|
|
||||||
# 获取连接超时时间
|
|
||||||
max-wait: 5000
|
|
||||||
# 连接有效性检测时间
|
|
||||||
time-between-eviction-runs-millis: 60000
|
|
||||||
# 连接在池中最小生存的时间
|
|
||||||
min-evictable-idle-time-millis: 300000
|
|
||||||
# 连接在池中最大生存的时间
|
|
||||||
max-evictable-idle-time-millis: 900000
|
|
||||||
# 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除
|
|
||||||
test-while-idle: true
|
|
||||||
# 指明是否在从池中取出连接前进行检验,如果检验失败, 则从池中去除连接并尝试取出另一个
|
|
||||||
test-on-borrow: true
|
|
||||||
# 是否在归还到池中前进行检验
|
|
||||||
test-on-return: false
|
|
||||||
# 检测连接是否有效
|
|
||||||
validation-query: select 1
|
|
||||||
# 配置监控统计
|
|
||||||
webStatFilter:
|
|
||||||
enabled: true
|
|
||||||
stat-view-servlet:
|
|
||||||
enabled: true
|
|
||||||
# 控制台管理用户名和密码
|
|
||||||
url-pattern: /druid/*
|
|
||||||
reset-enable: false
|
|
||||||
login-username: admin
|
|
||||||
login-password: 123456
|
|
||||||
filter:
|
|
||||||
stat:
|
|
||||||
enabled: true
|
|
||||||
# 记录慢SQL
|
|
||||||
log-slow-sql: true
|
|
||||||
slow-sql-millis: 1000
|
|
||||||
merge-sql: true
|
|
||||||
wall:
|
|
||||||
config:
|
|
||||||
multi-statement-allow: true
|
|
||||||
redis:
|
|
||||||
#数据库索引
|
|
||||||
database: ${REDIS_DB:9}
|
|
||||||
host: ${REDIS_HOST:127.0.0.1}
|
|
||||||
port: ${REDIS_PORT:6379}
|
|
||||||
password: ${REDIS_PWD:}
|
|
||||||
#连接超时时间
|
|
||||||
timeout: 5000
|
|
||||||
# 登录相关配置
|
|
||||||
login:
|
|
||||||
# 登录缓存
|
|
||||||
cache-enable: true
|
|
||||||
# 是否限制单用户登录
|
|
||||||
single-login: false
|
|
||||||
# 验证码
|
|
||||||
login-code:
|
|
||||||
# 验证码类型配置 查看 LoginProperties 类
|
|
||||||
code-type: arithmetic
|
|
||||||
# 登录图形验证码有效时间/分钟
|
|
||||||
expiration: 2
|
|
||||||
# 验证码高度
|
|
||||||
width: 111
|
|
||||||
# 验证码宽度
|
|
||||||
heigth: 36
|
|
||||||
# 内容长度
|
|
||||||
length: 2
|
|
||||||
# 字体名称,为空则使用默认字体,如遇到线上乱码,设置其他字体即可
|
|
||||||
font-name:
|
|
||||||
# 字体大小
|
|
||||||
font-size: 25
|
|
||||||
|
|
||||||
#jwt
|
|
||||||
jwt:
|
|
||||||
header: Authorization
|
|
||||||
# 令牌前缀
|
|
||||||
token-start-with: Bearer
|
|
||||||
# 必须使用最少88位的Base64对该令牌进行编码
|
|
||||||
base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI=
|
|
||||||
# 令牌过期时间 此处单位/毫秒 ,默认2小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html
|
|
||||||
token-validity-in-seconds: 7200000
|
|
||||||
# 在线用户key
|
|
||||||
online-key: online-token-
|
|
||||||
# 验证码
|
|
||||||
code-key: code-key-
|
|
||||||
# token 续期检查时间范围(默认30分钟,单位默认毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期
|
|
||||||
detect: 1800000
|
|
||||||
# 续期时间范围,默认 1小时,这里单位毫秒
|
|
||||||
renew: 3600000
|
|
||||||
|
|
||||||
# IP 本地解析
|
|
||||||
ip:
|
|
||||||
local-parsing: true
|
|
||||||
|
|
||||||
#是否允许生成代码,生产环境设置为false
|
|
||||||
generator:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
#如果生产环境要开启swagger,需要配置请求地址
|
|
||||||
#springfox:
|
|
||||||
# documentation:
|
|
||||||
# swagger:
|
|
||||||
# v2:
|
|
||||||
# host: # 接口域名或外网ip
|
|
||||||
|
|
||||||
#是否开启 swagger-ui
|
|
||||||
swagger:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# 文件存储路径
|
|
||||||
file:
|
|
||||||
mac:
|
|
||||||
path: ~/file/
|
|
||||||
avatar: ~/avatar/
|
|
||||||
linux:
|
|
||||||
path: /home/eladmin/file/
|
|
||||||
avatar: /home/eladmin/avatar/
|
|
||||||
windows:
|
|
||||||
path: C:\eladmin\file\
|
|
||||||
avatar: C:\eladmin\avatar\
|
|
||||||
# 文件大小 /M
|
|
||||||
maxSize: 100
|
|
||||||
avatarMaxSize: 5
|
|
||||||
logging:
|
|
||||||
file:
|
|
||||||
path: /app/jar/logs
|
|
||||||
config: classpath:logback-spring.xml
|
|
||||||
|
|
||||||
# Sa-Token配置
|
|
||||||
sa-token:
|
|
||||||
# token 名称 (同时也是cookie名称)
|
|
||||||
token-name: Authorization
|
|
||||||
# token 有效期,单位s 默认30天, -1代表永不过期
|
|
||||||
timeout: 2592000
|
|
||||||
# token 临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
|
|
||||||
activity-timeout: -1
|
|
||||||
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
|
|
||||||
is-concurrent: true
|
|
||||||
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
|
|
||||||
is-share: false
|
|
||||||
# token风格
|
|
||||||
token-style: random-128
|
|
||||||
# 是否输出操作日志
|
|
||||||
is-log: false
|
|
||||||
jwt-secret-key: opsjajisdnnca0sdkksdfaaasdfwwq
|
|
||||||
# token 前缀
|
|
||||||
token-prefix: Bearer
|
|
||||||
|
|
||||||
loki:
|
|
||||||
url: http://localhost:3100/loki/api/v1
|
|
||||||
systemName: acs
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE22" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ACS请求焊接线/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.AcsToHJXServiceImpl" level="info" additivity="true">
|
|
||||||
<appender-ref ref="FILE22"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE14" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ACS请求立库/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.AcsToLiKuServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE14"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE22" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ACS请求MES/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org/nl/acs/ext/wms/service/impl/AcsToMesServiceImpl" level="info" additivity="true">
|
|
||||||
<appender-ref ref="FILE22"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE22" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ACS请求NDC/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.AcsToNDCServiceImpl" level="info" additivity="true">
|
|
||||||
<appender-ref ref="FILE22"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILEAcsToWmsServiceImpl" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ACS请求WMS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>50MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.AcsToWmsServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILEAcsToWmsServiceImpl"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE21" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ACS请求ZDWMS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org/nl/acs/ext/wms/service/impl/AcsToWmsZDServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE21"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE12" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ACS反馈ZD/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.AcsToMesServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE12"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE11" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/NDC与ACS交互/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.device_driver.basedriver.agv.ndcone.AgvNdcOneDeviceDriver" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE11"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE3" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/自动创建指令/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.modules.quartz.task.AutoCreateInst" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE15" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/立库请求ACS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.LiKuToAcsServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE15"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<define name="DEVICECODE" class="org.nl.modules.logging.DeviceCodeDir"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE_LUCENE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/lucene/${DEVICECODE}/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.modules.lucene.service.impl.LuceneExecuteLogServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE_LUCENE"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE22" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/MES请求ACS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.MesToAcsServiceImpl" level="info" additivity="true">
|
|
||||||
<appender-ref ref="FILE22"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE22" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/NDC反馈ACS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.NDCToAcsServiceImpl" level="info" additivity="true">
|
|
||||||
<appender-ref ref="FILE22"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE10" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/一楼NDC系统/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.auto.run.OneNDCSocketConnectionAutoRun" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE10"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE16" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/下发KEP信号/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.opc.OpcUtl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE16"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE13" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/WMS下发ACS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.WmsToAcsServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE13"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE22" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ZDWMS请求ACS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org/nl/acs/ext/wms/service/impl/WmsZDToAcsServiceImpl" level="info" additivity="true">
|
|
||||||
<appender-ref ref="FILE22"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE13" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/ZD反馈ACS/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.ext.wms.service.impl.WmsZDToAcsServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE13"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<included>
|
|
||||||
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logs"/>
|
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
|
||||||
<!-- 按照每天生成日志文件 -->
|
|
||||||
<appender name="FILE13" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
||||||
<!--日志文件输出的文件名-->
|
|
||||||
<FileNamePattern>${LOG_HOME}/下发AGV日志/%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
<!--单个日志最大容量 至少10MB才能看得出来-->
|
|
||||||
<maxFileSize>200MB</maxFileSize>
|
|
||||||
<!--所有日志最多占多大容量-->
|
|
||||||
<totalSizeCap>2GB</totalSizeCap>
|
|
||||||
</rollingPolicy>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
|
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
|
|
||||||
<charset>${log.charset}</charset>
|
|
||||||
</encoder>
|
|
||||||
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!-- <logger name="org.nl.start.Init" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE3"/>
|
|
||||||
</logger>-->
|
|
||||||
|
|
||||||
<!-- 打印sql -->
|
|
||||||
<logger name="org.nl.acs.agv.server.impl.ZheDaAgvServiceImpl" level="info" additivity="false">
|
|
||||||
<appender-ref ref="FILE13"/>
|
|
||||||
</logger>
|
|
||||||
</included>
|
|
||||||
@@ -20,17 +20,7 @@ https://juejin.cn/post/6844903775631572999
|
|||||||
<property name="SYSTEM_NAME" value="${systemName}"/>
|
<property name="SYSTEM_NAME" value="${systemName}"/>
|
||||||
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
|
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
|
||||||
<property name="LOG_HOME" value="${logPath}"/>
|
<property name="LOG_HOME" value="${logPath}"/>
|
||||||
<!--引入默认的一些设置-->
|
|
||||||
<include resource="log/AutoCreateInst.xml"/>
|
|
||||||
<include resource="log/AcsToWms.xml"/>
|
|
||||||
<include resource="log/WmsToAcs.xml"/>
|
|
||||||
<include resource="log/OneNDCSocketConnectionAutoRun.xml"/>
|
|
||||||
<include resource="log/Lucene.xml"/>
|
|
||||||
<include resource="log/OpcUtil.xml"/>
|
|
||||||
<include resource="log/ZheDaAgv.xml"/>
|
|
||||||
<include resource="log/AcsToZDWms.xml"/>
|
|
||||||
<include resource="log/ZDToAcsWms.xml"/>
|
|
||||||
<include resource="log/AgvNdcOneDeviceDriver.xml"/>
|
|
||||||
|
|
||||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
<encoder>
|
<encoder>
|
||||||
@@ -112,6 +102,7 @@ https://juejin.cn/post/6844903775631572999
|
|||||||
<!--生产环境:打印控制台和输出到文件-->
|
<!--生产环境:打印控制台和输出到文件-->
|
||||||
<springProfile name="prod">
|
<springProfile name="prod">
|
||||||
<root level="info">
|
<root level="info">
|
||||||
|
<appender-ref ref="CONSOLE"/>
|
||||||
<appender-ref ref="asyncFileAppender"/>
|
<appender-ref ref="asyncFileAppender"/>
|
||||||
</root>
|
</root>
|
||||||
<logger name="org.nl.acs.log.service.impl.DeviceExecuteLogServiceImpl" level="info" additivity="false">
|
<logger name="org.nl.acs.log.service.impl.DeviceExecuteLogServiceImpl" level="info" additivity="false">
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
VUE_APP_BASE_API = 'http://localhost:8010'
|
VUE_APP_BASE_API = 'http://localhost:8011'
|
||||||
VUE_APP_WS_API = 'ws://localhost:8010'
|
VUE_APP_WS_API = 'ws://localhost:8011'
|
||||||
|
|
||||||
# 是否启用 babel-plugin-dynamic-import-node插件
|
# 是否启用 babel-plugin-dynamic-import-node插件
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vue-cli-service serve",
|
"dev": "vue-cli-service serve",
|
||||||
|
"dev_mac": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
|
||||||
"build:prod": "vue-cli-service build",
|
"build:prod": "vue-cli-service build",
|
||||||
"build:stage": "vue-cli-service build --mode staging",
|
"build:stage": "vue-cli-service build --mode staging",
|
||||||
"preview": "node build/index.js --preview",
|
"preview": "node build/index.js --preview",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
window.g = {
|
window.g = {
|
||||||
dev: {
|
dev: {
|
||||||
VUE_APP_BASE_API: 'http://127.0.0.1:8010'
|
VUE_APP_BASE_API: 'http://127.0.0.1:8011'
|
||||||
},
|
},
|
||||||
prod: {
|
prod: {
|
||||||
VUE_APP_BASE_API: 'http://10.4.46.150:8011'
|
VUE_APP_BASE_API: 'http://10.4.46.150:8011'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,12 +85,14 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
truncateOrFullText(text) {
|
truncateOrFullText(text) {
|
||||||
if (text.length > 1000) {
|
debugger
|
||||||
|
if (text != null && text.length > 1000) {
|
||||||
return text.slice(0, 1000) + '...'
|
return text.slice(0, 1000) + '...'
|
||||||
}
|
}
|
||||||
return text
|
return text
|
||||||
},
|
},
|
||||||
handleClick(content) {
|
handleClick(content) {
|
||||||
|
debugger
|
||||||
if (content.length > 1000) {
|
if (content.length > 1000) {
|
||||||
this.$alert(content, '完整内容', {
|
this.$alert(content, '完整内容', {
|
||||||
confirmButtonText: '关闭',
|
confirmButtonText: '关闭',
|
||||||
|
|||||||
Reference in New Issue
Block a user