Merge remote-tracking branch 'origin/1212-八项作业迁移' into 1212-八项作业迁移
commit
d13f438573
|
@ -1310,7 +1310,8 @@ public class HotWorkApplicationController extends BaseController {
|
||||||
}else if("2".equals(type)){ // 项目发包单位负责人
|
}else if("2".equals(type)){ // 项目发包单位负责人
|
||||||
hot.put("PROJECT_UNIT_LEADER_NAME",userPageData.getString("userName"));
|
hot.put("PROJECT_UNIT_LEADER_NAME",userPageData.getString("userName"));
|
||||||
hot.put("PROJECT_UNIT_LEADER_ID",userPageData.getString("USER_ID"));
|
hot.put("PROJECT_UNIT_LEADER_ID",userPageData.getString("USER_ID"));
|
||||||
}else if("4".equals(type)){ // 现场管辖单位负责人
|
// }else if("4".equals(type)){ // 现场管辖单位负责人
|
||||||
|
}else if("3".equals(type)){ // 现场管辖单位负责人
|
||||||
hot.put("UNIT_LEADER_DEPARTMENT_ID",userPageData.getString("DEPARTMENT_ID"));
|
hot.put("UNIT_LEADER_DEPARTMENT_ID",userPageData.getString("DEPARTMENT_ID"));
|
||||||
hot.put("UNIT_LEADER_DEPARTMENT_NAME",userPageData.getString("deptName"));
|
hot.put("UNIT_LEADER_DEPARTMENT_NAME",userPageData.getString("deptName"));
|
||||||
hot.put("UNIT_LEADER_NAME",userPageData.getString("userName"));
|
hot.put("UNIT_LEADER_NAME",userPageData.getString("userName"));
|
||||||
|
|
|
@ -9,6 +9,7 @@ import java.util.Map;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -41,6 +42,9 @@ import com.zcloud.service.bus.RiskWarningService;
|
||||||
@RequestMapping("/riskwarning")
|
@RequestMapping("/riskwarning")
|
||||||
public class RiskWarningController extends BaseController {
|
public class RiskWarningController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RiskWarningService riskwarningService;
|
private RiskWarningService riskwarningService;
|
||||||
|
|
||||||
|
@ -197,7 +201,7 @@ public class RiskWarningController extends BaseController {
|
||||||
pd = riskwarningService.findById(pd);
|
pd = riskwarningService.findById(pd);
|
||||||
String FILEPATH = pd.get("FILEPATH").toString();
|
String FILEPATH = pd.get("FILEPATH").toString();
|
||||||
System.out.println(FILEPATH.length());
|
System.out.println(FILEPATH.length());
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILEPATH.substring(FILEPATH.length()<85?28:61, FILEPATH.length()));
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILEPATH.substring(FILEPATH.length()<85?28:61, FILEPATH.length()));
|
||||||
}
|
}
|
||||||
/**导出到excel
|
/**导出到excel
|
||||||
* @param
|
* @param
|
||||||
|
|
|
@ -8,6 +8,7 @@ import java.util.Map;
|
||||||
|
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -38,6 +39,9 @@ import com.zcloud.util.Tools;
|
||||||
@RequestMapping("/video")
|
@RequestMapping("/video")
|
||||||
public class VideoController extends BaseController {
|
public class VideoController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private VideoService videoService;
|
private VideoService videoService;
|
||||||
|
|
||||||
|
@ -74,8 +78,8 @@ public class VideoController extends BaseController {
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
//Smb.1sshSftp(file, fileName,Const.FILEPATHFILE + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
//Smb.1sshSftp(file, fileName,Const.FILEPATHFILE + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
||||||
//pd.put("FILEPATH", Const.FILEPATHFILE + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
//pd.put("FILEPATH", Const.FILEPATHFILE + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
||||||
Smb.sshSftp(file, fileName,Const.HTTPFILEURL + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
Smb.sshSftp(file, fileName,fileUrl + Jurisdiction.getCORPINFO_ID() + "/" + ffile);
|
||||||
pd.put("FILEPATH", Const.HTTPFILEURL + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
pd.put("FILEPATH", fileUrl + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
videoService.save(pd);
|
videoService.save(pd);
|
||||||
|
|
|
@ -7,6 +7,7 @@ import com.zcloud.service.emergency.EmergencyDrillAttachmentService;
|
||||||
import com.zcloud.util.*;
|
import com.zcloud.util.*;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -27,6 +28,9 @@ import java.util.*;
|
||||||
@RequestMapping("/emergencydrillattachment")
|
@RequestMapping("/emergencydrillattachment")
|
||||||
public class EmergencyDrillAttachmentController extends BaseController {
|
public class EmergencyDrillAttachmentController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmergencyDrillAttachmentService emergencydrillattachmentService;
|
private EmergencyDrillAttachmentService emergencydrillattachmentService;
|
||||||
|
|
||||||
|
@ -256,7 +260,7 @@ public class EmergencyDrillAttachmentController extends BaseController {
|
||||||
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
||||||
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
||||||
|
|
|
@ -7,6 +7,7 @@ import com.zcloud.service.emergency.EmergencyDrillReportService;
|
||||||
import com.zcloud.util.*;
|
import com.zcloud.util.*;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -27,6 +28,9 @@ import java.util.*;
|
||||||
@RequestMapping("/emergencydrillreport")
|
@RequestMapping("/emergencydrillreport")
|
||||||
public class EmergencyDrillReportController extends BaseController {
|
public class EmergencyDrillReportController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmergencyDrillReportService emergencydrillreportService;
|
private EmergencyDrillReportService emergencydrillreportService;
|
||||||
|
|
||||||
|
@ -258,7 +262,7 @@ public class EmergencyDrillReportController extends BaseController {
|
||||||
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
||||||
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
||||||
|
|
|
@ -7,6 +7,7 @@ import com.zcloud.service.emergency.EmergencyPlanService;
|
||||||
import com.zcloud.util.*;
|
import com.zcloud.util.*;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -27,6 +28,9 @@ import java.util.*;
|
||||||
@RequestMapping("/emergencyplan")
|
@RequestMapping("/emergencyplan")
|
||||||
public class EmergencyPlanController extends BaseController {
|
public class EmergencyPlanController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmergencyPlanService emergencyplanService;
|
private EmergencyPlanService emergencyplanService;
|
||||||
|
|
||||||
|
@ -283,7 +287,7 @@ public class EmergencyPlanController extends BaseController {
|
||||||
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
||||||
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
||||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Map;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -43,6 +44,9 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
@RequestMapping("/mfolder")
|
@RequestMapping("/mfolder")
|
||||||
public class MfolderController extends BaseController {
|
public class MfolderController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MfolderService mfolderService;
|
private MfolderService mfolderService;
|
||||||
|
|
||||||
|
@ -441,7 +445,7 @@ public class MfolderController extends BaseController {
|
||||||
pd = mfolderService.findById(pd);
|
pd = mfolderService.findById(pd);
|
||||||
String FILEPATH = pd.getString("FILEPATH");
|
String FILEPATH = pd.getString("FILEPATH");
|
||||||
// String fileName = pd.getString("NAME");
|
// String fileName = pd.getString("NAME");
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILEPATH.substring(FILEPATH.length()<85?27:60, FILEPATH.length()));
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILEPATH.substring(FILEPATH.length()<85?27:60, FILEPATH.length()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new NofileException("=========要下载的文件已经没有了=========");
|
throw new NofileException("=========要下载的文件已经没有了=========");
|
||||||
|
|
|
@ -9,6 +9,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -40,6 +41,9 @@ import net.sf.json.JSONArray;
|
||||||
@RequestMapping("/mfolderStipulate")
|
@RequestMapping("/mfolderStipulate")
|
||||||
public class MfolderStipulateController extends BaseController {
|
public class MfolderStipulateController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MfolderStipulateService mfolderService;
|
private MfolderStipulateService mfolderService;
|
||||||
|
|
||||||
|
@ -426,7 +430,7 @@ public class MfolderStipulateController extends BaseController {
|
||||||
pd = mfolderService.findById(pd);
|
pd = mfolderService.findById(pd);
|
||||||
String FILEPATH = pd.getString("FILEPATH");
|
String FILEPATH = pd.getString("FILEPATH");
|
||||||
// String fileName = pd.getString("NAME");
|
// String fileName = pd.getString("NAME");
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILEPATH.substring(FILEPATH.length()<85?27:60, FILEPATH.length()));
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILEPATH.substring(FILEPATH.length()<85?27:60, FILEPATH.length()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new NofileStiException("=========要下载的文件已经没有了=========");
|
throw new NofileStiException("=========要下载的文件已经没有了=========");
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ import com.zcloud.util.DateUtil;
|
||||||
import com.zcloud.util.Jurisdiction;
|
import com.zcloud.util.Jurisdiction;
|
||||||
import com.zcloud.util.ObjectExcelView;
|
import com.zcloud.util.ObjectExcelView;
|
||||||
import com.zcloud.util.Tools;
|
import com.zcloud.util.Tools;
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.shiro.authz.annotation.RequiresAuthentication;
|
import org.apache.shiro.authz.annotation.RequiresAuthentication;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.apache.shiro.crypto.hash.SimpleHash;
|
import org.apache.shiro.crypto.hash.SimpleHash;
|
||||||
|
@ -318,7 +319,12 @@ public class HomeController extends BaseController {
|
||||||
Map<String, Object> chartData = new HashMap<String, Object>();
|
Map<String, Object> chartData = new HashMap<String, Object>();
|
||||||
List<String> legendData = Arrays.asList(new String[]{"动火作业", "临时用电作业", "盲板作业", "高处作业", "有限空间作业", "吊装作业"});
|
List<String> legendData = Arrays.asList(new String[]{"动火作业", "临时用电作业", "盲板作业", "高处作业", "有限空间作业", "吊装作业"});
|
||||||
|
|
||||||
List<PageData> workChart = highworkService.statisticsAllHighRiskWork(pd); //统计高危作业里各作业数
|
List<PageData> workChart = new ArrayList<>();
|
||||||
|
if (StringUtils.equals("035958e685cf4850bc40151c5e0617a6",pd.getString("CORPINFO_ID"))) { //一公司
|
||||||
|
workChart = highworkService.statisticsAllHighRiskWorkFirst(pd); //统计高危作业里各作业数
|
||||||
|
} else {
|
||||||
|
workChart = highworkService.statisticsAllHighRiskWork(pd); //统计高危作业里各作业数
|
||||||
|
}
|
||||||
List seriesData = new ArrayList();
|
List seriesData = new ArrayList();
|
||||||
for (int i = 0; i < legendData.size(); i++) {
|
for (int i = 0; i < legendData.size(); i++) {
|
||||||
PageData pie = new PageData();
|
PageData pie = new PageData();
|
||||||
|
|
|
@ -24,6 +24,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.apache.shiro.session.Session;
|
import org.apache.shiro.session.Session;
|
||||||
import org.apache.xmlgraphics.xmp.schemas.pdf.PDFAAdapter;
|
import org.apache.xmlgraphics.xmp.schemas.pdf.PDFAAdapter;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
@ -45,6 +46,9 @@ import java.util.stream.Collectors;
|
||||||
@RequestMapping("/safetyenvironmental")
|
@RequestMapping("/safetyenvironmental")
|
||||||
public class SafetyEnvironmentalController extends BaseController {
|
public class SafetyEnvironmentalController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SafetyEnvironmentalService safetyenvironmentalService;
|
private SafetyEnvironmentalService safetyenvironmentalService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -653,7 +657,7 @@ public class SafetyEnvironmentalController extends BaseController {
|
||||||
String FILEPATH = pd.getString("INSPECTED_EXPLAIN_FILEPATH");
|
String FILEPATH = pd.getString("INSPECTED_EXPLAIN_FILEPATH");
|
||||||
String FILENAME = pd.getString("INSPECTED_EXPLAIN_FILENAME");
|
String FILENAME = pd.getString("INSPECTED_EXPLAIN_FILENAME");
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
||||||
|
@ -674,7 +678,7 @@ public class SafetyEnvironmentalController extends BaseController {
|
||||||
String FILEPATH = pd.getString("INSPECTED_EXPLAIN_FILEPATH");
|
String FILEPATH = pd.getString("INSPECTED_EXPLAIN_FILEPATH");
|
||||||
String FILENAME = pd.getString("INSPECTED_EXPLAIN_FILENAME");
|
String FILENAME = pd.getString("INSPECTED_EXPLAIN_FILENAME");
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ import com.zcloud.util.Tools;
|
||||||
import com.zcloud.util.hk.HKUtil;
|
import com.zcloud.util.hk.HKUtil;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.util.ObjectUtils;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
@ -54,6 +55,9 @@ public class PlatformvideomanagementController extends BaseController {
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
PageData pd =this.getPageData();
|
PageData pd =this.getPageData();
|
||||||
map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls");
|
map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"hls");
|
||||||
|
if(!ObjectUtils.isEmpty(map)){
|
||||||
|
map = new HashMap<String,Object>();
|
||||||
|
}
|
||||||
map.put("result", "success");
|
map.put("result", "success");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -67,6 +71,9 @@ public class PlatformvideomanagementController extends BaseController {
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
PageData pd =this.getPageData();
|
PageData pd =this.getPageData();
|
||||||
map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"rtsp");
|
map = HKUtil.camerasPreviewURLs(pd.getString("INDEXCODE"),"rtsp");
|
||||||
|
if(!ObjectUtils.isEmpty(map)){
|
||||||
|
map = new HashMap<String,Object>();
|
||||||
|
}
|
||||||
map.put("result", "success");
|
map.put("result", "success");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -80,6 +87,9 @@ public class PlatformvideomanagementController extends BaseController {
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
PageData pd =this.getPageData();
|
PageData pd =this.getPageData();
|
||||||
map = HKUtil.cameraSearch(pd);
|
map = HKUtil.cameraSearch(pd);
|
||||||
|
if(!ObjectUtils.isEmpty(map)){
|
||||||
|
map = new HashMap<String,Object>();
|
||||||
|
}
|
||||||
map.put("result", "success");
|
map.put("result", "success");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import com.zcloud.service.majordangersource.MajorDangerSourceLogService;
|
||||||
import com.zcloud.service.majordangersource.MonitoringDeviceDisableService;
|
import com.zcloud.service.majordangersource.MonitoringDeviceDisableService;
|
||||||
import com.zcloud.util.*;
|
import com.zcloud.util.*;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -35,6 +36,9 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
@RequestMapping("/majordangersource")
|
@RequestMapping("/majordangersource")
|
||||||
public class MajorDangerSourceController extends BaseController {
|
public class MajorDangerSourceController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MajorDangerSourceService majordangersourceService;
|
private MajorDangerSourceService majordangersourceService;
|
||||||
|
|
||||||
|
@ -352,7 +356,7 @@ public class MajorDangerSourceController extends BaseController {
|
||||||
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
||||||
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
||||||
|
|
|
@ -7,6 +7,7 @@ import com.zcloud.service.majordangersource.MajorDangerSourceLogService;
|
||||||
import com.zcloud.util.*;
|
import com.zcloud.util.*;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
@ -25,6 +26,9 @@ import java.util.*;
|
||||||
@RequestMapping("/majordangersourcelog")
|
@RequestMapping("/majordangersourcelog")
|
||||||
public class MajorDangerSourceLogController extends BaseController {
|
public class MajorDangerSourceLogController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MajorDangerSourceLogService majorDangerSourceLogService;
|
private MajorDangerSourceLogService majorDangerSourceLogService;
|
||||||
|
|
||||||
|
@ -267,7 +271,7 @@ public class MajorDangerSourceLogController extends BaseController {
|
||||||
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
||||||
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
||||||
|
|
|
@ -70,19 +70,19 @@ public class LoginController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PhotoService photoService;
|
private PhotoService photoService;
|
||||||
@Value("${czks-useridentity}")
|
// @Value("${czks-useridentity}")
|
||||||
private String czksIdentity;
|
// private String czksIdentity;
|
||||||
@Value("${czks-baseimgpath}")
|
// @Value("${czks-baseimgpath}")
|
||||||
private String czksBaseimgpath;
|
// private String czksBaseimgpath;
|
||||||
@Value("${czks-backendaddr}")
|
// @Value("${czks-backendaddr}")
|
||||||
private String czksBackendaddr;
|
// private String czksBackendaddr;
|
||||||
|
//
|
||||||
@Value("${gwj-useridentity}")
|
// @Value("${gwj-useridentity}")
|
||||||
private String gwjIdentity;
|
// private String gwjIdentity;
|
||||||
@Value("${gwj-baseimgpath}")
|
// @Value("${gwj-baseimgpath}")
|
||||||
private String gwjBaseimgpath;
|
// private String gwjBaseimgpath;
|
||||||
@Value("${gwj-backendaddr}")
|
// @Value("${gwj-backendaddr}")
|
||||||
private String gwjBackendaddr;
|
// private String gwjBackendaddr;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CorpPathService corpPathService;
|
private CorpPathService corpPathService;
|
||||||
|
|
||||||
|
@ -187,24 +187,24 @@ public class LoginController extends BaseController {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
// 判断是不是沧州矿石的用户
|
// 判断是不是沧州矿石的用户
|
||||||
if (czksIdentity.equals(pd.getString("USER_IDENTITY"))) {
|
// if (czksIdentity.equals(pd.getString("USER_IDENTITY"))) {
|
||||||
// 沧州矿石的用户
|
// // 沧州矿石的用户
|
||||||
// 用户标识
|
// // 用户标识
|
||||||
map.put("USER_IDENTITY", czksIdentity);
|
// map.put("USER_IDENTITY", czksIdentity);
|
||||||
// 图片路径
|
// // 图片路径
|
||||||
map.put("baseImgPath", czksBaseimgpath);
|
// map.put("baseImgPath", czksBaseimgpath);
|
||||||
// 后台地址
|
// // 后台地址
|
||||||
map.put("BACKENDADDR", czksBackendaddr);
|
// map.put("BACKENDADDR", czksBackendaddr);
|
||||||
}
|
// }
|
||||||
if ("".equals(pd.getString("USER_IDENTITY"))) {
|
// if ("".equals(pd.getString("USER_IDENTITY"))) {
|
||||||
// 港股的用户
|
// // 港股的用户
|
||||||
// 用户标识
|
// // 用户标识
|
||||||
map.put("USER_IDENTITY", gwjIdentity);
|
// map.put("USER_IDENTITY", gwjIdentity);
|
||||||
// 图片路径
|
// // 图片路径
|
||||||
map.put("baseImgPath", gwjBaseimgpath);
|
// map.put("baseImgPath", gwjBaseimgpath);
|
||||||
// 后台地址
|
// // 后台地址
|
||||||
map.put("BACKENDADDR", gwjBackendaddr);
|
// map.put("BACKENDADDR", gwjBackendaddr);
|
||||||
}
|
// }
|
||||||
PageData cpd = corpinfoService.findById(pd);
|
PageData cpd = corpinfoService.findById(pd);
|
||||||
//System.out.println(cpd.getString("ISUSE"));
|
//System.out.println(cpd.getString("ISUSE"));
|
||||||
if (cpd != null) {
|
if (cpd != null) {
|
||||||
|
@ -291,12 +291,14 @@ public class LoginController extends BaseController {
|
||||||
//查询该用户或企业的图片和后端地址
|
//查询该用户或企业的图片和后端地址
|
||||||
if (!Tools.isEmpty(pd.getString("CORPINFO_ID")) && !pd.getString("CORPINFO_ID").equals("1")) {
|
if (!Tools.isEmpty(pd.getString("CORPINFO_ID")) && !pd.getString("CORPINFO_ID").equals("1")) {
|
||||||
PageData pathData = corpPathService.getCorpPathByCorpId(pd);
|
PageData pathData = corpPathService.getCorpPathByCorpId(pd);
|
||||||
map.put("picPath",pathData.getString("PIC_PATH"));
|
map.put("baseImgPath",pathData.getString("PIC_PATH"));
|
||||||
map.put("backEndPath", pathData.getString("BACK_END_PATH"));
|
map.put("USER_IDENTITY",pathData.getString("USER_IDENTITY"));
|
||||||
|
map.put("BACKENDADDR", pathData.getString("BACK_END_PATH"));
|
||||||
} else {
|
} else {
|
||||||
PageData pathData = corpPathService.getCorpPathByPersonInfo(pd);
|
PageData pathData = corpPathService.getCorpPathByPersonInfo(pd);
|
||||||
map.put("picPath", pathData.getString("PIC_PATH"));
|
map.put("baseImgPath",pathData.getString("PIC_PATH"));
|
||||||
map.put("backEndPath", pathData.getString("BACK_END_PATH"));
|
map.put("USER_IDENTITY",pathData.getString("USER_IDENTITY"));
|
||||||
|
map.put("BACKENDADDR", pathData.getString("BACK_END_PATH"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -11,6 +11,7 @@ import com.zcloud.service.tzsb.SpecialEquipmentService;
|
||||||
import com.zcloud.util.*;
|
import com.zcloud.util.*;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
@ -31,6 +32,9 @@ import java.util.*;
|
||||||
@RequestMapping("/specialequipment")
|
@RequestMapping("/specialequipment")
|
||||||
public class SpecialEquipmentController extends BaseController {
|
public class SpecialEquipmentController extends BaseController {
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SpecialEquipmentService specialequipmentService;
|
private SpecialEquipmentService specialequipmentService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -488,7 +492,7 @@ public class SpecialEquipmentController extends BaseController {
|
||||||
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
// FileDownload.fileDownload(response, PathUtil.getProjectpath() + FILEPATH, FILENAME);
|
||||||
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
//// FileDownload.mfFileDownload(response, this.getRequest().getScheme() + "://" + this.getRequest().getServerName() + ":" + this.getRequest().getServerPort() + FILEPATH, FILENAME); //不好用
|
||||||
//服务器
|
//服务器
|
||||||
FileDownload.mfFileDownload(response, Const.HTTPFILEURL + FILEPATH, FILENAME);
|
FileDownload.mfFileDownload(response, fileUrl + FILEPATH, FILENAME);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
throw new Exception("=========文件下载异常:可能要下载的文件已经没有了=========");
|
||||||
|
|
|
@ -18,6 +18,7 @@ import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
||||||
import org.apache.poi.ss.usermodel.Workbook;
|
import org.apache.poi.ss.usermodel.Workbook;
|
||||||
import org.apache.shiro.session.Session;
|
import org.apache.shiro.session.Session;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.web.servlet.view.document.AbstractXlsView;
|
import org.springframework.web.servlet.view.document.AbstractXlsView;
|
||||||
|
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
|
@ -31,6 +32,9 @@ import net.coobird.thumbnailator.Thumbnails;
|
||||||
*/
|
*/
|
||||||
public class HiddenExcelImgToSessionView extends AbstractXlsView{
|
public class HiddenExcelImgToSessionView extends AbstractXlsView{
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void buildExcelDocument(Map<String, Object> model,
|
protected void buildExcelDocument(Map<String, Object> model,
|
||||||
Workbook workbook, HttpServletRequest request,
|
Workbook workbook, HttpServletRequest request,
|
||||||
|
@ -38,7 +42,7 @@ public class HiddenExcelImgToSessionView extends AbstractXlsView{
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
String proPath = PathUtil.getProjectpath();
|
String proPath = PathUtil.getProjectpath();
|
||||||
Session session = Jurisdiction.getSession();
|
Session session = Jurisdiction.getSession();
|
||||||
String beji = Const.HTTPFILEURL;
|
String beji = fileUrl;
|
||||||
//beji =beji.replaceAll("\\\\", "/");
|
//beji =beji.replaceAll("\\\\", "/");
|
||||||
// String beji = "https://qgqy.qhdsafety.com/file/";
|
// String beji = "https://qgqy.qhdsafety.com/file/";
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
|
|
|
@ -26,6 +26,7 @@ import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
||||||
import org.apache.poi.ss.usermodel.Workbook;
|
import org.apache.poi.ss.usermodel.Workbook;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.web.servlet.view.document.AbstractXlsView;
|
import org.springframework.web.servlet.view.document.AbstractXlsView;
|
||||||
|
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
|
@ -37,13 +38,16 @@ import com.zcloud.entity.PageData;
|
||||||
*/
|
*/
|
||||||
public class HiddenExcelImgView extends AbstractXlsView{
|
public class HiddenExcelImgView extends AbstractXlsView{
|
||||||
|
|
||||||
|
@Value("${http.file.url}")
|
||||||
|
private String fileUrl;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void buildExcelDocument(Map<String, Object> model,
|
protected void buildExcelDocument(Map<String, Object> model,
|
||||||
Workbook workbook, HttpServletRequest request,
|
Workbook workbook, HttpServletRequest request,
|
||||||
HttpServletResponse response) throws Exception {
|
HttpServletResponse response) throws Exception {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
String proPath = PathUtil.getProjectpath();
|
String proPath = PathUtil.getProjectpath();
|
||||||
String beji = Const.HTTPFILEURL;
|
String beji = fileUrl;
|
||||||
//beji =beji.replaceAll("\\\\", "/");
|
//beji =beji.replaceAll("\\\\", "/");
|
||||||
|
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
|
|
||||||
|
|
||||||
datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver
|
datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
datasource.no1.url=jdbc:mysql://192.168.0.17:3306/qa-gwj-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
datasource.no1.url=jdbc:mysql://39.101.130.96:33068/qa-gwj-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||||
datasource.no1.username=root
|
datasource.no1.username=root
|
||||||
datasource.no1.password=root
|
datasource.no1.password=Mysql@zcloud88888
|
||||||
datasource.no2.driver-class-name: com.mysql.cj.jdbc.Driver
|
datasource.no2.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
datasource.no2.url=jdbc:mysql://192.168.0.17:3306/qa-gwj-regulatory?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
datasource.no2.url=jdbc:mysql://39.101.130.96:33068/qa-gwj-regulatory?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||||
datasource.no2.username=root
|
datasource.no2.username=root
|
||||||
datasource.no2.password=root
|
datasource.no2.password=Mysql@zcloud88888
|
||||||
|
|
||||||
|
|
||||||
#druid???
|
#druid???
|
||||||
|
@ -60,12 +60,8 @@ spring.main.banner-mode=off
|
||||||
#preventionxgf.api.url=http://192.168.0.79:8088
|
#preventionxgf.api.url=http://192.168.0.79:8088
|
||||||
#
|
#
|
||||||
#qa-regulatory-gwj.api.url=http://192.168.0.79:8008
|
#qa-regulatory-gwj.api.url=http://192.168.0.79:8008
|
||||||
|
preventionxgf.api.url=https://qgxgf.qhdsafety.com/qa-prevention-xgf/
|
||||||
corp.default.pic-path=https://qgqy.qhdsafety.com/file/
|
qa-regulatory-gwj.api.url=https://qgjg.qhdsafety.com/qa-regulatory-gwj/
|
||||||
corp.default.back-end-path=http://192.168.151.57:8092/
|
|
||||||
|
|
||||||
preventionxgf.api.url=http://192.168.0.31:8992/qa-prevention-xgf/
|
|
||||||
qa-regulatory-gwj.api.url=http://192.168.0.31:8992/qa-regulatory-gwj/
|
|
||||||
#?????
|
#?????
|
||||||
smb.host=39.103.224.166
|
smb.host=39.103.224.166
|
||||||
smb.port=22
|
smb.port=22
|
||||||
|
@ -78,7 +74,7 @@ rocketmq.consumer.group2=edu-admin-edit
|
||||||
rocketmq.consumer.group1=edu-admin-add
|
rocketmq.consumer.group1=edu-admin-add
|
||||||
#rocketmq.name-server=10.0.140.141:9876
|
#rocketmq.name-server=10.0.140.141:9876
|
||||||
#rocketmq.name-server=192.168.0.70:9876
|
#rocketmq.name-server=192.168.0.70:9876
|
||||||
rocketmq.name-server=192.168.0.31:9876
|
rocketmq.name-server=172.24.151.16:9876
|
||||||
rocketmq.producer.group=libmiddle
|
rocketmq.producer.group=libmiddle
|
||||||
rocketmq.producer.send-message-timeout=3000
|
rocketmq.producer.send-message-timeout=3000
|
||||||
rocketmq.producer.compress-message-body-threshold=4096
|
rocketmq.producer.compress-message-body-threshold=4096
|
||||||
|
@ -94,8 +90,8 @@ mq.group.info=scheduled_tasks
|
||||||
mq.group.eightWork=scheduled_tasks_eightWork
|
mq.group.eightWork=scheduled_tasks_eightWork
|
||||||
|
|
||||||
|
|
||||||
corp.default.pic-path=https://qgqy.qhdsafety.com/file/
|
corp.default.pic-path=https://qgqy.qhdsafety.com/
|
||||||
corp.default.back-end-path=https://skqhdg.porthebei.com:9004/file/
|
corp.default.back-end-path=https://qgqy.qhdsafety.com/file/
|
||||||
|
|
||||||
|
|
||||||
#用户标识
|
#用户标识
|
||||||
|
@ -107,3 +103,5 @@ czks-backendaddr=http://192.168.0.79:8091/
|
||||||
gwj-useridentity=GWJ
|
gwj-useridentity=GWJ
|
||||||
gwj-baseimgpath=https://qgqy.qhdsafety.com/file/
|
gwj-baseimgpath=https://qgqy.qhdsafety.com/file/
|
||||||
gwj-backendaddr=http://192.168.0.31:8991/qa-prevention-gwj/
|
gwj-backendaddr=http://192.168.0.31:8991/qa-prevention-gwj/
|
||||||
|
# ??????
|
||||||
|
http.file.url=https://qgqy.qhdsafety.com/file/
|
||||||
|
|
|
@ -60,13 +60,8 @@ spring.main.banner-mode=off
|
||||||
#preventionxgf.api.url=http://192.168.0.79:8088
|
#preventionxgf.api.url=http://192.168.0.79:8088
|
||||||
#
|
#
|
||||||
#qa-regulatory-gwj.api.url=http://192.168.0.79:8008
|
#qa-regulatory-gwj.api.url=http://192.168.0.79:8008
|
||||||
|
preventionxgf.api.url=https://qgxgf.qhdsafety.com/qa-prevention-xgf/
|
||||||
preventionxgf.api.url=http://192.168.0.79:8088/
|
qa-regulatory-gwj.api.url=https://qgjg.qhdsafety.com/qa-regulatory-gwj/
|
||||||
qa-regulatory-gwj.api.url=http://192.168.0.79:8092/
|
|
||||||
|
|
||||||
corp.default.pic-path=https://qgqy.qhdsafety.com/file/
|
|
||||||
corp.default.back-end-path=http://192.168.151.57:8092/
|
|
||||||
|
|
||||||
#?????
|
#?????
|
||||||
smb.host=192.168.192.201
|
smb.host=192.168.192.201
|
||||||
smb.port=22
|
smb.port=22
|
||||||
|
@ -94,5 +89,18 @@ mq.topic.eightWork=eightWork
|
||||||
mq.group.info=scheduled_tasks
|
mq.group.info=scheduled_tasks
|
||||||
mq.group.eightWork=scheduled_tasks_eightWork
|
mq.group.eightWork=scheduled_tasks_eightWork
|
||||||
|
|
||||||
corp.default.pic-path=https://qgqy.qhdsafety.com/file/
|
|
||||||
corp.default.back-end-path=http://192.168.151.57:8092/
|
corp.default.pic-path=https://qgqy.qhdsafety.com/
|
||||||
|
corp.default.back-end-path=https://qgqy.qhdsafety.com/file/
|
||||||
|
http.file.url=https://qgqy.qhdsafety.com/file/
|
||||||
|
|
||||||
|
|
||||||
|
#用户标识
|
||||||
|
# 沧州矿石
|
||||||
|
czks-useridentity=CZKS
|
||||||
|
czks-baseimgpath=https://wwag.qhdsafety.com/file/
|
||||||
|
czks-backendaddr=http://192.168.0.79:8091/
|
||||||
|
# 港务局
|
||||||
|
gwj-useridentity=GWJ
|
||||||
|
gwj-baseimgpath=https://qgqy.qhdsafety.com/file/
|
||||||
|
gwj-backendaddr=http://192.168.0.31:8991/qa-prevention-gwj/
|
||||||
|
|
|
@ -87,3 +87,5 @@ mq.group.eightWork=scheduled_tasks_eightWork
|
||||||
|
|
||||||
corp.default.pic-path=https://qgqy.qhdsafety.com/file/
|
corp.default.pic-path=https://qgqy.qhdsafety.com/file/
|
||||||
corp.default.back-end-path=https://skqhdg.porthebei.com:9004/file/
|
corp.default.back-end-path=https://skqhdg.porthebei.com:9004/file/
|
||||||
|
# ??????
|
||||||
|
http.file.url=http://192.168.192.201:8991/file/
|
||||||
|
|
|
@ -2,9 +2,9 @@ spring.application.name=qa-prevention-gwj
|
||||||
server.port=8091
|
server.port=8091
|
||||||
|
|
||||||
#??
|
#??
|
||||||
spring.profiles.active=local
|
#spring.profiles.active=local
|
||||||
#<23><><EFBFBD><EFBFBD>31ʱʹ<CAB1><CAB9>
|
#<23><><EFBFBD><EFBFBD>31ʱʹ<CAB1><CAB9>
|
||||||
#spring.profiles.active=dev
|
spring.profiles.active=dev
|
||||||
#??
|
#??
|
||||||
#spring.profiles.active=master
|
#spring.profiles.active=master
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
CORP_PATH_ID,
|
CORP_PATH_ID,
|
||||||
CORPINFO_ID,
|
CORPINFO_ID,
|
||||||
PIC_PATH,
|
PIC_PATH,
|
||||||
BACK_END_PATH
|
BACK_END_PATH,
|
||||||
|
USER_IDENTITY
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段 -->
|
<!-- 字段 -->
|
||||||
|
@ -37,7 +38,7 @@
|
||||||
from
|
from
|
||||||
<include refid="tableName"/>
|
<include refid="tableName"/>
|
||||||
where
|
where
|
||||||
CORPINFO_ID = #{corpId}
|
CORPINFO_ID = #{CORPINFO_ID}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getCorpPathByPersonInfo" resultType="pd">
|
<select id="getCorpPathByPersonInfo" resultType="pd">
|
||||||
|
|
Loading…
Reference in New Issue