Commit 6eaed785 authored by 张俊's avatar 张俊

添加招行渠道和住建部手机小程序渠道对应的编辑审核状态

parent f668edfc
...@@ -76,6 +76,22 @@ public class M_YWZTKZ_2 { ...@@ -76,6 +76,22 @@ public class M_YWZTKZ_2 {
@JsonProperty("SHZNZDZT") @JsonProperty("SHZNZDZT")
private int shznzdzt; private int shznzdzt;
// 招行渠道编辑状态1.开启0.停止
@JsonProperty("ZH308ZT")
private int zh308zt;
// 招行渠道审核状态1.开启0.停止
@JsonProperty("SHZH308ZT")
private int shzh308zt;
// 住建部手机小程序渠道 编辑状态 1.开启0.停止
@JsonProperty("SJZT")
private int sjzt;
// 住建部手机小程序 审核状态 1.开启0.停止
@JsonProperty("SHSJZT")
private int shsjzt;
// 审核停止开始时间 // 审核停止开始时间
@JsonProperty("SHQYKSSJ") @JsonProperty("SHQYKSSJ")
private String shqykssj; private String shqykssj;
...@@ -339,4 +355,19 @@ public class M_YWZTKZ_2 { ...@@ -339,4 +355,19 @@ public class M_YWZTKZ_2 {
this.czlx = czlx; this.czlx = czlx;
} }
public int getZh308zt() {
return zh308zt;
}
public int getShzh308zt() {
return shzh308zt;
}
public int getSjzt() {
return sjzt;
}
public int getShsjzt() {
return shsjzt;
}
} }
package com.changda.gjjapp.zhfwpt.qdywqxgl.controller; package com.changda.gjjapp.zhfwpt.qdywqxgl.controller;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
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 com.changda.cd4j.foundation.core.dto.ResultDto; import com.changda.cd4j.foundation.core.dto.ResultDto;
import com.changda.gjjapp.db.entity.M_XEKZB; import com.changda.gjjapp.db.entity.M_XEKZB;
import com.changda.gjjapp.db.entity.M_YWZTKZ_2; import com.changda.gjjapp.db.entity.M_YWZTKZ_2;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.DuanXinQuanXianGuanLiDto; import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.*;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.FwkzLogginInfoDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QDYWQuanXianGuanLiDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QdzkLoggingInfoDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QuDaoQuanXianGuanLiDto;
import com.changda.gjjapp.zhfwpt.qdxxgl.controller.QuDaoXinXiGuanLiController; import com.changda.gjjapp.zhfwpt.qdxxgl.controller.QuDaoXinXiGuanLiController;
import com.changda.gjjapp.zhfwpt.service.qdywquanxiankz.QuDaoQuanXianKongZhiService; import com.changda.gjjapp.zhfwpt.service.qdywquanxiankz.QuDaoQuanXianKongZhiService;
import com.changda.gjjapp.zhfwpt.service.qdywquanxiankz.YeWuQuanXianKongZhiService; import com.changda.gjjapp.zhfwpt.service.qdywquanxiankz.YeWuQuanXianKongZhiService;
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 javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
/** /**
* 渠道、业务权限管理 * 渠道、业务权限管理
...@@ -48,17 +38,17 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -48,17 +38,17 @@ public class QuDaoYeWuQuanXianGuanLiController {
public ResultDto quDaoZhuangTaiSearch(HttpServletRequest request) { public ResultDto quDaoZhuangTaiSearch(HttpServletRequest request) {
String primaryid = request.getParameter("primaryid"); String primaryid = request.getParameter("primaryid");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
if(primaryid==null){ if (primaryid == null) {
List<QuDaoQuanXianGuanLiDto> list = quDaoQuanXianKongZhiService.quDaoZhuangTaiSearch(primaryid); List<QuDaoQuanXianGuanLiDto> list = quDaoQuanXianKongZhiService.quDaoZhuangTaiSearch(primaryid);
resultDto.setData(list); resultDto.setData(list);
resultDto.setSuccess(true); resultDto.setSuccess(true);
}else{ } else {
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(primaryid); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(primaryid);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
List<QuDaoQuanXianGuanLiDto> list = quDaoQuanXianKongZhiService.quDaoZhuangTaiSearch(primaryid); List<QuDaoQuanXianGuanLiDto> list = quDaoQuanXianKongZhiService.quDaoZhuangTaiSearch(primaryid);
resultDto.setData(list); resultDto.setData(list);
resultDto.setSuccess(true); resultDto.setSuccess(true);
...@@ -88,13 +78,13 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -88,13 +78,13 @@ public class QuDaoYeWuQuanXianGuanLiController {
String fz = request.getParameter("fz"); String fz = request.getParameter("fz");
int qdzt = Integer.parseInt(request.getParameter("qdzt")); int qdzt = Integer.parseInt(request.getParameter("qdzt"));
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String z=kssj+jssj+qdid+ksrq+tzrq+fz; String z = kssj + jssj + qdid + ksrq + tzrq + fz;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
boolean flag = quDaoQuanXianKongZhiService.updateTimeAndFz(kssj, jssj, ksrq, tzrq, fz, qdid, qdzt); boolean flag = quDaoQuanXianKongZhiService.updateTimeAndFz(kssj, jssj, ksrq, tzrq, fz, qdid, qdzt);
resultDto.setData(flag); resultDto.setData(flag);
resultDto.setSuccess(true); resultDto.setSuccess(true);
...@@ -107,12 +97,12 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -107,12 +97,12 @@ public class QuDaoYeWuQuanXianGuanLiController {
public ResultDto ywztSreach(HttpServletRequest request) { public ResultDto ywztSreach(HttpServletRequest request) {
String qdid = request.getParameter("qdid"); String qdid = request.getParameter("qdid");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(qdid); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(qdid);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
List<QDYWQuanXianGuanLiDto> list = yeWuQuanXianKongZhiService.ywztSreach(qdid); List<QDYWQuanXianGuanLiDto> list = yeWuQuanXianKongZhiService.ywztSreach(qdid);
resultDto.setData(list); resultDto.setData(list);
resultDto.setSuccess(true); resultDto.setSuccess(true);
...@@ -125,11 +115,11 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -125,11 +115,11 @@ public class QuDaoYeWuQuanXianGuanLiController {
String ywzt = request.getParameter("ywzt"); String ywzt = request.getParameter("ywzt");
String qdid = request.getParameter("qdid"); String qdid = request.getParameter("qdid");
String ywbm = request.getParameter("ywbm"); String ywbm = request.getParameter("ywbm");
String z=ywzt+qdid+ywbm; String z = ywzt + qdid + ywbm;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
}else{ } else {
yeWuQuanXianKongZhiService.updateYWZT(ywzt, qdid, ywbm); yeWuQuanXianKongZhiService.updateYWZT(ywzt, qdid, ywbm);
} }
} }
...@@ -138,11 +128,11 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -138,11 +128,11 @@ public class QuDaoYeWuQuanXianGuanLiController {
public void updateDuanXinZT(HttpServletRequest request) { public void updateDuanXinZT(HttpServletRequest request) {
String zjzxdm = request.getParameter("zjzxdm"); String zjzxdm = request.getParameter("zjzxdm");
String dxzt = request.getParameter("dxzt"); String dxzt = request.getParameter("dxzt");
String z=zjzxdm+dxzt; String z = zjzxdm + dxzt;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
}else{ } else {
quDaoQuanXianKongZhiService.updateDuanXinZT(zjzxdm, dxzt); quDaoQuanXianKongZhiService.updateDuanXinZT(zjzxdm, dxzt);
} }
...@@ -161,13 +151,13 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -161,13 +151,13 @@ public class QuDaoYeWuQuanXianGuanLiController {
// 渠道状态 // 渠道状态
String qdzt = request.getParameter("qdzt"); String qdzt = request.getParameter("qdzt");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String z=qdid+fz+djsj+qdzt; String z = qdid + fz + djsj + qdzt;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
resultDto = quDaoQuanXianKongZhiService.updateQDZT(qdid, fz, djsj, qdzt); resultDto = quDaoQuanXianKongZhiService.updateQDZT(qdid, fz, djsj, qdzt);
} }
return resultDto; return resultDto;
...@@ -179,12 +169,12 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -179,12 +169,12 @@ public class QuDaoYeWuQuanXianGuanLiController {
public ResultDto qdkzInfo(HttpServletRequest request) { public ResultDto qdkzInfo(HttpServletRequest request) {
String qdid = request.getParameter("qdid"); String qdid = request.getParameter("qdid");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(qdid); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(qdid);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
List<QuDaoQuanXianGuanLiDto> list = quDaoQuanXianKongZhiService.qdkzInfo(qdid); List<QuDaoQuanXianGuanLiDto> list = quDaoQuanXianKongZhiService.qdkzInfo(qdid);
resultDto.setData(list); resultDto.setData(list);
resultDto.setSuccess(true); resultDto.setSuccess(true);
...@@ -200,13 +190,13 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -200,13 +190,13 @@ public class QuDaoYeWuQuanXianGuanLiController {
String qdid = request.getParameter("qdid"); String qdid = request.getParameter("qdid");
String ywbm = request.getParameter("ywbm"); String ywbm = request.getParameter("ywbm");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String z=qdid+ywbm; String z = qdid + ywbm;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
List<QDYWQuanXianGuanLiDto> list = yeWuQuanXianKongZhiService.qdywkz(qdid, ywbm); List<QDYWQuanXianGuanLiDto> list = yeWuQuanXianKongZhiService.qdywkz(qdid, ywbm);
resultDto.setData(list); resultDto.setData(list);
resultDto.setSuccess(true); resultDto.setSuccess(true);
...@@ -241,13 +231,13 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -241,13 +231,13 @@ public class QuDaoYeWuQuanXianGuanLiController {
String issh = request.getParameter("issh"); String issh = request.getParameter("issh");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String z=ywczlx_2+ywmc+ywbm+issh; String z = ywczlx_2 + ywmc + ywbm + issh;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
Map<String, Object> map = quDaoQuanXianKongZhiService.sreachM_YWZTKZ_2(limit, page, ywczlx_2, ywmc, issh, ywbm); Map<String, Object> map = quDaoQuanXianKongZhiService.sreachM_YWZTKZ_2(limit, page, ywczlx_2, ywmc, issh, ywbm);
List<M_YWZTKZ_2> list = (List<M_YWZTKZ_2>) map.get("data"); List<M_YWZTKZ_2> list = (List<M_YWZTKZ_2>) map.get("data");
int total = (int) map.get("total"); int total = (int) map.get("total");
...@@ -275,14 +265,14 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -275,14 +265,14 @@ public class QuDaoYeWuQuanXianGuanLiController {
String qdid = request.getParameter("qdid"); String qdid = request.getParameter("qdid");
// 操作人 // 操作人
String czr = request.getParameter("czr"); String czr = request.getParameter("czr");
String z=primaryid+qdzt+fz+djsj+qdid+czr; String z = primaryid + qdzt + fz + djsj + qdid + czr;
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
resultDto = quDaoQuanXianKongZhiService.updateQD_state(qdzt, fz, djsj, primaryid, qdid, czr); resultDto = quDaoQuanXianKongZhiService.updateQD_state(qdzt, fz, djsj, primaryid, qdid, czr);
} }
return resultDto; return resultDto;
...@@ -299,6 +289,8 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -299,6 +289,8 @@ public class QuDaoYeWuQuanXianGuanLiController {
String wtzt = request.getParameter("wtzt"); String wtzt = request.getParameter("wtzt");
String appzt = request.getParameter("appzt"); String appzt = request.getParameter("appzt");
String znzdzt = request.getParameter("znzdzt"); String znzdzt = request.getParameter("znzdzt");
String zh308zt = request.getParameter("zh308zt");
String sjzt = request.getParameter("sjzt");
// 启用结束时间 // 启用结束时间
String qyjssj = request.getParameter("qyjssj"); String qyjssj = request.getParameter("qyjssj");
// 启用开始时间 // 启用开始时间
...@@ -318,14 +310,14 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -318,14 +310,14 @@ public class QuDaoYeWuQuanXianGuanLiController {
// 业务类别 // 业务类别
String ywlb = request.getParameter("ywlb"); String ywlb = request.getParameter("ywlb");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String z=primaryid+wxzt+wtzt+appzt+znzdzt+qyjssj+qykssj+qyksrq+qyjsrq+czlx+czr+qysjd+ywbm+ywlb; String z = primaryid + wxzt + wtzt + appzt + znzdzt + zh308zt + sjzt + qyjssj + qykssj + qyksrq + qyjsrq + czlx + czr + qysjd + ywbm + ywlb;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
resultDto = quDaoQuanXianKongZhiService.updateM_YWZTKZ_2State(primaryid, wtzt, wxzt, appzt, znzdzt, resultDto = quDaoQuanXianKongZhiService.updateM_YWZTKZ_2State(primaryid, wtzt, wxzt, appzt, znzdzt, zh308zt, sjzt,
qyjssj, qykssj, qyksrq, qyjsrq, czlx, czr, qysjd, ywbm, ywlb); qyjssj, qykssj, qyksrq, qyjsrq, czlx, czr, qysjd, ywbm, ywlb);
} }
return resultDto; return resultDto;
...@@ -348,15 +340,17 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -348,15 +340,17 @@ public class QuDaoYeWuQuanXianGuanLiController {
String wxzt = request.getParameter("wxzt"); String wxzt = request.getParameter("wxzt");
String appzt = request.getParameter("appzt"); String appzt = request.getParameter("appzt");
String znzdzt = request.getParameter("znzdzt"); String znzdzt = request.getParameter("znzdzt");
String zh308zt = request.getParameter("zh308zt");
String sjzt = request.getParameter("sjzt");
String wtzt = request.getParameter("wtzt"); String wtzt = request.getParameter("wtzt");
String z=primaryid+czlx+ywlb+ywbm+qysjd+czr+wxzt+appzt+znzdzt+wtzt; String z = primaryid + czlx + ywlb + ywbm + qysjd + czr + wxzt + appzt + znzdzt + zh308zt + sjzt + wtzt;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
resultDto = quDaoQuanXianKongZhiService.updateSHState(primaryid, czlx, ywlb, ywbm, qysjd, czr, wxzt, appzt, znzdzt, wtzt); resultDto = quDaoQuanXianKongZhiService.updateSHState(primaryid, czlx, ywlb, ywbm, qysjd, czr, wxzt, appzt, znzdzt, zh308zt, sjzt, wtzt);
} }
return resultDto; return resultDto;
} }
...@@ -369,14 +363,14 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -369,14 +363,14 @@ public class QuDaoYeWuQuanXianGuanLiController {
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String ywbm = request.getParameter("ywbm"); String ywbm = request.getParameter("ywbm");
String qdid = request.getParameter("qdid"); String qdid = request.getParameter("qdid");
String z=ywbm+qdid; String z = ywbm + qdid;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
int num = quDaoQuanXianKongZhiService.qdztkzInterface(ywbm,qdid); int num = quDaoQuanXianKongZhiService.qdztkzInterface(ywbm, qdid);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("num", num); map.put("num", num);
resultDto.setData(map); resultDto.setData(map);
...@@ -392,13 +386,13 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -392,13 +386,13 @@ public class QuDaoYeWuQuanXianGuanLiController {
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String page = request.getParameter("page"); String page = request.getParameter("page");
String limit = request.getParameter("limit"); String limit = request.getParameter("limit");
String z=page+limit; String z = page + limit;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
Map<String, Object> map = quDaoQuanXianKongZhiService.dxkzInfo(page, limit); Map<String, Object> map = quDaoQuanXianKongZhiService.dxkzInfo(page, limit);
List<DuanXinQuanXianGuanLiDto> list = (List<DuanXinQuanXianGuanLiDto>) map.get("list"); List<DuanXinQuanXianGuanLiDto> list = (List<DuanXinQuanXianGuanLiDto>) map.get("list");
int total = (int) map.get("total"); int total = (int) map.get("total");
...@@ -429,13 +423,13 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -429,13 +423,13 @@ public class QuDaoYeWuQuanXianGuanLiController {
String id = request.getParameter("id"); String id = request.getParameter("id");
// 限额值 // 限额值
String value = request.getParameter("value"); String value = request.getParameter("value");
String zString=id+value; String zString = id + value;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(zString); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(zString);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
resultDto = quDaoQuanXianKongZhiService.xeUpdate(id, value); resultDto = quDaoQuanXianKongZhiService.xeUpdate(id, value);
} }
return resultDto; return resultDto;
...@@ -450,14 +444,14 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -450,14 +444,14 @@ public class QuDaoYeWuQuanXianGuanLiController {
Integer page = Integer.parseInt(request.getParameter("page")); Integer page = Integer.parseInt(request.getParameter("page"));
String czsj = request.getParameter("czsj"); String czsj = request.getParameter("czsj");
String qdid = request.getParameter("qdid"); String qdid = request.getParameter("qdid");
String z=limit+page+czsj+qdid; String z = limit + page + czsj + qdid;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
Map<String, Object> map = quDaoQuanXianKongZhiService.qdzkLoggingInfo(qdid,czsj,page, limit); Map<String, Object> map = quDaoQuanXianKongZhiService.qdzkLoggingInfo(qdid, czsj, page, limit);
List<QdzkLoggingInfoDto> list = (List<QdzkLoggingInfoDto>) map.get("data"); List<QdzkLoggingInfoDto> list = (List<QdzkLoggingInfoDto>) map.get("data");
int total = (int) map.get("total"); int total = (int) map.get("total");
resultDto.setData(list); resultDto.setData(list);
...@@ -475,13 +469,13 @@ public class QuDaoYeWuQuanXianGuanLiController { ...@@ -475,13 +469,13 @@ public class QuDaoYeWuQuanXianGuanLiController {
Integer page = Integer.parseInt(request.getParameter("page")); Integer page = Integer.parseInt(request.getParameter("page"));
String ywbm = request.getParameter("ywbm"); String ywbm = request.getParameter("ywbm");
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
String z=limit+page+ywbm; String z = limit + page + ywbm;
boolean a=QuDaoXinXiGuanLiController.SqlFilter2(z); boolean a = QuDaoXinXiGuanLiController.SqlFilter2(z);
if(a){ if (a) {
resultDto.setData(0); resultDto.setData(0);
resultDto.setMessage("存在sql注入"); resultDto.setMessage("存在sql注入");
resultDto.setSuccess(false); resultDto.setSuccess(false);
}else{ } else {
Map<String, Object> map = quDaoQuanXianKongZhiService.fwkzLoggingInfo(page, limit, ywbm); Map<String, Object> map = quDaoQuanXianKongZhiService.fwkzLoggingInfo(page, limit, ywbm);
List<FwkzLogginInfoDto> list = (List<FwkzLogginInfoDto>) map.get("data"); List<FwkzLogginInfoDto> list = (List<FwkzLogginInfoDto>) map.get("data");
int total = (int) map.get("total"); int total = (int) map.get("total");
......
package com.changda.gjjapp.zhfwpt.dao.qdywqxgl; package com.changda.gjjapp.zhfwpt.dao.qdywqxgl;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.changda.cd4j.foundation.core.persistence.annotation.MyBatisDao; import com.changda.cd4j.foundation.core.persistence.annotation.MyBatisDao;
import com.changda.gjjapp.db.entity.M_XEKZB; import com.changda.gjjapp.db.entity.M_XEKZB;
import com.changda.gjjapp.db.entity.M_YWZTKZ_2; import com.changda.gjjapp.db.entity.M_YWZTKZ_2;
...@@ -12,6 +7,10 @@ import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.DuanXinQuanXianGuanLiDto; ...@@ -12,6 +7,10 @@ import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.DuanXinQuanXianGuanLiDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.FwkzLogginInfoDto; import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.FwkzLogginInfoDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.Page2; import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.Page2;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QdzkLoggingInfoDto; import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QdzkLoggingInfoDto;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/** /**
* 渠道权限管理 * 渠道权限管理
...@@ -92,41 +91,47 @@ public interface QuDaoQuanXianGuanLiDao { ...@@ -92,41 +91,47 @@ public interface QuDaoQuanXianGuanLiDao {
/** /**
* 渠道控制接口 * 渠道控制接口
*
* @param qdid * @param qdid
* @return * @return
*/ */
List<Map<String, Object>> qdkzInfo(@Param("qdid")String qdid); List<Map<String, Object>> qdkzInfo(@Param("qdid") String qdid);
/** /**
* 在线人数计算 * 在线人数计算
*
* @param qdid * @param qdid
* @return * @return
*/ */
List<Map<String, Object>> onlineUsers(@Param("qdid")String qdid); List<Map<String, Object>> onlineUsers(@Param("qdid") String qdid);
/** /**
* 更新在线状态 * 更新在线状态
*
* @param id * @param id
* @return * @return
*/ */
int updateOnlineUsers2(@Param("qdid")String qdid,@Param("djsj")String djsj); int updateOnlineUsers2(@Param("qdid") String qdid, @Param("djsj") String djsj);
/** /**
* 更新渠道状态 * 更新渠道状态
*
* @param qdid * @param qdid
* @return * @return
*/ */
int updateQDZT(@Param("qdid")String qdid,@Param("qdzt")String qdzt,@Param("fz")String fz,@Param("djsj")String djsj); int updateQDZT(@Param("qdid") String qdid, @Param("qdzt") String qdzt, @Param("fz") String fz, @Param("djsj") String djsj);
/** /**
* 业务控制2 * 业务控制2
*
* @return * @return
*/ */
List<M_YWZTKZ_2> sreachM_YWZTKZ_2(@Param("ywczlx_2")String ywczlx_2,@Param("ywmc")String ywmc,@Param("issh")String issh,@Param("ywbm")String ywbm); List<M_YWZTKZ_2> sreachM_YWZTKZ_2(@Param("ywczlx_2") String ywczlx_2, @Param("ywmc") String ywmc, @Param("issh") String issh, @Param("ywbm") String ywbm);
/** /**
* 修改业务状态 * 修改业务状态
*
* @param primaryid 主键 * @param primaryid 主键
* @param issh 是否审核 * @param issh 是否审核
* @param ywzt 业务状态 * @param ywzt 业务状态
...@@ -134,26 +139,32 @@ public interface QuDaoQuanXianGuanLiDao { ...@@ -134,26 +139,32 @@ public interface QuDaoQuanXianGuanLiDao {
* @param tzkssj 停止开始时间 * @param tzkssj 停止开始时间
* @return * @return
*/ */
int updateM_YWZTKZ_2State(@Param("primaryid")String primaryid,@Param("wtzt")String wtzt,@Param("wxzt") String wxzt,@Param("appzt") String appzt,@Param("znzdzt") String znzdzt,@Param("qyjssj")String qyjssj,@Param("qykssj")String qykssj,@Param("qyksrq")String qyksrq,@Param("qyjsrq")String qyjsrq,@Param("czlx")String czlx); int updateM_YWZTKZ_2State(@Param("primaryid") String primaryid, @Param("wtzt") String wtzt, @Param("wxzt") String wxzt,
@Param("appzt") String appzt, @Param("znzdzt") String znzdzt, @Param("zh308zt") String zh308zt,
@Param("sjzt") String sjzt, @Param("qyjssj") String qyjssj, @Param("qykssj") String qykssj,
@Param("qyksrq") String qyksrq, @Param("qyjsrq") String qyjsrq, @Param("czlx") String czlx);
/** /**
* 渠道状态修改 * 渠道状态修改
*
* @param qdzt 渠道状态 * @param qdzt 渠道状态
* @param fz 阈值 * @param fz 阈值
* @param djsj 待机时间 * @param djsj 待机时间
* @param primaryid 主键ID * @param primaryid 主键ID
* @return * @return
*/ */
int updateQD_state(@Param("qdzt")String qdzt,@Param("fz")String fz,@Param("djsj")String djsj,@Param("primaryid")String primaryid); int updateQD_state(@Param("qdzt") String qdzt, @Param("fz") String fz, @Param("djsj") String djsj, @Param("primaryid") String primaryid);
/** /**
* 渠道总控修改日志记录 * 渠道总控修改日志记录
*
* @return * @return
*/ */
List<QdzkLoggingInfoDto> qdzkLoggingInfo(@Param("czsj")String czsj,@Param("qdid")String qdid); List<QdzkLoggingInfoDto> qdzkLoggingInfo(@Param("czsj") String czsj, @Param("qdid") String qdid);
/** /**
* 渠道总控修改日志记录 * 渠道总控修改日志记录
*
* @param qdzt 渠道状态 * @param qdzt 渠道状态
* @param fz 阀值 * @param fz 阀值
* @param djsj 待机时间 * @param djsj 待机时间
...@@ -162,68 +173,78 @@ public interface QuDaoQuanXianGuanLiDao { ...@@ -162,68 +173,78 @@ public interface QuDaoQuanXianGuanLiDao {
* @param czzt 操作状态 * @param czzt 操作状态
* @return * @return
*/ */
int qdzkLogging(@Param("qdzt")String qdzt,@Param("fz")String fz,@Param("djsj")String djsj,@Param("qdid")String qdid,@Param("czr")String czr,@Param("czzt")String czzt); int qdzkLogging(@Param("qdzt") String qdzt, @Param("fz") String fz, @Param("djsj") String djsj, @Param("qdid") String qdid, @Param("czr") String czr, @Param("czzt") String czzt);
/** /**
* 修改业务状态 * 修改业务状态
*
* @param issh 是否审核1.审核0.未审核 * @param issh 是否审核1.审核0.未审核
* @param primaryid 主键id * @param primaryid 主键id
* @return * @return
*/ */
int updateYWZT2(@Param("issh")String issh,@Param("primaryid")String primaryid,@Param("czlx")String czlx); int updateYWZT2(@Param("issh") String issh, @Param("primaryid") String primaryid, @Param("czlx") String czlx);
/** /**
* 修改审核后业务状态 * 修改审核后业务状态
*
* @param mYwztkz_2 * @param mYwztkz_2
* @return * @return
*/ */
int updateSHState(@Param("primaryid")String primaryid,@Param("czlx")String czlx); int updateSHState(@Param("primaryid") String primaryid, @Param("czlx") String czlx);
/** /**
* 渠道业务控制 shywzt是否开启1.开启0.未开启 * 渠道业务控制 shywzt是否开启1.开启0.未开启
*
* @return * @return
*/ */
M_YWZTKZ_2 qdztkzInterface(@Param("ywbm")String ywbm); M_YWZTKZ_2 qdztkzInterface(@Param("ywbm") String ywbm);
/** /**
* 渠道业务控制 是否在审核过的时间范围内 * 渠道业务控制 是否在审核过的时间范围内
*
* @return * @return
*/ */
int qdztkzInterface2(@Param("ywbm")String ywbm,@Param("day")String day,@Param("sj")String sj); int qdztkzInterface2(@Param("ywbm") String ywbm, @Param("day") String day, @Param("sj") String sj);
/** /**
* 短信控制信息 * 短信控制信息
*
* @return * @return
*/ */
List<DuanXinQuanXianGuanLiDto> dxkzInfo(); List<DuanXinQuanXianGuanLiDto> dxkzInfo();
/** /**
* 短信控制信息查询临时表 * 短信控制信息查询临时表
*
* @return * @return
*/ */
List<DuanXinQuanXianGuanLiDto> tMP_SMS_DIS(@Param("sizeCountStart")String sizeCountStart,@Param("sizeCountEnd")String sizeCountEnd); List<DuanXinQuanXianGuanLiDto> tMP_SMS_DIS(@Param("sizeCountStart") String sizeCountStart, @Param("sizeCountEnd") String sizeCountEnd);
/** /**
* 短信控制信息查询临时表2 * 短信控制信息查询临时表2
*
* @return * @return
*/ */
List<Page2> tMP_SMS_DIS2(); List<Page2> tMP_SMS_DIS2();
/** /**
* 限额控制信息 * 限额控制信息
*
* @return * @return
*/ */
List<M_XEKZB> xekzInfo(); List<M_XEKZB> xekzInfo();
/** /**
* 修改限额值 * 修改限额值
*
* @param id * @param id
* @return * @return
*/ */
int xeUpdate(@Param("id")String id,@Param("value")String value); int xeUpdate(@Param("id") String id, @Param("value") String value);
/** /**
* 服务控制日志记录 * 服务控制日志记录
*
* @param ywlb 业务类别 * @param ywlb 业务类别
* @param ywmc 业务名称 * @param ywmc 业务名称
* @param qdqyzt 渠道启用状态 * @param qdqyzt 渠道启用状态
...@@ -232,12 +253,16 @@ public interface QuDaoQuanXianGuanLiDao { ...@@ -232,12 +253,16 @@ public interface QuDaoQuanXianGuanLiDao {
* @param czzt 操作状态(操作状态0.保存1.修改2.删除3.审核) * @param czzt 操作状态(操作状态0.保存1.修改2.删除3.审核)
* @return * @return
*/ */
int fwkzLogging(@Param("ywlb")String ywlb,@Param("ywbm")String ywbm,@Param("qysjd")String qysjd,@Param("czr")String czr,@Param("czzt")String czzt,@Param("wxzt")String wxzt,@Param("appzt")String appzt,@Param("znzdzt")String znzdzt,@Param("wtzt")String wtzt); int fwkzLogging(@Param("ywlb") String ywlb, @Param("ywbm") String ywbm, @Param("qysjd") String qysjd,
@Param("czr") String czr, @Param("czzt") String czzt, @Param("wxzt") String wxzt,
@Param("appzt") String appzt, @Param("znzdzt") String znzdzt, @Param("zh308zt") String zh308zt, @Param("sjzt") String sjzt,
@Param("wtzt") String wtzt);
/** /**
* 服务控制日志 * 服务控制日志
*
* @param czsj * @param czsj
* @return * @return
*/ */
List<FwkzLogginInfoDto> fwkzLoggingInfo(@Param("ywbm")String ywbm); List<FwkzLogginInfoDto> fwkzLoggingInfo(@Param("ywbm") String ywbm);
} }
...@@ -49,6 +49,14 @@ public class FwkzLogginInfoDto { ...@@ -49,6 +49,14 @@ public class FwkzLogginInfoDto {
@JsonProperty("ZNZDZT") @JsonProperty("ZNZDZT")
private int znzdzt; private int znzdzt;
// 招行渠道编辑状态1.开启0.停止
@JsonProperty("ZH308ZT")
private int zh308zt;
// 住建部手机小程序渠道 编辑状态 1.开启0.停止
@JsonProperty("SJZT")
private int sjzt;
// 微信状态(1.开启0.关闭) // 微信状态(1.开启0.关闭)
@JsonProperty("WXZT") @JsonProperty("WXZT")
private int wxzt; private int wxzt;
...@@ -163,5 +171,19 @@ public class FwkzLogginInfoDto { ...@@ -163,5 +171,19 @@ public class FwkzLogginInfoDto {
this.wxzt = wxzt; this.wxzt = wxzt;
} }
public int getZh308zt() {
return zh308zt;
}
public void setZh308zt(int zh308zt) {
this.zh308zt = zh308zt;
}
public int getSjzt() {
return sjzt;
}
public void setSjzt(int sjzt) {
this.sjzt = sjzt;
}
} }
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
</update> </update>
<update id="updateQuDaoSSStatus"> <update id="updateQuDaoSSStatus">
update M_QDZTKZ set M_QDZTKZ.sszt = #{status} <if test="tzsj != null and tzsj !=''">, M_QDZTKZ.tzsj = update M_QDZTKZ set M_QDZTKZ.sszt = #{status}
to_date(#{tzsj},'yyyy-mm-dd hh24:mi:ss') <if test="tzsj != null and tzsj !=''">, M_QDZTKZ.tzsj = to_date(#{tzsj},'yyyy-mm-dd hh24:mi:ss')</if>
</if> where qdid = #{qdid} where qdid = #{qdid}
</update> </update>
<update id="updateOnlineUsers"> <update id="updateOnlineUsers">
...@@ -50,37 +50,61 @@ ...@@ -50,37 +50,61 @@
</select> </select>
<update id="updateOnlineUsers2"> <update id="updateOnlineUsers2">
update m_userloginrecord set istc = 1 where istc = 0 and zhczsj is not null and to_char(sysdate-#{djsj}/24/60,'yyyy-mm-dd HH24:MI:SS') &gt; to_char(zhczsj,'yyyy-mm-dd HH24:MI:SS') and qdid = #{qdid} update m_userloginrecord set istc = 1
where istc = 0 and zhczsj is not null
and to_char(sysdate-#{djsj}/24/60,'yyyy-mm-dd HH24:MI:SS') &gt; to_char(zhczsj,'yyyy-mm-dd HH24:MI:SS')
and qdid = #{qdid}
</update> </update>
<update id="updateQDZT"> <update id="updateQDZT">
update m_qdztkz a set qdid = qdid <if test="qdzt != null and qdzt !=''">,a.qdzt = #{qdzt}</if> <if test="fz != null and fz !=''">,a.fz = #{fz} </if><if test="djsj != null and djsj !=''">, djsj = #{djsj}</if> where qdid = #{qdid} update m_qdztkz a set qdid = qdid
<if test="qdzt != null and qdzt !=''">,a.qdzt = #{qdzt}</if>
<if test="fz != null and fz !=''">,a.fz = #{fz} </if>
<if test="djsj != null and djsj !=''">, djsj = #{djsj}</if>
where qdid = #{qdid}
</update> </update>
<select id="sreachM_YWZTKZ_2" resultType="com.changda.gjjapp.db.entity.M_YWZTKZ_2"> <select id="sreachM_YWZTKZ_2" resultType="com.changda.gjjapp.db.entity.M_YWZTKZ_2">
select b.ywczlx_2 as ywczlx,a.primaryid,a.ywbm,a.ywmc,a.issh,substr(a.qykssj,1,2) kshh,substr(a.qykssj,3,2) ksmm,substr(a.qyjssj,1,2) jshh,substr(a.qyjssj,3,2) jsmm,a.qyksrq,a.qyjsrq,a.shwtzt,a.shappzt,a.shwxzt,a.shznzdzt select b.ywczlx_2 as ywczlx,a.primaryid,a.ywbm,a.ywmc,a.issh,substr(a.qykssj,1,2) kshh,substr(a.qykssj,3,2) ksmm,substr(a.qyjssj,1,2) jshh,substr(a.qyjssj,3,2) jsmm,
,a.shqyksrq||'日'||substr(a.shqykssj,1,2)||'时'||substr(a.shqykssj,3,2)||'分至'||a.shqyjsrq||'日'||substr(a.shqyjssj,1,2)||'时'||substr(a.shqyjssj,3,2)||'分' as dqzxsjd,a.wtzt,a.wxzt,a.znzdzt,a.appzt, a.qyksrq,a.qyjsrq,a.shwtzt,a.shappzt,a.shwxzt,a.shznzdzt,a.shzh308zt,a.shsjzt,
(case b.ywczlx_2 when 1 then '查询业务' when 2 then '申请业务' when 3 then '其他业务' end) czlx a.shqyksrq||'日'||substr(a.shqykssj,1,2)||'时'||substr(a.shqykssj,3,2)||'分至'||a.shqyjsrq||'日'||substr(a.shqyjssj,1,2)||'时'||substr(a.shqyjssj,3,2)||'分' as dqzxsjd,
from m_ywztkz_2 a,s_ywzd b where a.ywbm = b.bm a.wtzt,a.wxzt,a.znzdzt,a.zh308zt,a.sjzt,a.appzt,
<if test="ywczlx_2 != null and ywczlx_2 !=''"> and b.ywczlx_2 = #{ywczlx_2}</if> (case b.ywczlx_2 when 1 then '查询业务' when 2 then '申请业务' when 3 then '其他业务' end) czlx
<if test="ywmc != null and ywmc !=''"> and b.ywmc like '%${ywmc}%'</if> from m_ywztkz_2 a,s_ywzd b
<if test="issh != null and issh !=''"> and a.issh = #{issh}</if> where a.ywbm = b.bm
<if test="ywbm != null and ywbm !=''"> and a.ywbm = #{ywbm}</if> <if test="ywczlx_2 != null and ywczlx_2 !=''"> and b.ywczlx_2 = #{ywczlx_2}</if>
order by b.sort <if test="ywmc != null and ywmc !=''"> and b.ywmc like '%${ywmc}%'</if>
<if test="issh != null and issh !=''"> and a.issh = #{issh}</if>
<if test="ywbm != null and ywbm !=''"> and a.ywbm = #{ywbm}</if>
order by b.sort
</select> </select>
<update id="updateM_YWZTKZ_2State"> <update id="updateM_YWZTKZ_2State">
update M_YWZTKZ_2 a set a.primaryid = a.primaryid <if test="qykssj != null and qykssj !='' and qyjssj != null and qyjssj !='' and qyksrq != null and qyksrq !='' and qyjsrq != null and qyjsrq !=''">,a.qykssj = #{qykssj},a.qyjssj=#{qyjssj},a.qyksrq = #{qyksrq},a.qyjsrq =#{qyjsrq}</if>,a.wxzt = #{wxzt},a.appzt = #{appzt},a.wtzt = #{wtzt},a.znzdzt = #{znzdzt} update M_YWZTKZ_2 a set a.primaryid = a.primaryid
where 1=1 <if test="primaryid != null and primaryid !=''">and a.primaryid = #{primaryid}</if> <if test="czlx != null and czlx !=''">and a.ywbm in (select b.bm from s_ywzd b where b.ywczlx_2 = #{czlx})</if> <if test="qykssj != null and qykssj !='' and qyjssj != null and qyjssj !='' and qyksrq != null and qyksrq !='' and qyjsrq != null and qyjsrq !=''">
, a.qykssj = #{qykssj},a.qyjssj=#{qyjssj},a.qyksrq = #{qyksrq},a.qyjsrq =#{qyjsrq}
</if>
,a.wxzt = #{wxzt},a.appzt = #{appzt},a.wtzt = #{wtzt},a.znzdzt = #{znzdzt},a.zh308zt = #{zh308zt},a.sjzt = #{sjzt}
where 1=1
<if test="primaryid != null and primaryid !=''">and a.primaryid = #{primaryid}</if>
<if test="czlx != null and czlx !=''">and a.ywbm in (select b.bm from s_ywzd b where b.ywczlx_2 = #{czlx})</if>
</update> </update>
<update id="updateQD_state"> <update id="updateQD_state">
update m_qdztkz a set a.primaryid = a.primaryid <if test="qdzt != null and qdzt !=''">,a.qdzt = #{qdzt}</if> <if test="fz != null and fz !=''">,a.fz = #{fz}</if><if test="djsj != null and djsj !=''">,djsj = #{djsj} </if> update m_qdztkz a set a.primaryid = a.primaryid
<if test="qdzt != null and qdzt !=''">,a.qdzt = #{qdzt}</if>
<if test="fz != null and fz !=''">,a.fz = #{fz}</if>
<if test="djsj != null and djsj !=''">,djsj = #{djsj} </if>
where a.primaryid = #{primaryid} where a.primaryid = #{primaryid}
</update> </update>
<select id="qdzkLoggingInfo" resultType="com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QdzkLoggingInfoDto"> <select id="qdzkLoggingInfo" resultType="com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QdzkLoggingInfoDto">
select b.qdmc,a.fz,(case when a.qdzt=1 then '开启' when a.qdzt=0 then '关闭' end) qdzt,a.djsj,a.czsj,a.czr,(case when a.czzt=0 then '保存' when a.czzt=1 then '修改' when a.czzt=2 then '删除' when a.czzt = 3 then '审核' end) czzt from m_logging_qdzk a,s_qdzd b where a.qdid = b.qdid and a.qdid = #{qdid} <if test="czsj != null and czsj !=''">and to_char(a.czsj,'yyyy-mm-dd') = #{czsj}</if> order by a.czsj desc select b.qdmc,a.fz,(case when a.qdzt=1 then '开启' when a.qdzt=0 then '关闭' end) qdzt,a.djsj,a.czsj,a.czr,
(case when a.czzt=0 then '保存' when a.czzt=1 then '修改' when a.czzt=2 then '删除' when a.czzt = 3 then '审核' end) czzt
from m_logging_qdzk a,s_qdzd b
where a.qdid = b.qdid and a.qdid = #{qdid}
<if test="czsj != null and czsj !=''">and to_char(a.czsj,'yyyy-mm-dd') = #{czsj}</if>
order by a.czsj desc
</select> </select>
<insert id="qdzkLogging"> <insert id="qdzkLogging">
...@@ -93,8 +117,11 @@ order by b.sort ...@@ -93,8 +117,11 @@ order by b.sort
</update> </update>
<update id="updateSHState"> <update id="updateSHState">
update M_YWZTKZ_2 a set a.shqykssj = a.qykssj,a.shqyjssj=a.qyjssj,a.shqyksrq = a.qyksrq,a.shqyjsrq =a.qyjsrq,a.shwtzt = a.wtzt,a.shwxzt = a.wxzt,a.shappzt = a.appzt,a.shznzdzt = a.znzdzt update M_YWZTKZ_2 a set a.shqykssj = a.qykssj,a.shqyjssj=a.qyjssj,a.shqyksrq = a.qyksrq,a.shqyjsrq =a.qyjsrq,
where 1=1 <if test="primaryid != null and primaryid !=''">and a.primaryid = #{primaryid}</if> <if test="czlx != null and czlx !=''">and a.ywbm in (select b.bm from s_ywzd b where b.ywczlx_2 = #{czlx})</if> a.shwtzt = a.wtzt,a.shwxzt = a.wxzt,a.shappzt = a.appzt,a.shznzdzt = a.znzdzt,a.shzh308zt = a.zh308zt,a.shsjzt = a.sjzt
where 1=1
<if test="primaryid != null and primaryid !=''">and a.primaryid = #{primaryid}</if>
<if test="czlx != null and czlx !=''">and a.ywbm in (select b.bm from s_ywzd b where b.ywczlx_2 = #{czlx})</if>
</update> </update>
<select id="qdztkzInterface" resultType="com.changda.gjjapp.db.entity.M_YWZTKZ_2"> <select id="qdztkzInterface" resultType="com.changda.gjjapp.db.entity.M_YWZTKZ_2">
...@@ -128,11 +155,15 @@ order by b.sort ...@@ -128,11 +155,15 @@ order by b.sort
</update> </update>
<insert id="fwkzLogging"> <insert id="fwkzLogging">
insert into m_logging_fwkz(ywlb,ywbm,qysjd,czr,wxzt,appzt,wtzt,znzdzt,czzt,czsj) values(#{ywlb},#{ywbm},#{qysjd},#{czr},#{wxzt},#{appzt},#{wtzt},#{znzdzt},#{czzt},sysdate) insert into m_logging_fwkz(ywlb,ywbm,qysjd,czr,wxzt,appzt,wtzt,znzdzt,zh308zt,sjzt,czzt,czsj)
values(#{ywlb},#{ywbm},#{qysjd},#{czr},#{wxzt},#{appzt},#{wtzt},#{znzdzt},#{zh308zt},#{sjzt},#{czzt},sysdate)
</insert> </insert>
<select id="fwkzLoggingInfo" resultType="com.changda.gjjapp.zhfwpt.dto.qdywqxgl.FwkzLogginInfoDto"> <select id="fwkzLoggingInfo" resultType="com.changda.gjjapp.zhfwpt.dto.qdywqxgl.FwkzLogginInfoDto">
select a.primaryid,(case when a.ywlb=1 then '查询业务类' when a.ywlb=2 then '申请业务类' when a.ywlb=3 then '其他业务类' end) ywlb,b.ywmc,a.wtzt,a.appzt,a.znzdzt,a.wxzt,a.qysjd,a.czr,a.czsj,(case when a.czzt=0 then '保存' when a.czzt=1 then '修改' when a.czzt=2 then '删除' when a.czzt = 3 then '审核' end) czzt from m_logging_fwkz a,s_ywzd b where a.ywbm = b.bm and a.ywbm = #{ywbm} order by a.czsj desc select a.primaryid,(case when a.ywlb=1 then '查询业务类' when a.ywlb=2 then '申请业务类' when a.ywlb=3 then '其他业务类' end) ywlb,
b.ywmc,a.wtzt,a.appzt,a.znzdzt,a.zh308zt,a.sjzt,a.wxzt,a.qysjd,a.czr,a.czsj,
(case when a.czzt=0 then '保存' when a.czzt=1 then '修改' when a.czzt=2 then '删除' when a.czzt = 3 then '审核' end) czzt
from m_logging_fwkz a,s_ywzd b where a.ywbm = b.bm and a.ywbm = #{ywbm} order by a.czsj desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
package com.changda.gjjapp.zhfwpt.service.impl.qdywquanxiankz; package com.changda.gjjapp.zhfwpt.service.impl.qdywquanxiankz;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changda.cd4j.foundation.core.dto.ResultDto; import com.changda.cd4j.foundation.core.dto.ResultDto;
import com.changda.gjjapp.db.entity.M_XEKZB; import com.changda.gjjapp.db.entity.M_XEKZB;
import com.changda.gjjapp.db.entity.M_XWINFO;
import com.changda.gjjapp.db.entity.M_YWZTKZ_2; import com.changda.gjjapp.db.entity.M_YWZTKZ_2;
import com.changda.gjjapp.db.entity.TMP_YW_GDHK_QKMX_WH;
import com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao; import com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.DuanXinQuanXianGuanLiDto; import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.*;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.FwkzLogginInfoDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.Page2;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.PageDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QdzkLoggingInfoDto;
import com.changda.gjjapp.zhfwpt.dto.qdywqxgl.QuDaoQuanXianGuanLiDto;
import com.changda.gjjapp.zhfwpt.dto.yhxxgl.YongHuXinXiSearchDto;
import com.changda.gjjapp.zhfwpt.service.qdywquanxiankz.QuDaoQuanXianKongZhiService; import com.changda.gjjapp.zhfwpt.service.qdywquanxiankz.QuDaoQuanXianKongZhiService;
import com.github.pagehelper.Page; import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
@Service @Service
public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
...@@ -126,19 +112,19 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -126,19 +112,19 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
// c.add(Calendar.MINUTE, -5); // c.add(Calendar.MINUTE, -5);
// // 获取前五分钟 的时间 // // 获取前五分钟 的时间
// String LastMinute = sdf.format(c.getTime()); // String LastMinute = sdf.format(c.getTime());
//System.out.println("减后时间:" + LastMinute); // System.out.println("减后时间:" + LastMinute);
// 智能终端在线人数 // 智能终端在线人数
int zhiNengZhongDuanCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount(zhiNengZhongDuan); int zhiNengZhongDuanCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount(zhiNengZhongDuan);
//System.out.println("智能终端"+zhiNengZhongDuanCount); // System.out.println("智能终端"+zhiNengZhongDuanCount);
// 网厅在线人数 // 网厅在线人数
int wtCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount( wt); int wtCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount(wt);
//System.out.println("网厅在线人数:" + wtCount); // System.out.println("网厅在线人数:" + wtCount);
// 微信在线人数 // 微信在线人数
int wxCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount( wx); int wxCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount(wx);
//System.out.println("微信在线人数"+wxCount); // System.out.println("微信在线人数"+wxCount);
// 手机App在线人数 // 手机App在线人数
int appCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount( App); int appCount = quDaoQuanXianGuanLiDao.quDaoFangWenCount(App);
//System.out.println("手机app"+appCount); // System.out.println("手机app"+appCount);
// 更新M_QDZTKZ(渠道控制表中前五分钟的在线人数) // 更新M_QDZTKZ(渠道控制表中前五分钟的在线人数)
quDaoQuanXianGuanLiDao.updateOnlineUsers(zhiNengZhongDuan, zhiNengZhongDuanCount); quDaoQuanXianGuanLiDao.updateOnlineUsers(zhiNengZhongDuan, zhiNengZhongDuanCount);
quDaoQuanXianGuanLiDao.updateOnlineUsers(wt, wtCount); quDaoQuanXianGuanLiDao.updateOnlineUsers(wt, wtCount);
...@@ -343,11 +329,11 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -343,11 +329,11 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
// 业务控制2 // 业务控制2
@Override @Override
public Map<String, Object> sreachM_YWZTKZ_2(int limit, int page,String ywczlx_2,String ywmc,String issh,String ywbm) { public Map<String, Object> sreachM_YWZTKZ_2(int limit, int page, String ywczlx_2, String ywmc, String issh, String ywbm) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
try { try {
Page<M_YWZTKZ_2> page2 = PageHelper.startPage(page, limit, true); Page<M_YWZTKZ_2> page2 = PageHelper.startPage(page, limit, true);
List<M_YWZTKZ_2> list = quDaoQuanXianGuanLiDao.sreachM_YWZTKZ_2(ywczlx_2,ywmc,issh,ywbm); List<M_YWZTKZ_2> list = quDaoQuanXianGuanLiDao.sreachM_YWZTKZ_2(ywczlx_2, ywmc, issh, ywbm);
int count = (int) page2.getTotal(); int count = (int) page2.getTotal();
map.put("total", count); map.put("total", count);
map.put("data", list); map.put("data", list);
...@@ -360,26 +346,26 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -360,26 +346,26 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
// 修改业务状态(保存按钮) // 修改业务状态(保存按钮)
@Override @Override
public ResultDto updateM_YWZTKZ_2State(String primaryid, String wtzt, String wxzt, String appzt, String znzdzt, String qyjssj, String qykssj, String qyksrq, public ResultDto updateM_YWZTKZ_2State(String primaryid, String wtzt, String wxzt, String appzt, String znzdzt, String zh308zt, String sjzt, String qyjssj, String qykssj, String qyksrq,
String qyjsrq,String czlx,String czr,String qysjd,String ywbm,String ywlb) { String qyjsrq, String czlx, String czr, String qysjd, String ywbm, String ywlb) {
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
if (primaryid != null ) { if (primaryid != null) {
String[] primaryids = primaryid.split(","); String[] primaryids = primaryid.split(",");
String[] ywlbs = ywlb.split(","); String[] ywlbs = ywlb.split(",");
String[] ywbms = ywbm.split(","); String[] ywbms = ywbm.split(",");
String[] qysjds = qysjd.split(","); String[] qysjds = qysjd.split(",");
//String[] czrs = czr.split(","); // String[] czrs = czr.split(",");
for (int i = 0; i < primaryids.length; i++) { for (int i = 0; i < primaryids.length; i++) {
String id = primaryids[i]; String id = primaryids[i];
String ywlbs2 = ywlbs[i]; String ywlbs2 = ywlbs[i];
String ywbms2 = ywbms[i]; String ywbms2 = ywbms[i];
String qysjds2 = qysjds[i]; String qysjds2 = qysjds[i];
//String czrs2 = czrs[i]; // String czrs2 = czrs[i];
int num2 = quDaoQuanXianGuanLiDao.updateM_YWZTKZ_2State(id,wtzt,wxzt,appzt,znzdzt,qyjssj,qykssj, qyksrq, qyjsrq,czlx); int num2 = quDaoQuanXianGuanLiDao.updateM_YWZTKZ_2State(id, wtzt, wxzt, appzt, znzdzt, zh308zt, sjzt, qyjssj, qykssj, qyksrq, qyjsrq, czlx);
if (num2 > 0) { if (num2 > 0) {
quDaoQuanXianGuanLiDao.fwkzLogging(ywlbs2, ywbms2, qysjds2, czr, "1", wxzt, appzt, znzdzt, wtzt); quDaoQuanXianGuanLiDao.fwkzLogging(ywlbs2, ywbms2, qysjds2, czr, "1", wxzt, appzt, znzdzt, zh308zt, sjzt, wtzt);
int num1 = quDaoQuanXianGuanLiDao.updateYWZT2("0", id,czlx); int num1 = quDaoQuanXianGuanLiDao.updateYWZT2("0", id, czlx);
if (num1 > 0) { if (num1 > 0) {
resultDto.setSuccess(true); resultDto.setSuccess(true);
} else { } else {
...@@ -396,11 +382,11 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -396,11 +382,11 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
// 渠道状态修改 // 渠道状态修改
@Override @Override
public ResultDto updateQD_state(String qdzt, String fz, String djsj, String primaryid,String qdid,String czr) { public ResultDto updateQD_state(String qdzt, String fz, String djsj, String primaryid, String qdid, String czr) {
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
int num = quDaoQuanXianGuanLiDao.updateQD_state(qdzt, fz, djsj, primaryid); int num = quDaoQuanXianGuanLiDao.updateQD_state(qdzt, fz, djsj, primaryid);
if (num > 0) { if (num > 0) {
//渠道总控修改日志记录 // 渠道总控修改日志记录
quDaoQuanXianGuanLiDao.qdzkLogging(qdzt, fz, djsj, qdid, czr, "0"); quDaoQuanXianGuanLiDao.qdzkLogging(qdzt, fz, djsj, qdid, czr, "0");
resultDto.setSuccess(true); resultDto.setSuccess(true);
} else { } else {
...@@ -412,18 +398,18 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -412,18 +398,18 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
// 修改审核后业务状态 // 修改审核后业务状态
@Override @Override
public ResultDto updateSHState(String primaryid,String czlx,String ywlb,String ywbm,String qysjd,String czr,String wxzt,String appzt,String znzdzt,String wtzt) { public ResultDto updateSHState(String primaryid, String czlx, String ywlb, String ywbm, String qysjd, String czr, String wxzt, String appzt, String znzdzt, String zh308zt, String sjzt, String wtzt) {
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
int num1 = quDaoQuanXianGuanLiDao.updateYWZT2("1", primaryid,czlx); int num1 = quDaoQuanXianGuanLiDao.updateYWZT2("1", primaryid, czlx);
if (num1 > 0) { if (num1 > 0) {
resultDto.setSuccess(true); resultDto.setSuccess(true);
} else { } else {
resultDto.setSuccess(false); resultDto.setSuccess(false);
} }
int num2 = quDaoQuanXianGuanLiDao.updateSHState(primaryid,czlx); int num2 = quDaoQuanXianGuanLiDao.updateSHState(primaryid, czlx);
if (num2 > 0) { if (num2 > 0) {
quDaoQuanXianGuanLiDao.fwkzLogging(ywlb, ywbm, qysjd, czr, "3", wxzt, appzt, znzdzt, wtzt); quDaoQuanXianGuanLiDao.fwkzLogging(ywlb, ywbm, qysjd, czr, "3", wxzt, appzt, znzdzt, zh308zt, sjzt, wtzt);
resultDto.setSuccess(true); resultDto.setSuccess(true);
} else { } else {
resultDto.setSuccess(false); resultDto.setSuccess(false);
...@@ -434,7 +420,7 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -434,7 +420,7 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
// 渠道业务控制接口 // 渠道业务控制接口
@Override @Override
public int qdztkzInterface(String ywbm,String qdid) { public int qdztkzInterface(String ywbm, String qdid) {
M_YWZTKZ_2 mYwztkz_2 = quDaoQuanXianGuanLiDao.qdztkzInterface(ywbm); M_YWZTKZ_2 mYwztkz_2 = quDaoQuanXianGuanLiDao.qdztkzInterface(ywbm);
String tstzr = mYwztkz_2.getTstzr(); String tstzr = mYwztkz_2.getTstzr();
// 特殊时间停止 // 特殊时间停止
...@@ -488,11 +474,11 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -488,11 +474,11 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
if (qdid.equals("02")) { if (qdid.equals("02")) {
shywzt = mYwztkz_2.getShwtzt(); shywzt = mYwztkz_2.getShwtzt();
}else if (qdid.equals("05")) { } else if (qdid.equals("05")) {
shywzt = mYwztkz_2.getShwxzt(); shywzt = mYwztkz_2.getShwxzt();
}else if (qdid.equals("06")) { } else if (qdid.equals("06")) {
shywzt = mYwztkz_2.getShappzt(); shywzt = mYwztkz_2.getShappzt();
}else { } else {
shywzt = mYwztkz_2.getShznzdzt(); shywzt = mYwztkz_2.getShznzdzt();
} }
...@@ -510,7 +496,7 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -510,7 +496,7 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
// 短信控制信息 // 短信控制信息
@Override @Override
public Map<String, Object> dxkzInfo(String page,String limit) throws IOException { public Map<String, Object> dxkzInfo(String page, String limit) throws IOException {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
PageDto pDto = new PageDto(); PageDto pDto = new PageDto();
int pageNum = Integer.parseInt(page); int pageNum = Integer.parseInt(page);
...@@ -524,17 +510,17 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -524,17 +510,17 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream); SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
SqlSession sqlSession = sqlSessionFactory.openSession(false);// 通过这种方式打开的SqlSession,autoCommit默认为false,需要手动提交事务 SqlSession sqlSession = sqlSessionFactory.openSession(false);// 通过这种方式打开的SqlSession,autoCommit默认为false,需要手动提交事务
DuanXinQuanXianGuanLiDto qDto = new DuanXinQuanXianGuanLiDto(); DuanXinQuanXianGuanLiDto qDto = new DuanXinQuanXianGuanLiDto();
sqlSession.selectList("com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao.dxkzInfo",qDto); sqlSession.selectList("com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao.dxkzInfo", qDto);
Page<DuanXinQuanXianGuanLiDto> page2 = PageHelper.startPage(pageNum, pageSize2, true); Page<DuanXinQuanXianGuanLiDto> page2 = PageHelper.startPage(pageNum, pageSize2, true);
// 循环查询临时表 // 循环查询临时表
List<DuanXinQuanXianGuanLiDto> list2 = sqlSession.selectList("com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao.tMP_SMS_DIS",pDto); List<DuanXinQuanXianGuanLiDto> list2 = sqlSession.selectList("com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao.tMP_SMS_DIS", pDto);
List<Page2> list = sqlSession.selectList("com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao.tMP_SMS_DIS2"); List<Page2> list = sqlSession.selectList("com.changda.gjjapp.zhfwpt.dao.qdywqxgl.QuDaoQuanXianGuanLiDao.tMP_SMS_DIS2");
//总记录数 // 总记录数
Page2 page3=list.get(0); Page2 page3 = list.get(0);
map.put("total", page3.getRowCount()); map.put("total", page3.getRowCount());
map.put("list", list2); map.put("list", list2);
...@@ -547,34 +533,34 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -547,34 +533,34 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
} }
//限额控制信息 // 限额控制信息
@Override @Override
public List<M_XEKZB> xekzInfo() { public List<M_XEKZB> xekzInfo() {
return quDaoQuanXianGuanLiDao.xekzInfo(); return quDaoQuanXianGuanLiDao.xekzInfo();
} }
//修改限额值 // 修改限额值
@Override @Override
public ResultDto xeUpdate(String id, String value) { public ResultDto xeUpdate(String id, String value) {
ResultDto resultDto = new ResultDto(); ResultDto resultDto = new ResultDto();
int num = quDaoQuanXianGuanLiDao.xeUpdate(id, value); int num = quDaoQuanXianGuanLiDao.xeUpdate(id, value);
if (num > 0) { if (num > 0) {
resultDto.setSuccess(true); resultDto.setSuccess(true);
}else { } else {
resultDto.setSuccess(false); resultDto.setSuccess(false);
} }
return resultDto; return resultDto;
} }
//渠道总控修改日志记录 // 渠道总控修改日志记录
@Override @Override
public Map<String, Object> qdzkLoggingInfo(String qdid,String czsj,int page, int limit) { public Map<String, Object> qdzkLoggingInfo(String qdid, String czsj, int page, int limit) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
try { try {
Page<QdzkLoggingInfoDto> page2 = PageHelper.startPage(page, limit, true); Page<QdzkLoggingInfoDto> page2 = PageHelper.startPage(page, limit, true);
List<QdzkLoggingInfoDto> list = quDaoQuanXianGuanLiDao.qdzkLoggingInfo(czsj,qdid); List<QdzkLoggingInfoDto> list = quDaoQuanXianGuanLiDao.qdzkLoggingInfo(czsj, qdid);
int count = (int) page2.getTotal(); int count = (int) page2.getTotal();
map.put("total", count); map.put("total", count);
map.put("data", list); map.put("data", list);
...@@ -586,9 +572,9 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService { ...@@ -586,9 +572,9 @@ public class QuDaoQuanXianKZServiceImp implements QuDaoQuanXianKongZhiService {
} }
//服务控制日志记录 // 服务控制日志记录
@Override @Override
public Map<String, Object> fwkzLoggingInfo(int page,int limit,String ywbm) { public Map<String, Object> fwkzLoggingInfo(int page, int limit, String ywbm) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
try { try {
Page<FwkzLogginInfoDto> page2 = PageHelper.startPage(page, limit, true); Page<FwkzLogginInfoDto> page2 = PageHelper.startPage(page, limit, true);
......
...@@ -86,7 +86,8 @@ public interface QuDaoQuanXianKongZhiService { ...@@ -86,7 +86,8 @@ public interface QuDaoQuanXianKongZhiService {
* @param tzkssj 停止开始时间 * @param tzkssj 停止开始时间
* @return * @return
*/ */
ResultDto updateM_YWZTKZ_2State(String primaryid, String wtzt, String wxzt, String appzt, String znzdzt,String qyjssj,String qykssj,String qyksrq,String qyjsrq,String czlx,String czr,String qysjd,String ywbm,String ywlb); ResultDto updateM_YWZTKZ_2State(String primaryid, String wtzt, String wxzt, String appzt, String znzdzt,String zh308zt, String sjzt,
String qyjssj,String qykssj,String qyksrq,String qyjsrq,String czlx,String czr,String qysjd,String ywbm,String ywlb);
/** /**
* 渠道状态修改 * 渠道状态修改
...@@ -114,7 +115,7 @@ public interface QuDaoQuanXianKongZhiService { ...@@ -114,7 +115,7 @@ public interface QuDaoQuanXianKongZhiService {
* @param shtzjsrq * @param shtzjsrq
* @return * @return
*/ */
ResultDto updateSHState(String primaryid,String czlx,String ywlb,String ywbm,String qysjd,String czr,String wxzt,String appzt,String znzdzt,String wtzt); ResultDto updateSHState(String primaryid,String czlx,String ywlb,String ywbm,String qysjd,String czr,String wxzt,String appzt,String znzdzt,String zh308zt, String sjzt, String wtzt);
/** /**
* 渠道业务控制 1.开启0.关闭 * 渠道业务控制 1.开启0.关闭
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment