7 Commits

Author SHA1 Message Date
king
a2efb5ad5f 添加提示 2026-05-12 09:14:25 +08:00
shih
90bdd2b8e5 故障保修 保养管理修改相关 2026-05-11 19:09:29 +08:00
shih
3cd1dfdbca 登录后前端获取登陆人信息加入手机号码字段 2026-05-09 17:54:39 +08:00
king
82cb7ef34d Merge branch 'dev_js_20260420' 2026-05-09 17:48:12 +08:00
king
f5b61d1b4b 日志文件名调整 2026-05-09 16:16:36 +08:00
king
c745ed3117 Merge branch 'dev_js_20260420' 2026-05-09 16:16:01 +08:00
king
58410dd824 重点客户收入与占比情况 添加插件 2026-05-08 17:50:31 +08:00
14 changed files with 397 additions and 43 deletions

View File

@@ -14,11 +14,11 @@
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/lideeyunji-info.log</file>
<file>${log.path}/gr_report-info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/lideeyunji-info.%d{yyyy-MM-dd}.log</fileNamePattern>
<fileNamePattern>${log.path}/gr_report-info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
@@ -36,11 +36,11 @@
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/lideeyunji-error.log</file>
<file>${log.path}/gr_report-error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/lideeyunji-error.%d{yyyy-MM-dd}.log</fileNamePattern>
<fileNamePattern>${log.path}/gr_report-error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>

View File

@@ -156,53 +156,55 @@ public class ByglBygdBjPlugin implements AroundAdvicePlugin {
byManagementGdMapper.updateById(gd);
String planId = gd.getPlanId();
//查询当前计划的工单
LambdaQueryWrapper<ByManagementGd> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ByManagementGd::getPlanId, planId);
wrapper.eq(ByManagementGd::getOrderState, ByglConstant.BY_STATE_YWC);
List<ByManagementGd> byManagementGds = byManagementGdMapper.selectList(wrapper);
if(planId !=null){
//查询当前计划的工单
LambdaQueryWrapper<ByManagementGd> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ByManagementGd::getPlanId, planId);
wrapper.eq(ByManagementGd::getOrderState, ByglConstant.BY_STATE_YWC);
List<ByManagementGd> byManagementGds = byManagementGdMapper.selectList(wrapper);
//当前计划
ByManagementPlan plan = byManagementPlanMapper.selectById(planId);
//当前计划
ByManagementPlan plan = byManagementPlanMapper.selectById(planId);
//保养周期
String interval = plan.getScheduledInterval();
if("1".equals(interval)) {//周期为180天
//如果有两条已完成的工单,则将计划状态修改为已完成
if(byManagementGds.size() >= 2) {
plan.setPlanState(ByglConstant.JH_STATE_YWC);
byManagementPlanMapper.updateById(plan);
}else{
String planUpkeepTime = gd.getPlanUpkeepTime();
// 解析完成时间只有日期部分需要转换为LocalDateTime
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
LocalDate completeLocalDate = LocalDate.parse(planUpkeepTime, formatter);
LocalDateTime completeDate = completeLocalDate.atStartOfDay();
// 往后推180天
LocalDateTime nextMaintenanceDate = adjustToNextMonthFirstDayIfNeeded(completeDate.plusDays(180));
// 判断是否超过本年
int completeYear = completeDate.getYear();
int nextMaintenanceYear = nextMaintenanceDate.getYear();
boolean isCrossYear = nextMaintenanceYear > completeYear;
if(isCrossYear){
//保养周期
String interval = plan.getScheduledInterval();
if("1".equals(interval)) {//周期为180天
//如果有两条已完成的工单,则将计划状态修改为已完成
if(byManagementGds.size() >= 2) {
plan.setPlanState(ByglConstant.JH_STATE_YWC);
byManagementPlanMapper.updateById(plan);
}else{
DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
String nextMaintenanceDateStr = nextMaintenanceDate.format(dateFormatter);
plan.setNextUpkeepTime(nextMaintenanceDateStr);
byManagementPlanMapper.updateById(plan);
String planUpkeepTime = gd.getPlanUpkeepTime();
// 解析完成时间只有日期部分需要转换为LocalDateTime
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
LocalDate completeLocalDate = LocalDate.parse(planUpkeepTime, formatter);
LocalDateTime completeDate = completeLocalDate.atStartOfDay();
// 往后推180天
LocalDateTime nextMaintenanceDate = adjustToNextMonthFirstDayIfNeeded(completeDate.plusDays(180));
// 判断是否超过本年
int completeYear = completeDate.getYear();
int nextMaintenanceYear = nextMaintenanceDate.getYear();
boolean isCrossYear = nextMaintenanceYear > completeYear;
if(isCrossYear){
plan.setPlanState(ByglConstant.JH_STATE_YWC);
byManagementPlanMapper.updateById(plan);
}else{
DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
String nextMaintenanceDateStr = nextMaintenanceDate.format(dateFormatter);
plan.setNextUpkeepTime(nextMaintenanceDateStr);
byManagementPlanMapper.updateById(plan);
}
}
}else if("2".equals(interval)) {//周期为360天
plan.setPlanState(ByglConstant.JH_STATE_YWC);
byManagementPlanMapper.updateById(plan);
}
}else if("2".equals(interval)) {//周期为360天
plan.setPlanState(ByglConstant.JH_STATE_YWC);
byManagementPlanMapper.updateById(plan);
}
//都验收成功 生成记录
ByManagementJl jl = BeanUtils.toBean(ys, ByManagementJl.class);
jl.setId(null);

View File

@@ -9,6 +9,7 @@ import com.lideeyunji.core.framework.config.aspect.enhancereport.model.EnhanceRe
import com.lideeyunji.core.framework.config.aspect.enhancereport.plugin.ReportAroundAdvicePlugin;
import com.lideeyunji.core.framework.entity.NewGrBiSaAggMonthCount;
import com.lideeyunji.core.framework.service.INewGrBiSaAggMonthCountService;
import com.lideeyunji.tool.framework.exception.lideeYunJiException;
import com.lideeyunji.tool.framework.yunji.model.ResultDataModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@@ -46,6 +47,9 @@ public class stgoodTop10Plugin implements ReportAroundAdvicePlugin {
params.put("useYearEnd", lastYear);
params.put("useMonthEnd", lastMonth);
}
if(!params.get("useYearStart").toString().equals(params.get("useYearEnd").toString())){
throw new lideeYunJiException("不能跨年查询!");
}
Page<Object> page = PageHelper.startPage(Integer.parseInt(params.get("pageNo").toString()), Integer.parseInt(params.get("pageSize").toString()));
if (params.containsKey("column")) {
String orderBy = params.get("column") + " " + params.get("order");

View File

@@ -0,0 +1,70 @@
package com.lideeyunji.core.framework.enhance.example.report.xtsy;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lideeyunji.core.framework.config.aspect.enhancereport.model.EnhanceReportContext;
import com.lideeyunji.core.framework.config.aspect.enhancereport.plugin.ReportAroundAdvicePlugin;
import com.lideeyunji.core.framework.service.INewGrBiSaAggMonthCountService;
import com.lideeyunji.tool.framework.exception.lideeYunJiException;
import com.lideeyunji.tool.framework.yunji.model.ResultDataModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
/**
* 报表-重点客户收入与占比情况-插件
*/
@Slf4j
@Component("zdCustomerPlugin")
public class zdCustomerPlugin implements ReportAroundAdvicePlugin {
@Resource
INewGrBiSaAggMonthCountService newGrBiSaAggMonthCountService;
@Override
public ResultDataModel executeAround(EnhanceReportContext enhanceContext) {
log.info("进入=======>zdCustomerPlugin=======>execute");
Map<String, Object> params = enhanceContext.getParam().getParams();
// 获取一个月前的时间和年月
LocalDateTime lastNow = LocalDateTime.now().minusMonths(1);
int lastYear = lastNow.getYear();
int lastMonth = lastNow.getMonthValue();
if(!params.containsKey("useYearStart")){
params.put("useYearStart", lastYear);
params.put("useMonthStart", "1");
}
if(!params.containsKey("useYearEnd")){
params.put("useYearEnd", lastYear);
params.put("useMonthEnd", lastMonth);
}
if(!params.get("useYearStart").toString().equals(params.get("useYearEnd").toString())){
throw new lideeYunJiException("不能跨年查询!");
}
Page<Object> page = PageHelper.startPage(Integer.parseInt(params.get("pageNo").toString()), Integer.parseInt(params.get("pageSize").toString()));
// if (params.containsKey("column")) {
// String orderBy = params.get("column") + " " + params.get("order");
//// if ("thisYearSaQty".equals(params.get("column"))) {
//// orderBy = "this_year_sa_qty " + params.get("order").toString();
//// }
//// if ("saqty_yoy".equals(params.get("column"))) {
//// orderBy = "CAST(TRIM(REGEXP_SUBSTR(saqty_yoy, '-?([0-9]+\\.?[0-9]*|[0-9]*\\.?[0-9]+)')) AS DECIMAL(10,2)) " + params.get("order").toString();
//// }
//// if ("thisYearSaMoney".equals(params.get("column"))) {
//// orderBy = "this_year_sa_money " + params.get("order").toString();
//// }
// page.setUnsafeOrderBy(orderBy);
// }
List<Map<String, Object>> newGrBiSaAggList = newGrBiSaAggMonthCountService.zdCustomer(params);
PageInfo<Map<String, Object>> pageInfo = new PageInfo<>(newGrBiSaAggList);
// List<Map<String, Object>> list = newGrBiSaAggList.stream().map(BeanUtil::beanToMap).collect(Collectors.toList());
return ResultDataModel.fomat(pageInfo.getTotal(), newGrBiSaAggList);
}
}

View File

@@ -109,4 +109,14 @@ public interface NewGrBiSaAggMonthCountMapper extends BaseMapper<NewGrBiSaAggMon
@DS(value = "#dataSourceType")
public List<NewGrBiSaAggMonthCount> stgoodTop10(@Param("dataSourceType") String dataSourceType, @Param("params") Map<String, Object> params);
/**
* 重点客户收入与占比情况 -月度
*
* @param params 综合销售情况明细参数
* @return 综合销售情况明细集合
*/
@DataPermission(enable = false)
@DS(value = "#dataSourceType")
public List<Map<String, Object>> zdCustomer(@Param("dataSourceType") String dataSourceType, @Param("params") Map<String, Object> params);
}

View File

@@ -72,4 +72,6 @@ public interface INewGrBiSaAggMonthCountService
public List<NewGrBiSaAggMonthCount> selectNewGrBiSaAggGroupNoMonthNoYearList(Map<String, Object> params, List<String> groupFieldList);
List<NewGrBiSaAggMonthCount> stgoodTop10(Map<String, Object> params);
List<Map<String, Object>> zdCustomer(Map<String, Object> params);
}

View File

@@ -119,4 +119,8 @@ public class NewGrBiSaAggMonthCountServiceImpl extends ServiceImpl<NewGrBiSaAggM
public List<NewGrBiSaAggMonthCount> stgoodTop10(Map<String, Object> params) {
return this.baseMapper.stgoodTop10(lideeYunJiBaseConstant.DS_ERP_BI_DATA, params);
}
@Override
public List<Map<String, Object>> zdCustomer(Map<String, Object> params) {
return this.baseMapper.zdCustomer(lideeYunJiBaseConstant.DS_ERP_BI_DATA, params);
}
}

View File

@@ -1385,4 +1385,113 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ORDER BY
money DESC
</select>
<select id="zdCustomer" resultType="java.util.Map">
WITH TopAllCustomers AS (
SELECT
CONCAT(#{params.useYearStart}, '-', #{params.useMonthStart}, ' ~ ' , #{params.useYearEnd}, '-', #{params.useMonthEnd}) as ny,
a.CUSTOMNAME,
a.THISSAMONEY,
a.THISCOST,
a.THISPROFIT,
a.LASTSAMONEY,
a.LASTPROFIT,
a.THISPROFITRATE,
a.LASTPROFITRATE,
ROW_NUMBER() OVER (ORDER BY a.THISSAMONEY DESC) AS rn
FROM
(
SELECT
`CUSTOMNAME`,
IFNULL(SUM(MONTHSAMONEY),0) AS THISSAMONEY,
SUM(MONTHCOST) AS THISCOST,
SUM(MONTHPROFIT) AS THISPROFIT,
MAX(`LASTSAMONEY`) AS LASTSAMONEY,
MAX(`LASTPROFIT`) AS LASTPROFIT,
MAX(`THISPROFIT`) / MAX(`THISSAMONEY`) AS `THISPROFITRATE`,
MAX(`LASTPROFIT`) / MAX(`LASTSAMONEY`) AS `LASTPROFITRATE`
FROM
`GR_BI_SA_CUSTOMER`
<where>
<if test="params.useYearStart != null">
AND (USEYEAR * 100 + USEMONTH) &gt;= (#{params.useYearStart} * 100 + #{params.useMonthStart})
</if>
<if test="params.useYearEnd != null">
AND (USEYEAR * 100 + USEMONTH) &lt;= (#{params.useYearEnd} * 100 + #{params.useMonthEnd})
</if>
</where>
GROUP BY
`CUSTOMNAME`
) AS a
),
OtherCustomers AS (
SELECT
max(ny) ny,
SUM(`THISSAMONEY`) AS THISSAMONEY,
SUM(`THISCOST`) AS THISCOST,
SUM(`THISPROFIT`) AS THISPROFIT,
SUM(`LASTPROFIT`) AS LASTPROFIT,
SUM(`LASTSAMONEY`) AS LASTSAMONEY,
SUM(`THISPROFIT`) / SUM(`THISSAMONEY`) AS `THISPROFITRATE`,
SUM(`LASTPROFIT`) / SUM(`LASTSAMONEY`) AS `LASTPROFITRATE`
FROM TopAllCustomers
WHERE rn > 10
),
TotalCustomers AS (
SELECT
max(ny) ny,
SUM(`THISSAMONEY`) AS THISSAMONEY,
SUM(`THISCOST`) AS THISCOST,
SUM(`THISPROFIT`) AS THISPROFIT,
SUM(`LASTPROFIT`) AS LASTPROFIT,
SUM(`LASTSAMONEY`) AS LASTSAMONEY,
SUM(`THISPROFIT`) / SUM(`THISSAMONEY`) AS `THISPROFITRATE`,
SUM(`LASTPROFIT`) / SUM(`LASTSAMONEY`) AS `LASTPROFITRATE`
FROM TopAllCustomers
)
SELECT
`CUSTOMNAME` AS `customname`,
ny,
ROUND(`THISSAMONEY`, 2) AS `thissamoney`,
ROUND(`THISCOST`, 2) AS `thiscost`,
ROUND(`THISPROFITRATE`, 2) AS `thisprofitrate`,
ROUND(`LASTPROFITRATE`, 2) AS `lastprofitrate`,
ROUND(`THISPROFIT`, 2) AS `thisprofit`,
ROUND(`LASTPROFIT`, 2) AS `lastprofit`,
ROUND(`THISPROFITRATE`, 2) AS `thisprofitrate1`,
ROUND(`LASTPROFITRATE`, 2) AS `lastprofitrate1`,
1 AS sort_order
FROM TopAllCustomers
WHERE rn &lt;= 10
UNION ALL
SELECT
'其他' AS `CUSTOMNAME`,
ny,
ROUND(`THISSAMONEY`, 2),
ROUND(`THISCOST`, 2),
ROUND(`THISPROFITRATE`, 2),
ROUND(`LASTPROFITRATE`, 2),
ROUND(`THISPROFIT`, 2),
ROUND(`LASTPROFIT`, 2),
ROUND(`THISPROFITRATE`, 2),
ROUND(`LASTPROFITRATE`, 2),
2 AS sort_order
FROM OtherCustomers
UNION ALL
SELECT
'合计' AS `CUSTOMNAME`,
ny,
ROUND(`THISSAMONEY`, 2),
ROUND(`THISCOST`, 2),
ROUND(`THISPROFITRATE`, 2),
ROUND(`LASTPROFITRATE`, 2),
ROUND(`THISPROFIT`, 2),
ROUND(`LASTPROFIT`, 2),
ROUND(`THISPROFITRATE`, 2),
ROUND(`LASTPROFITRATE`, 2),
3 AS sort_order
FROM TotalCustomers
ORDER BY sort_order, `THISSAMONEY` DESC
</select>
</mapper>

View File

@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
@@ -50,4 +51,26 @@ public class DevGzbxController {
return BaseWebResult.success("审批成功");
}
@PostMapping("/process")
public BaseWebResult process(@RequestBody Map<String,Object> model) {
Long id = lideeYunJiUtils.getMap2Long(model, "faultId");
if(id == null){
return BaseWebResult.error(FrameErrorCodeConstants.FRAME_OP_ERROR);
}
List<Map<String,Object>> data = devGzbxService.process(id);
return BaseWebResult.success(data);
}
@PostMapping("/processGd")
public BaseWebResult processGd(@RequestBody Map<String,Object> model) {
Long id = lideeYunJiUtils.getMap2Long(model, "faultId");
if(id == null){
return BaseWebResult.error(FrameErrorCodeConstants.FRAME_OP_ERROR);
}
List<Map<String,Object>> data = devGzbxService.processGd(id);
return BaseWebResult.success(data);
}
}

View File

@@ -68,7 +68,7 @@ public class AddFaultReportingFunctionRecord implements AroundAdvicePlugin {
devGzbxDO.setFaultNumber(faultNumber);
devGzbxDO.setLeaderUserId(leaderUserId);
devGzbxDO.setReporter(userId);
devGzbxDO.setCreateUserName(adapterMapper.getNickname(userId));
// devGzbxDO.setCreateUserName(adapterMapper.getNickname(userId));
devGzbxMapper.updateById(devGzbxDO);
}

View File

@@ -1,5 +1,8 @@
package com.lideeyunji.module.biz.service;
import java.util.List;
import java.util.Map;
/**
* 故障报修 Service 接口
*
@@ -11,4 +14,8 @@ public interface DevGzbxService {
void auditNotPass(Long id);
void orderAuditNotPass(Long id);
List<Map<String, Object>> process(Long id);
List<Map<String, Object>> processGd(Long id);
}

View File

@@ -5,12 +5,18 @@ import com.lideeyunji.module.biz.entity.DevGzbxWxgdDO;
import com.lideeyunji.module.biz.mapper.DevGzbxMapper;
import com.lideeyunji.module.biz.mapper.DevGzbxWxgdMapper;
import com.lideeyunji.module.biz.service.DevGzbxService;
import com.lideeyunji.service.system.api.IApiAdminUserApi;
import com.lideeyunji.tool.framework.yunji.enums.AcceptanceStatusEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 参数配置 Service 实现类
*/
@@ -24,6 +30,8 @@ public class DevGzbxServiceImpl implements DevGzbxService {
@Resource
private DevGzbxWxgdMapper devGzbxWxgdMapper;
@Resource
private IApiAdminUserApi userApi;
@Override
public void auditNotPass(Long id) {
@@ -41,4 +49,115 @@ public class DevGzbxServiceImpl implements DevGzbxService {
devGzbxWxgdMapper.updateById(wxgd);
}
@Override
public List<Map<String, Object>> process(Long id) {
List<Map<String, Object>> result = new ArrayList<>();
DevGzbxDO devGzbxDO = devGzbxMapper.selectById(id);
DevGzbxWxgdDO gd = devGzbxWxgdMapper.selectOne("gzbx_id", id);
Map<String, Object> model = new HashMap<>();
model.put("nodeName", "车间主任审批");
model.put("spr",userApi.getUser(devGzbxDO.getLeaderUserId()));
model.put("status", "current");
model.put("comment", "-");
if(devGzbxDO.getLeaderUserZt() == 1){
model.put("status", "approved");
model.put("comment", devGzbxDO.getLeaderUserYj());
}
result.add(model);
Map<String, Object> model1 = new HashMap<>();
model1.put("nodeName", "指定部门审批");
model1.put("spr",userApi.getUser(devGzbxDO.getAssignDeptLeader()));
model1.put("status", "current");
model1.put("comment", "-");
if(devGzbxDO.getAssignUserZt() == 1){
model1.put("status", "approved");
model1.put("comment", devGzbxDO.getAssignUserYj());
}
result.add(model1);
Map<String, Object> model4 = new HashMap<>();
model4.put("nodeName", "车间主任验收");
model4.put("status", "current");
model4.put("comment", "-");
Map<String, Object> model5 = new HashMap<>();
model5.put("nodeName", "指定部门验收");
model5.put("status", "current");
model5.put("comment", "-");
if (gd != null){
model4.put("spr",userApi.getUser(gd.getLeaderUserId()));
if(gd.getLeaderYsZt() == 1){
model4.put("status", "approved");
model4.put("comment", gd.getLeaderYsYj());
}
model5.put("spr",userApi.getUser(gd.getAssignDeptLeader()));
if(gd.getAssignYsZt() == 1){
model5.put("status", "approved");
model5.put("comment", gd.getAssignYsYj());
}
}
result.add(model4);
result.add(model5);
return result;
}
@Override
public List<Map<String, Object>> processGd(Long id) {
List<Map<String, Object>> result = new ArrayList<>();
DevGzbxWxgdDO devGzbxWxgdDO = devGzbxWxgdMapper.selectById(id);
Long gzbxId = devGzbxWxgdDO.getGzbxId();
Map<String, Object> model = new HashMap<>();
model.put("nodeName", "车间主任审批");
model.put("status", "approved");
model.put("comment", "-");
Map<String, Object> model1 = new HashMap<>();
model1.put("nodeName", "指定部门审批");
model1.put("status", "approved");
model1.put("comment", "-");
Map<String, Object> model4 = new HashMap<>();
model4.put("nodeName", "车间主任验收");
model4.put("status", "current");
model4.put("comment", "-");
model4.put("spr",userApi.getUser(devGzbxWxgdDO.getLeaderUserId()));
if(devGzbxWxgdDO.getLeaderYsZt() == 1){
model4.put("status", "approved");
model4.put("comment", devGzbxWxgdDO.getLeaderYsYj());
}
Map<String, Object> model5 = new HashMap<>();
model5.put("nodeName", "指定部门验收");
model5.put("status", "current");
model5.put("comment", "-");
model5.put("spr",userApi.getUser(devGzbxWxgdDO.getAssignDeptLeader()));
if(devGzbxWxgdDO.getAssignYsZt() == 1){
model5.put("status", "approved");
model5.put("comment", devGzbxWxgdDO.getAssignYsYj());
}
if (gzbxId != null) {
DevGzbxDO devGzbxDO = devGzbxMapper.selectById(gzbxId);
model.put("comment", devGzbxDO.getLeaderUserYj());
model.put("spr",userApi.getUser(devGzbxDO.getLeaderUserId()));
model1.put("comment", devGzbxDO.getAssignUserYj());
model1.put("spr",userApi.getUser(devGzbxDO.getAssignDeptLeader()));
}else {
model.put("comment", devGzbxWxgdDO.getLeaderYsYj());
model.put("spr",userApi.getUser(devGzbxWxgdDO.getLeaderUserId()));
model1.put("comment", devGzbxWxgdDO.getAssignYsYj());
model1.put("spr",userApi.getUser(devGzbxWxgdDO.getAssignDeptLeader()));
}
result.add(model);
result.add(model1);
result.add(model4);
result.add(model5);
return result;
}
}

View File

@@ -245,6 +245,7 @@ public class AuthController {
userVo.setSupAdmin(supAdminFlag);//是否是超级管理员
userVo.setTenantAdmin(tenantAdminFlag);//是否是租户管理员
userVo.setSupAdminToken(isSupAdmin());
userVo.setMobile(user.getMobile());
return success(vo);
}

View File

@@ -54,6 +54,9 @@ public class AuthPermissionInfoRespVO {
@Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048")
private Set<Long> deptId;
@Schema(description = "手机号码", example = "15601691300")
private String mobile;
private Long loginDeptId;
private Long loginRoleId;