八项作业与部分bug

pull/5/head^2
dearlin 2024-03-01 09:05:45 +08:00
parent 8dd9ff3390
commit ee5192518b
10 changed files with 53 additions and 9 deletions

View File

@ -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

View File

@ -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
@ -118,7 +120,7 @@ public class MapController extends BaseController {
@RequestMapping(value = "/getRealTimeList") @RequestMapping(value = "/getRealTimeList")
@ResponseBody @ResponseBody
public ReturnMap getRealTimeList() throws Exception { public ReturnMap getRealTimeList() throws Exception {
return ReturnMap.ok().put("data", PLSUtil.getRealTimeList(Jurisdiction.getCORPINFO_ID())); return ReturnMap.ok().put("data", PLSUtil.getRealTimeList(Jurisdiction.getCORPINFO_ID()));
} }
/** /**
@ -129,7 +131,7 @@ public class MapController extends BaseController {
@RequestMapping(value = "/getFenceList") @RequestMapping(value = "/getFenceList")
@ResponseBody @ResponseBody
public ReturnMap getFenceList() throws Exception { public ReturnMap getFenceList() throws Exception {
return ReturnMap.ok().put("data", PLSUtil.getAreaRegionList(Jurisdiction.getCORPINFO_ID(),1,999999)); return ReturnMap.ok().put("data", PLSUtil.getAreaRegionList(Jurisdiction.getCORPINFO_ID(), 1, 999999));
} }
/** /**
@ -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
@ -260,8 +277,8 @@ public class MapController extends BaseController {
@ResponseBody @ResponseBody
public ReturnMap getCharacterTrajectories() throws Exception { public ReturnMap getCharacterTrajectories() throws Exception {
PageData pageData = getPageData(); PageData pageData = getPageData();
return ReturnMap.ok().put("data", PLSUtil.characterTrajectories(Jurisdiction.getCORPINFO_ID(),Integer.parseInt(pageData.getString("id")), return ReturnMap.ok().put("data", PLSUtil.characterTrajectories(Jurisdiction.getCORPINFO_ID(), Integer.parseInt(pageData.getString("id")),
pageData.getString("startTime"),pageData.getString("endTime"),Integer.parseInt(pageData.getString("type")))); pageData.getString("startTime"), pageData.getString("endTime"), Integer.parseInt(pageData.getString("type"))));
} }
/** /**
@ -288,7 +305,7 @@ public class MapController extends BaseController {
int year = calendar.get(Calendar.YEAR); int year = calendar.get(Calendar.YEAR);
int month = calendar.get(Calendar.MONTH) + 1; int month = calendar.get(Calendar.MONTH) + 1;
String monthString = String.format(year+"-%02d", month); String monthString = String.format(year + "-%02d", month);
String firstDayOfMonth = String.format("%04d-%02d-01 00:00:00", year, month); String firstDayOfMonth = String.format("%04d-%02d-01 00:00:00", year, month);
calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH)); calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
calendar.set(Calendar.HOUR_OF_DAY, 23); calendar.set(Calendar.HOUR_OF_DAY, 23);
@ -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) {

View File

@ -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);

View File

@ -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) {
@ -237,7 +241,7 @@ public class IdentificationPartsController extends BaseController {
PageData pageData = this.getPageData(); PageData pageData = this.getPageData();
String KEYWORDS = (String) pageData.getOrDefault("KEYWORDS", ""); String KEYWORDS = (String) pageData.getOrDefault("KEYWORDS", "");
JSONObject body = PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(),KEYWORDS,Integer.parseInt(pageData.getString("currentPage")),Integer.parseInt(pageData.getString("showCount")),0); JSONObject body = PLSUtil.getRyRegionList(Jurisdiction.getCORPINFO_ID(), KEYWORDS, Integer.parseInt(pageData.getString("currentPage")), Integer.parseInt(pageData.getString("showCount")), 0);
if (body != null) { if (body != null) {
List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class); List<JSONObject> list = body.getJSONArray("rows").toJavaList(JSONObject.class);

View File

@ -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"))) {

View File

@ -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);
} }

View File

@ -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);

View File

@ -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);
} }

View File

@ -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);
}
} }

View File

@ -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 &gt; 0 and log.NEXT_STEP_ID != 99
</select>
</mapper> </mapper>