forked from integrated_whb/integrated_whb
八项作业与部分bug
parent
8dd9ff3390
commit
ee5192518b
|
@ -726,7 +726,6 @@ public class CustomHiddenController extends BaseController {
|
||||||
if (IS_SELF != null && IS_SELF.equals("1"))
|
if (IS_SELF != null && IS_SELF.equals("1"))
|
||||||
pd.put("SELF_USER_ID", Jurisdiction.getUSER_ID());
|
pd.put("SELF_USER_ID", Jurisdiction.getUSER_ID());
|
||||||
}
|
}
|
||||||
;
|
|
||||||
// 旬
|
// 旬
|
||||||
if (pd.get("IS_XUN") != null && Tools.notEmpty(pd.get("IS_XUN").toString())) {
|
if (pd.get("IS_XUN") != null && Tools.notEmpty(pd.get("IS_XUN").toString())) {
|
||||||
// 1-10
|
// 1-10
|
||||||
|
|
|
@ -73,6 +73,7 @@ public class MapController extends BaseController {
|
||||||
public ReturnMap getAlarmTypeCount() throws Exception {
|
public ReturnMap getAlarmTypeCount() throws Exception {
|
||||||
return ReturnMap.ok().put("data", PLSUtil.getAlarmTypeCount(Jurisdiction.getCORPINFO_ID()));
|
return ReturnMap.ok().put("data", PLSUtil.getAlarmTypeCount(Jurisdiction.getCORPINFO_ID()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 告警数据 来自人员定位系统
|
* @Description: 告警数据 来自人员定位系统
|
||||||
* @Author: dearLin
|
* @Author: dearLin
|
||||||
|
@ -96,6 +97,7 @@ public class MapController extends BaseController {
|
||||||
}
|
}
|
||||||
return returnMap;
|
return returnMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 人员定位情况 来自人员定位系统
|
* @Description: 人员定位情况 来自人员定位系统
|
||||||
* @Author: dearLin
|
* @Author: dearLin
|
||||||
|
@ -143,6 +145,19 @@ public class MapController extends BaseController {
|
||||||
return eightWorkService.getEightWorks();
|
return eightWorkService.getEightWorks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 获取八项作业数
|
||||||
|
* @Param: [] []
|
||||||
|
* @Return: com.zcloud.util.ReturnMap
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/getEightWorksByType")
|
||||||
|
@ResponseBody
|
||||||
|
public ReturnMap getEightWorksByType() throws Exception {
|
||||||
|
PageData pageData = this.getPageData();
|
||||||
|
pageData.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||||
|
return ReturnMap.ok().put("varList", eightWorkService.getEightWorksByType(pageData));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 获取动火作业
|
* @Description: 获取动火作业
|
||||||
* @Param: [] []
|
* @Param: [] []
|
||||||
|
@ -187,6 +202,7 @@ public class MapController extends BaseController {
|
||||||
PageData cameraCount = videomanagerService.getCameraTopToShow(pageData);
|
PageData cameraCount = videomanagerService.getCameraTopToShow(pageData);
|
||||||
return ReturnMap.ok().put("pd", cameraCount);
|
return ReturnMap.ok().put("pd", cameraCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 摄像头告警数
|
* @Description: 摄像头告警数
|
||||||
* @Author: dearLin
|
* @Author: dearLin
|
||||||
|
@ -202,6 +218,7 @@ public class MapController extends BaseController {
|
||||||
List<PageData> cameraCount = videomanagerService.getCameraAlarmCount(pageData);
|
List<PageData> cameraCount = videomanagerService.getCameraAlarmCount(pageData);
|
||||||
return ReturnMap.ok().put("CameraAlarmCount", cameraCount);
|
return ReturnMap.ok().put("CameraAlarmCount", cameraCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 摄像头报警类型
|
* @Description: 摄像头报警类型
|
||||||
* @Author: dearLin
|
* @Author: dearLin
|
||||||
|
@ -323,6 +340,7 @@ public class MapController extends BaseController {
|
||||||
public Object getCameraList() throws Exception {
|
public Object getCameraList() throws Exception {
|
||||||
return ReturnMap.ok().put("varList", videomanagerService.getCameraList(getPageData()));
|
return ReturnMap.ok().put("varList", videomanagerService.getCameraList(getPageData()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
List<Map<String, String>> timeArray = generateTimeArray();
|
List<Map<String, String>> timeArray = generateTimeArray();
|
||||||
for (Map<String, String> monthInfo : timeArray) {
|
for (Map<String, String> monthInfo : timeArray) {
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class UserCardController extends BaseController {
|
||||||
ReturnMap returnMap = new ReturnMap();
|
ReturnMap returnMap = new ReturnMap();
|
||||||
page.setPd(pageData);
|
page.setPd(pageData);
|
||||||
JSONObject body = PLSUtil.getUserCardDataList(
|
JSONObject body = PLSUtil.getUserCardDataList(
|
||||||
Jurisdiction.getCORPINFO_ID(), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")), pageData.getString("str"));
|
Jurisdiction.getCORPINFO_ID(), Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")), pageData.getString("KEYWORDS"));
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);
|
||||||
returnMap.put("varList", list);
|
returnMap.put("varList", list);
|
||||||
|
|
|
@ -100,6 +100,10 @@ public class IdentificationPartsController extends BaseController {
|
||||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||||
pd.put("ISDELETE", "0"); //是否删除 1-是 0-否
|
pd.put("ISDELETE", "0"); //是否删除 1-是 0-否
|
||||||
pd.put("ISMATCHING", "0");
|
pd.put("ISMATCHING", "0");
|
||||||
|
if (Tools.isEmpty(pd.getString("ELECTRONIC_FENCE_ID"))) {
|
||||||
|
pd.put("ELECTRONIC_FENCE_NAME", null);
|
||||||
|
pd.put("ELECTRONIC_FENCE_ID", null);
|
||||||
|
}
|
||||||
identificationpartsService.save(pd);
|
identificationpartsService.save(pd);
|
||||||
|
|
||||||
if (files != null && files.length > 0) {
|
if (files != null && files.length > 0) {
|
||||||
|
|
|
@ -445,6 +445,7 @@ public class UsersController extends BaseController {
|
||||||
String msg = usersService.changeOrUpdUserCardNo(pd);
|
String msg = usersService.changeOrUpdUserCardNo(pd);
|
||||||
if (msg.equals(Const.CAN_CHENG_USER)) {
|
if (msg.equals(Const.CAN_CHENG_USER)) {
|
||||||
if (PLSUtil.editUser(pd)) {
|
if (PLSUtil.editUser(pd)) {
|
||||||
|
if (Tools.isEmpty(pd.getString("CARDNO"))) {pd.put("CARDNO", null);}
|
||||||
usersService.editUser(pd); //执行修改
|
usersService.editUser(pd); //执行修改
|
||||||
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
||||||
if ("select".equals(pd.getString("letDutiesType"))) {
|
if ("select".equals(pd.getString("letDutiesType"))) {
|
||||||
|
|
|
@ -16,5 +16,7 @@ public interface EightWorkMapper {
|
||||||
List<PageData> getEightWorks(PageData corp);
|
List<PageData> getEightWorks(PageData corp);
|
||||||
|
|
||||||
List<PageData> listAllForDiagnosis(PageData pd);
|
List<PageData> listAllForDiagnosis(PageData pd);
|
||||||
|
|
||||||
|
List<PageData> getEightWorksByType(PageData pageData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,6 @@ public class CorpInfoServiceImpl implements CorpInfoService {
|
||||||
public PageData eightWorkBI(PageData pd) throws Exception{
|
public PageData eightWorkBI(PageData pd) throws Exception{
|
||||||
return corpinfoMapper.eightWorkBI(pd);
|
return corpinfoMapper.eightWorkBI(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateEnterpriseId(PageData corpPage) {
|
public void updateEnterpriseId(PageData corpPage) {
|
||||||
corpinfoMapper.updateEnterpriseId(corpPage);
|
corpinfoMapper.updateEnterpriseId(corpPage);
|
||||||
|
|
|
@ -19,4 +19,6 @@ public interface EightWorkService {
|
||||||
List<PageData> list(PageData pd)throws Exception;
|
List<PageData> list(PageData pd)throws Exception;
|
||||||
|
|
||||||
List<PageData> listAllForDiagnosis(PageData pd)throws Exception;
|
List<PageData> listAllForDiagnosis(PageData pd)throws Exception;
|
||||||
|
|
||||||
|
List<PageData> getEightWorksByType(PageData pageData);
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,4 +111,10 @@ public class EightWorkServiceImpl implements EightWorkService {
|
||||||
return eightworkMapper.listAllForDiagnosis(pd);
|
return eightworkMapper.listAllForDiagnosis(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> getEightWorksByType(PageData pageData) {
|
||||||
|
return eightworkMapper.getEightWorksByType(pageData);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,4 +87,17 @@
|
||||||
union all
|
union all
|
||||||
select count(1) as count,sum(case when f.STEP_ID=15 then 1 else 0 end) as pass_count from BUS_HOTWORK f where DATE_FORMAT(f.CREATTIME,'%Y-%m')=#{MONTH} and f.CORPINFO_ID = #{CORPINFO_ID} and ISDELETE = 0
|
select count(1) as count,sum(case when f.STEP_ID=15 then 1 else 0 end) as pass_count from BUS_HOTWORK f where DATE_FORMAT(f.CREATTIME,'%Y-%m')=#{MONTH} and f.CORPINFO_ID = #{CORPINFO_ID} and ISDELETE = 0
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getEightWorksByType" resultType="com.zcloud.entity.PageData">
|
||||||
|
select
|
||||||
|
f.${TYPE}_ID ID,
|
||||||
|
f.CHECK_NO,
|
||||||
|
f.WORK_POSITION
|
||||||
|
from
|
||||||
|
BUS_${TYPE} f
|
||||||
|
left join (select * from(select * from vi_eightwork_flow_log log having 1 order by log.ACT_TIME desc
|
||||||
|
) tmp group by tmp.WORK_ID) log on log.WORK_ID = f.${TYPE}_ID
|
||||||
|
where f.ISDELETE = '0' and f.WORK_POSITION is not null
|
||||||
|
and f.CORPINFO_ID = #{CORPINFO_ID}
|
||||||
|
and f.STEP_ID > 0 and log.NEXT_STEP_ID != 99
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
Loading…
Reference in New Issue