forked from integrated_whb/integrated_whb
八项作业添加监控
parent
ee7ecdaa0a
commit
6cfc72304b
|
@ -0,0 +1,258 @@
|
|||
package com.zcloud.controller.eightWork;
|
||||
|
||||
import com.zcloud.controller.base.BaseController;
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.logs.LogAnno;
|
||||
import com.zcloud.service.eightWork.EightWorkVideoManagerService;
|
||||
import com.zcloud.service.video.VideoManagerService;
|
||||
import com.zcloud.util.DateUtil;
|
||||
import com.zcloud.util.Jurisdiction;
|
||||
import com.zcloud.util.ObjectExcelView;
|
||||
import com.zcloud.util.Tools;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 说明:盲板作业
|
||||
* 作者:luoxiaobao
|
||||
* 时间:2021-08-23
|
||||
* 官网:www.zcloudchina.com
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/eightworkvideomanager")
|
||||
public class EightWorkVideoManagerController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private EightWorkVideoManagerService eightworkvideomanagerService;
|
||||
@Autowired
|
||||
private VideoManagerService videomanagerService;
|
||||
|
||||
|
||||
/**新增
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/add")
|
||||
@ResponseBody
|
||||
public Object add() throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("EIGHTWORKVIDEOMANAGER_ID", this.get32UUID()); //主键
|
||||
pd.put("CREATOR", Jurisdiction.getUsername()); //添加人
|
||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间
|
||||
pd.put("OPERATOR", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
pd.put("ISDELETE", "0");
|
||||
eightworkvideomanagerService.save(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**去修改页面获取数据
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/goEdit")
|
||||
@ResponseBody
|
||||
public Object goEdit() throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd = eightworkvideomanagerService.findById(pd); //根据ID读取
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**删除
|
||||
* @param out
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/delete")
|
||||
@ResponseBody
|
||||
public Object delete() throws Exception{
|
||||
Map<String,String> map = new HashMap<String,String>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
eightworkvideomanagerService.delete(pd);
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
||||
/**修改
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/edit")
|
||||
@ResponseBody
|
||||
public Object edit() throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
eightworkvideomanagerService.edit(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**列表
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/list")
|
||||
@ResponseBody
|
||||
@LogAnno(menuType= "高危作业管理",menuServer= "盲板作业管理",instructionsOperate = "盲板作业数据",instructionsType = "列表")
|
||||
public Object list(Page page) throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件
|
||||
if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim());
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
pd.put("ISMAIN", Jurisdiction.getIS_MAIN());
|
||||
pd.put("ISSUPERVISE", Jurisdiction.getISSUPERVISE());
|
||||
pd.put("DEPARTMENT_ID", Jurisdiction.getDEPARTMENT_ID());
|
||||
String DEPTIDS = pd.getString("DEPTIDS");
|
||||
if(Tools.notEmpty(DEPTIDS)) {
|
||||
String DEPT_IDS[] = DEPTIDS.split(",");
|
||||
pd.put("DEPT_IDS", DEPT_IDS);
|
||||
}
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = eightworkvideomanagerService.list(page); //列出eightworkvideomanager列表
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**批量删除
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/deleteAll")
|
||||
@ResponseBody
|
||||
public Object deleteAll() throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
String DATA_IDS = pd.getString("DATA_IDS");
|
||||
if(Tools.notEmpty(DATA_IDS)){
|
||||
String ArrayDATA_IDS[] = DATA_IDS.split(",");
|
||||
eightworkvideomanagerService.deleteAll(ArrayDATA_IDS);
|
||||
errInfo = "success";
|
||||
}else{
|
||||
errInfo = "error";
|
||||
}
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
||||
/**导出到excel
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/excel")
|
||||
@RequiresPermissions("toExcel")
|
||||
public ModelAndView exportExcel() throws Exception{
|
||||
ModelAndView mv = new ModelAndView();
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
List<String> titles = new ArrayList<String>();
|
||||
titles.add("设备管线名"); //1
|
||||
titles.add("所属企业"); //2
|
||||
titles.add("申请部门"); //3
|
||||
titles.add("申请人"); //4
|
||||
titles.add("删除标志"); //5
|
||||
titles.add("创建时间"); //6
|
||||
titles.add("添加人"); //7
|
||||
titles.add("修改时间"); //8
|
||||
titles.add("修改人"); //9
|
||||
titles.add("编号"); //10
|
||||
titles.add("申请单位负责人签字"); //11
|
||||
titles.add("申请单位负责人签字时间"); //12
|
||||
titles.add("介质"); //13
|
||||
titles.add("温度"); //14
|
||||
titles.add("施工单位"); //15
|
||||
titles.add("施工单位人"); //16
|
||||
titles.add("施工单位签字"); //17
|
||||
titles.add("施工单位签字时间"); //18
|
||||
titles.add("生产部门"); //19
|
||||
titles.add("生产部门人"); //20
|
||||
titles.add("生产部门签字"); //21
|
||||
titles.add("生产部门签字时间"); //22
|
||||
titles.add("安全部门"); //23
|
||||
titles.add("安全部门人"); //24
|
||||
titles.add("安全部门签字"); //25
|
||||
titles.add("安全部门签字时间"); //26
|
||||
titles.add("领导人部门"); //27
|
||||
titles.add("领导人"); //28
|
||||
titles.add("领导人签字"); //29
|
||||
titles.add("领导人签字时间"); //30
|
||||
titles.add("验收部门"); //31
|
||||
titles.add("验收人"); //32
|
||||
titles.add("验收签字"); //33
|
||||
titles.add("验收签字时间"); //34
|
||||
titles.add("状态"); //35
|
||||
dataMap.put("titles", titles);
|
||||
List<PageData> varOList = eightworkvideomanagerService.listAll(pd);
|
||||
List<PageData> varList = new ArrayList<PageData>();
|
||||
for(int i=0;i<varOList.size();i++){
|
||||
PageData vpd = new PageData();
|
||||
vpd.put("var1", varOList.get(i).getString("NAME")); //1
|
||||
vpd.put("var2", varOList.get(i).getString("CORP_INFO")); //2
|
||||
vpd.put("var3", varOList.get(i).getString("APPLY_DEPARTMENT_ID")); //3
|
||||
vpd.put("var4", varOList.get(i).getString("APPLY_USER_ID")); //4
|
||||
vpd.put("var5", varOList.get(i).get("ISDELETE").toString()); //5
|
||||
vpd.put("var6", varOList.get(i).getString("CREATTIME")); //6
|
||||
vpd.put("var7", varOList.get(i).getString("CREATOR")); //7
|
||||
vpd.put("var8", varOList.get(i).getString("OPERATTIME")); //8
|
||||
vpd.put("var9", varOList.get(i).getString("OPERATOR")); //9
|
||||
vpd.put("var10", varOList.get(i).getString("CHECK_NO")); //10
|
||||
vpd.put("var11", varOList.get(i).getString("APPLY_USER_SIGNER_PATH")); //11
|
||||
vpd.put("var12", varOList.get(i).getString("APPLY_USER_SIGNER_TIME")); //12
|
||||
vpd.put("var13", varOList.get(i).getString("MEDIUM")); //13
|
||||
vpd.put("var14", varOList.get(i).getString("TEMPERATURE")); //14
|
||||
vpd.put("var15", varOList.get(i).getString("CONSTRUCTION_DEPARTMENT_ID")); //15
|
||||
vpd.put("var16", varOList.get(i).getString("CONSTRUCTION_USER_ID")); //16
|
||||
vpd.put("var17", varOList.get(i).getString("CONSTRUCTION_USER_SIGNER_PATH")); //17
|
||||
vpd.put("var18", varOList.get(i).getString("CONSTRUCTION_USER_SIGNER_TIME")); //18
|
||||
vpd.put("var19", varOList.get(i).getString("PRODUCTION_DEPARTMENT_ID")); //19
|
||||
vpd.put("var20", varOList.get(i).getString("PRODUCTION_USER_ID")); //20
|
||||
vpd.put("var21", varOList.get(i).getString("PRODUCTION_USER_SIGNER_PATH")); //21
|
||||
vpd.put("var22", varOList.get(i).getString("PRODUCTION_USER_SIGNER_TIME")); //22
|
||||
vpd.put("var23", varOList.get(i).getString("SAFETY_DEPARTMENT_ID")); //23
|
||||
vpd.put("var24", varOList.get(i).getString("SAFETY_USER_ID")); //24
|
||||
vpd.put("var25", varOList.get(i).getString("SAFETY_USER_SIGNER_PATH")); //25
|
||||
vpd.put("var26", varOList.get(i).getString("SAFETY_USER_SIGNER_TIME")); //26
|
||||
vpd.put("var27", varOList.get(i).getString("LEADER_DEPARTMENT_ID")); //27
|
||||
vpd.put("var28", varOList.get(i).getString("LEADER_USER_ID")); //28
|
||||
vpd.put("var29", varOList.get(i).getString("LEADER_USER_SIGNER_PATH")); //29
|
||||
vpd.put("var30", varOList.get(i).getString("LEADER_USER_SIGNER_TIME")); //30
|
||||
vpd.put("var31", varOList.get(i).getString("ACCEPT_DEPARTMENT_ID")); //31
|
||||
vpd.put("var32", varOList.get(i).getString("ACCEPT_USER_ID")); //32
|
||||
vpd.put("var33", varOList.get(i).getString("ACCEPT_USER_SIGNER_PATH")); //33
|
||||
vpd.put("var34", varOList.get(i).getString("ACCEPT_USER_SIGNER_TIME")); //34
|
||||
vpd.put("var35", varOList.get(i).getString("APPLY_STATUS")); //35
|
||||
varList.add(vpd);
|
||||
}
|
||||
dataMap.put("varList", varList);
|
||||
ObjectExcelView erv = new ObjectExcelView();
|
||||
mv = new ModelAndView(erv,dataMap);
|
||||
return mv;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
package com.zcloud.mapper.datasource.eightWork;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 说明:盲板作业
|
||||
* 作者:luoxiaobao
|
||||
* 时间:2021-08-23
|
||||
* 官网:www.zcloudchina.com
|
||||
*/
|
||||
public interface EightWorkVideoManagerMapper {
|
||||
|
||||
/**新增
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void save(PageData pd);
|
||||
|
||||
/**删除
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void delete(PageData pd);
|
||||
|
||||
/**修改
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit(PageData pd);
|
||||
|
||||
/**修改
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void editStatus(PageData pd);
|
||||
|
||||
/**列表
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
|
||||
/**列表(全部)
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
List<PageData> listAll(PageData pd);
|
||||
|
||||
/**通过id获取数据
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
PageData findById(PageData pd);
|
||||
|
||||
/**批量删除
|
||||
* @param ArrayDATA_IDS
|
||||
* @throws Exception
|
||||
*/
|
||||
void deleteAll(String[] ArrayDATA_IDS);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
package com.zcloud.service.eightWork;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 说明:盲板作业
|
||||
* 作者:luoxiaobao
|
||||
* 时间:2021-08-23
|
||||
* 官网:www.zcloudchina.com
|
||||
*/
|
||||
public interface EightWorkVideoManagerService {
|
||||
|
||||
/**新增
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void save(PageData pd)throws Exception;
|
||||
|
||||
/**删除
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void delete(PageData pd)throws Exception;
|
||||
|
||||
/**修改
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit(PageData pd)throws Exception;
|
||||
|
||||
/**修改
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void editStatus(PageData pd)throws Exception;
|
||||
|
||||
|
||||
/**列表
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page)throws Exception;
|
||||
|
||||
/**列表(全部)
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> listAll(PageData pd)throws Exception;
|
||||
|
||||
/**通过id获取数据
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd)throws Exception;
|
||||
|
||||
/**批量删除
|
||||
* @param ArrayDATA_IDS
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteAll(String[] ArrayDATA_IDS)throws Exception;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.zcloud.service.eightWork.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.eightWork.EightWorkVideoManagerMapper;
|
||||
import com.zcloud.service.eightWork.EightWorkVideoManagerService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 说明:盲板作业
|
||||
* 作者:luoxiaobao
|
||||
* 时间:2021-08-23
|
||||
* 官网:www.zcloudchina.com
|
||||
*/
|
||||
@Service
|
||||
@Transactional //开启事物
|
||||
public class EightWorkVideoManagerServiceImpl implements EightWorkVideoManagerService {
|
||||
|
||||
@Autowired
|
||||
private EightWorkVideoManagerMapper eightworkvideomanagerMapper;
|
||||
|
||||
/**新增
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void save(PageData pd)throws Exception{
|
||||
eightworkvideomanagerMapper.save(pd);
|
||||
}
|
||||
|
||||
/**删除
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void delete(PageData pd)throws Exception{
|
||||
eightworkvideomanagerMapper.delete(pd);
|
||||
}
|
||||
|
||||
/**修改
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit(PageData pd)throws Exception{
|
||||
eightworkvideomanagerMapper.edit(pd);
|
||||
}
|
||||
|
||||
/**修改
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void editStatus(PageData pd)throws Exception{
|
||||
eightworkvideomanagerMapper.editStatus(pd);
|
||||
}
|
||||
|
||||
/**列表
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page)throws Exception{
|
||||
return eightworkvideomanagerMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
/**列表(全部)
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> listAll(PageData pd)throws Exception{
|
||||
return eightworkvideomanagerMapper.listAll(pd);
|
||||
}
|
||||
|
||||
/**通过id获取数据
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd)throws Exception{
|
||||
return eightworkvideomanagerMapper.findById(pd);
|
||||
}
|
||||
|
||||
/**批量删除
|
||||
* @param ArrayDATA_IDS
|
||||
* @throws Exception
|
||||
*/
|
||||
public void deleteAll(String[] ArrayDATA_IDS)throws Exception{
|
||||
eightworkvideomanagerMapper.deleteAll(ArrayDATA_IDS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,205 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.eightWork.EightWorkVideoManagerMapper">
|
||||
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
BUS_EIGHTWORK_VIDEOMANAGER
|
||||
</sql>
|
||||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
f.EIGHTWORKVIDEOMANAGER_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.VIDEOMANAGER_ID,
|
||||
f.CREATTIME,
|
||||
f.CREATOR,
|
||||
f.ISDELETE,
|
||||
f.OPERATTIME,
|
||||
f.OPERATOR,
|
||||
f.LONGITUDE,
|
||||
f.LATITUDE,
|
||||
f.CHECK_NO
|
||||
</sql>
|
||||
|
||||
<!-- 字段用于新增 -->
|
||||
<sql id="Field2">
|
||||
EIGHTWORKVIDEOMANAGER_ID,
|
||||
CORPINFO_ID,
|
||||
VIDEOMANAGER_ID,
|
||||
CREATTIME,
|
||||
CREATOR,
|
||||
ISDELETE,
|
||||
OPERATTIME,
|
||||
OPERATOR,
|
||||
LONGITUDE,
|
||||
LATITUDE,
|
||||
CHECK_NO
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{EIGHTWORKVIDEOMANAGER_ID},
|
||||
#{CORPINFO_ID},
|
||||
#{VIDEOMANAGER_ID},
|
||||
#{CREATTIME},
|
||||
#{CREATOR},
|
||||
#{ISDELETE},
|
||||
#{OPERATTIME},
|
||||
#{OPERATOR},
|
||||
#{LONGITUDE},
|
||||
#{LATITUDE},
|
||||
#{CHECK_NO}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field2"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1'
|
||||
where
|
||||
EIGHTWORKVIDEOMANAGER_ID = #{EIGHTWORKVIDEOMANAGER_ID}
|
||||
</delete>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
EIGHTWORKVIDEOMANAGER_ID = #{EIGHTWORKVIDEOMANAGER_ID},
|
||||
CORPINFO_ID = #{CORPINFO_ID},
|
||||
VIDEOMANAGER_ID = #{VIDEOMANAGER_ID},
|
||||
ISDELETE = #{ISDELETE},
|
||||
CREATTIME = #{CREATTIME},
|
||||
CREATOR = #{CREATOR},
|
||||
OPERATTIME = #{OPERATTIME},
|
||||
OPERATOR = #{OPERATOR},
|
||||
LONGITUDE = #{LONGITUDE},
|
||||
LATITUDE = #{LATITUDE},
|
||||
CHECK_NO = #{CHECK_NO}
|
||||
|
||||
where
|
||||
EIGHTWORKVIDEOMANAGER_ID = #{EIGHTWORKVIDEOMANAGER_ID}
|
||||
</update>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="editStatus" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1'
|
||||
where
|
||||
CHECK_NO = #{CHECK_NO}
|
||||
</update>
|
||||
|
||||
<!-- 通过ID获取数据 -->
|
||||
<select id="findById" parameterType="pd" resultType="pd">
|
||||
select
|
||||
f.EIGHTWORKVIDEOMANAGER_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.VIDEOMANAGER_ID,
|
||||
f.CREATTIME,
|
||||
f.CREATOR,
|
||||
f.ISDELETE,
|
||||
f.OPERATTIME,
|
||||
f.OPERATOR,
|
||||
f.LONGITUDE,
|
||||
f.LATITUDE,
|
||||
bc.VIDEONAME,
|
||||
bc.CODE,
|
||||
bc.GBS_NUM,
|
||||
bc.VIDEOURL,
|
||||
f.CHECK_NO
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join BUS_VIDEOMANAGER bc on bc.VIDEOMANAGER_ID = f.VIDEOMANAGER_ID and bc.ISDELETE = '0'
|
||||
where
|
||||
f.VIDEOMANAGER_ID = #{VIDEOMANAGER_ID} and
|
||||
f.ISDELETE = '0'
|
||||
<if test="CORPINFO_ID != null and CORPINFO_ID != ''"><!-- 关键词检索 -->
|
||||
and f.CORPINFO_ID=#{CORPINFO_ID}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 列表 -->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.EIGHTWORKVIDEOMANAGER_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.VIDEOMANAGER_ID,
|
||||
f.CREATTIME,
|
||||
f.CREATOR,
|
||||
f.ISDELETE,
|
||||
f.OPERATTIME,
|
||||
f.OPERATOR,
|
||||
f.LONGITUDE,
|
||||
f.LATITUDE,
|
||||
bc.VIDEONAME,
|
||||
bc.CODE,
|
||||
bc.GBS_NUM,
|
||||
bc.VIDEOURL,
|
||||
f.CHECK_NO
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join BUS_VIDEOMANAGER bc on bc.VIDEOMANAGER_ID = f.VIDEOMANAGER_ID and bc.ISDELETE = '0'
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.CORPINFO_ID != null and pd.CORPINFO_ID != ''">
|
||||
and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
</if>
|
||||
<if test="pd.CHECK_NO != null and pd.CHECK_NO != ''">
|
||||
and f.CHECK_NO = #{pd.CHECK_NO}
|
||||
</if>
|
||||
<if test="pd.CREATOR != null and pd.CREATOR != ''">
|
||||
and f.CREATOR = #{pd.CREATOR}
|
||||
</if>
|
||||
|
||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||
and
|
||||
(
|
||||
bc.VIDEONAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
|
||||
or
|
||||
bc.GBS_NUM LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
|
||||
)
|
||||
</if>
|
||||
ORDER BY f.CREATTIME DESC
|
||||
</select>
|
||||
<!-- 列表(全部) -->
|
||||
<select id="listAll" parameterType="pd" resultType="pd">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
</select>
|
||||
|
||||
<!-- 批量删除 -->
|
||||
<delete id="deleteAll" parameterType="String">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1'
|
||||
where
|
||||
EIGHTWORKVIDEOMANAGER_ID in
|
||||
<foreach item="item" index="index" collection="ArrayDATA_IDS" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue