bug修复

This commit is contained in:
guo 2024-02-29 17:28:32 +08:00
parent 4a55dbf38a
commit 4df0347038
10 changed files with 74 additions and 22 deletions

View File

@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModelProperty;
@ApiModel(value="BaseMenu实体类",description="BaseMenu")
public class BaseMenu implements Serializable {
private static final long serialVersionUID = 1L;
/**菜单Id*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value="菜单Id")
@ -71,18 +71,29 @@ public class BaseMenu implements Serializable {
private java.lang.String icon ;
@ApiModelProperty(value="打开方式:_self窗口内,_blank新窗口")
private java.lang.String target ;
/**优先级 越小越靠前*/
@Excel(name = "优先级 越小越靠前", width = 15)
@ApiModelProperty(value="优先级 越小越靠前")
private java.lang.Integer priority ;
/**状态:0-禁用 1-启用*/
@Excel(name = "状态:0-禁用 1-启用", width = 15)
@ApiModelProperty(value="状态:0-禁用 1-启用")
private java.lang.Integer status ;
private java.lang.String target;
/**
* 优先级 越小越靠前
*/
@Excel(name = "优先级 越小越靠前", width = 15)
@ApiModelProperty(value = "优先级 越小越靠前")
private java.lang.Integer priority;
/**
* 状态:0-禁用 1-启用
*/
@Excel(name = "状态:0-禁用 1-启用", width = 15)
@ApiModelProperty(value = "状态:0-禁用 1-启用")
private java.lang.Integer status;
/**
* 路径类型1内部路由2嵌入外部url
*/
@Excel(name = "路径类型1内部路由2嵌入外部url", width = 15)
@ApiModelProperty(value = "路径类型1内部路由2嵌入外部url")
private java.lang.Integer pathType;
@ApiModelProperty(value = "嵌入外部url")
private java.lang.String embedUrl;
@TableField(exist = false)
@ApiModelProperty(value="子集菜单")
@ApiModelProperty(value = "子集菜单")
private List<BaseMenu> menuList;
}

View File

@ -25,7 +25,7 @@ import java.util.List;
@ApiModel(value="BaseModule实体类",description="BaseModule")
public class BaseModule implements Serializable {
private static final long serialVersionUID = 1L;
/**moduleId*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value="moduleId")
@ -78,17 +78,23 @@ public class BaseModule implements Serializable {
private java.lang.String plugin ;
@Excel(name = "app端模块名称", width = 15)
@ApiModelProperty(value="app端模块名称")
private java.lang.String appName ;
@ApiModelProperty(value = "app端模块名称")
private java.lang.String appName;
@ApiModelProperty(value="是否APP端显示该模块1是,2否")
private java.lang.Integer appShow ;
@ApiModelProperty(value = "是否APP端显示该模块1是,2否")
private java.lang.Integer appShow;
@ApiModelProperty(value="样式版本默认1")
private java.lang.Integer styleType ;
@ApiModelProperty(value = "样式版本默认1")
private java.lang.Integer styleType;
@ApiModelProperty(value = "路径类型1内部路由2嵌入外部url")
private java.lang.Integer pathType;
@ApiModelProperty(value = "嵌入外部url")
private java.lang.String embedUrl;
@TableField(exist = false)
@ApiModelProperty(value="模块所属菜单")
@ApiModelProperty(value = "模块所属菜单")
private List<EntityMap> menuList;
}

View File

@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/**
@ -88,6 +87,8 @@ public class SystemLogoConfig implements Serializable {
@ApiModelProperty(value = "总公司sn")
private java.lang.String headquartersSn;
@ApiModelProperty(value = "项目前台")
private java.lang.String projectFront;
/**
* 是否开启登录超时0不开启1开启
*/

View File

@ -154,6 +154,7 @@ public class AiAnalyseHardWareAlarmRecordController {
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "sizeNum", value = "查询条数默认10条", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "workerName", value = "姓名", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "selectType", value = "查询类型1近七天2最近30天3今日4、24小时", paramType = "body", required = true, dataType = "Integer"),
})
@PostMapping(value = "/selectAiAnalyseHardWareAlarmList")
public Result<List<AiAnalyseHardWareAlarmRecord>> selectAiAnalyseHardWareAlarmList(@RequestBody Map<String, Object> map) {

View File

@ -11,4 +11,6 @@ public class AiAnalyseHardWareAlarmTotalVo {
private Integer past7AlarmNum;
@ApiModelProperty("近30日告警数量")
private Integer past30AlarmNum;
@ApiModelProperty("历史告警数量")
private Integer allAlarmNum;
}

View File

@ -105,6 +105,8 @@
<if test="workerName != null and workerName != ''">
and wi.worker_name like concat('%',#{workerName},'%')
</if>
<include refid="queryAlarmTime">
</include>
group by a.id
order by a.create_time desc
LIMIT #{sizeNum}

View File

@ -363,6 +363,7 @@ public class AiAnalyseHardWareAlarmRecordServiceImpl extends ServiceImpl<AiAnaly
@Override
public AiAnalyseHardWareAlarmTotalVo countAiAnalyseHardWareAlarmTotal(Map<String, Object> map) {
AiAnalyseHardWareAlarmTotalVo vo = new AiAnalyseHardWareAlarmTotalVo();
vo.setAllAlarmNum(Integer.valueOf(this.getAiAnalyseHardWareAlarmTotal(map).getCount()));
map.put("selectType", 3);
vo.setTodayAlarmNum(Integer.valueOf(this.getAiAnalyseHardWareAlarmTotal(map).getCount()));
map.put("selectType", 1);
@ -379,6 +380,10 @@ public class AiAnalyseHardWareAlarmRecordServiceImpl extends ServiceImpl<AiAnaly
@Override
public void edit(AiAnalyseHardWareAlarmRecord taskProgressMaterialRel) {
if (Objects.equals(taskProgressMaterialRel.getHandleResult(), 2)) {
baseMapper.deleteById(taskProgressMaterialRel.getId());
return;
}
baseMapper.updateById(taskProgressMaterialRel);
List<WorkerInfo> workerInfoList = taskProgressMaterialRel.getWorkerInfoList();
if (CollUtil.isNotEmpty(workerInfoList)) {

View File

@ -142,6 +142,8 @@ public class WorkerInfoController {
@ApiImplicitParam(name = "projectSnList", value = "项目SN列表", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "orderBy", value = "排序1退场时间倒序2进场日期倒序", paramType = "body", required = false, dataType = "Integer"),
@ApiImplicitParam(name = "workerInfos", value = "劳务人员id多个分割", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "presence", value = "1在场", paramType = "body", required = false, dataType = "Integer"),
@ApiImplicitParam(name = "attendance", value = "1今日出勤", paramType = "body", required = false, dataType = "Integer"),
})
@PostMapping(value = "/selectWorkerInfoList")
public Result<IPage<WorkerInfo>> selectWorkerInfoList(@RequestBody Map<String, Object> map) {

View File

@ -379,6 +379,9 @@ public class WorkerInfo implements Serializable {
@TableField(exist = false)
@ApiModelProperty(value = "工种名称")
private String typeName;
@TableField(exist = false)
@ApiModelProperty(value = "1在场2离场")
private Integer presence;
public String toExistString() {
return "WorkerInfo{" +

View File

@ -29,7 +29,8 @@
or (TIMESTAMPDIFF(HOUR, a.nad_time, now()) >= 72 and a.worker_classify = 3)
or (TIMESTAMPDIFF(HOUR, a.nad_time, now()) >= 168 and a.worker_classify = 1)) then '核酸已超时'
else '核酸未超时' end) as acid_status_name,
wt.type_name
wt.type_name,
if(wap.id is not null,1,2) presence
from worker_info a
LEFT JOIN team_info b ON a.team_id = b.id
LEFT JOIN department_info c ON a.department_id = c.id
@ -37,7 +38,25 @@
LEFT JOIN dictionaries_record d ON a.job_type = d.id
LEFT JOIN dictionaries_record e ON a.job_name = e.id
LEFT JOIN enterprise_info en ON en.id = a.enterprise_id
LEFT JOIN worker_attendance_presence wap ON wap.person_sn = a.person_sn
<if test="param.attendance == '1'.toString()">
join (select * from worker_attendance where
1=1
<if test="param.projectSn != null and param.projectSn != ''">
and project_sn = #{param.projectSn}
</if>
and create_time>=current_date group by person_sn ) wa on wa.person_sn = a.person_sn
</if>
WHERE 1 = 1
<if test="param.presence == '1'.toString()">
and wap.id is not null
</if>
<if test="param.presence == '2'.toString()">
and wap.id is null
</if>
<if test="param.attendance == '1'.toString()">
and wap.id is null
</if>
<if test="param.chargePersonName != null and param.chargePersonName != ''">
and c.charge_person_name like CONCAT(CONCAT('%', #{param.chargePersonName}), '%')
</if>