48 changed files with 1660 additions and 586 deletions
@ -0,0 +1,41 @@ |
|||
package com.gxwebsoft.apps.constants; |
|||
|
|||
public class TowerConstants { |
|||
// 1班组组长2资料员3经营人员4生产主管
|
|||
public static final Integer USER_LEVEL_NONE = 0; |
|||
public static final Integer USER_LEVEL_CLASS_MANAGER = 1; |
|||
public static final Integer USER_LEVEL_DOCUMENTER = 2; |
|||
public static final Integer USER_LEVEL_OPERATOR = 3; |
|||
public static final Integer USER_LEVEL_PRODUCTION_MANAGER = 4; |
|||
public static final Integer USER_LEVEL_AUDIT = 5; |
|||
public static final Integer USER_LEVEL_ASSET = 6; |
|||
public static final Integer USER_LEVEL_CAR_DISPATCH = 7; |
|||
public static final Integer USER_LEVEL_FIX = 8; |
|||
|
|||
//派单类型:0安拆1质检2仓储3维保
|
|||
public static final Integer WORKSHEET_TYPE_SET_UP = 0; |
|||
public static final Integer WORKSHEET_TYPE_CHECK = 1; |
|||
public static final Integer WORKSHEET_TYPE_STORE = 2; |
|||
public static final Integer WORKSHEET_TYPE_FIX = 3; |
|||
|
|||
// 设备类型:(0塔式起重机;1施工升降机;2物料提升机)
|
|||
public static final Integer WORKSHEET_EQUIP_TYPE_0 = 0; |
|||
public static final Integer WORKSHEET_EQUIP_TYPE_1 = 1; |
|||
public static final Integer WORKSHEET_EQUIP_TYPE_2 = 2; |
|||
|
|||
// 设备类型:(0安装;1加高;2拆卸)
|
|||
public static final Integer WORKSHEET_DETAIL_WORK_TYPE_0 = 0; |
|||
public static final Integer WORKSHEET_DETAIL_WORK_TYPE_1 = 1; |
|||
public static final Integer WORKSHEET_DETAIL_WORK_TYPE_2 = 2; |
|||
|
|||
|
|||
//状态 0已取消1待派单2待整理资料3待到场4待确认5已完成
|
|||
public static final Integer WORKSHEET_STATUS_CANCEL = 0; |
|||
public static final Integer WORKSHEET_STATUS_TO_BE_SEND = 1; |
|||
public static final Integer WORKSHEET_STATUS_TO_BE_DOCUMENT = 2; |
|||
public static final Integer WORKSHEET_STATUS_TO_ARRIVE = 3; |
|||
public static final Integer WORKSHEET_STATUS_TO_CONFIRM = 4; |
|||
public static final Integer WORKSHEET_STATUS_DONE = 5; |
|||
|
|||
|
|||
} |
@ -0,0 +1,712 @@ |
|||
package com.gxwebsoft.apps.controller; |
|||
|
|||
import com.alibaba.fastjson2.JSON; |
|||
import com.alibaba.fastjson2.JSONArray; |
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.github.yulichang.wrapper.MPJLambdaWrapper; |
|||
import com.gxwebsoft.apps.constants.TowerConstants; |
|||
import com.gxwebsoft.common.core.web.ApiResult; |
|||
import com.gxwebsoft.common.core.web.BaseController; |
|||
import com.gxwebsoft.common.core.web.PageParam; |
|||
import com.gxwebsoft.common.core.web.PageResult; |
|||
import com.gxwebsoft.common.system.entity.User; |
|||
import com.gxwebsoft.common.system.param.UserParam; |
|||
import com.gxwebsoft.common.system.service.UserService; |
|||
import com.gxwebsoft.shop.entity.Category; |
|||
import com.gxwebsoft.shop.param.CategoryParam; |
|||
import com.gxwebsoft.shop.service.CategoryService; |
|||
import com.gxwebsoft.tower.entity.*; |
|||
import com.gxwebsoft.tower.param.*; |
|||
import com.gxwebsoft.tower.service.*; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.beetl.android.util.ArrayMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import java.util.*; |
|||
import java.util.stream.Collectors; |
|||
|
|||
|
|||
@Api(tags = "派单管理") |
|||
@RestController |
|||
@RequestMapping("/api/apps/worksheet") |
|||
public class TowerWorksheetFrontController extends BaseController { |
|||
@Resource |
|||
private TowerWorksheetService towerWorksheetService; |
|||
@Resource |
|||
private TowerWorksheetDetailService towerWorksheetDetailService; |
|||
@Resource |
|||
private TowerWorksheetSetUpService towerWorksheetSetUpService; |
|||
@Resource |
|||
private TowerWorksheetPartsService towerWorksheetPartsService; |
|||
@Resource |
|||
private TowerWorksheetCarDispatchService towerWorksheetCarDispatchService; |
|||
@Resource |
|||
private TowerWorksheetCheckService towerWorksheetCheckService; |
|||
@Resource |
|||
private TowerProjectService towerProjectService; |
|||
@Resource |
|||
private TowerEquipmentService towerEquipmentService; |
|||
@Resource |
|||
private UserService userService; |
|||
@Resource |
|||
private CategoryService categoryService; |
|||
@Resource |
|||
private TowerWorksheetAuditService towerWorksheetAuditService; |
|||
@Resource |
|||
private TowerProjectUserService towerProjectUserService; |
|||
@Resource |
|||
private TowerProjectOrderService towerProjectOrderService; |
|||
|
|||
@ApiOperation("首页数据") |
|||
@PostMapping("/index-data") |
|||
public ApiResult<?> getData() { |
|||
User user = getLoginUser(); |
|||
Map<String, Integer> data = new HashMap<>(); |
|||
data.put("all", sumData(user, -1)); |
|||
// 待派单
|
|||
data.put("to_be_send", sumData(user, 1)); |
|||
// 待整理资料
|
|||
data.put("to_document", sumData(user, 2)); |
|||
// 待到场
|
|||
data.put("to_reach", sumData(user, 3)); |
|||
// 待确认
|
|||
data.put("to_confirm", sumData(user, 4)); |
|||
// 已完成
|
|||
data.put("done", sumData(user, 5)); |
|||
// 审核中
|
|||
data.put("auditing", sumData(user, -2)); |
|||
// 资料员已完成
|
|||
data.put("done_for_document", sumData(user, 2, true)); |
|||
return success("成功", data); |
|||
} |
|||
|
|||
@ApiOperation("派单列表") |
|||
@PostMapping("/worksheet/list") |
|||
public ApiResult<?> worksheetList(@RequestBody TowerWorksheetParam param) { |
|||
User user = getLoginUser(); |
|||
Integer status = param.getStatus(); |
|||
if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_NONE)) return fail("无权限"); |
|||
MPJLambdaWrapper<TowerWorksheet> mpjLambdaWrapper = new MPJLambdaWrapper<>(); |
|||
if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_CLASS_MANAGER)) { |
|||
mpjLambdaWrapper.eq("class_manager", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_DOCUMENTER)) { |
|||
mpjLambdaWrapper.eq("document_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_OPERATOR)) { |
|||
mpjLambdaWrapper.eq("start_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_PRODUCTION_MANAGER)) { |
|||
mpjLambdaWrapper.eq("production_manger_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_ASSET)) { |
|||
mpjLambdaWrapper.eq("asset_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_CAR_DISPATCH)) { |
|||
mpjLambdaWrapper.eq("car_dispatch_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_FIX)) { |
|||
mpjLambdaWrapper.eq("fix_uid", user.getUserId()); |
|||
} |
|||
if (!status.equals(-1)) { |
|||
if (status.equals(-2)) mpjLambdaWrapper.eq("t.audit_status", 1); |
|||
else mpjLambdaWrapper.eq("t.status", status); |
|||
} |
|||
mpjLambdaWrapper.selectAll(TowerWorksheet.class) |
|||
.select(TowerProject::getProjectName) |
|||
.leftJoin(TowerProject.class, TowerProject::getProjectId, TowerWorksheet::getProjectId); |
|||
PageParam<TowerWorksheet, TowerWorksheetParam> page = new PageParam<>(param); |
|||
page.setDefaultOrder("update_time desc"); |
|||
IPage<TowerWorksheet> towerWorksheetIPage = towerWorksheetService.page(page, mpjLambdaWrapper); |
|||
List<TowerWorksheet> towerWorksheets = towerWorksheetIPage.getRecords(); |
|||
for (TowerWorksheet towerWorksheet : towerWorksheets) { |
|||
formatWorksheet(towerWorksheet, false); |
|||
if (towerWorksheet.getStatus().equals(2) && towerWorksheet.getAuditStatus().equals(1) |
|||
&& (user.getUserLevel().equals(5) || user.getUserLevel().equals(9))) { |
|||
TowerWorksheetAudit audit = towerWorksheetAuditService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetAudit>() |
|||
.eq(TowerWorksheetAudit::getWorksheetId, towerWorksheet.getWorksheetId()) |
|||
.eq(TowerWorksheetAudit::getUserId, getLoginUserId()) |
|||
); |
|||
if (audit != null) towerWorksheet.setNeedAudit(audit.getStatus().equals(0)); |
|||
} |
|||
towerWorksheet.setHasCarDispatch( |
|||
towerWorksheetCarDispatchService.count( |
|||
new LambdaQueryWrapper<TowerWorksheetCarDispatch>() |
|||
.eq(TowerWorksheetCarDispatch::getWorksheetId, towerWorksheet.getWorksheetId()) |
|||
) > 0 |
|||
); |
|||
} |
|||
IPage<TowerWorksheet> pages = new Page<>(param.getPage(), param.getLimit()); |
|||
pages.setRecords(towerWorksheets); |
|||
pages.setTotal(towerWorksheetIPage.getTotal()); |
|||
return success(pages); |
|||
} |
|||
|
|||
@ApiOperation("派单详情") |
|||
@PostMapping("/worksheet/info") |
|||
public ApiResult<TowerWorksheet> worksheetInfo(@RequestBody TowerWorksheetParam param) { |
|||
User user = getLoginUser(); |
|||
MPJLambdaWrapper<TowerWorksheet> mpjLambdaWrapper = new MPJLambdaWrapper<>(); |
|||
mpjLambdaWrapper.eq(TowerWorksheet::getWorksheetId, param.getWorksheetId()) |
|||
.selectAll(TowerWorksheet.class) |
|||
.select(TowerProject::getProjectName) |
|||
.select(TowerProject::getProjectAddress) |
|||
.select(TowerProject::getProjectRegion) |
|||
.leftJoin(TowerProject.class, TowerProject::getProjectId, TowerWorksheet::getProjectId); |
|||
TowerWorksheet towerWorksheet = towerWorksheetService.getOne(mpjLambdaWrapper); |
|||
if (towerWorksheet.getStatus().equals(2) && towerWorksheet.getAuditStatus().equals(1) |
|||
&& (user.getUserLevel().equals(5) || user.getUserLevel().equals(9))) { |
|||
TowerWorksheetAudit audit = towerWorksheetAuditService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetAudit>() |
|||
.eq(TowerWorksheetAudit::getWorksheetId, towerWorksheet.getWorksheetId()) |
|||
.eq(TowerWorksheetAudit::getUserId, getLoginUserId()) |
|||
); |
|||
if (audit != null) towerWorksheet.setNeedAudit(audit.getStatus().equals(0)); |
|||
} |
|||
formatWorksheet(towerWorksheet, true); |
|||
return success(towerWorksheet); |
|||
} |
|||
|
|||
@ApiOperation("派单修改状态") |
|||
@PostMapping("/worksheet/change-status") |
|||
public ApiResult<?> worksheetChangeStatus(@RequestBody TowerWorksheet towerWorksheet) { |
|||
towerWorksheetService.updateById(towerWorksheet); |
|||
if (towerWorksheet.getStatus().equals(TowerConstants.WORKSHEET_STATUS_TO_ARRIVE)) { |
|||
QueryWrapper<TowerWorksheetCheck> queryWrapper = new QueryWrapper<>(); |
|||
queryWrapper.eq("worksheet_id", towerWorksheet.getWorksheetId()); |
|||
towerWorksheetCheckService.remove(queryWrapper); |
|||
} else if (towerWorksheet.getStatus().equals(TowerConstants.WORKSHEET_STATUS_DONE)) { |
|||
TowerWorksheetDetail detail = towerWorksheetDetailService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetDetail>() |
|||
.eq(TowerWorksheetDetail::getWorksheetId, towerWorksheet.getWorksheetId()) |
|||
); |
|||
// 拆卸单修改设备状态
|
|||
if (detail.getWorkType().equals(2)) { |
|||
towerEquipmentService.update( |
|||
new LambdaUpdateWrapper<TowerEquipment>() |
|||
.eq(TowerEquipment::getEquipmentId, detail.getEquipmentId()) |
|||
.set(TowerEquipment::getStatus, 0) |
|||
); |
|||
TowerProject project = towerProjectService.getById(detail.getProjectId()); |
|||
project.setProjectStatus("完工"); |
|||
towerProjectService.updateById(project); |
|||
} |
|||
} |
|||
return success("修改成功"); |
|||
} |
|||
|
|||
@ApiOperation("派单修改完成") |
|||
@PostMapping("/worksheet/change-done") |
|||
public ApiResult<?> worksheetChangeDone(@RequestBody TowerWorksheet towerWorksheet) { |
|||
if (towerWorksheet.getDocumentHasDone() != null) towerWorksheet.setDocumentDoneTime(LocalDateTime.now()); |
|||
if (towerWorksheet.getAssetHasDone() != null) towerWorksheet.setAssetDoneTime(LocalDateTime.now()); |
|||
if (towerWorksheet.getFixHasDone() != null) towerWorksheet.setFixDoneTime(LocalDateTime.now()); |
|||
towerWorksheetService.updateById(towerWorksheet); |
|||
TowerWorksheet towerWorksheet1 = towerWorksheetService.getById(towerWorksheet.getWorksheetId()); |
|||
// int carDispatchNum = towerWorksheetCarDispatchService.count(
|
|||
// new LambdaQueryWrapper<TowerWorksheetCarDispatch>().eq(TowerWorksheetCarDispatch::getWorksheetId, towerWorksheet.getWorksheetId())
|
|||
// );
|
|||
if (towerWorksheet1.getAssetHasDone().equals(1) && towerWorksheet1.getDocumentHasDone().equals(1) && towerWorksheet1.getFixHasDone().equals(1)) |
|||
towerWorksheet.setStatus(1); |
|||
towerWorksheetService.updateById(towerWorksheet); |
|||
return success("修改成功"); |
|||
} |
|||
|
|||
@ApiOperation("派单设置车辆") |
|||
@PostMapping("/worksheet/set-car-dispatch") |
|||
public ApiResult<?> worksheetSetCarDispatch(@RequestBody Map<String, ?> postBody) { |
|||
Integer worksheetId = (Integer) postBody.get("worksheetId"); |
|||
// TowerWorksheet towerWorksheet1 = towerWorksheetService.getById(worksheetId);
|
|||
towerWorksheetCarDispatchService.remove( |
|||
new LambdaQueryWrapper<TowerWorksheetCarDispatch>() |
|||
.eq(TowerWorksheetCarDispatch::getWorksheetId, worksheetId) |
|||
); |
|||
List<TowerWorksheetCarDispatch> carDispatchList = JSON.parseArray(JSON.toJSONBytes(postBody.get("carDispatchList")), TowerWorksheetCarDispatch.class); |
|||
towerWorksheetCarDispatchService.saveBatch(carDispatchList); |
|||
// if (towerWorksheet1.getAssetHasDone().equals(1) && towerWorksheet1.getDocumentHasDone().equals(1))
|
|||
// towerWorksheet1.setStatus(1);
|
|||
// towerWorksheetService.updateById(towerWorksheet1);
|
|||
return success("设置成功"); |
|||
} |
|||
|
|||
@ApiOperation("派单核验详情") |
|||
@PostMapping("/worksheet/check/info") |
|||
public ApiResult<?> worksheetCheckInfo(@RequestBody TowerWorksheetCheck towerWorksheetCheck) { |
|||
return success(towerWorksheetCheckService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetCheck>() |
|||
.eq(TowerWorksheetCheck::getWorksheetId, towerWorksheetCheck.getWorksheetId()) |
|||
.eq(TowerWorksheetCheck::getDeleted, 0) |
|||
)); |
|||
} |
|||
|
|||
@ApiOperation("派单核验") |
|||
@PostMapping("/worksheet/check") |
|||
public ApiResult<?> worksheetCheck(@RequestBody TowerWorksheetCheck towerWorksheetCheck) { |
|||
towerWorksheetCheckService.remove( |
|||
new LambdaQueryWrapper<TowerWorksheetCheck>() |
|||
.eq(TowerWorksheetCheck::getWorksheetId, towerWorksheetCheck.getWorksheetId()) |
|||
); |
|||
towerWorksheetCheckService.save(towerWorksheetCheck); |
|||
if (towerWorksheetCheck.getSave()) { |
|||
TowerWorksheet towerWorksheet = new TowerWorksheet(); |
|||
towerWorksheet.setWorksheetId(towerWorksheetCheck.getWorksheetId()); |
|||
towerWorksheet.setStatus(TowerConstants.WORKSHEET_STATUS_TO_CONFIRM); |
|||
towerWorksheetService.updateById(towerWorksheet); |
|||
return success("核验成功"); |
|||
} |
|||
return success("保存成功"); |
|||
} |
|||
|
|||
@ApiOperation("派单操作") |
|||
@PostMapping("/worksheet/action") |
|||
public ApiResult<?> worksheetAction(@RequestBody Map<String, ?> postBody) { |
|||
Integer projectId = (Integer) postBody.get("projectId"); |
|||
Integer equipmentType = (Integer) postBody.get("equipmentType"); |
|||
Integer workType = (Integer) postBody.get("workType"); |
|||
TowerWorksheetDetail towerWorksheetDetail = JSON.parseObject(JSON.toJSONBytes(postBody.get("detail")), TowerWorksheetDetail.class); |
|||
TowerWorksheet towerWorksheet; |
|||
if (postBody.get("worksheetId") == null) { |
|||
// 检查安装单
|
|||
TowerWorksheetDetail hasWorkType0 = towerWorksheetDetailService |
|||
.getOne(new QueryWrapper<TowerWorksheetDetail>() |
|||
.eq("work_type", TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_0) |
|||
.eq("project_id", projectId) |
|||
.eq("equipment_id", towerWorksheetDetail.getEquipmentId()) |
|||
.last("limit 1") |
|||
); |
|||
// if (hasWorkType0 != null) {
|
|||
// if (workType.equals(TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_0)) return fail("已存在安装单");
|
|||
// } else {
|
|||
if (hasWorkType0 == null && !workType.equals(TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_0)) |
|||
return fail("没有安装单,无法创建"); |
|||
// }
|
|||
|
|||
if (workType.equals(TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_2)) { |
|||
// 检查拆卸单
|
|||
int workType2num = towerWorksheetDetailService |
|||
.count(new QueryWrapper<TowerWorksheetDetail>() |
|||
.eq("work_type", TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_2) |
|||
.eq("project_id", projectId) |
|||
.eq("equipment_id", towerWorksheetDetail.getEquipmentId()) |
|||
); |
|||
System.out.println("workType2num: " + workType2num); |
|||
if (workType2num > 0) return fail("已有拆卸单,无法创建"); |
|||
} |
|||
towerWorksheet = new TowerWorksheet(); |
|||
} else towerWorksheet = towerWorksheetService.getById((Integer) postBody.get("worksheetId")); |
|||
towerWorksheet.setType((Integer) postBody.get("type")); |
|||
towerWorksheet.setStartUid((Integer) postBody.get("startUid")); |
|||
towerWorksheet.setProjectId(projectId); |
|||
towerWorksheet.setReceiveDate((String) postBody.get("receiveDate")); |
|||
towerWorksheet.setProductionMangerUid((Integer) postBody.get("productionMangerUid")); |
|||
towerWorksheet.setWorkType(workType); |
|||
towerWorksheet.setEquipmentType(equipmentType); |
|||
towerWorksheet.setPlanInDateInit((String) postBody.get("planInDateInit")); |
|||
towerWorksheet.setContactPhone((String) postBody.get("contactPhone")); |
|||
towerWorksheet.setDocumentUid((Integer) postBody.get("documentUid")); |
|||
towerWorksheet.setAssetUid((Integer) postBody.get("assetUid")); |
|||
towerWorksheet.setCarDispatchUid((Integer) postBody.get("carDispatchUid")); |
|||
towerWorksheet.setFixUid((Integer) postBody.get("fixUid")); |
|||
towerWorksheet.setParentWorksheetId((Integer) postBody.get("parentWorksheetId")); |
|||
towerWorksheet.setAddress((String) postBody.get("address")); |
|||
|
|||
List<TowerWorksheetAudit> auditList = JSON.parseArray(JSON.toJSONBytes(postBody.get("auditList")), TowerWorksheetAudit.class); |
|||
boolean hasAudit = !auditList.isEmpty(); |
|||
if (hasAudit) towerWorksheet.setAuditStatus(1); |
|||
else towerWorksheet.setAuditStatus(0); |
|||
if (towerWorksheet.getWorksheetId() == null) towerWorksheetService.save(towerWorksheet); |
|||
else towerWorksheetService.updateById(towerWorksheet); |
|||
Integer worksheetId = towerWorksheet.getWorksheetId(); |
|||
towerWorksheetDetail.setWorksheetId(worksheetId); |
|||
towerWorksheetDetail.setProjectId(projectId); |
|||
if (!hasAudit) towerEquipmentService.update( |
|||
new LambdaUpdateWrapper<TowerEquipment>() |
|||
.eq(TowerEquipment::getEquipmentId, towerWorksheetDetail.getEquipmentId()) |
|||
.set(TowerEquipment::getStatus, 4) |
|||
); |
|||
if (towerWorksheetDetail.getDetailId() == null) towerWorksheetDetailService.save(towerWorksheetDetail); |
|||
else towerWorksheetDetailService.updateById(towerWorksheetDetail); |
|||
// 更新设备为在用
|
|||
TowerEquipment equipment = towerEquipmentService.getById(towerWorksheetDetail.getEquipmentId()); |
|||
equipment.setStatus(4); |
|||
towerEquipmentService.updateById(equipment); |
|||
// 审核人
|
|||
if (hasAudit) { |
|||
for (TowerWorksheetAudit audit : auditList) { |
|||
audit.setWorksheetId(worksheetId); |
|||
} |
|||
towerWorksheetAuditService.remove( |
|||
new LambdaQueryWrapper<TowerWorksheetAudit>().eq(TowerWorksheetAudit::getWorksheetId, worksheetId) |
|||
); |
|||
towerWorksheetAuditService.saveBatch(auditList); |
|||
} |
|||
// 项目成员
|
|||
List<TowerProjectUser> projectUserList = new ArrayList<>(); |
|||
TowerProjectUser startUser = new TowerProjectUser(); |
|||
startUser.setUserId((Integer) postBody.get("startUid")); |
|||
startUser.setRole(20); |
|||
startUser.setProjectId(projectId); |
|||
projectUserList.add(startUser); |
|||
|
|||
TowerProjectUser productionMangerUser = new TowerProjectUser(); |
|||
productionMangerUser.setUserId((Integer) postBody.get("productionMangerUid")); |
|||
productionMangerUser.setRole(30); |
|||
productionMangerUser.setProjectId(projectId); |
|||
projectUserList.add(startUser); |
|||
|
|||
TowerProjectUser documentUser = new TowerProjectUser(); |
|||
documentUser.setUserId((Integer) postBody.get("documentUid")); |
|||
documentUser.setRole(20); |
|||
documentUser.setProjectId(projectId); |
|||
projectUserList.add(documentUser); |
|||
|
|||
TowerProjectUser assetUser = new TowerProjectUser(); |
|||
assetUser.setUserId((Integer) postBody.get("assetUid")); |
|||
assetUser.setRole(20); |
|||
assetUser.setProjectId(projectId); |
|||
projectUserList.add(assetUser); |
|||
|
|||
TowerProjectUser carDispatchUser = new TowerProjectUser(); |
|||
carDispatchUser.setUserId((Integer) postBody.get("carDispatchUid")); |
|||
carDispatchUser.setRole(20); |
|||
carDispatchUser.setProjectId(projectId); |
|||
projectUserList.add(carDispatchUser); |
|||
|
|||
|
|||
towerProjectUserService.saveBatch(projectUserList); |
|||
return success("创建成功"); |
|||
} |
|||
|
|||
@ApiOperation("派单") |
|||
@PostMapping("/worksheet/send") |
|||
public ApiResult<?> worksheetSend(@RequestBody Map<String, ?> postBody) { |
|||
TowerWorksheet towerWorksheet = postBody.get("worksheet") != null ? JSON.parseObject(JSON.toJSONBytes(postBody.get("worksheet")), TowerWorksheet.class) : null; |
|||
TowerWorksheetDetail towerWorksheetDetail = postBody.get("detail") != null ? JSON.parseObject(JSON.toJSONBytes(postBody.get("detail")), TowerWorksheetDetail.class) : null; |
|||
TowerWorksheetSetUp towerWorksheetSetUp = postBody.get("setUp") != null ? JSON.parseObject(JSON.toJSONBytes(postBody.get("setUp")), TowerWorksheetSetUp.class) : null; |
|||
List<TowerWorksheetParts> towerWorksheetParts = postBody.get("parts") != null ? JSON.parseArray(JSON.toJSONBytes(postBody.get("parts")), TowerWorksheetParts.class) : null; |
|||
List<TowerWorksheetCarDispatch> towerWorksheetCarDispatches = postBody.get("carDispatchList") != null ? JSON.parseArray(JSON.toJSONBytes(postBody.get("carDispatchList")), TowerWorksheetCarDispatch.class) : null; |
|||
|
|||
if (towerWorksheet != null) towerWorksheetService.updateById(towerWorksheet); |
|||
if (towerWorksheetDetail != null) towerWorksheetDetailService.updateById(towerWorksheetDetail); |
|||
if (towerWorksheetSetUp != null) towerWorksheetSetUpService.save(towerWorksheetSetUp); |
|||
if (towerWorksheetParts != null) towerWorksheetPartsService.saveBatch(towerWorksheetParts); |
|||
if (towerWorksheetCarDispatches != null) |
|||
towerWorksheetCarDispatchService.saveBatch(towerWorksheetCarDispatches); |
|||
|
|||
return success("派单成功"); |
|||
} |
|||
|
|||
@ApiOperation("取消") |
|||
@PostMapping("/worksheet/cancel") |
|||
public ApiResult<?> worksheetCancel(@RequestBody TowerWorksheet towerWorksheet) { |
|||
TowerWorksheet worksheet = towerWorksheetService.getById(towerWorksheet.getWorksheetId()); |
|||
if (!worksheet.getAuditStatus().equals(2) && worksheet.getStatus().equals(2)) { |
|||
if (towerWorksheetService.removeById(towerWorksheet)) return success("取消成功"); |
|||
} |
|||
return fail("无法取消"); |
|||
} |
|||
|
|||
@ApiOperation("配件列表") |
|||
@PostMapping("/cate") |
|||
public ApiResult<List<Category>> cateList(@RequestBody CategoryParam param) { |
|||
List<Category> list = categoryService.listRel(param); |
|||
for (Category category : list) { |
|||
QueryWrapper<Category> queryWrapper = new QueryWrapper<>(); |
|||
queryWrapper.eq("parent_id", category.getCategoryId()); |
|||
category.setChildren(categoryService.list(queryWrapper)); |
|||
} |
|||
return success(list); |
|||
} |
|||
|
|||
@ApiOperation("生产主管列表") |
|||
@PostMapping("/user/list-by-user-level") |
|||
public ApiResult<List<User>> productionManagerList(@RequestBody UserParam userParam) { |
|||
userParam.setDeleted(0); |
|||
System.out.println("userParam " + userParam); |
|||
return success(userService.listRel(userParam)); |
|||
} |
|||
|
|||
@ApiOperation("项目列表") |
|||
@PostMapping("/project/list") |
|||
public ApiResult<PageResult<TowerProject>> getProjectList(@RequestBody TowerProjectParam param) { |
|||
param.setDeleted(0); |
|||
PageResult<TowerProject> list = towerProjectService.pageRel(param); |
|||
// 检查各种派单数量
|
|||
for (TowerProject towerProject : list.getList()) { |
|||
Map<Integer, Integer> resList = new ArrayMap<>(); |
|||
QueryWrapper<TowerWorksheet> queryWrapper0 = new QueryWrapper<>(); |
|||
queryWrapper0.eq("type", TowerConstants.WORKSHEET_TYPE_SET_UP) |
|||
.eq("equipment_type", param.getWorksheetEquipType()) |
|||
.eq("work_type", TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_0); |
|||
resList.put(TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_0, towerWorksheetService.count(queryWrapper0)); |
|||
|
|||
QueryWrapper<TowerWorksheet> queryWrapper1 = new QueryWrapper<>(); |
|||
queryWrapper1.eq("type", TowerConstants.WORKSHEET_TYPE_SET_UP) |
|||
.eq("equipment_type", param.getWorksheetEquipType()) |
|||
.eq("work_type", TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_1); |
|||
resList.put(TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_1, towerWorksheetService.count(queryWrapper1)); |
|||
|
|||
QueryWrapper<TowerWorksheet> queryWrapper2 = new QueryWrapper<>(); |
|||
queryWrapper2.eq("type", TowerConstants.WORKSHEET_TYPE_SET_UP) |
|||
.eq("equipment_type", param.getWorksheetEquipType()) |
|||
.eq("work_type", TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_2); |
|||
resList.put(TowerConstants.WORKSHEET_DETAIL_WORK_TYPE_2, towerWorksheetService.count(queryWrapper2)); |
|||
towerProject.setWorksheetWorkTypeNumList(resList); |
|||
towerProject.setOrders( |
|||
new HashSet<>( |
|||
towerProjectOrderService.list( |
|||
new MPJLambdaWrapper<TowerProjectOrder>() |
|||
.selectAll(TowerProjectOrder.class) |
|||
.select(TowerEquipment::getManufactor, TowerEquipment::getScrapDate) |
|||
.leftJoin(TowerEquipment.class, TowerEquipment::getEquipmentId, TowerProjectOrder::getEquipmentId) |
|||
.eq(TowerProjectOrder::getProjectId, towerProject.getProjectId()) |
|||
.eq(TowerProjectOrder::getDeleted, 0) |
|||
.orderByDesc(TowerProjectOrder::getCreateTime) |
|||
) |
|||
) |
|||
|
|||
); |
|||
} |
|||
return success(list); |
|||
} |
|||
|
|||
@ApiOperation("型号列表") |
|||
@PostMapping("/equipment/list") |
|||
public ApiResult<List<TowerEquipment>> getEquipmentList(@RequestBody TowerEquipmentParam param) { |
|||
return success(towerEquipmentService.listRel(param)); |
|||
} |
|||
|
|||
@ApiOperation("审核详情") |
|||
@PostMapping("/worksheet/audit-info") |
|||
public ApiResult<TowerWorksheetAudit> worksheetAuditInfo(@RequestBody TowerWorksheetAuditParam param) { |
|||
TowerWorksheetAudit towerWorksheetAudit = towerWorksheetAuditService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetAudit>() |
|||
.eq(TowerWorksheetAudit::getWorksheetId, param.getWorksheetId()) |
|||
.eq(TowerWorksheetAudit::getUserId, getLoginUserId()) |
|||
); |
|||
return success(towerWorksheetAudit); |
|||
} |
|||
|
|||
@ApiOperation("审核列表") |
|||
@PostMapping("/worksheet/audit-list") |
|||
public ApiResult<List<TowerWorksheetAudit>> worksheetAuditList(@RequestBody TowerWorksheetAuditParam param) { |
|||
List<TowerWorksheetAudit> list = towerWorksheetAuditService.listRel(param); |
|||
for (TowerWorksheetAudit towerWorksheetAudit : list) { |
|||
towerWorksheetAudit.setUser(userService.getById(towerWorksheetAudit.getUserId())); |
|||
} |
|||
return success(list); |
|||
} |
|||
|
|||
@ApiOperation("审核") |
|||
@PostMapping("/worksheet/audit") |
|||
public ApiResult<?> doWorksheetAudit(@RequestBody TowerWorksheetAudit towerWorksheetAudit) { |
|||
TowerWorksheet towerWorksheet = towerWorksheetService.getById(towerWorksheetAudit.getWorksheetId()); |
|||
TowerWorksheetAudit towerWorksheetAudit1 = towerWorksheetAuditService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetAudit>() |
|||
.eq(TowerWorksheetAudit::getWorksheetId, towerWorksheetAudit.getWorksheetId()) |
|||
.eq(TowerWorksheetAudit::getUserId, getLoginUserId()) |
|||
); |
|||
if (towerWorksheetAudit1 == null) return fail("无法操作审核"); |
|||
int status = 2; |
|||
if (towerWorksheetAudit.getStatus().equals(2)) { |
|||
status = 3; |
|||
towerWorksheet.setRefuseReason(towerWorksheetAudit.getRefuseReason()); |
|||
} |
|||
towerWorksheetAudit1.setStatus(towerWorksheet.getAuditStatus()); |
|||
towerWorksheetAudit1.setRefuseReason(towerWorksheetAudit.getRefuseReason()); |
|||
towerWorksheetAuditService.updateById(towerWorksheetAudit1); |
|||
List<TowerWorksheetAudit> auditList = towerWorksheetAuditService.list( |
|||
new LambdaQueryWrapper<TowerWorksheetAudit>() |
|||
.eq(TowerWorksheetAudit::getWorksheetId, towerWorksheetAudit.getWorksheetId()) |
|||
); |
|||
int passNum = 0; |
|||
int unAuditNum = 0; |
|||
for (TowerWorksheetAudit audit : auditList) { |
|||
if (audit.getStatus().equals(1)) passNum++; |
|||
else if (audit.getStatus().equals(0)) unAuditNum++; |
|||
} |
|||
if (unAuditNum == 0 && passNum == auditList.size()) status = 2; |
|||
else if (unAuditNum == 0 && passNum < auditList.size()) status = 3; |
|||
towerWorksheet.setAuditStatus(status); |
|||
if (status == 2) { |
|||
TowerWorksheetDetail towerWorksheetDetail = towerWorksheetDetailService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetDetail>() |
|||
.eq(TowerWorksheetDetail::getWorksheetId, towerWorksheetAudit.getWorksheetId()) |
|||
); |
|||
towerEquipmentService.update( |
|||
new LambdaUpdateWrapper<TowerEquipment>() |
|||
.eq(TowerEquipment::getEquipmentId, towerWorksheetDetail.getEquipmentId()) |
|||
.set(TowerEquipment::getStatus, 4) |
|||
); |
|||
} |
|||
towerWorksheetService.updateById(towerWorksheet); |
|||
return success(); |
|||
} |
|||
|
|||
@ApiOperation("审核") |
|||
@PostMapping("/equipment") |
|||
public ApiResult<?> equipment(@RequestBody TowerEquipmentParam towerEquipmentParam) { |
|||
return success(towerEquipmentService.getById(towerEquipmentParam.getEquipmentId())); |
|||
} |
|||
|
|||
private Integer sumData(User user, Integer status) { |
|||
return sumData(user, status, false); |
|||
} |
|||
|
|||
private Integer sumData(User user, Integer status, boolean statusIsNeq) { |
|||
MPJLambdaWrapper<TowerWorksheet> queryWrapper = makeQueryWrapper(user, status, statusIsNeq); |
|||
if (queryWrapper != null) return towerWorksheetService.count(queryWrapper); |
|||
else return -1; |
|||
} |
|||
|
|||
private MPJLambdaWrapper<TowerWorksheet> makeQueryWrapper(User user, Integer status, boolean statusIsNeq) { |
|||
MPJLambdaWrapper<TowerWorksheet> towerWorksheetLambdaQueryWrapper = new MPJLambdaWrapper<>(); |
|||
if (!status.equals(-2)) { |
|||
if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_NONE)) return null; |
|||
else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_CLASS_MANAGER)) { |
|||
towerWorksheetLambdaQueryWrapper.eq("class_manager", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_DOCUMENTER)) { |
|||
towerWorksheetLambdaQueryWrapper.eq("document_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_OPERATOR)) { |
|||
towerWorksheetLambdaQueryWrapper.eq("start_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_PRODUCTION_MANAGER)) { |
|||
towerWorksheetLambdaQueryWrapper.eq("production_manger_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_ASSET)) { |
|||
towerWorksheetLambdaQueryWrapper.eq("asset_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_CAR_DISPATCH)) { |
|||
towerWorksheetLambdaQueryWrapper.eq("car_dispatch_uid", user.getUserId()); |
|||
} else if (user.getUserLevel().equals(TowerConstants.USER_LEVEL_FIX)) { |
|||
towerWorksheetLambdaQueryWrapper.eq("fix_uid", user.getUserId()); |
|||
} |
|||
} |
|||
towerWorksheetLambdaQueryWrapper.leftJoin(TowerProject.class, TowerProject::getProjectId, TowerWorksheet::getProjectId); |
|||
if (!status.equals(-1)) { |
|||
if (status.equals(-2)) { |
|||
towerWorksheetLambdaQueryWrapper.eq(TowerWorksheet::getAuditStatus, 1); |
|||
} else { |
|||
if (!statusIsNeq) towerWorksheetLambdaQueryWrapper.eq(TowerWorksheet::getStatus, status); |
|||
else towerWorksheetLambdaQueryWrapper.ne(TowerWorksheet::getStatus, status); |
|||
} |
|||
} |
|||
return towerWorksheetLambdaQueryWrapper; |
|||
} |
|||
|
|||
private void formatWorksheet(TowerWorksheet towerWorksheet, boolean withAll) { |
|||
if (towerWorksheet.getProductionMangerUid() != null) { |
|||
towerWorksheet.setProductionMangerUser(userService.getById(towerWorksheet.getProductionMangerUid())); |
|||
} |
|||
if (towerWorksheet.getDocumentUid() != null) { |
|||
towerWorksheet.setDocumentUser(userService.getById(towerWorksheet.getDocumentUid())); |
|||
} |
|||
if (towerWorksheet.getAssetUid() != null) { |
|||
towerWorksheet.setAssetUser(userService.getById(towerWorksheet.getAssetUid())); |
|||
} |
|||
if (towerWorksheet.getCarDispatchUid() != null) { |
|||
towerWorksheet.setCarDispatchUser(userService.getById(towerWorksheet.getCarDispatchUid())); |
|||
} |
|||
if (towerWorksheet.getClassManager() != null) { |
|||
towerWorksheet.setClassManagerUser(userService.getById(towerWorksheet.getClassManager())); |
|||
} |
|||
if (towerWorksheet.getFixUid() != null) { |
|||
towerWorksheet.setFixUser(userService.getById(towerWorksheet.getFixUid())); |
|||
} |
|||
MPJLambdaWrapper<TowerWorksheetDetail> queryWrapperDetail = new MPJLambdaWrapper<>(); |
|||
queryWrapperDetail.eq(TowerWorksheetDetail::getWorksheetId, towerWorksheet.getWorksheetId()) |
|||
.selectAll(TowerWorksheetDetail.class) |
|||
.select(TowerEquipment::getEquipmentNo, TowerEquipment::getFactoryNo, TowerEquipment::getModel) |
|||
.selectAs(TowerEquipment::getName, TowerEquipment::getEquipmentName) |
|||
.leftJoin(TowerEquipment.class, TowerEquipment::getEquipmentId, TowerWorksheetDetail::getEquipmentId); |
|||
TowerWorksheetDetail towerWorksheetDetail = towerWorksheetDetailService.getOne(queryWrapperDetail); |
|||
// 累计加高高度
|
|||
TowerWorksheetDetail towerWorksheetDetailOnlyAdd = towerWorksheetDetailService.getOne( |
|||
new QueryWrapper<TowerWorksheetDetail>() |
|||
.select("SUM(`setup_height`) as `total_add_height`") |
|||
.eq("work_type", 1) |
|||
.eq("project_id", towerWorksheet.getProjectId()) |
|||
.eq("equipment_id", towerWorksheetDetail.getEquipmentId()) |
|||
.isNotNull("`setup_height`") |
|||
); |
|||
if (towerWorksheetDetailOnlyAdd != null) |
|||
towerWorksheetDetail.setTotalAddHeight(towerWorksheetDetailOnlyAdd.getTotalAddHeight()); |
|||
else towerWorksheetDetail.setTotalAddHeight(BigDecimal.ZERO); |
|||
towerWorksheetDetail.setEquipment(towerEquipmentService.getOne( |
|||
new LambdaQueryWrapper<TowerEquipment>() |
|||
.eq(TowerEquipment::getEquipmentId, towerWorksheetDetail.getEquipmentId()) |
|||
)); |
|||
|
|||
if (!towerWorksheetDetail.getWorkType().equals(0)) { |
|||
MPJLambdaWrapper<TowerWorksheetDetail> queryWrapperDetailType0 = new MPJLambdaWrapper<>(); |
|||
queryWrapperDetailType0.eq(TowerWorksheetDetail::getProjectId, towerWorksheet.getProjectId()) |
|||
.eq(TowerWorksheetDetail::getWorkType, 0) |
|||
.eq(TowerWorksheetDetail::getEquipmentId, towerWorksheetDetail.getEquipmentId()) |
|||
.selectAll(TowerWorksheetDetail.class) |
|||
.select(TowerEquipment::getEquipmentNo) |
|||
.select(TowerEquipment::getFactoryNo) |
|||
.selectAs(TowerEquipment::getName, TowerEquipment::getEquipmentName) |
|||
.select(TowerEquipment::getModel) |
|||
.leftJoin(TowerEquipment.class, TowerEquipment::getEquipmentId, TowerWorksheetDetail::getEquipmentId); |
|||
TowerWorksheetDetail towerWorksheetDetailType0 = towerWorksheetDetailService.getOne(queryWrapperDetailType0); |
|||
towerWorksheet.setDetailType0(towerWorksheetDetailType0); |
|||
if (towerWorksheetDetail.getWorkType().equals(2)) { |
|||
List<TowerWorksheetDetail> allDetail = towerWorksheetDetailService.list( |
|||
new LambdaQueryWrapper<TowerWorksheetDetail>() |
|||
.eq(TowerWorksheetDetail::getProjectId, towerWorksheetDetail.getProjectId()) |
|||
.ne(TowerWorksheetDetail::getWorkType, 2) |
|||
); |
|||
BigDecimal finalSetupHeight = BigDecimal.ZERO; |
|||
if (!allDetail.isEmpty()) { |
|||
for (TowerWorksheetDetail detail : allDetail) { |
|||
if (detail.getSetupHeight() != null) |
|||
finalSetupHeight = finalSetupHeight.add(detail.getSetupHeight()); |
|||
} |
|||
} |
|||
towerWorksheetDetail.setFinalSetupHeight(finalSetupHeight); |
|||
} |
|||
} |
|||
towerWorksheet.setDetail(towerWorksheetDetail); |
|||
if (!towerWorksheet.getAuditStatus().equals(0)) { |
|||
List<TowerWorksheetAudit> towerWorksheetAuditList = towerWorksheetAuditService.list( |
|||
new LambdaQueryWrapper<TowerWorksheetAudit>().eq(TowerWorksheetAudit::getWorksheetId, towerWorksheet.getWorksheetId()) |
|||
); |
|||
List<User> auditUserList = userService.listByIds(towerWorksheetAuditList.stream().map(TowerWorksheetAudit::getUserId).collect(Collectors.toList())); |
|||
for (User user : auditUserList) { |
|||
user.setAuditStatus(towerWorksheetAuditList.stream().filter(audit -> audit.getUserId().equals(user.getUserId())).findFirst().get().getStatus()); |
|||
} |
|||
towerWorksheet.setAuditList(auditUserList); |
|||
} |
|||
towerWorksheet.setCarDispatchList(towerWorksheetCarDispatchService.list( |
|||
new LambdaQueryWrapper<TowerWorksheetCarDispatch>().eq(TowerWorksheetCarDispatch::getWorksheetId, towerWorksheet.getWorksheetId()) |
|||
)); |
|||
if (withAll) { |
|||
List<TowerWorksheetParts> towerWorksheetParts = towerWorksheetPartsService.list( |
|||
new MPJLambdaWrapper<TowerWorksheetParts>() |
|||
.selectAll(TowerWorksheetParts.class) |
|||
.select("parent.title as parent_parts_title") |
|||
.select("parts.title as parts_title") |
|||
.leftJoin("shop_category parent on parent.category_id = t.parent_id") |
|||
.leftJoin("shop_category parts on parts.category_id = t.cate_id") |
|||
.eq(TowerWorksheetParts::getWorksheetId, towerWorksheet.getWorksheetId())); |
|||
towerWorksheet.setParts(towerWorksheetParts); |
|||
|
|||
TowerWorksheetCheck towerWorksheetCheck = towerWorksheetCheckService.getOne( |
|||
new MPJLambdaWrapper<TowerWorksheetCheck>() |
|||
.selectAll(TowerWorksheetCheck.class) |
|||
.select(User::getNickname) |
|||
.leftJoin(User.class, User::getUserId, TowerWorksheetCheck::getUserId) |
|||
.eq(TowerWorksheetCheck::getWorksheetId, towerWorksheet.getWorksheetId())); |
|||
towerWorksheet.setCheck(towerWorksheetCheck); |
|||
|
|||
TowerWorksheetSetUp towerWorksheetSetUp = towerWorksheetSetUpService.getOne( |
|||
new LambdaQueryWrapper<TowerWorksheetSetUp>() |
|||
.eq(TowerWorksheetSetUp::getWorksheetId, towerWorksheet.getWorksheetId())); |
|||
towerWorksheet.setSetUp(towerWorksheetSetUp); |
|||
} |
|||
// return towerWorksheet;
|
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.gxwebsoft.shop.config; |
|||
|
|||
import lombok.Data; |
|||
import org.springframework.boot.context.properties.ConfigurationProperties; |
|||
import org.springframework.context.annotation.Configuration; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
@ConfigurationProperties(prefix = "wx.miniapp") |
|||
@Configuration |
|||
public class WxMaProperties { |
|||
private List<Config> configs; |
|||
|
|||
@Data |
|||
public static class Config { |
|||
/** |
|||
* 设置微信小程序的appid |
|||
*/ |
|||
private String appid; |
|||
|
|||
/** |
|||
* 设置微信小程序的Secret |
|||
*/ |
|||
private String secret; |
|||
|
|||
/** |
|||
* 设置微信小程序消息服务器配置的token |
|||
*/ |
|||
private String token; |
|||
|
|||
/** |
|||
* 设置微信小程序消息服务器配置的EncodingAESKey |
|||
*/ |
|||
private String aesKey; |
|||
|
|||
/** |
|||
* 消息格式,XML或者JSON |
|||
*/ |
|||
private String msgDataFormat; |
|||
} |
|||
|
|||
} |
@ -1,357 +1,16 @@ |
|||
2023-02-26 07:33:25.706 WARN 55396 --- [restartedMain] com.alibaba.druid.pool.DruidDataSource : removeAbandoned is true, not use in production. |
|||
2023-02-26 07:33:31.283 WARN 55396 --- [restartedMain] o.s.b.d.a.OptionalLiveReloadServer : Unable to start LiveReload server |
|||
2023-02-26 07:34:00.595 ERROR 55396 --- [http-nio-9090-exec-8] c.g.c.c.e.GlobalExceptionHandler : java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
|
|||
com.alipay.api.AlipayApiException: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
at com.alipay.api.AbstractAlipayClient.readFileToString(AbstractAlipayClient.java:178) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.AbstractAlipayClient.<init>(AbstractAlipayClient.java:127) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.DefaultAlipayClient.<init>(DefaultAlipayClient.java:117) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.gxwebsoft.common.core.utils.AlipayConfigUtil.alipayClient(AlipayConfigUtil.java:56) ~[classes/:na] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController.getAuthCode(LoginAlipayController.java:133) ~[classes/:na] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController$$FastClassBySpringCGLIB$$cdae2167.invoke(<generated>) ~[classes/:na] |
|||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController$$EnhancerBySpringCGLIB$$f52e9ce6.getAuthCode(<generated>) ~[classes/:na] |
|||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_322] |
|||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_322] |
|||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_322] |
|||
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_322] |
|||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) ~[spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) ~[spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1064) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) [tomcat-embed-core-9.0.52.jar:4.0.FR] |
|||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [tomcat-embed-core-9.0.52.jar:4.0.FR] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-embed-websocket-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:113) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:121) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at com.gxwebsoft.common.core.security.JwtAuthenticationFilter.doFilterInternal(JwtAuthenticationFilter.java:82) [classes/:na] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at java.lang.Thread.run(Thread.java:750) [na:1.8.0_322] |
|||
Caused by: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
at com.alipay.api.internal.util.file.FileUtils.openInputStream(FileUtils.java:66) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.internal.util.file.FileUtils.readFileToString(FileUtils.java:34) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.internal.util.file.FileUtils.readFileToString(FileUtils.java:19) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.AbstractAlipayClient.readFileToString(AbstractAlipayClient.java:176) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
... 105 common frames omitted |
|||
|
|||
2023-02-26 07:34:00.597 WARN 55396 --- [http-nio-9090-exec-8] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [com.alipay.api.AlipayApiException: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist] |
|||
2023-02-26 07:35:51.863 WARN 55429 --- [restartedMain] com.alibaba.druid.pool.DruidDataSource : removeAbandoned is true, not use in production. |
|||
2023-02-26 07:35:57.325 WARN 55429 --- [restartedMain] o.s.b.d.a.OptionalLiveReloadServer : Unable to start LiveReload server |
|||
2023-02-26 07:36:14.618 ERROR 55429 --- [http-nio-9090-exec-1] c.g.c.c.e.GlobalExceptionHandler : java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
|
|||
com.alipay.api.AlipayApiException: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
at com.alipay.api.AbstractAlipayClient.readFileToString(AbstractAlipayClient.java:178) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.AbstractAlipayClient.<init>(AbstractAlipayClient.java:127) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.DefaultAlipayClient.<init>(DefaultAlipayClient.java:117) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.gxwebsoft.common.core.utils.AlipayConfigUtil.alipayClient(AlipayConfigUtil.java:62) ~[classes/:na] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController.getAuthCode(LoginAlipayController.java:133) ~[classes/:na] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController$$FastClassBySpringCGLIB$$cdae2167.invoke(<generated>) ~[classes/:na] |
|||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController$$EnhancerBySpringCGLIB$$a4162105.getAuthCode(<generated>) ~[classes/:na] |
|||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_322] |
|||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_322] |
|||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_322] |
|||
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_322] |
|||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) ~[spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) ~[spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1064) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) [tomcat-embed-core-9.0.52.jar:4.0.FR] |
|||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [tomcat-embed-core-9.0.52.jar:4.0.FR] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-embed-websocket-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:113) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:121) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at com.gxwebsoft.common.core.security.JwtAuthenticationFilter.doFilterInternal(JwtAuthenticationFilter.java:82) [classes/:na] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at java.lang.Thread.run(Thread.java:750) [na:1.8.0_322] |
|||
Caused by: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
at com.alipay.api.internal.util.file.FileUtils.openInputStream(FileUtils.java:66) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.internal.util.file.FileUtils.readFileToString(FileUtils.java:34) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.internal.util.file.FileUtils.readFileToString(FileUtils.java:19) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.AbstractAlipayClient.readFileToString(AbstractAlipayClient.java:176) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
... 105 common frames omitted |
|||
|
|||
2023-02-26 07:36:14.635 WARN 55429 --- [http-nio-9090-exec-1] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [com.alipay.api.AlipayApiException: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist] |
|||
2023-02-26 07:39:18.143 WARN 55455 --- [restartedMain] com.alibaba.druid.pool.DruidDataSource : removeAbandoned is true, not use in production. |
|||
2023-02-26 07:39:23.633 WARN 55455 --- [restartedMain] o.s.b.d.a.OptionalLiveReloadServer : Unable to start LiveReload server |
|||
2023-02-26 07:39:32.489 ERROR 55455 --- [http-nio-9090-exec-1] c.g.c.c.e.GlobalExceptionHandler : java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
|
|||
com.alipay.api.AlipayApiException: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
at com.alipay.api.AbstractAlipayClient.readFileToString(AbstractAlipayClient.java:178) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.AbstractAlipayClient.<init>(AbstractAlipayClient.java:127) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.DefaultAlipayClient.<init>(DefaultAlipayClient.java:117) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.gxwebsoft.common.core.utils.AlipayConfigUtil.alipayClient(AlipayConfigUtil.java:62) ~[classes/:na] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController.getAuthCode(LoginAlipayController.java:133) ~[classes/:na] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController$$FastClassBySpringCGLIB$$cdae2167.invoke(<generated>) ~[classes/:na] |
|||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692) ~[spring-aop-5.3.9.jar:5.3.9] |
|||
at com.gxwebsoft.common.system.controller.LoginAlipayController$$EnhancerBySpringCGLIB$$1cf4b09f.getAuthCode(<generated>) ~[classes/:na] |
|||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_322] |
|||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_322] |
|||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_322] |
|||
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_322] |
|||
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197) ~[spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141) ~[spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1064) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) [tomcat-embed-core-9.0.52.jar:4.0.FR] |
|||
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.3.9.jar:5.3.9] |
|||
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) [tomcat-embed-core-9.0.52.jar:4.0.FR] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-embed-websocket-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:113) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:121) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at com.gxwebsoft.common.core.security.JwtAuthenticationFilter.doFilterInternal(JwtAuthenticationFilter.java:82) [classes/:na] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) [spring-security-web-5.5.2.jar:5.5.2] |
|||
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.3.9.jar:5.3.9] |
|||
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.52.jar:9.0.52] |
|||
at java.lang.Thread.run(Thread.java:750) [na:1.8.0_322] |
|||
Caused by: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist |
|||
at com.alipay.api.internal.util.file.FileUtils.openInputStream(FileUtils.java:66) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.internal.util.file.FileUtils.readFileToString(FileUtils.java:34) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.internal.util.file.FileUtils.readFileToString(FileUtils.java:19) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
at com.alipay.api.AbstractAlipayClient.readFileToString(AbstractAlipayClient.java:176) ~[alipay-sdk-java-4.35.0.ALL.jar:na] |
|||
... 105 common frames omitted |
|||
|
|||
2023-02-26 07:39:32.505 WARN 55455 --- [http-nio-9090-exec-1] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [com.alipay.api.AlipayApiException: java.io.FileNotFoundException: File '/www/wwwroot/file.ws/file/20230101/c62f937d8a304d0d9199315c252da868.crt' does not exist] |
|||
2024-01-24 17:06:22.617 WARN 21561 --- [restartedMain] com.alibaba.druid.pool.DruidDataSource : removeAbandoned is true, not use in production. |
|||
2024-01-24 17:08:48.354 WARN 21561 --- [http-nio-10041-exec-10] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 79374 |
|||
2024-01-24 17:08:48.383 WARN 21561 --- [http-nio-10041-exec-10] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 79853 |
|||
2024-01-24 17:08:48.410 WARN 21561 --- [http-nio-10041-exec-10] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 144908 |
|||
2024-01-24 17:08:48.437 WARN 21561 --- [http-nio-10041-exec-10] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 145248 |
|||
2024-01-24 17:08:48.462 WARN 21561 --- [http-nio-10041-exec-10] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 145591 |
|||
2024-01-24 17:13:14.173 WARN 21561 --- [http-nio-10041-exec-2] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 82853 |
|||
2024-01-24 17:13:14.214 WARN 21561 --- [http-nio-10041-exec-2] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 113691 |
|||
2024-01-24 17:17:04.843 WARN 21561 --- [http-nio-10041-exec-9] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 199004 |
|||
2024-01-24 17:17:04.867 WARN 21561 --- [http-nio-10041-exec-9] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 199350 |
|||
2024-01-24 17:20:08.704 WARN 21561 --- [http-nio-10041-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 162243 |
|||
2024-01-24 17:20:08.706 WARN 21561 --- [http-nio-10041-exec-6] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 161954 |
|||
2024-01-24 17:31:54.903 WARN 21561 --- [http-nio-10041-exec-3] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 198209 |
|||
2024-01-24 17:31:54.929 WARN 21561 --- [http-nio-10041-exec-3] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 202974 |
|||
2024-01-24 17:31:54.955 WARN 21561 --- [http-nio-10041-exec-3] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://42.194.212.185:3308/tower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8, version : 1.2.5, lastPacketReceivedIdleMillis : 203177 |
|||
2024-01-24 17:34:23.401 WARN 23077 --- [main] com.alibaba.druid.pool.DruidDataSource : removeAbandoned is true, not use in production. |
|||
|
Loading…
Reference in new issue