八项作业作废时,监控删除,视频监控列表

pull/4/head
chenxinying 2024-01-16 15:14:42 +08:00
parent 0fce9d9f9a
commit eda0a53e19
9 changed files with 69 additions and 15 deletions

View File

@ -38,7 +38,7 @@ public class VideoManagerController extends BaseController {
* @throws Exception * @throws Exception
*/ */
@RequestMapping(value="/add") @RequestMapping(value="/add")
@RequiresPermissions("videomanager:add") // @RequiresPermissions("videomanager:add")
@ResponseBody @ResponseBody
@LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "新增") @LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "新增")
public Object add() throws Exception{ public Object add() throws Exception{
@ -61,7 +61,7 @@ public class VideoManagerController extends BaseController {
* @throws Exception * @throws Exception
*/ */
@RequestMapping(value="/delete") @RequestMapping(value="/delete")
@RequiresPermissions("videomanager:del") // @RequiresPermissions("videomanager:del")
@ResponseBody @ResponseBody
@LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "删除") @LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "删除")
public Object delete() throws Exception{ public Object delete() throws Exception{
@ -108,7 +108,7 @@ public class VideoManagerController extends BaseController {
* @throws Exception * @throws Exception
*/ */
@RequestMapping(value="/edit") @RequestMapping(value="/edit")
@RequiresPermissions("videomanager:edit") // @RequiresPermissions("videomanager:edit")
@ResponseBody @ResponseBody
@LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "修改") @LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "修改")
public Object edit() throws Exception{ public Object edit() throws Exception{
@ -121,6 +121,24 @@ public class VideoManagerController extends BaseController {
return map; return map;
} }
/**ID
* @param
* @throws Exception
*/
@RequestMapping(value="/editPls")
// @RequiresPermissions("videomanager:edit")
@ResponseBody
@LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "修改")
public Object editPls() throws Exception{
Map<String,Object> map = new HashMap<String,Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
videomanagerService.editPls(pd);
map.put("result", errInfo);
return map;
}
/** /**
* @param page * @param page
* @throws Exception * @throws Exception
@ -187,7 +205,7 @@ public class VideoManagerController extends BaseController {
* @throws Exception * @throws Exception
*/ */
@RequestMapping(value="/goEdit") @RequestMapping(value="/goEdit")
@RequiresPermissions("videomanager:edit") // @RequiresPermissions("videomanager:edit")
@ResponseBody @ResponseBody
@LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "去修改页面获取数据") @LogAnno(menuType= "监测预警",menuServer= "视频管理",instructionsOperate = "视频维护",instructionsType = "去修改页面获取数据")
public Object goEdit() throws Exception{ public Object goEdit() throws Exception{

View File

@ -35,6 +35,9 @@ public interface VideoManagerMapper {
* @throws Exception * @throws Exception
*/ */
void edit(PageData pd); void edit(PageData pd);
void editPls(PageData pd);
void editIsShow(PageData pd); void editIsShow(PageData pd);
void editIsShowBycorpinfoid(PageData pd); void editIsShowBycorpinfoid(PageData pd);

View File

@ -211,7 +211,6 @@ public class ConfinedSpaceServiceImpl implements ConfinedSpaceService {
}else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") == null){ }else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") == null){
pd.put("APPLY_STATUS",-98); pd.put("APPLY_STATUS",-98);
confinedspaceMapper.cancel(pd); confinedspaceMapper.cancel(pd);
eightworkvideomanagerService.editStatus(cpd);
PageData pd2 = new PageData(); PageData pd2 = new PageData();
pd2 = confinedspaceMapper.checkno(pd); pd2 = confinedspaceMapper.checkno(pd);
PageData pd3 = new PageData(); PageData pd3 = new PageData();
@ -243,10 +242,11 @@ public class ConfinedSpaceServiceImpl implements ConfinedSpaceService {
params2.put("value", "受限空间作业");// 存入上面参数名称所传递的值 params2.put("value", "受限空间作业");// 存入上面参数名称所传递的值
paramsList.add(params2); paramsList.add(params2);
sendMessageUtil.sendMessages(mes, paramsList); sendMessageUtil.sendMessages(mes, paramsList);
eightworkvideomanagerService.editStatus(cpd);
}else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") != null && cpd.getString("GUARDIAN_USER_SIGNER_TIME") == null){ }else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") != null && cpd.getString("GUARDIAN_USER_SIGNER_TIME") == null){
pd.put("APPLY_STATUS",-99); pd.put("APPLY_STATUS",-99);
confinedspaceMapper.cancel(pd); confinedspaceMapper.cancel(pd);
eightworkvideomanagerService.editStatus(cpd);
PageData pd2 = new PageData(); PageData pd2 = new PageData();
pd2 = confinedspaceMapper.checkno(pd); pd2 = confinedspaceMapper.checkno(pd);
PageData pd3 = new PageData(); PageData pd3 = new PageData();
@ -278,6 +278,8 @@ public class ConfinedSpaceServiceImpl implements ConfinedSpaceService {
params2.put("value", "受限空间作业");// 存入上面参数名称所传递的值 params2.put("value", "受限空间作业");// 存入上面参数名称所传递的值
paramsList.add(params2); paramsList.add(params2);
sendMessageUtil.sendMessages(mes, paramsList); sendMessageUtil.sendMessages(mes, paramsList);
eightworkvideomanagerService.editStatus(cpd);
} }
map.put("result", errInfo); //返回结果 map.put("result", errInfo); //返回结果
return ; return ;

View File

@ -177,7 +177,6 @@ public class ElectricityServiceImpl implements ElectricityService {
return; return;
} else { } else {
electricityMapper.cancel(pd); electricityMapper.cancel(pd);
eightworkvideomanagerService.editStatus(cpd);
PageData mes = new PageData(); PageData mes = new PageData();
mes.put("RECEIVER_ID", pd.get("CONFIRM_USER_ID"));// 收信人userid mes.put("RECEIVER_ID", pd.get("CONFIRM_USER_ID"));// 收信人userid
mes.put("templateCode", "YD_ZF");// 短信模板编码 mes.put("templateCode", "YD_ZF");// 短信模板编码
@ -196,13 +195,14 @@ public class ElectricityServiceImpl implements ElectricityService {
params2.put("value", "临时用电安全作业");// 存入上面参数名称所传递的值 params2.put("value", "临时用电安全作业");// 存入上面参数名称所传递的值
paramsList.add(params2); paramsList.add(params2);
sendMessageUtil.sendMessages(mes, paramsList); sendMessageUtil.sendMessages(mes, paramsList);
eightworkvideomanagerService.editStatus(cpd);
} }
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
} }
}else{ }else{
electricityMapper.cancel(pd); electricityMapper.cancel(pd);
eightworkvideomanagerService.editStatus(cpd);
PageData pd2 = new PageData(); PageData pd2 = new PageData();
pd2 = electricityMapper.checkno(pd); pd2 = electricityMapper.checkno(pd);
PageData pd3 = new PageData(); PageData pd3 = new PageData();
@ -234,6 +234,7 @@ public class ElectricityServiceImpl implements ElectricityService {
params2.put("value", "临时用电安全作业");// 存入上面参数名称所传递的值 params2.put("value", "临时用电安全作业");// 存入上面参数名称所传递的值
paramsList.add(params2); paramsList.add(params2);
sendMessageUtil.sendMessages(mes, paramsList); sendMessageUtil.sendMessages(mes, paramsList);
eightworkvideomanagerService.editStatus(cpd);
} }
map.put("result", errInfo); //返回结果 map.put("result", errInfo); //返回结果
} }

View File

@ -165,7 +165,6 @@ public class HotworkServiceImpl implements HotworkService {
}else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") == null){ }else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") == null){
pd.put("APPLY_STATUS",-98); pd.put("APPLY_STATUS",-98);
hotworkMapper.cancel(pd); hotworkMapper.cancel(pd);
eightworkvideomanagerService.editStatus(cpd);
PageData pd2 = new PageData(); PageData pd2 = new PageData();
pd2 = hotworkMapper.checkno(pd); pd2 = hotworkMapper.checkno(pd);
PageData pd3 = new PageData(); PageData pd3 = new PageData();
@ -197,10 +196,11 @@ public class HotworkServiceImpl implements HotworkService {
params2.put("value", "动火作业");// 存入上面参数名称所传递的值 params2.put("value", "动火作业");// 存入上面参数名称所传递的值
paramsList.add(params2); paramsList.add(params2);
sendMessageUtil.sendMessages(mes, paramsList); sendMessageUtil.sendMessages(mes, paramsList);
eightworkvideomanagerService.editStatus(cpd);
}else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") != null && cpd.getString("MONITOR_USER_SIGNER_TIME") == null){ }else if (cpd!=null && cpd.size()>0 && cpd.getString("ANALYZE_TIME") != null && cpd.getString("MONITOR_USER_SIGNER_TIME") == null){
pd.put("APPLY_STATUS",-99); pd.put("APPLY_STATUS",-99);
hotworkMapper.cancel(pd); hotworkMapper.cancel(pd);
eightworkvideomanagerService.editStatus(cpd);
PageData pd2 = new PageData(); PageData pd2 = new PageData();
pd2 = hotworkMapper.checkno(pd); pd2 = hotworkMapper.checkno(pd);
PageData pd3 = new PageData(); PageData pd3 = new PageData();
@ -232,6 +232,8 @@ public class HotworkServiceImpl implements HotworkService {
params2.put("value", "动火作业");// 存入上面参数名称所传递的值 params2.put("value", "动火作业");// 存入上面参数名称所传递的值
paramsList.add(params2); paramsList.add(params2);
sendMessageUtil.sendMessages(mes, paramsList); sendMessageUtil.sendMessages(mes, paramsList);
eightworkvideomanagerService.editStatus(cpd);
} }
map.put("result", errInfo); //返回结果 map.put("result", errInfo); //返回结果

View File

@ -35,6 +35,9 @@ public interface VideoManagerService {
* @throws Exception * @throws Exception
*/ */
public void edit(PageData pd)throws Exception; public void edit(PageData pd)throws Exception;
public void editPls(PageData pd)throws Exception;
public void editIsShowBycorpinfoid(PageData pd)throws Exception; public void editIsShowBycorpinfoid(PageData pd)throws Exception;
public void editIsShow(PageData pd)throws Exception; public void editIsShow(PageData pd)throws Exception;

View File

@ -50,6 +50,11 @@ public class VideoManagerServiceImpl implements VideoManagerService {
public void edit(PageData pd)throws Exception{ public void edit(PageData pd)throws Exception{
videomanagerMapper.edit(pd); videomanagerMapper.edit(pd);
} }
public void editPls(PageData pd)throws Exception{
videomanagerMapper.editPls(pd);
}
public void editIsShowBycorpinfoid(PageData pd)throws Exception{ public void editIsShowBycorpinfoid(PageData pd)throws Exception{
videomanagerMapper.editIsShowBycorpinfoid(pd); videomanagerMapper.editIsShowBycorpinfoid(pd);
} }

View File

@ -173,9 +173,9 @@
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 --> <if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
and and
( (
f.NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%') bc.VIDEONAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
or or
f.CHECK_NO LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%') bc.GBS_NUM LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
) )
</if> </if>
ORDER BY f.CREATTIME DESC ORDER BY f.CREATTIME DESC

View File

@ -22,7 +22,9 @@
f.ISDELETE, f.ISDELETE,
f.ISSHOW, f.ISSHOW,
f.GBS_NUM, f.GBS_NUM,
f.VIDEOMANAGER_ID f.VIDEOMANAGER_ID,
f.PLS_ID,
f.CODE
</sql> </sql>
<!-- 字段用于新增 --> <!-- 字段用于新增 -->
@ -34,7 +36,9 @@
OPUSER, OPUSER,
ISDELETE, ISDELETE,
ISSHOW, ISSHOW,
VIDEOMANAGER_ID VIDEOMANAGER_ID,
PLS_ID,
CODE
</sql> </sql>
<!-- 字段值 --> <!-- 字段值 -->
@ -46,7 +50,9 @@
#{OPUSER}, #{OPUSER},
#{ISDELETE}, #{ISDELETE},
#{ISSHOW}, #{ISSHOW},
#{VIDEOMANAGER_ID} #{VIDEOMANAGER_ID},
#{PLS_ID},
#{CODE}
</sql> </sql>
<!-- 新增--> <!-- 新增-->
@ -87,11 +93,25 @@
<if test="ISSHOW != null and ISSHOW != ''"><!-- 关键词检索 --> <if test="ISSHOW != null and ISSHOW != ''"><!-- 关键词检索 -->
ISSHOW = #{ISSHOW}, ISSHOW = #{ISSHOW},
</if> </if>
<if test="CODE != null and CODE != ''"><!-- 关键词检索 -->
CODE = #{CODE},
</if>
VIDEOMANAGER_ID = VIDEOMANAGER_ID VIDEOMANAGER_ID = VIDEOMANAGER_ID
where where
VIDEOMANAGER_ID = #{VIDEOMANAGER_ID} VIDEOMANAGER_ID = #{VIDEOMANAGER_ID}
</update> </update>
<!-- 修改 -->
<update id="editPls" parameterType="pd">
update
<include refid="tableName"></include>
set
PLS_ID = #{PLS_ID}
where
VIDEOMANAGER_ID = #{VIDEOMANAGER_ID}
</update>
<update id="editIsShowBycorpinfoid" parameterType="pd"> <update id="editIsShowBycorpinfoid" parameterType="pd">
update update
<include refid="tableName"></include> <include refid="tableName"></include>