VentureManageService 类

package com.starise.project.service.impl.fxgl;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;


import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.starise.project.dao.IVentureManageDao;
import com.starise.project.service.common.ICommonService;
import com.starise.project.service.fxgl.IVentureManageService;
import com.starise.project.util.Constants;
import com.starise.project.util.Toolkits;
import com.starise.project.util.Constants.OperateModual;
import com.starise.project.util.Constants.OperateType;


@Service("ventureManageService")
public class VentureManageService implements IVentureManageService{
private static final Logger logger= Logger.getLogger(VentureManageService.class);

@Autowired
private IVentureManageDao ventureManageDao = null;
@Autowired
private ICommonService commonServiceImpl = null;



/************************************检查内容信息维护模块 *****************************************/

@Override
public Map insertCheckContent(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加检查内容信息请求-------->:"+paramMap);
String id=UUID.randomUUID().toString().replace("-", "");
paramMap.put("id",id);
ventureManageDao.insertCheckContent(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加检查内容信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加检查内容信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map updateCheckContent(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新检查内容信息请求-------->:"+paramMap);
ventureManageDao.updateCheckContent(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新检查内容信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 更新检查内容信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map queryCheckContent(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据条件查询检查内容信息  请求-------->:"+paramMap);
String nrTotal=ventureManageDao.queryCheckContentTotal(paramMap);
if(null != nrTotal && !"0".equals(nrTotal)){
List allCheckList = ventureManageDao.queryCheckContent(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",allCheckList,nrTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("根据条件查询检查内容信息   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   根据条件查询检查内容信息   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map queryCheckContentById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据ID查询检查内容详细信息  请求-------->:"+paramMap);
List checkInfoList = ventureManageDao.queryCheckContentById(paramMap);
if(null != checkInfoList && checkInfoList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",checkInfoList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("根据ID查询检查内容详细信息   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   根据ID查询检查内容详细信息   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map deleteCheckContent(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("删除检查内容信息请求-------->:"+paramMap);
ventureManageDao.deleteCheckContent(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("删除检查内容信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   删除检查内容信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}


/************************************营业(前/后)/录像检查信息维护模块 *******************************/

@Override
public Map queryAllSalesCheck(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询所有营业检查列表(前/后)请求-------->:"+paramMap);
String yyTotal=ventureManageDao.queryAllSalesCheckTotal(paramMap);
if(null != yyTotal && !"0".equals(yyTotal)){
List allCheckList = ventureManageDao.queryAllSalesCheck(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",allCheckList,yyTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询所有营业检查列表(前/后)返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 查询所有营业检查列表(前/后)  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryAllVideoCheck(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询所有录像检查列表  请求-------->:"+paramMap);
String lxTotal=ventureManageDao.queryAllVideoCheckTotal(paramMap);
if(null != lxTotal && !"0".equals(lxTotal)){
List allCheckList = ventureManageDao.queryAllVideoCheck(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",allCheckList,lxTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询所有录像检查列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询所有录像检查列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map querySalesCheckDetail(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据ID和类型查询营业检查明细请求-------->:"+paramMap);
List allCheckList = ventureManageDao.querySalesCheckDetail(paramMap);
if(null != allCheckList && allCheckList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",allCheckList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("根据ID和类型查询营业检查明细返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  根据ID和类型查询营业检查明细   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}

@Override
public Map queryVideoCheckDetail(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据ID和类型查询录像检查明细请求-------->:"+paramMap);
List allCheckList = ventureManageDao.queryVideoCheckDetail(paramMap);
if(null != allCheckList && allCheckList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",allCheckList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("根据ID和类型查询录像检查明细返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  根据ID和类型查询录像检查明细   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}

@Override
public Map deleteSalesCheckById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据id删除营业检查请求-------->:"+paramMap);
//删除营业检查信息
ventureManageDao.deleteSalesCheckById(paramMap);
//根据检查id删除检查明细信息
ventureManageDao.deleteCheckDetailById(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("根据id删除营业检查返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJC.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJC.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 根据id删除营业检查  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}


@Override
public Map deleteVideoCheckById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据id删除录像检查请求-------->:"+paramMap);
//删除录像检查信息
ventureManageDao.deleteVideoCheckById(paramMap);
//根据检查id删除检查明细信息
ventureManageDao.deleteCheckDetailById(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("根据id删除录像检查返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJC.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJC.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 根据id删除录像检查  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}

@Override
public Map insertSalesCheck(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加营业检查信息请求-------->:"+paramMap);
//营业检查ID
String id=UUID.randomUUID().toString().replace("-", "");
paramMap.put("id",id);
paramMap.put("yyjcid",id);
ventureManageDao.insertSalesCheck(paramMap);
//添加营业检查明细
List yyjcmxList=(List)paramMap.get("yyjcmx");
if(null != yyjcmxList && yyjcmxList.size() > 0){
Map yyjcmxMap=null;
String yyjcid=String.valueOf(paramMap.get("yyjcid"));
for(int i=0;i<yyjcmxList.size();i++){
yyjcmxMap=(Map) yyjcmxList.get(i);
yyjcmxMap.put("id", UUID.randomUUID().toString().replace("-", ""));
yyjcmxMap.put("jcid", yyjcid);
ventureManageDao.insertCheckDetail(yyjcmxMap);
}
}
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加营业检查信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJC.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJC.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加营业检查信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map insertVideoCheck(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加录像检查信息请求-------->:"+paramMap);

//String countNum = ventureManageDao.queryCountNumber(paramMap);
//录像检查ID
String id=UUID.randomUUID().toString().replace("-", "");
paramMap.put("id",id);
paramMap.put("lxjcid",id);
//检查次数
//paramMap.put("dtjccs", Integer.valueOf(countNum) + 1);
ventureManageDao.insertVideoCheck(paramMap);
//添加录像检查明细
List lxjcmxList=(List)paramMap.get("lxjcmx");
if(null != lxjcmxList && lxjcmxList.size() > 0){
Map lxjcmxMap=null;
String lxjcid=String.valueOf(paramMap.get("lxjcid"));
for(int i=0;i<lxjcmxList.size();i++){
lxjcmxMap=(Map) lxjcmxList.get(i);
lxjcmxMap.put("id", UUID.randomUUID().toString().replace("-", ""));
lxjcmxMap.put("jcid", lxjcid);
ventureManageDao.insertCheckDetail(lxjcmxMap);
}
}
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加录像检查信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJC.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJC.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加录像检查信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map queryCountNumber(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据检查时间/机构查询录像检查次数信息请求-------->:"+paramMap);
String countNum = ventureManageDao.queryCountNumber(paramMap);
//检查次数+1
if(null != countNum && !"0".equals(countNum)){
returnMap=Toolkits.buildSuccessMap("查询成功!",countNum);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("根据检查时间/机构查询录像检查次数信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 根据检查时间/机构查询录像检查次数信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map insertCheckDetail(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加营业/录像检查明细信息请求-------->:"+paramMap);
ventureManageDao.insertCheckDetail(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加营业/录像检查明细信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJC.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJC.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加营业/录像检查明细信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map updateSalesCheckMessage(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新营业检查信息请求-------->:"+paramMap);
//更新营业检查主表信息
ventureManageDao.updateSalesCheckMessage(paramMap);
//更新营业检查信息——删除原有营业检查明细信息
ventureManageDao.deleteCheckDetailById(paramMap);
//重新插入营业检查明细信息
List yyjcmxList=(List)paramMap.get("yyjcmx");
if(null != yyjcmxList && yyjcmxList.size() > 0){
Map yyjcmxMap=null;
for(int i=0;i<yyjcmxList.size();i++){
yyjcmxMap=(Map) yyjcmxList.get(i);
yyjcmxMap.put("id", UUID.randomUUID().toString().replace("-", ""));
yyjcmxMap.put("jcid", paramMap.get("jcid"));
ventureManageDao.insertCheckDetail(yyjcmxMap);
}
}
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新营业检查信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJC.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJC.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 更新营业检查信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map updateVideoCheckMessage(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新录像检查信息  请求-------->:"+paramMap);
//更新录像检查主表信息
ventureManageDao.updateVideoCheckMessage(paramMap);
//更新录像检查信息——删除原有录像检查明细信息
ventureManageDao.deleteCheckDetailById(paramMap);
//重新插入录像检查明细信息
List lxjcmxList=(List)paramMap.get("lxjcmx");
if(null != lxjcmxList && lxjcmxList.size() > 0){
Map lxjcmxMap=null;
for(int i=0;i<lxjcmxList.size();i++){
lxjcmxMap=(Map) lxjcmxList.get(i);
lxjcmxMap.put("id", UUID.randomUUID().toString().replace("-", ""));
lxjcmxMap.put("jcid", paramMap.get("jcid"));
ventureManageDao.insertCheckDetail(lxjcmxMap);
}
}
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新录像检查信息  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJC.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJC.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 更新录像检查信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map salesContrast(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;


try {
logger.info("查询营业(前/后)检查对比  请求-------->:"+paramMap);
String jcid=String.valueOf(paramMap.get("jcid"));
String[] jcids=jcid.split(",");
paramMap.put("jcidList", jcids);
List conList = ventureManageDao.salesContrast(paramMap);
if(null != conList && conList.size() > 0){
Map map=(Map)conList.get(0);
List salesList = ventureManageDao.contrastSubtabulation(paramMap);
map.put("sales", salesList);
returnMap=Toolkits.buildSuccessMap("查询成功!",map);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询营业(前/后)检查对比  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询营业(前/后)检查对比  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map videoContrast(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询录像检查对比  请求-------->:"+paramMap);
String jcid=String.valueOf(paramMap.get("jcid"));
String[] jcids=jcid.split(",");
paramMap.put("jcidList", jcids);
List conList = ventureManageDao.videoContrast(paramMap);
if(null != conList && conList.size() > 0){
Map map=(Map)conList.get(0);
List videoList = ventureManageDao.contrastSubtabulation(paramMap);
map.put("video", videoList);
returnMap=Toolkits.buildSuccessMap("查询成功!",map);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询录像检查对比  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  录像检查对比  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}



@Override
public Map contrastSubtabulation(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;


try {
logger.info("查询营业(前/后)、录像检查对比  请求-------->:"+paramMap);
String jcid=String.valueOf(paramMap.get("jcid"));
String[] jcids=jcid.split(",");
paramMap.put("jcidList", jcids);
List conList = ventureManageDao.contrastSubtabulation(paramMap);

String temp = "";
List allList = new ArrayList();
if(null != conList && conList.size() > 0){
for(int i=0; i<conList.size(); i++){
Map reMap = (Map) conList.get(i);
if(i==0){
temp = (String) reMap.get("jcid");
Map rsMap = new HashMap();
List one = new ArrayList();
rsMap.put("jcid", temp);
one.add(reMap);
rsMap.put("jcList", one);
allList.add(rsMap);
}else{
temp = (String) reMap.get("jcid");

Boolean res = false;
for(int j=0;j<allList.size();j++){
Map aMap = (Map)allList.get(j);
if(temp.equals(aMap.get("jcid"))){
List jcList = (List) aMap.get("jcList");
jcList.add(reMap);
res = true;
break;
}
}
if(res == false){
Map rsMap = new HashMap();
List other = new ArrayList();
rsMap.put("jcid", temp);
other.add(reMap);
rsMap.put("jcList", other);
allList.add(rsMap);
}

}
}
returnMap=Toolkits.buildSuccessMap("查询成功!",allList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询营业(前/后)、录像检查对比  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJC.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询营业(前/后)、录像检查对比  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}



/************************************联防报警测试及防区信息维护模块 ******************************/

@Override
public Map insertDefenseAlarm(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加联防报警测试信息请求-------->:"+paramMap);

//联防报警测试ID
String id=UUID.randomUUID().toString().replace("-", "");
paramMap.put("id",id);
paramMap.put("lfbjcsid", id);
ventureManageDao.insertDefenseAlarm(paramMap);
//添加防区关联
List fqglmxList=(List)paramMap.get("fqglmx");
if(null != fqglmxList && fqglmxList.size() > 0){
Map fqglmxMap=null;
String lfbjcsid=String.valueOf(paramMap.get("lfbjcsid"));
for(int i=0;i<fqglmxList.size();i++){
fqglmxMap=(Map) fqglmxList.get(i);
fqglmxMap.put("id", UUID.randomUUID().toString().replace("-", ""));
fqglmxMap.put("lfbjcsid", lfbjcsid);
ventureManageDao.insertJointDefenceArea(fqglmxMap);
}
}
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加联防报警测试信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZLFBJCS.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZLFBJCS.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  添加联防报警测试信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map insertJointDefenceArea(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加联防报警测试_防区关联信息请求-------->:"+paramMap);
ventureManageDao.insertJointDefenceArea(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加联防报警测试_防区关联信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZLFBJCS.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZLFBJCS.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加联防报警测试_防区关联信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryDefenseAlarm(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询联防报警测试列表  请求-------->:"+paramMap);
String lfbjTotal=ventureManageDao.queryDefenseAlarmTotal(paramMap);
if(null != lfbjTotal && !"0".equals(lfbjTotal)){
List allList = ventureManageDao.queryDefenseAlarm(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",allList,lfbjTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询联防报警测试列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXLFBJCS.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXLFBJCS.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询联防报警测试列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryJointDefenceArea(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询联防报警测试_防区关联请求-------->:"+paramMap);
List allList = ventureManageDao.queryJointDefenceArea(paramMap);
if(null != allList && allList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",allList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询联防报警测试_防区关联返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXLFBJCS.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXLFBJCS.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询联防报警测试_防区关联   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}

@Override
public Map deleteDefenseAlarmById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据id删除联防报警测试请求-------->:"+paramMap);
//删除联防报警测试信息
ventureManageDao.deleteDefenseAlarmById(paramMap);
//根据联防报警测试id删除防区关联信息
ventureManageDao.deleteJointDefenceAreaById(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("根据id删除联防报警测试返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCLFBJCS.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCLFBJCS.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   根据id删除联防报警测试  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}

@Override
public Map updateDefenseAlarm(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新联防报警测试信息请求-------->:"+paramMap);
//更新联防报警测试信息
ventureManageDao.updateDefenseAlarm(paramMap);
//更新联防报警测试信息——删除原有联防报警测试_防区关联
ventureManageDao.deleteJointDefenceAreaById(paramMap);
//重新插入联防报警测试_防区关联
List fqglmxList=(List)paramMap.get("fqglmx");
if(null != fqglmxList && fqglmxList.size() > 0){
Map fqglmxMap=null;
for(int i=0;i<fqglmxList.size();i++){
fqglmxMap=(Map) fqglmxList.get(i);
fqglmxMap.put("id", UUID.randomUUID().toString().replace("-", ""));
fqglmxMap.put("lfbjcsid", paramMap.get("lfbjcsid"));
ventureManageDao.insertJointDefenceArea(fqglmxMap);
}
}
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新联防报警测试信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGLFBJCS.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGLFBJCS.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  更新联防报警测试信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}





/************************************培训教育信息维护模块 *****************************************/

@Override
public Map insertTrainingProject(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加培训项目信息请求-------->:"+paramMap);
// String id=UUID.randomUUID().toString().replace("-", "");
// paramMap.put("id",id);
ventureManageDao.insertTrainingProject(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加培训项目信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZPXXM.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZPXXM.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加培训项目信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryTrainingProject(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询培训项目信息列表  请求-------->:"+paramMap);
String pxxmTotal=ventureManageDao.queryTrainingProjectTotal(paramMap);
if(null != pxxmTotal && !"0".equals(pxxmTotal)){
List allList = ventureManageDao.queryTrainingProject(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",allList,pxxmTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询培训项目信息列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询培训项目信息列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map checkVenturePxBmOrMc(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("培训项目 -验证 编码请求-------->:"+paramMap);
List checkList=ventureManageDao.checkVenturePxBmOrMc(paramMap);
if(null != checkList && checkList.size() > 0){
returnMap=Toolkits.buildSuccessMap("操作成功!",checkList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据!");
}
logger.info("培训项目 -验证 编码返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);

} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   培训项目 -验证 编码  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map queryInitTraining(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询培训项目用于下拉框请求-------->:"+paramMap);
List initList=ventureManageDao.queryInitTraining(paramMap);
if(null != initList && initList.size() > 0){
returnMap=Toolkits.buildSuccessMap("操作成功!",initList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据!");
}
logger.info("查询培训项目用于下拉框返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);

} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   查询培训项目用于下拉框  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryTrainingProjectById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据ID查询培训项目详细信息  请求-------->:"+paramMap);
List tpInfoList = ventureManageDao.queryTrainingProjectById(paramMap);
if(null != tpInfoList && tpInfoList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",tpInfoList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("根据ID查询培训项目详细信息   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXXM.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   根据ID查询培训项目详细信息   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map updateTrainingProject(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新培训项目信息请求-------->:"+paramMap);
ventureManageDao.updateTrainingProject(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新培训项目信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGPXXM.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGPXXM.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 更新培训项目信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map deleteTrainingProjectById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("删除培训项目信息请求-------->:"+paramMap);
ventureManageDao.deleteTrainingProjectById(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("删除培训项目信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCPXXM.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCPXXM.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   删除培训项目信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map insertTrainingEducation(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加培训教育信息请求-------->:"+paramMap);
String id=UUID.randomUUID().toString().replace("-", "");
paramMap.put("id",id);
ventureManageDao.insertTrainingEducation(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加培训教育信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZPXJY.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZPXJY.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加培训教育信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryTrainingEducation(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询培训教育信息列表  请求-------->:"+paramMap);
String pxjyTotal=ventureManageDao.queryTrainingEducationTotal(paramMap);
if(null != pxjyTotal && !"0".equals(pxjyTotal)){
List allList = ventureManageDao.queryTrainingEducation(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",allList,pxjyTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询培训教育信息列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXJY.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXJY.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询培训教育信息列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryDrillProjectMultiCheck(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询演练项目用于多选  请求-------->:"+paramMap);
List checkList = ventureManageDao.queryDrillProjectMultiCheck(paramMap);
if(null != checkList && checkList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",checkList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询演练项目用于多选  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询演练项目用于多选  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map queryTrainingEducationById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("根据ID查询培训教育详细信息  请求-------->:"+paramMap);
List teInfoList = ventureManageDao.queryTrainingEducationById(paramMap);
if(null != teInfoList && teInfoList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",teInfoList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("根据ID查询培训教育详细信息   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXJY.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXPXJY.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   根据ID查询培训教育详细信息   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map deleteTrainingEducationById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("删除培训教育信息请求-------->:"+paramMap);
ventureManageDao.deleteTrainingEducationById(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("删除培训教育信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCPXJY.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCPXJY.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   删除培训教育信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map updateTrainingEducation(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新培训教育信息请求-------->:"+paramMap);
ventureManageDao.updateTrainingEducation(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新培训教育信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGPXJY.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGPXJY.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 更新培训教育信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}




/*******************************************检查大类/检查小类管理********************************************/

@Override
public Map insertExaminationCategories(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加检查大类信息请求-------->:"+paramMap);
//添加检查大类
ventureManageDao.insertExaminationCategories(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加检查大类信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJCDL.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJCDL.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 添加检查大类信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map deleteExaminationCategoriesById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("删除检查大类信息请求-------->:"+paramMap);
//删除检查大类信息
ventureManageDao.deleteExaminationCategoriesById(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("删除检查大类信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJCDL.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJCDL.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 删除检查大类信息信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}

@Override
public Map updateExaminationCategories(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新检查大类信息请求-------->:"+paramMap);
//更新大类信息
ventureManageDao.updateExaminationCategories(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新检查大类信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJCDL.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJCDL.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   更新检查大类信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map queryExaminationCategories(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询检查大类列表  请求-------->:"+paramMap);
String jcdlTotal=ventureManageDao.queryExaminationCategoriesTotal(paramMap);
if(null != jcdlTotal && !"0".equals(jcdlTotal)){
List jcdlList = ventureManageDao.queryExaminationCategories(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",jcdlList,jcdlTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询检查大类列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询检查大类列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map insertCheckTheSmallClass(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("添加检查小类信息请求-------->:"+paramMap);
ventureManageDao.insertCheckTheSmallClass(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("添加检查小类信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJCXL.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XZJCXL.toString(), OperateType.OPERATE_TYPE_ADD.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   添加检查小类信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map deleteCheckTheSmallClassById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("删除检查小类信息请求-------->:"+paramMap);
//删除检查小类信息
ventureManageDao.deleteCheckTheSmallClassById(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");

logger.info("删除检查小类信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJCXL.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap = Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_SCJCXL.toString(), OperateType.OPERATE_TYPE_DELETE.toString(), Constants.OPERATE_FAILURE);
logger.error("service层 删除检查小类信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);
return returnMap;
}

@Override
public Map updateCheckTheSmallClass(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("更新检查小类信息请求-------->:"+paramMap);
//更新小类信息
ventureManageDao.updateCheckTheSmallClass(paramMap);
returnMap=Toolkits.buildSuccessMap("操作成功!");
logger.info("更新检查小类信息返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJCXL.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_XGJCXL.toString(), OperateType.OPERATE_TYPE_MODIFY.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  更新检查小类信息  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryCheckTheSmallClass(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询检查小类列表  请求-------->:"+paramMap);
String jcxlTotal=ventureManageDao.queryCheckTheSmallClassTotal(paramMap);
if(null != jcxlTotal && !"0".equals(jcxlTotal)){
List jcxlList = ventureManageDao.queryCheckTheSmallClass(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",jcxlList,jcxlTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询检查大类列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCXL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCXL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询检查小类列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

@Override
public Map queryExaminationCategoriesById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询检查大类详细信息  请求-------->:"+paramMap);
List jcdlList = ventureManageDao.queryExaminationCategoriesById(paramMap);
if(null != jcdlList && jcdlList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",jcdlList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询检查大类详细信息   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   查询检查大类详细信息   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryCheckTheSmallClassById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询检查小类详细信息  请求-------->:"+paramMap);
List jcxlList = ventureManageDao.queryCheckTheSmallClassById(paramMap);
if(null != jcxlList && jcxlList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",jcxlList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询检查小类详细信息   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCXL.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCXL.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   查询检查小类详细信息   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryInitExamination(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询检查大类用于下拉框请求-------->:"+paramMap);
List initList=ventureManageDao.queryInitExamination(paramMap);
if(null != initList && initList.size() > 0){
returnMap=Toolkits.buildSuccessMap("操作成功!",initList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据!");
}
logger.info("查询检查大类用于下拉框返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);

} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询检查大类用于下拉框  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


public Map checkDlBmOrMc(Map paramMap) throws Exception{
Map returnMap=null;
Map logMap=null;

try {
logger.info("校验检查大类  编码请求-------->:"+paramMap);
List dlbmList=ventureManageDao.checkDlBmOrMc(paramMap);
if(null != dlbmList && dlbmList.size() > 0){
returnMap=Toolkits.buildSuccessMap("操作成功!",dlbmList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据!");
}
logger.info("校验检查大类  编码返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);

} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCDL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  校验检查大类  编码  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

public Map checkXlBmOrMc(Map paramMap) throws Exception{
Map returnMap=null;
Map logMap=null;

try {
logger.info("校验检查小类  编码请求-------->:"+paramMap);
List xlbmList=ventureManageDao.checkXlBmOrMc(paramMap);
if(null != xlbmList && xlbmList.size() > 0){
returnMap=Toolkits.buildSuccessMap("操作成功!",xlbmList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据!");
}
logger.info("校验检查小类  编码返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCXL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);

} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCXL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  校验检查小类  编码  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


/************************************检查监督信息维护模块 *****************************************/

@Override
public Map queryInspectionSupervision(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询检查监督列表  请求-------->:"+paramMap);
String jcjdTotal=ventureManageDao.queryInspectionSupervisionTotal(paramMap);
if(null != jcjdTotal && !"0".equals(jcjdTotal)){
List jcjdList = ventureManageDao.queryInspectionSupervision(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",jcjdList,jcjdTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询检查监督列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCJD.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCJD.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询检查监督列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


@Override
public Map queryInspectionSupervisionById(Map paramMap) throws Exception {
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询检查监督详细信息  请求-------->:"+paramMap);
List jcjdList = ventureManageDao.queryInspectionSupervisionById(paramMap);
if(null != jcjdList && jcjdList.size() > 0){
Map map=(Map)jcjdList.get(0);
List wttzList=ventureManageDao.queryInspectionSupervisionWttz(paramMap);
map.put("wttz", wttzList);
List qzzkList=ventureManageDao.queryInspectionSupervisionQzzk(paramMap);
map.put("qzzk", qzzkList);
returnMap=Toolkits.buildSuccessMap("查询成功!",map);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询检查监督详细信息   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCJD.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_CXJCJD.toString(), OperateType.OPERATE_TYPE_QUERY_MX.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   查询检查小类详细信息   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

public Map queryInspectionResult(Map paramMap) throws Exception{
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询枪支信息用于检查结果  请求-------->:"+paramMap);
List resultList = ventureManageDao.queryInspectionResult(paramMap);
if(null != resultList && resultList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",resultList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询枪支信息用于检查结果   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   查询枪支信息用于检查结果   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

public Map queryProblemOfAttribute(Map paramMap) throws Exception{
Map returnMap=null;
Map logMap=null;

try {
logger.info("查询业务字典用于问题属性  请求-------->:"+paramMap);
List problemList = ventureManageDao.queryProblemOfAttribute(paramMap);
if(null != problemList && problemList.size() > 0){
returnMap=Toolkits.buildSuccessMap("查询成功!",problemList);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询业务字典用于问题属性   返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层   查询业务字典用于问题属性   异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}

/************************************统计:安检日志查询信息维护模块  *****************************************/

/**
* ffbs=0:营业前检查,
* ffbs=1:营业后检查,
* ffbs=2:录像检查,
* ffbs=3:联防报警测试,
* ffbs=4:培训教育
*/
@Override
public Map queryAjrzCount(Map paramMap) throws Exception{

Map returnMap=null;
Map logMap=null;

try {
logger.info("查询统计安检日志列表  请求-------->:"+paramMap);
String countAjrzTotal=ventureManageDao.queryAjrzCountTotal(paramMap);
if(null != countAjrzTotal && !"0".equals(countAjrzTotal)){
List countAjrzList = ventureManageDao.queryAjrzCount(paramMap);
returnMap=Toolkits.buildSuccessMap("查询成功!",countAjrzList,countAjrzTotal);
}else{
returnMap=Toolkits.buildNotFindMap("未找到数据");
}
logger.info("查询统计安检日志列表  返回-------->:"+returnMap);

//操作日志参数
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_SUCCESS);
} catch (Exception e) {
returnMap=Toolkits.buildFailureMap("系统异常,操作失败,请联系管理员!");
logMap=Toolkits.buildOperateParamMap(paramMap, OperateModual.OPERATE_MODUAL_FXGL.toString(), OperateType.OPERATE_TYPE_QUERY_LIST.toString(), Constants.OPERATE_FAILURE);
logger.error("service层  查询统计安检日志列表  异常", e);
e.printStackTrace();
}
//保存操作日志
commonServiceImpl.addOperationLog(logMap);

return returnMap;
}


}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值