包头bug修复
This commit is contained in:
parent
e847804f7b
commit
ce9d587283
@ -186,7 +186,7 @@ public class ConstructionEquipmentToolController {
|
|||||||
for (ConstructionEquipmentTool tool : list) {
|
for (ConstructionEquipmentTool tool : list) {
|
||||||
minioUtils.downloadFile(tool.getQrCode());
|
minioUtils.downloadFile(tool.getQrCode());
|
||||||
Image qrCodeImg = ImgUtil.read(PathUtil.getBasePath() + "/" + tool.getQrCode());
|
Image qrCodeImg = ImgUtil.read(PathUtil.getBasePath() + "/" + tool.getQrCode());
|
||||||
Font font = new Font("宋体", Font.PLAIN, 55);
|
Font font = new Font("微软雅黑", Font.PLAIN, 55);
|
||||||
final BufferedImage destImage = ImgUtil.read(new ClassPathResource("template/施工设备机具打印图片模板.jpg").getInputStream());
|
final BufferedImage destImage = ImgUtil.read(new ClassPathResource("template/施工设备机具打印图片模板.jpg").getInputStream());
|
||||||
final Graphics2D gf = destImage.createGraphics();
|
final Graphics2D gf = destImage.createGraphics();
|
||||||
// 抗锯齿
|
// 抗锯齿
|
||||||
|
|||||||
@ -109,26 +109,33 @@ public class EngineerControllerCheck implements Serializable {
|
|||||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||||
@ApiModelProperty(value="质量监督机构签收日期")
|
@ApiModelProperty(value="质量监督机构签收日期")
|
||||||
private java.util.Date qualitySupervisionAgencyReceiptDate ;
|
private java.util.Date qualitySupervisionAgencyReceiptDate ;
|
||||||
/**创建时间 yyyy-MM-dd HH:mm:ss*/
|
/**
|
||||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
* 创建时间 yyyy-MM-dd HH:mm:ss
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
*/
|
||||||
@ApiModelProperty(value="创建时间 yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private java.util.Date createTime ;
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
/**更新时间 yyyy-MM-dd HH:mm:ss*/
|
@ApiModelProperty(value = "创建时间 yyyy-MM-dd HH:mm:ss")
|
||||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
private java.util.Date createTime;
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
/**
|
||||||
@ApiModelProperty(value="更新时间 yyyy-MM-dd HH:mm:ss")
|
* 更新时间 yyyy-MM-dd HH:mm:ss
|
||||||
private java.util.Date updateTime ;
|
*/
|
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "更新时间 yyyy-MM-dd HH:mm:ss")
|
||||||
|
private java.util.Date updateTime;
|
||||||
|
@ApiModelProperty(value = "建设监理意见")
|
||||||
|
private java.lang.String constructionSupervisorOpinion;
|
||||||
|
@ApiModelProperty(value = "区域项目组意见")
|
||||||
|
private java.lang.String regionalProjectTeamOpinion;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value="装置/单元工程名称")
|
@ApiModelProperty(value = "装置/单元工程名称")
|
||||||
private java.lang.String deviceUnitProjectName ;
|
private java.lang.String deviceUnitProjectName;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value="EPC承包商名称")
|
@ApiModelProperty(value = "EPC承包商名称")
|
||||||
private java.lang.String epcContractorName ;
|
private java.lang.String epcContractorName;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value="施工单位名称")
|
@ApiModelProperty(value = "施工单位名称")
|
||||||
private java.lang.String constructionUnitName ;
|
private java.lang.String constructionUnitName;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ApiModelProperty(value="涉及技术专业名称")
|
@ApiModelProperty(value="涉及技术专业名称")
|
||||||
private java.lang.String technicalExpertiseInvolvedName ;
|
private java.lang.String technicalExpertiseInvolvedName ;
|
||||||
|
|||||||
@ -32,7 +32,6 @@
|
|||||||
left join enterprise_info ei1 on ei1.id=t.epc_cbs
|
left join enterprise_info ei1 on ei1.id=t.epc_cbs
|
||||||
left join enterprise_info ei2 on ei2.id=t.enterprise_id
|
left join enterprise_info ei2 on ei2.id=t.enterprise_id
|
||||||
left join device_unit du1 on du1.id=t.work_area
|
left join device_unit du1 on du1.id=t.work_area
|
||||||
left join worker_info wi on wi.id_card=t.id_card and t.project_sn=wi.project_sn
|
|
||||||
<!-- left join ( select etr.* from-->
|
<!-- left join ( select etr.* from-->
|
||||||
<!-- exam_train_record etr-->
|
<!-- exam_train_record etr-->
|
||||||
<!-- join (select etr.worker_card,max(etr.start_exam_time) as start_exam_time-->
|
<!-- join (select etr.worker_card,max(etr.start_exam_time) as start_exam_time-->
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
package com.zhgd.xmgl.modules.basicdata.controller;
|
package com.zhgd.xmgl.modules.basicdata.controller;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
@ -13,7 +16,6 @@ import com.zhgd.xmgl.modules.basicdata.mapper.BaseModuleMapper;
|
|||||||
import com.zhgd.xmgl.modules.basicdata.service.IBaseAuthorityService;
|
import com.zhgd.xmgl.modules.basicdata.service.IBaseAuthorityService;
|
||||||
import com.zhgd.xmgl.modules.basicdata.service.IBaseModuleService;
|
import com.zhgd.xmgl.modules.basicdata.service.IBaseModuleService;
|
||||||
import com.zhgd.xmgl.security.util.SecurityUtils;
|
import com.zhgd.xmgl.security.util.SecurityUtils;
|
||||||
import com.zhgd.xmgl.util.JoBuilder;
|
|
||||||
import com.zhgd.xmgl.util.MessageUtil;
|
import com.zhgd.xmgl.util.MessageUtil;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
@ -234,6 +236,59 @@ public class BaseModuleController {
|
|||||||
return Result.success(baseModuleService.getModuleAndMenuList(paramMap));
|
return Result.success(baseModuleService.getModuleAndMenuList(paramMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @ApiOperation(value = "查询配置的模块和菜单列表", notes = "查询配置的模块和菜单列表", httpMethod = "POST")
|
||||||
|
// @ApiImplicitParams({
|
||||||
|
// @ApiImplicitParam(name = "userId", value = "用户id", paramType = "body", required = true, dataType = "String"),
|
||||||
|
// @ApiImplicitParam(name = "moduleType", value = "模块类型,1企业模块,2项目后台模块,3企业后台,4项目看板", paramType = "body", required = true, dataType = "String"),
|
||||||
|
// @ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "body", required = false, dataType = "String"),
|
||||||
|
// @ApiImplicitParam(name = "isApp", required = false, value = "1是app登录", paramType = "body"),
|
||||||
|
// })
|
||||||
|
// @PostMapping(value = "/getModuleAndMenuList")
|
||||||
|
// public Result<Map<String, Object>> getModuleAndMenuList(@ApiIgnore @RequestBody HashMap<String, Object> paramMap) {
|
||||||
|
// Map<String, Object> moduleAndMenuList = baseModuleService.getModuleAndMenuList(paramMap);
|
||||||
|
// JSONArray modules = JSON.parseArray(JSON.toJSONString(moduleAndMenuList.get("moduleList")));
|
||||||
|
// for (int i = 0; i < modules.size(); i++) {
|
||||||
|
// StringBuilder sb = new StringBuilder();
|
||||||
|
// JSONObject moduleJo = modules.getJSONObject(i);
|
||||||
|
// sb.append(moduleJo.getString("moduleName"));
|
||||||
|
//// System.out.println(sb.toString());
|
||||||
|
// JSONArray menus = (JSONArray) moduleJo.getJSONArray("menuList");
|
||||||
|
// for (int j = 0; j < menus.size(); j++) {
|
||||||
|
// JSONObject menu = menus.getJSONObject(j);
|
||||||
|
// StringBuilder sb1 = new StringBuilder(sb.toString());
|
||||||
|
// sb1.append("=-="+menu.getString("menuName"));
|
||||||
|
//// System.out.println(sb1.toString());
|
||||||
|
// printMneu(menu,sb1);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// return Result.success(moduleAndMenuList);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// private void printMneu(JSONObject menu, StringBuilder sb1) {
|
||||||
|
// JSONArray menuList = menu.getJSONArray("menuList");
|
||||||
|
// if (CollUtil.isNotEmpty(menuList)) {
|
||||||
|
// for (int i = 0; i < menuList.size(); i++) {
|
||||||
|
// StringBuilder sb2 = new StringBuilder(sb1.toString());
|
||||||
|
// JSONObject menu1 = menuList.getJSONObject(i);
|
||||||
|
// sb2.append("=-="+menu1.getString("menuName"));
|
||||||
|
//// System.out.println(sb2.toString());
|
||||||
|
// printMneu(menu1, sb2);
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// JSONArray actionList = menu.getJSONArray("actionList");
|
||||||
|
// if (CollUtil.isNotEmpty(actionList)) {
|
||||||
|
// for (int j = 0; j < actionList.size(); j++) {
|
||||||
|
// StringBuilder sb2 = new StringBuilder(sb1.toString());
|
||||||
|
// sb2.append("=-=>"+actionList.getJSONObject(j).getString("name"));
|
||||||
|
// System.out.println(sb2.toString());
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// System.out.println(sb1.toString());
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
@ApiOperation(value = "app查询项目账号的模块和菜单列表", notes = "app查询项目账号的模块和菜单列表", httpMethod = "POST")
|
@ApiOperation(value = "app查询项目账号的模块和菜单列表", notes = "app查询项目账号的模块和菜单列表", httpMethod = "POST")
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "moduleType", value = "模块类型,1企业模块,2项目后台模块,3企业后台,4项目看板", paramType = "body", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "moduleType", value = "模块类型,1企业模块,2项目后台模块,3企业后台,4项目看板", paramType = "body", required = true, dataType = "String"),
|
||||||
|
|||||||
@ -144,7 +144,7 @@ public class DangerousEngineeringRecordController {
|
|||||||
dangerousEngineeringRecord.setEngineeringName(MapUtils.getString(map, "engineeringName"));
|
dangerousEngineeringRecord.setEngineeringName(MapUtils.getString(map, "engineeringName"));
|
||||||
dangerousEngineeringRecord.setProjectSn(MapUtils.getString(map, "projectSn"));
|
dangerousEngineeringRecord.setProjectSn(MapUtils.getString(map, "projectSn"));
|
||||||
dangerousEngineeringRecord.setEngineeringSurvey(MapUtils.getString(map, "engineeringSurvey"));
|
dangerousEngineeringRecord.setEngineeringSurvey(MapUtils.getString(map, "engineeringSurvey"));
|
||||||
dangerousEngineeringRecord.setPersonLiableId(systemUser.getUserId());
|
// dangerousEngineeringRecord.setPersonLiableId(systemUser.getUserId());
|
||||||
dangerousEngineeringRecord.setEngineeringTypeId(engineeringType.getId());
|
dangerousEngineeringRecord.setEngineeringTypeId(engineeringType.getId());
|
||||||
dangerousEngineeringRecord.setEngineeringTypeName(engineeringType.getTypeName());
|
dangerousEngineeringRecord.setEngineeringTypeName(engineeringType.getTypeName());
|
||||||
// dangerousEngineeringRecord.setBuildStartTime(buildTime.get(0));
|
// dangerousEngineeringRecord.setBuildStartTime(buildTime.get(0));
|
||||||
|
|||||||
@ -129,6 +129,7 @@ public class DangerousEngineeringRecord implements Serializable {
|
|||||||
@ApiModelProperty(value = "方案交底附件")
|
@ApiModelProperty(value = "方案交底附件")
|
||||||
private java.lang.String specialConstructionSchemeFile;
|
private java.lang.String specialConstructionSchemeFile;
|
||||||
@ApiModelProperty(value = "责任人id")
|
@ApiModelProperty(value = "责任人id")
|
||||||
|
@Deprecated
|
||||||
private java.lang.Long personLiableId;
|
private java.lang.Long personLiableId;
|
||||||
@ApiModelProperty(value = "已结束?1是,0否")
|
@ApiModelProperty(value = "已结束?1是,0否")
|
||||||
private java.lang.Integer isEnd;
|
private java.lang.Integer isEnd;
|
||||||
|
|||||||
@ -350,7 +350,7 @@ public class ExamTrainRecordServiceImpl extends ServiceImpl<ExamTrainRecordMappe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (info != null && admissionDetail != null && isReEducation == 0) {
|
if (info != null && admissionDetail != null && isReEducation == 0) {
|
||||||
throw new OpenAlertException("此人员已入场,不能参加入场培训考试");
|
// throw new OpenAlertException("此人员已入场,不能参加入场培训考试");
|
||||||
}
|
}
|
||||||
if (admissionDetail != null) {
|
if (admissionDetail != null) {
|
||||||
ExamTrainRecord trainRecord1 = baseMapper.selectOne(new LambdaQueryWrapper<ExamTrainRecord>()
|
ExamTrainRecord trainRecord1 = baseMapper.selectOne(new LambdaQueryWrapper<ExamTrainRecord>()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user