Commit fac5aa7b by e

Merge branch 'master' of http://47.92.108.28/yangliang/hnxtbaboot

parents 62117d2b 78d1028b
15:48:44.041 log [main] INFO com.founder.XtbaBootApplicationTests - Starting XtbaBootApplicationTests on LAPTOP-FPTOBRM1 with PID 9380 (started by changc in D:\xzxt-all\hnxtbaboot)
15:48:44.045 log [main] INFO com.founder.XtbaBootApplicationTests - The following profiles are active: dev
15:48:53.032 log [main] WARN o.s.b.a.t.ThymeleafAutoConfiguration$DefaultTemplateResolverConfiguration - Cannot find template location: classpath:/web/ (please add some templates or check your Thymeleaf configuration)
15:48:53.078 log [main] WARN o.t.templatemode.TemplateMode - [THYMELEAF][main] Template Mode 'HTML5' is deprecated. Using Template Mode 'HTML' instead.
15:48:55.814 log [main] INFO com.founder.XtbaBootApplicationTests - Started XtbaBootApplicationTests in 12.74 seconds (JVM running for 14.86)
18:55:05.536 log [main] INFO com.founder.XtbaBootApplicationTests - Starting XtbaBootApplicationTests on LAPTOP-FPTOBRM1 with PID 24304 (started by changc in D:\xzxt-all\hnxtbaboot)
18:55:05.544 log [main] INFO com.founder.XtbaBootApplicationTests - The following profiles are active: dev
18:55:15.116 log [main] INFO com.founder.XtbaBootApplicationTests - Started XtbaBootApplicationTests in 10.355 seconds (JVM running for 12.036)
...@@ -188,7 +188,13 @@ ...@@ -188,7 +188,13 @@
<dependency> <dependency>
<groupId>com.cc.utls</groupId> <groupId>com.cc.utls</groupId>
<artifactId>xzxt_utils</artifactId> <artifactId>xzxt_utils</artifactId>
<version>0.0.1</version> <version>0.0.3</version>
</dependency>
<!--lombok包-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.10</version>
</dependency> </dependency>
</dependencies> </dependencies>
......
package com.founder.cjqx.controller;
import com.founder.cjqx.service.SysAfisclientService;
import com.founder.cjqx.service.SysClientVpService;
import com.founder.model.ResultMap;
import com.founder.model.SysAfisclient;
import com.founder.model.SysClientVp;
import com.founder.model.XzxtRestResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
/**
* Created by changchao on 2018/12/5.
* 登录控制类
*/
@Controller
public class SysAfisclientController {
private Logger log= LoggerFactory.getLogger(this.getClass());
@Autowired
private SysAfisclientService sysAfisclientService;
/*
获取设备list
*/
@GetMapping("/sysAfisclientlist")
@ResponseBody
public ResultMap sysAfisclientlist(Model model, SysAfisclient sysAfisclient){
ResultMap resultMap=new ResultMap();
resultMap =sysAfisclientService.AfisclientAll(sysAfisclient);
return resultMap;
}
/*
保存用户
*/
@PostMapping("/saveAfisclient")
@ResponseBody
public XzxtRestResult saveAfisclient(SysAfisclient sysAfisclient){
return sysAfisclientService.SaveAfisclient(sysAfisclient);
}
/*
修改设备页面
*/
@GetMapping("/Afisclient/{cid}")
public String getAfisclient(@PathVariable("cid") Integer cid, Model model){
model.addAttribute("Afisclient",sysAfisclientService.SelectAfisclient(cid).getData());
return "cjqx/kehudupdate";
}
//修改
@PutMapping("/UpdateAfisclient")
@ResponseBody
public XzxtRestResult UpdateAfisclient(SysAfisclient sysAfisclient){
return sysAfisclientService.updateAfisclient(sysAfisclient);
}
//服务删除
@DeleteMapping("/Afisclient/{cid}")
@ResponseBody
public XzxtRestResult deleteAfisclient(@PathVariable("cid") Integer cid){
return sysAfisclientService.deleteAfisclient(cid);
}
}
package com.founder.cjqx.controller;
import com.founder.cjqx.service.SysAfisclientVpService;
import com.founder.cjqx.service.SysClientVpService;
import com.founder.model.ResultMap;
import com.founder.model.SysAfisclientVp;
import com.founder.model.SysClientVp;
import com.founder.model.XzxtRestResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
/**
* Created by changchao on 2018/12/5.
* 登录控制类
*/
@Controller
public class SysAfisclientVpController {
private Logger log= LoggerFactory.getLogger(this.getClass());
@Autowired
private SysAfisclientVpService sysAfisclientVpService;
/*
获取关联list
*/
@GetMapping("/AfisclientVplist")
@ResponseBody
public ResultMap AfisclientVplist(Model model, SysAfisclientVp sysAfisclientVp){
ResultMap resultMap=new ResultMap();
resultMap =sysAfisclientVpService.AfisclientVpAll(sysAfisclientVp);
return resultMap;
}
/*
获取关联list
*/
@GetMapping("/AfisclientVplistLh")
@ResponseBody
public ResultMap AfisclientVplistLh(Model model, SysAfisclientVp sysAfisclientVp){
ResultMap resultMap=new ResultMap();
resultMap =sysAfisclientVpService.AfisclientVpAllLh(sysAfisclientVp);
return resultMap;
}
/*
获取关联shenpi
*/
@GetMapping("/SelectAfisclientVplistLhShenpi/{id}")
public String SelectAfisclientVplistLhShenpi(Model model,@PathVariable("id") String id ){
SysAfisclientVp sysAfisclientVp=new SysAfisclientVp();
sysAfisclientVp.setId(id);
model.addAttribute("AfisclientVp",sysAfisclientVpService.selectSysAfisclientVpLh(sysAfisclientVp).getData());
return "cjqx/shenpi";
}
/*
获取关联chehui
*/
@GetMapping("/SelectAfisclientVplistLhChehui/{id}")
public String SelectAfisclientVplistLhChehui(Model model,@PathVariable("id") String id ){
SysAfisclientVp sysAfisclientVp=new SysAfisclientVp();
sysAfisclientVp.setId(id);
model.addAttribute("AfisclientVp",sysAfisclientVpService.selectSysAfisclientVpLh(sysAfisclientVp).getData());
return "cjqx/chehui";
}
/*
保存用户
*/
@PostMapping("/saveAfisclientVp")
@ResponseBody
public XzxtRestResult saveAfisclientVp(SysAfisclientVp sysAfisclientVp){
return sysAfisclientVpService.SaveCAfisclientVp(sysAfisclientVp);
}
/*
修改设备页面
*/
@GetMapping("/AfisclientVp/{id}")
public String getAfisclientVp(@PathVariable("id") String id, Model model){
model.addAttribute("ClientVp",sysAfisclientVpService.SelectAfisclientVp(id).getData());
return "cjqx/shebupdate";
}
@GetMapping("/AfisclientVp")
@ResponseBody
public XzxtRestResult getALLAfisclientVp(SysAfisclientVp sysAfisclientVp, Model model){
return sysAfisclientVpService.SelectAfisclientVp(sysAfisclientVp);
}
//修改
@PutMapping("/UpdateAfisclientVp")
@ResponseBody
public XzxtRestResult UpdateAfisclientVp(SysAfisclientVp sysAfisclientVp){
return sysAfisclientVpService.updateAfisclientVp(sysAfisclientVp);
}
//服务删除
@DeleteMapping("/AfisclientVp/{id}")
@ResponseBody
public XzxtRestResult deleteAfisclientVp(@PathVariable("id") String id){
return sysAfisclientVpService.deleteAfisclientVp(id);
}
}
package com.founder.cjqx.controller;
import com.founder.cjqx.service.SysClientVpService;
import com.founder.model.ResultMap;
import com.founder.model.SysClientVp;
import com.founder.model.XzxtRestResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
/**
* Created by changchao on 2018/12/5.
* 登录控制类
*/
@Controller
public class SysClientVpController {
private Logger log= LoggerFactory.getLogger(this.getClass());
@Autowired
private SysClientVpService sysClientVpService;
/*
获取设备list
*/
@GetMapping("/sysClientVplist")
@ResponseBody
public ResultMap sysClientVplist(Model model, SysClientVp sysClientVp){
ResultMap resultMap=new ResultMap();
resultMap =sysClientVpService.ClientVpAll(sysClientVp);
return resultMap;
}
/*
保存用户
*/
@PostMapping("/saveClientVp")
@ResponseBody
public XzxtRestResult saveClientVp(SysClientVp sysClientVp){
return sysClientVpService.SaveClientVp(sysClientVp);
}
/*
修改设备页面
*/
@GetMapping("/ClientVp/{id}")
public String getClientVp(@PathVariable("id") String id, Model model){
model.addAttribute("ClientVp",sysClientVpService.SelectClientVp(id).getData());
return "cjqx/shebupdate";
}
//修改
@PutMapping("/UpdateClientVp")
@ResponseBody
public XzxtRestResult UpdateClientVp(SysClientVp sysClientVp){
return sysClientVpService.updateClientVp(sysClientVp);
}
//服务删除
@DeleteMapping("/ClientVp/{id}")
@ResponseBody
public XzxtRestResult deleteClientVp(@PathVariable("id") String id){
return sysClientVpService.deleteClientVp(id);
}
}
package com.founder.cjqx.dao;
import com.founder.model.SysAfisclient;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@Mapper
public interface SysAfisclientMapper {
List<SysAfisclient> selectPageList(SysAfisclient sysAfisclient);
int selectPageCount(SysAfisclient sysAfisclient);
int saveSysAfisclient(SysAfisclient sysAfisclient);
SysAfisclient selectSysAfisclient(int cid);
int updateSysAfisclient(SysAfisclient sysAfisclientp);
int deleteSysAfisclient(int cid);
}
\ No newline at end of file
package com.founder.cjqx.dao;
import com.founder.model.SysAfisclient;
import com.founder.model.SysAfisclientVp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@Mapper
public interface SysAfisclientVpMapper {
List<SysAfisclientVp> selectPageList(SysAfisclientVp sysAfisclientVp);
int selectPageCount(SysAfisclientVp sysAfisclientVp);
List<SysAfisclientVp> selectPageListLh(SysAfisclientVp sysAfisclientVp);
SysAfisclientVp selectSysAfisclientVpLh(SysAfisclientVp sysAfisclientVp);
int selectPageCountLh(SysAfisclientVp sysAfisclientVp);
int saveSysAfisclientVp(SysAfisclientVp sysAfisclientVp);
SysAfisclientVp selectSysAfisclientVp(String id);
SysAfisclientVp selectSysAfisclientVpAll(SysAfisclientVp sysAfisclientVp);
int updateSysAfisclientVp(SysAfisclientVp sysAfisclientVp);
int deleteSysAfisclientVp(String id);
}
\ No newline at end of file
package com.founder.cjqx.dao;
import com.founder.model.SysClientVp;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@Mapper
public interface SysClientVpMapper {
List<SysClientVp> selectPageList(SysClientVp sysClientVp);
int selectPageCount(SysClientVp sysClientVp);
int saveSysClientVp(SysClientVp sysClientVp);
SysClientVp selectSysClientVp(String id);
int updateSysClientVp(SysClientVp sysClientVp);
int deleteSysClientVp(String id);
}
\ No newline at end of file
package com.founder.cjqx.service;
import com.founder.model.ResultMap;
import com.founder.model.SysAfisclient;
import com.founder.model.XzxtRestResult;
/**
* Created by libin on 2018/4/12.
*/
public interface SysAfisclientService {
ResultMap AfisclientAll(SysAfisclient sysAfisclient);
XzxtRestResult SaveAfisclient(SysAfisclient sysAfisclient);
XzxtRestResult SelectAfisclient(int cid);
XzxtRestResult updateAfisclient(SysAfisclient sysAfisclient);
XzxtRestResult deleteAfisclient(int cid);
}
package com.founder.cjqx.service;
import com.founder.model.ResultMap;
import com.founder.model.SysAfisclientVp;
import com.founder.model.SysClientVp;
import com.founder.model.XzxtRestResult;
/**
* Created by libin on 2018/4/12.
*/
public interface SysAfisclientVpService {
ResultMap AfisclientVpAll(SysAfisclientVp sysAfisclientVp);
ResultMap AfisclientVpAllLh(SysAfisclientVp sysAfisclientVp);
XzxtRestResult selectSysAfisclientVpLh(SysAfisclientVp sysAfisclientVp);
XzxtRestResult SaveCAfisclientVp(SysAfisclientVp sysAfisclientVp);
XzxtRestResult SelectAfisclientVp(String id);
XzxtRestResult SelectAfisclientVp(SysAfisclientVp sysAfisclientVp);
XzxtRestResult updateAfisclientVp(SysAfisclientVp sysAfisclientVp);
XzxtRestResult deleteAfisclientVp(String id);
}
package com.founder.cjqx.service;
import com.founder.model.ResultMap;
import com.founder.model.SysClientVp;
import com.founder.model.XzxtRestResult;
/**
* Created by libin on 2018/4/12.
*/
public interface SysClientVpService {
ResultMap ClientVpAll(SysClientVp SysClientVp);
XzxtRestResult SaveClientVp(SysClientVp sysClientVp);
XzxtRestResult SelectClientVp(String id);
XzxtRestResult updateClientVp(SysClientVp sysClientVp);
XzxtRestResult deleteClientVp(String id);
}
package com.founder.cjqx.service.impl;
import com.founder.cjqx.dao.SysAfisclientMapper;
import com.founder.cjqx.service.SysAfisclientService;
import com.founder.model.ResultMap;
import com.founder.model.SysAfisclient;
import com.founder.model.XzxtRestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.util.List;
import static com.cc.utls.Base64Util.xzxtdecode;
import static com.cc.utls.Base64Util.xzxtencode;
import static com.cc.utls.MD5Util.generate;
import static com.founder.utils.SequenceUtil.getNextCid;
/**
* Created by libin on 2018/4/12.
*/
@Service
public class SysAfisclientServiceImpl implements SysAfisclientService {
@Autowired
private SysAfisclientMapper sysAfisclientMapper;
@Override
public ResultMap AfisclientAll(SysAfisclient sysAfisclient) {
List<SysAfisclient> SysAfisclientlist= sysAfisclientMapper.selectPageList(sysAfisclient);
ResultMap resultMap=new ResultMap();
if (!StringUtils.isEmpty(SysAfisclientlist)) {
//解密
for(SysAfisclient sysAfis : SysAfisclientlist ){
if(sysAfis.getClientip().length()>=24){
sysAfis.setClientip(xzxtdecode(sysAfis.getClientip()));
}
}
int totals=sysAfisclientMapper.selectPageCount(sysAfisclient);
resultMap.setCount(totals);
resultMap.setData(SysAfisclientlist);
return resultMap;
}
return resultMap ;
}
@Override
public XzxtRestResult SaveAfisclient(SysAfisclient sysAfisclient) {
sysAfisclient.setCid(getNextCid());
sysAfisclient.setScbz("0");
//加密算法(自定义)
sysAfisclient.setClientip(xzxtencode(sysAfisclient.getClientip()));
int num=sysAfisclientMapper.saveSysAfisclient(sysAfisclient);
if(num==1){
return XzxtRestResult.build(201,"存入成功");
}else{
return XzxtRestResult.build(202,"存入失败");
}
}
@Override
public XzxtRestResult SelectAfisclient(int cid) {
SysAfisclient sysAfisclient=sysAfisclientMapper.selectSysAfisclient(cid);
if(!StringUtils.isEmpty(sysAfisclient)){
//解密
if(sysAfisclient.getClientip().length()>=24){
sysAfisclient.setClientip(xzxtdecode(sysAfisclient.getClientip()));
}
return XzxtRestResult.build(201,"读取成功",sysAfisclient);
}else{
return XzxtRestResult.build(202,"读取失败","");
}
}
@Override
public XzxtRestResult updateAfisclient(SysAfisclient sysAfisclient) {
//加密算法(自定义)
sysAfisclient.setClientip(xzxtencode(sysAfisclient.getClientip()));
int num=sysAfisclientMapper.updateSysAfisclient(sysAfisclient);
if(num==1){
return XzxtRestResult.build(201,"更新成功");
}else{
return XzxtRestResult.build(202,"更新失败");
}
}
@Override
public XzxtRestResult deleteAfisclient(int cid) {
int num=sysAfisclientMapper.deleteSysAfisclient(cid);
if(num==1){
return XzxtRestResult.build(201,"删除成功");
}else{
return XzxtRestResult.build(202,"删除失败");
}
}
}
package com.founder.cjqx.service.impl;
import com.founder.cjqx.dao.SysAfisclientVpMapper;
import com.founder.cjqx.dao.SysClientVpMapper;
import com.founder.cjqx.service.SysAfisclientVpService;
import com.founder.cjqx.service.SysClientVpService;
import com.founder.model.ResultMap;
import com.founder.model.SysAfisclientVp;
import com.founder.model.SysClientVp;
import com.founder.model.XzxtRestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.util.List;
import static com.cc.utls.Base64Util.xzxtdecode;
import static com.cc.utls.Base64Util.xzxtencode;
import static com.founder.utils.SequenceUtil.getNextCid;
import static com.founder.utils.SequenceUtil.getNextId;
/**
* Created by libin on 2018/4/12.
*/
@Service
public class SysAfisclientVpServiceImpl implements SysAfisclientVpService {
@Autowired
private SysAfisclientVpMapper sysAfisclientVpMapper;
@Override
public ResultMap AfisclientVpAll(SysAfisclientVp sysAfisclientVp) {
sysAfisclientVp.setScbz("0");
List<SysAfisclientVp> SysAfisclientVplist= sysAfisclientVpMapper.selectPageList(sysAfisclientVp);
ResultMap resultMap=new ResultMap();
if (!StringUtils.isEmpty(SysAfisclientVplist)) {
int totals=sysAfisclientVpMapper.selectPageCount(sysAfisclientVp);
resultMap.setCount(totals);
resultMap.setData(SysAfisclientVplist);
return resultMap;
}
return resultMap ;
}
@Override
public ResultMap AfisclientVpAllLh(SysAfisclientVp sysAfisclientVp) {
sysAfisclientVp.setScbz("0");
//加密
if(!StringUtils.isEmpty( sysAfisclientVp.getClientip())){
sysAfisclientVp.setClientip(xzxtencode(sysAfisclientVp.getClientip()));
}
List<SysAfisclientVp> SysAfisclientVplist= sysAfisclientVpMapper.selectPageListLh(sysAfisclientVp);
ResultMap resultMap=new ResultMap();
if (!StringUtils.isEmpty(SysAfisclientVplist)) {
// /解密
for(SysAfisclientVp sysAfisclient : SysAfisclientVplist ){
if(sysAfisclient.getPid().length()>=24){
sysAfisclient.setPid(xzxtdecode(sysAfisclient.getPid()));
}
if(sysAfisclient.getVid().length()>=24){
sysAfisclient.setVid(xzxtdecode(sysAfisclient.getVid()));
}
if(sysAfisclient.getClientip().length()>=24){
sysAfisclient.setClientip(xzxtdecode(sysAfisclient.getClientip()));
}
}
int totals=sysAfisclientVpMapper.selectPageCountLh(sysAfisclientVp);
resultMap.setCount(totals);
resultMap.setData(SysAfisclientVplist);
return resultMap;
}
return resultMap ;
}
@Override
public XzxtRestResult selectSysAfisclientVpLh(SysAfisclientVp sysAfisclientVp) {
sysAfisclientVp.setScbz("0");
SysAfisclientVp sysAfisclientVp1= sysAfisclientVpMapper.selectSysAfisclientVpLh(sysAfisclientVp);
// /解密
if(!StringUtils.isEmpty(sysAfisclientVp1)){
if(sysAfisclientVp1.getPid().length()>=24){
sysAfisclientVp1.setPid(xzxtdecode(sysAfisclientVp1.getPid()));
}
if(sysAfisclientVp1.getVid().length()>=24){
sysAfisclientVp1.setVid(xzxtdecode(sysAfisclientVp1.getVid()));
}
if(sysAfisclientVp1.getClientip().length()>=24){
sysAfisclientVp1.setClientip(xzxtdecode(sysAfisclientVp1.getClientip()));
}
return XzxtRestResult.build(201,"读取成功",sysAfisclientVp1);
}else{
return XzxtRestResult.build(202,"读取失败","");
}
}
@Override
public XzxtRestResult SaveCAfisclientVp(SysAfisclientVp sysAfisclientVp) {
sysAfisclientVp.setId(getNextId());
sysAfisclientVp.setScbz("0");
sysAfisclientVp.setBz("未审批");
sysAfisclientVp.setStatus("0");
int num=sysAfisclientVpMapper.saveSysAfisclientVp(sysAfisclientVp);
if(num==1){
return XzxtRestResult.build(201,"存入成功");
}else{
return XzxtRestResult.build(202,"存入失败");
}
}
@Override
public XzxtRestResult SelectAfisclientVp(String id) {
SysAfisclientVp sysAfisclientVp=sysAfisclientVpMapper.selectSysAfisclientVp(id);
if(!StringUtils.isEmpty(sysAfisclientVp)){
return XzxtRestResult.build(201,"读取成功",sysAfisclientVp);
}else{
return XzxtRestResult.build(202,"读取失败","");
}
}
@Override
public XzxtRestResult SelectAfisclientVp(SysAfisclientVp sysAfisclientVp) {
SysAfisclientVp afisclientVp=sysAfisclientVpMapper.selectSysAfisclientVpAll(sysAfisclientVp);
if(!StringUtils.isEmpty(afisclientVp)){
return XzxtRestResult.build(201,"读取成功",afisclientVp);
}else{
return XzxtRestResult.build(202,"读取失败","");
}
}
@Override
public XzxtRestResult updateAfisclientVp(SysAfisclientVp sysAfisclientVp) {
if(sysAfisclientVp.getFlag().equals("1")){//审批
sysAfisclientVp.setStatus("1");
}else{
sysAfisclientVp.setStatus("2");//撤回
}
int num=sysAfisclientVpMapper.updateSysAfisclientVp(sysAfisclientVp);
if(num==1){
return XzxtRestResult.build(201,"更新成功");
}else{
return XzxtRestResult.build(202,"更新失败");
}
}
@Override
public XzxtRestResult deleteAfisclientVp(String id) {
int num=sysAfisclientVpMapper.deleteSysAfisclientVp(id);
if(num==1){
return XzxtRestResult.build(201,"删除成功");
}else{
return XzxtRestResult.build(202,"删除失败");
}
}
}
package com.founder.cjqx.service.impl;
import com.cc.utls.Base64Util;
import com.founder.cjqx.dao.SysClientVpMapper;
import com.founder.cjqx.service.SysClientVpService;
import com.founder.model.ResultMap;
import com.founder.model.SysClientVp;
import com.founder.model.XzxtRestResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import static com.cc.utls.Base64Util.xzxtdecode;
import static com.cc.utls.Base64Util.xzxtencode;
import static com.cc.utls.MD5Util.generate;
import static com.founder.utils.SequenceUtil.getNextId;
/**
* Created by libin on 2018/4/12.
*/
@Service
public class SysClientVpServiceImpl implements SysClientVpService {
@Autowired
private SysClientVpMapper sysClientVpMapper;
@Override
public ResultMap ClientVpAll(SysClientVp sysClientVp) {
List<SysClientVp> sysClientVplist=sysClientVpMapper.selectPageList(sysClientVp);
ResultMap resultMap=new ResultMap();
if (!StringUtils.isEmpty(sysClientVplist)) {
//解密
for(SysClientVp sysClient : sysClientVplist ){
if(sysClient.getPid().length()>=24){
sysClient.setPid(xzxtdecode(sysClient.getPid()));
}
if(sysClient.getVid().length()>=24){
sysClient.setVid(xzxtdecode(sysClient.getVid()));
}
}
int totals=sysClientVpMapper.selectPageCount(sysClientVp);
resultMap.setCount(totals);
resultMap.setData(sysClientVplist);
return resultMap;
}
return resultMap ;
}
@Override
public XzxtRestResult SaveClientVp(SysClientVp sysClientVp) {
sysClientVp.setId(getNextId());
sysClientVp.setScbz("0");
//加密算法(自定义)
sysClientVp.setPid(xzxtencode(sysClientVp.getPid()));
sysClientVp.setVid(xzxtencode(sysClientVp.getVid()));
int num=sysClientVpMapper.saveSysClientVp(sysClientVp);
if(num==1){
return XzxtRestResult.build(201,"存入成功");
}else{
return XzxtRestResult.build(202,"存入失败");
}
}
@Override
public XzxtRestResult SelectClientVp(String id) {
SysClientVp sysClientVp=sysClientVpMapper.selectSysClientVp(id);
if(!StringUtils.isEmpty(sysClientVp)){
//解密
if(sysClientVp.getPid().length()>=24){
sysClientVp.setPid(xzxtdecode(sysClientVp.getPid()));
}
if(sysClientVp.getVid().length()>=24){
sysClientVp.setVid(xzxtdecode(sysClientVp.getVid()));
}
return XzxtRestResult.build(201,"读取成功",sysClientVp);
}else{
return XzxtRestResult.build(202,"读取失败","");
}
}
@Override
public XzxtRestResult updateClientVp(SysClientVp sysClientVp) {
//加密算法(自定义)
sysClientVp.setPid(xzxtencode(sysClientVp.getPid()));
sysClientVp.setVid(xzxtencode(sysClientVp.getVid()));
int num=sysClientVpMapper.updateSysClientVp(sysClientVp);
if(num==1){
return XzxtRestResult.build(201,"更新成功");
}else{
return XzxtRestResult.build(202,"更新失败");
}
}
@Override
public XzxtRestResult deleteClientVp(String id)
{
int num=sysClientVpMapper.deleteSysClientVp(id);
if(num==1){
return XzxtRestResult.build(201,"删除成功");
}else{
return XzxtRestResult.build(202,"删除失败");
}
}
}
...@@ -19,6 +19,14 @@ public class DefaultViewConfig implements WebMvcConfigurer { ...@@ -19,6 +19,14 @@ public class DefaultViewConfig implements WebMvcConfigurer {
registry.addViewController("/").setViewName("login/login"); registry.addViewController("/").setViewName("login/login");
registry.addViewController("/toFjxz").setViewName("login/fjxz/common_fjxz"); registry.addViewController("/toFjxz").setViewName("login/fjxz/common_fjxz");
registry.addViewController("/toCzsmxz").setViewName("login/fjxz/common_czsm"); registry.addViewController("/toCzsmxz").setViewName("login/fjxz/common_czsm");
registry.addViewController("/sheb").setViewName("cjqx/sheb");
registry.addViewController("/shebform").setViewName("cjqx/shebform");
registry.addViewController("/kehud").setViewName("cjqx/kehud");
registry.addViewController("/kehudform").setViewName("cjqx/kehudform");
registry.addViewController("/apply").setViewName("cjqx/apply");
registry.addViewController("/authority").setViewName("cjqx/authority");
registry.addViewController("/shebxz").setViewName("cjqx/shebxz");
registry.addViewController("/shebyc").setViewName("cjqx/shebyc");
registry.setOrder(Ordered.HIGHEST_PRECEDENCE); registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
WebMvcConfigurer.super.addViewControllers(registry); WebMvcConfigurer.super.addViewControllers(registry);
} }
......
...@@ -63,6 +63,7 @@ public class LoginController { ...@@ -63,6 +63,7 @@ public class LoginController {
String userId=request.getParameter("userId"); String userId=request.getParameter("userId");
String rybh=""; String rybh="";
String returnStr=""; String returnStr="";
String perurl="";
User user=null; User user=null;
user=(User)request.getSession().getAttribute("User"); user=(User)request.getSession().getAttribute("User");
if(asjxgrybh!=null&&!"".equals(asjxgrybh)) { if(asjxgrybh!=null&&!"".equals(asjxgrybh)) {
...@@ -71,6 +72,7 @@ public class LoginController { ...@@ -71,6 +72,7 @@ public class LoginController {
if (rst.length >= 2) { if (rst.length >= 2) {
rybh = rst[0]; rybh = rst[0];
userId = rst[1]; userId = rst[1];
perurl=rst[2];
} }
} }
if(user==null){ if(user==null){
...@@ -149,6 +151,7 @@ public class LoginController { ...@@ -149,6 +151,7 @@ public class LoginController {
model.addAttribute("unitcode",user.getUnitcode()); model.addAttribute("unitcode",user.getUnitcode());
model.addAttribute("ryxx",xyrC); model.addAttribute("ryxx",xyrC);
model.addAttribute("saveflag","0"); model.addAttribute("saveflag","0");
model.addAttribute("perurl",perurl);
} }
returnStr = "rygl/addryxx.html"; returnStr = "rygl/addryxx.html";
log.info("人员采集单点登陆成功"); log.info("人员采集单点登陆成功");
......
package com.founder.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j;
/**
* layui数据表格返回数据处理类
* Created by yutons on 2017/9/1
*/
public class PageBean {
//当前页
private int page;
//页大小
private int limit;
//起始
private int begin;
//结束
private int end;
public Integer getPage() {
return page;
}
public void setPage(Integer page) {
this.page = page;
}
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public Integer getBegin() {
return (this.page-1)*this.limit+1;
}
public void setBegin(Integer begin) {
this.begin = begin;
}
public Integer getEnd() {
return this.page*this.limit;
}
public void setEnd(Integer end) {
this.end = end;
}
}
package com.founder.model;
/**
* Created by changc on 2018/9/6.
*/
public class ResultMap {
private String msg;
private int code;
private Object data;
private int count;
public ResultMap() {
super();
}
public ResultMap(int code, String message) {
super();
this.code=code;
this.msg=message;
}
public ResultMap(int code, String message, Object data, int count) {
super();
this.code=code;
this.msg=message;
this.data=data;
this.count=count;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
}
package com.founder.model;
import java.math.BigDecimal;
public class SysAfisclient extends PageBean{
private int cid;
private String username;
private String password;
private String clientip;
private String md5;
private String clientmac;
private String optunit;
private String optuser;
private String remark;
private String clientunitname;
private String scbz;
public int getCid() {
return cid;
}
public void setCid(int cid) {
this.cid = cid;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
public String getClientip() {
return clientip;
}
public void setClientip(String clientip) {
this.clientip = clientip == null ? null : clientip.trim();
}
public String getMd5() {
return md5;
}
public void setMd5(String md5) {
this.md5 = md5 == null ? null : md5.trim();
}
public String getClientmac() {
return clientmac;
}
public void setClientmac(String clientmac) {
this.clientmac = clientmac == null ? null : clientmac.trim();
}
public String getOptunit() {
return optunit;
}
public void setOptunit(String optunit) {
this.optunit = optunit == null ? null : optunit.trim();
}
public String getOptuser() {
return optuser;
}
public void setOptuser(String optuser) {
this.optuser = optuser == null ? null : optuser.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public String getClientunitname() {
return clientunitname;
}
public void setClientunitname(String clientunitname) {
this.clientunitname = clientunitname;
}
public String getScbz() {
return scbz;
}
public void setScbz(String scbz) {
this.scbz = scbz;
}
}
\ No newline at end of file
package com.founder.model;
import java.util.Date;
public class SysAfisclientVp extends PageBean{
private String id;
private String vpid;
private int cid;
private String scbz;
private Date lrsj;
private String status;
private String bz;
private String vid;
private String pid;
private String clientip;
private String username;
private String clientmac;
private String optunit;
private String clientunitname;
//区分审批和撤回标志 审批是1 撤回是2
private String flag;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getVpid() {
return vpid;
}
public void setVpid(String vpid) {
this.vpid = vpid;
}
public int getCid() {
return cid;
}
public void setCid(int cid) {
this.cid = cid;
}
public String getScbz() {
return scbz;
}
public void setScbz(String scbz) {
this.scbz = scbz;
}
public Date getLrsj() {
return lrsj;
}
public void setLrsj(Date lrsj) {
this.lrsj = lrsj;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getVid() {
return vid;
}
public void setVid(String vid) {
this.vid = vid;
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getBz() {
return bz;
}
public void setBz(String bz) {
this.bz = bz;
}
public String getClientip() {
return clientip;
}
public void setClientip(String clientip) {
this.clientip = clientip;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getClientmac() {
return clientmac;
}
public void setClientmac(String clientmac) {
this.clientmac = clientmac;
}
public String getOptunit() {
return optunit;
}
public void setOptunit(String optunit) {
this.optunit = optunit;
}
public String getClientunitname() {
return clientunitname;
}
public void setClientunitname(String clientunitname) {
this.clientunitname = clientunitname;
}
public String getFlag() {
return flag;
}
public void setFlag(String flag) {
this.flag = flag;
}
}
\ No newline at end of file
package com.founder.model;
import java.util.Date;
public class SysClientVp extends PageBean{
private String id;
private String vid;
private String pid;
private String scbz;
private Date lrsj;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public String getVid() {
return vid;
}
public void setVid(String vid) {
this.vid = vid == null ? null : vid.trim();
}
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid == null ? null : pid.trim();
}
public String getScbz() {
return scbz;
}
public void setScbz(String scbz) {
this.scbz = scbz == null ? null : scbz.trim();
}
public Date getLrsj() {
return lrsj;
}
public void setLrsj(Date lrsj) {
this.lrsj = lrsj;
}
}
\ No newline at end of file
package com.founder.model;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
/**
* Xzxt-Rest自定义响应结构
*/
public class XzxtRestResult {
// 定义jackson对象
private static final ObjectMapper MAPPER = new ObjectMapper();
// 响应业务状态
private Integer status;
// 响应消息
private String msg;
// 响应中的数据
private Object data;
public static XzxtRestResult build(Integer status, String msg, Object data) {
return new XzxtRestResult(status, msg, data);
}
public static XzxtRestResult ok(Object data) {
return new XzxtRestResult(data);
}
public static XzxtRestResult ok(int i, String count, List<Object> list) {
return new XzxtRestResult(null);
}
public XzxtRestResult() {
}
public static XzxtRestResult build(Integer status, String msg) {
return new XzxtRestResult(status, msg, null);
}
public XzxtRestResult(Integer status, String msg, Object data) {
this.status = status;
this.msg = msg;
this.data = data;
}
public XzxtRestResult(Object data) {
this.status = 200;
this.msg = "OK";
this.data = data;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
/**
* 将json结果集转化为Xzxt-Rest对象
*
* @param jsonData json数据
* @param clazz Xzxt-Rest中的object类型
* @return
*/
public static XzxtRestResult formatToPojo(String jsonData, Class<?> clazz) {
try {
if (clazz == null) {
return MAPPER.readValue(jsonData, XzxtRestResult.class);
}
JsonNode jsonNode = MAPPER.readTree(jsonData);
JsonNode data = jsonNode.get("data");
Object obj = null;
if (clazz != null) {
if (data.isObject()) {
obj = MAPPER.readValue(data.traverse(), clazz);
} else if (data.isTextual()) {
obj = MAPPER.readValue(data.asText(), clazz);
}
}
return build(jsonNode.get("status").intValue(), jsonNode.get("msg").asText(), obj);
} catch (Exception e) {
return null;
}
}
/**
* object对象的转化
*
* @param json
* @return
*/
public static XzxtRestResult format(String json) {
try {
return MAPPER.readValue(json, XzxtRestResult.class);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
/**
* Object是集合转化
*
* @param jsonData json数据
* @param clazz 集合中的类型
* @return
*/
public static XzxtRestResult formatToList(String jsonData, Class<?> clazz) {
try {
JsonNode jsonNode = MAPPER.readTree(jsonData);
JsonNode data = jsonNode.get("data");
Object obj = null;
if (data.isArray() && data.size() > 0) {
obj = MAPPER.readValue(data.traverse(),
MAPPER.getTypeFactory().constructCollectionType(List.class, clazz));
}
return build(jsonNode.get("status").intValue(), jsonNode.get("msg").asText(), obj);
} catch (Exception e) {
return null;
}
}
}
package com.founder.utils;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import java.util.UUID;
/**
* Created by Administrator on 2018/5/24 0024.
*/
public class SequenceUtil {
/**
* 获取信息主键编号:暂定规则,30位
* 前8位为UUID的前10位
* 9-16位为当前时间秒数的后六位,
* 17-30位为字母小写和0-9的随机混合
*/
public static String getNextId(){
StringBuffer xxzjbh = new StringBuffer();
xxzjbh.append(UUID.randomUUID().toString().substring(0,5));
String now = String.valueOf(System.currentTimeMillis());
xxzjbh.append(now.substring(0,5));
String sail="abcdefjhijklmnopqrstuvwxyz0123456";
Random random=new Random();
for (int i=0;i<14;i++){
int index=random.nextInt(32);
xxzjbh.append(sail.charAt(index));
}
return xxzjbh.toString();
}
/**
* 获取信息主键编号:暂定规则,30位
* 前8位为UUID的前10位
* 9-16位为当前时间秒数的后六位,
* 17-30位为字母小写和0-9的随机混合
*/
public static int getNextCid(){
String sources = "01234567897452358"; // 加上一些字母,就可以生成pc站的验证码了
Random rand = new Random();
StringBuffer flag = new StringBuffer();
for (int j = 0; j < 6; j++)
{
flag.append(sources.charAt(rand.nextInt(9)) + "");
}
return Integer.parseInt(flag.toString());
}
public static Date getNowDateShort() throws ParseException {
Date currentTime = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
String dateString = formatter.format(currentTime);
Date date = formatter.parse(dateString);
return date;
}
public static void main(String[] args){
// System.out.println((int)((Math.random()*9+1)*100000));
System.out.println(getNextCid());
// System.out.println(Integer.parseInt(getNextCid().trim()));
}
}
#正式环境配置 #正式环境配置
server.port=9100 server.port=9100
tomcat.uri-encoding: utf-8 tomcat.uri-encoding: utf-8
logging.level.com.founder.dao = debug logging.path=E:/log
logging.level.org.springframework=warn logging.level.com.founder = debug
logging.level.org.spring.springboot.dao=DEBUG logging.level.org.springframework=info
logging.level.org.spring.springboot.dao=debug
logging.pattern.console=%d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n
logging.pattern.file=%d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n
spring.thymeleaf.cache=false spring.thymeleaf.cache=false
......
...@@ -2,4 +2,5 @@ ...@@ -2,4 +2,5 @@
#开发环境使用dev,正式环境使用prod #开发环境使用dev,正式环境使用prod
spring.profiles.active=dev spring.profiles.active=dev
#server.context-path=/demo #server.context-path=/demo
#server.servlet.session.cookie.name=mycookies #server.servlet.session.cookie.name=mycookies
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<contextName>log</contextName>
<property name="log.path" value="log" />
<property name="log.name" value="SHCE" />
<!--输出到控制台-->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<!--输出到文件-->
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log.path}/${log.name}.%d{yyyy-MM-dd}.log</fileNamePattern>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="console" />
<appender-ref ref="file" />
</root>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.founder.cjqx.dao.SysAfisclientMapper">
<resultMap id="BaseResultMap" type="com.founder.model.SysAfisclient">
<id column="CID" jdbcType="INTEGER" property="cid" />
<result column="USERNAME" jdbcType="VARCHAR" property="username" />
<result column="PASSWORD" jdbcType="VARCHAR" property="password" />
<result column="CLIENTIP" jdbcType="VARCHAR" property="clientip" />
<result column="MD5" jdbcType="VARCHAR" property="md5" />
<result column="CLIENTMAC" jdbcType="VARCHAR" property="clientmac" />
<result column="OPTUNIT" jdbcType="VARCHAR" property="optunit" />
<result column="OPTUSER" jdbcType="VARCHAR" property="optuser" />
<result column="REMARK" jdbcType="VARCHAR" property="remark" />
<result column="CLIENTUNITNAME" jdbcType="VARCHAR" property="clientunitname" />
</resultMap>
<sql id="Base_Column_List" >
CID,USERNAME, PASSWORD, CLIENTIP, MD5, CLIENTMAC,OPTUNIT,OPTUSER,REMARK,CLIENTUNITNAME
</sql>
<sql id="queryWhere" >
<where>
<if test="cid!=null and cid !=''">AND CID = #{cid}</if>
AND SCBZ='0'
</where>
</sql>
<!-- 通过条件分页查询,返回数据集 -->
<select id="selectPageList" parameterType="com.founder.model.SysAfisclient" resultMap="BaseResultMap">
SELECT * FROM
(
SELECT A.*, ROWNUM RN
FROM (SELECT * FROM Sys_Afisclient
<include refid="queryWhere"/>) A
WHERE ROWNUM <![CDATA[ <= ]]> ${end}
)
WHERE RN <![CDATA[ >= ]]> ${begin}
</select>
<!-- 通过条件分页查询,返回总记录数 -->
<select id="selectPageCount" parameterType="com.founder.model.SysAfisclient" resultType="java.lang.Integer">
select count(1) from Sys_Afisclient
<include refid="queryWhere"/>
</select>
<!-- 保存设备-->
<insert id="saveSysAfisclient" parameterType="com.founder.model.SysAfisclient">
insert into Sys_Afisclient (<include refid="Base_Column_List"/>)
values (
#{cid,jdbcType=INTEGER},
#{username,jdbcType=VARCHAR},
#{password,jdbcType=VARCHAR},
#{clientip,jdbcType=VARCHAR},
#{md5,jdbcType=VARCHAR},
#{clientmac,jdbcType=INTEGER},
#{optunit,jdbcType=VARCHAR},
#{optuser,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
#{clientunitname,jdbcType=VARCHAR})
</insert>
<select id="selectSysAfisclient" parameterType="java.lang.Integer" resultType="com.founder.model.SysAfisclient">
select <include refid="Base_Column_List"/>
from Sys_Afisclient
where CID = #{cid,jdbcType=INTEGER }
</select>
<update id="updateSysAfisclient" parameterType="com.founder.model.SysAfisclient" >
update Sys_Afisclient
<set>
<if test="cid != null" >
CID = #{cid,jdbcType=INTEGER},
</if>
<if test="username != null" >
USERNAME = #{username,jdbcType=INTEGER},
</if>
<if test="password != null" >
PASSWORD = #{password,jdbcType=VARCHAR},
</if>
<if test="clientip != null" >
CLIENTIP = #{clientip,jdbcType=VARCHAR},
</if>
<if test="md5 != null" >
MD5 = #{md5,jdbcType=DATE},
</if>
<if test="clientmac != null" >
CLIENTMAC = #{clientmac,jdbcType=DATE},
</if>
<if test="optunit != null" >
OPTUNIT = #{optunit,jdbcType=DATE},
</if>
<if test="optuser != null" >
OPTUSER = #{optuser,jdbcType=DATE},
</if>
<if test="remark != null" >
REMARK = #{remark,jdbcType=DATE},
</if>
<if test="clientunitname != null" >
CLIENTUNITNAME = #{clientunitname,jdbcType=DATE},
</if>
</set>
where CID = #{ cid,jdbcType=INTEGER }
</update>
<delete id="deleteSysAfisclient" parameterType="java.lang.Integer" >
update Sys_Afisclient set SCBZ='1'
where CID = #{cid,jdbcType=INTEGER}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.founder.cjqx.dao.SysAfisclientVpMapper">
<resultMap id="BaseResultMap" type="com.founder.model.SysAfisclientVp">
<id column="ID" jdbcType="VARCHAR" property="id" />
<result column="VPID" jdbcType="VARCHAR" property="vpid" />
<result column="CID" jdbcType="INTEGER" property="cid" />
<result column="SCBZ" jdbcType="VARCHAR" property="scbz" />
<result column="LRSJ" jdbcType="DATE" property="lrsj" />
<result column="STATUS" jdbcType="VARCHAR" property="status" />
<result column="BZ" jdbcType="VARCHAR" property="bz" />
</resultMap>
<sql id="Base_Column_List" >
ID, VPID, CID, SCBZ, STATUS,LRSJ,bz
</sql>
<sql id="queryWhere" >
<where>
<if test="id != null and id !=''" >
AND ID = #{id,jdbcType=VARCHAR}
</if>
<if test="vpid != null and vpid !=''" >
AND VPID = #{vpid,jdbcType=VARCHAR}
</if>
<if test="cid != null and cid !=''" >
AND CID = #{cid,jdbcType=INTEGER}
</if>
<if test="scbz != null and scbz !=''" >
AND SCBZ = #{scbz,jdbcType=VARCHAR}
</if>
<if test="lrsj != null and lrsj !=''" >
AND LRSJ = #{lrsj,jdbcType=DATE}
</if>
<if test="status != null and status !=''" >
AND STATUS = #{status,jdbcType=VARCHAR}
</if>
<if test="bz != null and bz !=''" >
AND bz = #{bz,jdbcType=VARCHAR}
</if>
</where>
</sql>
<sql id="queryWhereLh" >
<where>
<if test="id != null and id !=''" >
AND T.ID = #{id,jdbcType=VARCHAR}
</if>
<if test="vpid != null and vpid !=''" >
AND T.VPID = #{vpid,jdbcType=VARCHAR}
</if>
<if test="cid != null and cid !=''" >
AND T.CID = #{cid,jdbcType=INTEGER}
</if>
<if test="scbz != null and scbz !=''" >
AND T.SCBZ = #{scbz,jdbcType=VARCHAR}
</if>
<if test="lrsj != null and lrsj !=''" >
AND T.LRSJ = #{lrsj,jdbcType=DATE}
</if>
<if test="status != null and status !=''" >
AND T.STATUS = #{status,jdbcType=VARCHAR}
</if>
<if test="bz != null and bz !=''" >
AND T.bz = #{bz,jdbcType=VARCHAR}
</if>
<if test="clientip != null and clientip !=''" >
AND D.CLIENTIP = #{clientip,jdbcType=DATE}
</if>
<if test="username != null and username !=''" >
AND D.USERNAME = #{username,jdbcType=VARCHAR}
</if>
<if test="clientmac != null and clientmac !=''" >
AND D.CLIENTMAC = #{clientmac,jdbcType=VARCHAR}
</if>
<if test="optunit != null and optunit !=''" >
AND D.OPTUNIT = #{optunit,jdbcType=VARCHAR}
</if>
<if test="clientunitname != null and clientunitname !=''" >
AND D.CLIENTUNITNAME = #{clientunitname,jdbcType=VARCHAR}
</if>
AND T.vpid=V.id AND T.cid=D.cid AND T.scbz = V.scbz AND T.scbz = D.scbz
</where>
</sql>
<!-- 通过条件分页查询,返回数据集 -->
<select id="selectPageList" parameterType="com.founder.model.SysAfisclientVp" resultMap="BaseResultMap">
SELECT * FROM
(
SELECT A.*, ROWNUM RN
FROM (SELECT * FROM sys_afisclient_vp
<include refid="queryWhere"/>) A
WHERE ROWNUM <![CDATA[ <= ]]> ${end}
)
WHERE RN <![CDATA[ >= ]]> ${begin}
</select>
<!-- 通过条件分页查询,返回总记录数 -->
<select id="selectPageCount" parameterType="com.founder.model.SysAfisclientVp" resultType="java.lang.Integer">
select count(1) from sys_afisclient_vp
<include refid="queryWhere"/>
</select>
<!-- 通过条件联合分页查询,返回数据集 -->
<select id="selectPageListLh" parameterType="com.founder.model.SysAfisclientVp" resultMap="BaseResultMap">
SELECT * FROM
(
SELECT A.*, ROWNUM RN
FROM (SELECT B.* FROM (
SELECT T.*,V.vid,V.pid,D.clientip,D.username,D.clientmac,D.optunit,D.clientunitname FROM sys_afisclient_vp T,sys_client_vp V,sys_afisclient D
<include refid="queryWhereLh"/>) B )A
WHERE ROWNUM <![CDATA[ <= ]]> ${end}
)
WHERE RN <![CDATA[ >= ]]> ${begin}
</select>
<!-- 通过条件联合分页查询,返回总记录数 -->
<select id="selectPageCountLh" parameterType="com.founder.model.SysAfisclientVp" resultType="java.lang.Integer">
select count(1) from (SELECT B.* FROM (
SELECT T.*,V.vid,V.pid,D.clientip,D.username,D.clientmac,D.optunit,D.clientunitname FROM sys_afisclient_vp T,sys_client_vp V,sys_afisclient D
<include refid="queryWhereLh"/>) B )
</select>
<!-- 保存设备-->
<insert id="saveSysAfisclientVp" parameterType="com.founder.model.SysAfisclientVp">
insert into sys_afisclient_vp ( ID, VPID, CID, SCBZ, STATUS,BZ)
values (
#{id,jdbcType=VARCHAR},
#{vpid,jdbcType=VARCHAR},
#{cid,jdbcType=INTEGER},
#{scbz,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{bz,jdbcType=VARCHAR})
</insert>
<select id="selectSysAfisclientVp" parameterType="java.lang.String" resultType="com.founder.model.SysAfisclientVp">
select <include refid="Base_Column_List"/>
from sys_afisclient_vp
where ID = #{id,jdbcType=VARCHAR }
</select>
<select id="selectSysAfisclientVpLh" parameterType="java.lang.String" resultType="com.founder.model.SysAfisclientVp">
select * from (SELECT B.* FROM (
SELECT T.*,V.vid,V.pid,D.clientip,D.username,D.clientmac,D.optunit,D.clientunitname FROM sys_afisclient_vp T,sys_client_vp V,sys_afisclient D
<include refid="queryWhereLh"/>) B )
</select>
<select id="selectSysAfisclientVpAll" parameterType="com.founder.model.SysAfisclientVp" resultType="com.founder.model.SysAfisclientVp">
select <include refid="Base_Column_List"/>
from sys_afisclient_vp
<include refid="queryWhere"/>
</select>
<update id="updateSysAfisclientVp" parameterType="com.founder.model.SysAfisclientVp" >
update sys_afisclient_vp
<set>
<if test="id != null and id !=''" >
ID = #{id,jdbcType=VARCHAR},
</if>
<if test="vpid != null and vpid !=''" >
VPID = #{vpid,jdbcType=VARCHAR},
</if>
<if test="cid != null and cid !=''" >
CID = #{cid,jdbcType=INTEGER},
</if>
<if test="scbz != null and scbz !=''" >
SCBZ = #{scbz,jdbcType=VARCHAR},
</if>
<if test="lrsj != null and lrsj !=''" >
LRSJ = #{lrsj,jdbcType=DATE},
</if>
<if test="status != null and status !=''" >
STATUS = #{status,jdbcType=VARCHAR},
</if>
<if test="bz != null and bz !=''" >
BZ = #{bz,jdbcType=VARCHAR},
</if>
</set>
where ID = #{ id,jdbcType=VARCHAR }
</update>
<delete id="deleteSysAfisclientVp" parameterType="java.lang.String" >
update sys_afisclient_vp set SCBZ='1'
where ID = #{id,jdbcType=VARCHAR}
</delete>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.founder.cjqx.dao.SysClientVpMapper">
<resultMap id="BaseResultMap" type="com.founder.model.SysClientVp">
<id column="ID" jdbcType="VARCHAR" property="id" />
<result column="VID" jdbcType="VARCHAR" property="vid" />
<result column="PID" jdbcType="VARCHAR" property="pid" />
<result column="SCBZ" jdbcType="VARCHAR" property="scbz" />
<result column="LRSJ" jdbcType="DATE" property="lrsj" />
</resultMap>
<sql id="Base_Column_List" >
ID, VID, PID, SCBZ, LRSJ
</sql>
<sql id="queryWhere" >
<where>
<if test="id!=null and id !=''">AND id = #{id}</if>
AND SCBZ='0'
</where>
</sql>
<!-- 通过条件分页查询,返回数据集 -->
<select id="selectPageList" parameterType="com.founder.model.SysClientVp" resultMap="BaseResultMap">
SELECT * FROM
(
SELECT A.*, ROWNUM RN
FROM (SELECT * FROM Sys_Client_Vp
<include refid="queryWhere"/>) A
WHERE ROWNUM <![CDATA[ <= ]]> ${end}
)
WHERE RN <![CDATA[ >= ]]> ${begin}
</select>
<!-- 通过条件分页查询,返回总记录数 -->
<select id="selectPageCount" parameterType="com.founder.model.SysClientVp" resultType="java.lang.Integer">
select count(1) from Sys_Client_Vp
<include refid="queryWhere"/>
</select>
<!-- 保存设备-->
<insert id="saveSysClientVp" parameterType="com.founder.model.SysClientVp">
insert into Sys_Client_Vp ( ID, VID, PID, SCBZ)
values (
#{id,jdbcType=INTEGER},
#{vid,jdbcType=VARCHAR},
#{pid,jdbcType=INTEGER},
#{scbz,jdbcType=VARCHAR})
</insert>
<select id="selectSysClientVp" parameterType="java.lang.String" resultType="com.founder.model.SysClientVp">
select <include refid="Base_Column_List"/>
from Sys_Client_Vp
where ID = #{id,jdbcType=VARCHAR }
</select>
<update id="updateSysClientVp" parameterType="com.founder.model.SysClientVp" >
update Sys_Client_Vp
<set>
<if test="id != null" >
ID = #{id,jdbcType=VARCHAR},
</if>
<if test="vid != null" >
VID = #{vid,jdbcType=INTEGER},
</if>
<if test="pid != null" >
PID = #{pid,jdbcType=VARCHAR},
</if>
<if test="scbz != null" >
SCBZ = #{scbz,jdbcType=VARCHAR},
</if>
<if test="lrsj != null" >
LRSJ = #{lrsj,jdbcType=DATE},
</if>
</set>
where ID = #{ id,jdbcType=VARCHAR }
</update>
<delete id="deleteSysClientVp" parameterType="java.lang.String" >
update Sys_Client_Vp set SCBZ='1'
where ID = #{id,jdbcType=VARCHAR}
</delete>
</mapper>
\ No newline at end of file
@font-face {
font-family: 'iconfont';
src: url('../fonts/iconfont.eot');
src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/iconfont.woff') format('woff'),
url('../fonts/iconfont.ttf') format('truetype'),
url('../fonts/iconfont.svg#iconfont') format('svg');
}
.iconfont{
color: #fff;
font-family:"iconfont" !important;
font-size:16px;font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
@charset "utf-8";
*{
margin: 0px;
padding: 0px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a{
text-decoration: none;
}
html{
width: 100%;
}
body{
width: 100%;
background-color: #54364a;
background-image: url(../images/11.jpg);
background-repeat: no-repeat;
background-size: cover;
color: #ffffff;
}
/*layer弹出层背景设置*/
.layui-layer{
background-image: url(../images/11.jpg);
background-size: cover;
}
/*背景设置*/
.bg-changer{
position: fixed;
left: 0px;
top: -110px;
width: 100%;
/*height: 100px;*/
}
.bg-changer #changer-set{
position: fixed;
top: 111px;
right: 0px;
width: 33px;
height: 33px;
background: rgba(0,0,0,0.5);
border: 1px solid rgba(255,255,255, 0.3);
border-top: 0px;
color: #fff;
text-align: center;
line-height: 33px;
cursor: pointer;
}
.bg-changer #changer-set i{
display: block;
font-size: 25px;
/* 设置默认样式,开启3d硬件加速 */
-webkit-transform:translate3d(0,0,0);
-moz-transform:translate3d(0,0,0);
transform:translate3d(0,0,0);
/* 设置动画,animation:动画名称 动画播放时长单位秒或微秒 动画播放的速度曲线linear为匀速 动画播放次数infinite为循环播放; */
-webkit-animation:play 3s linear infinite;
-moz-animation:play 3s linear infinite;
animation:play 3s linear infinite;
}
@-webkit-keyframes play{
0% {
-webkit-transform:rotateZ(0deg);
}
100% {
-webkit-transform:rotateZ(360deg);
}
}
@-moz-keyframes play{
0% {
-moz-transform:rotateZ(0deg);
}
100% {
-moz-transform:rotateZ(360deg);
}
}
@keyframes play{
0% {
transform:rotateZ(0deg);
}
100% {
transform:rotateZ(360deg);
}
}
.bg-changer .changer-list{
width: 100%;
height: 100px;
/*display: none;*/
padding-top: 10px;
background: rgba(0,0,0,0.5);
border: 1px solid rgba(255,255,255, 0.3);
}
.bg-changer .changer-list .swiper-slide{
width: 80px;
}
.bg-changer .changer-list img.item{
width: 80px;
height: 80px;
}
.bg-changer .changer-list span{
display: block;
width: 80px;
height: 80px;
color: #fff;
text-align: center;
line-height: 80px;
/*background: #4390EE url("/") 0 0 no-repeat;*/
}
.bg-changer .bg-out{
width: 100%;
height: 900px;
/*background: red url() 0 0 no-repeat;*/
opacity: 0;
display: none;
}
/*登录样式*/
.login-logo{
width: 100%;
padding-top: 70px;
height: 50px;
}
.login-logo h1{
color: #fff;
font-size: 25px;
text-align: center;
}
.login-box{
width: 310px;
height: 350px;
padding: 20px 15px 15px;
background-color: rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255,255,255, 0.3);
margin: 0 auto;
}
.login-box h3{
font-weight: 300;
margin-bottom: 25px;
color: #fff;
margin-left: 0;
font-size: 22px;
margin-top: 20px;
}
.layui-form-item{
margin-top: 15px;
}
.layui-form-pane .layui-form-label{
border-radius: 6px;
background-color: rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255, 255, 255, 0.2);
border-right: 0px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.layui-form-pane .login-form{
width: 25px;
}
.layui-form-pane .layui-form-label i{
color: #fff;
font-size: 18px;
line-height: 14px;
}
.layui-form-item .login-inline{
width: 245px;
/*margin-left: 60px;*/
/*background-color: rgba(0, 0, 0, 0.25);*/
}
@media screen and (max-width: 450px){
.layui-form-item .layui-input-inline {
margin: 0 0 10px 56px;
}
}
.layui-form-label i{
font-size: 14px;
}
.layui-form-pane .layui-input,.layui-form-pane .layui-textarea,.layui-form-pane .layui-select{
background-color: rgba(0, 0, 0, 0.25);
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
color: #fff;
}
.layui-input:focus, .layui-textarea:focus, .layui-select:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.layui-input::-webkit-input-placeholder, .layui-textarea::-webkit-input-placeholder, .layui-select::-webkit-input-placeholder { color:#fff; }
.layui-input::-moz-placeholder, .layui-textarea::-moz-placeholder, .layui-select::-moz-placeholder { color:#fff; }
.login-title {
font-weight: bold;
color: #fff;
font-size: 14px;
}
.form-actions {
background-color: rgba(0, 0, 0, 0.25);
margin-left: -15px;
margin-right: -15px;
text-align: center;
margin-top: 20px;
padding: 19px 20px 20px;
}
.forgot {
width: 100%;
padding: 15px 0;
text-align: center;
color: #fff;
}
.forgot:hover {
color: #fff;
}
.btn {
/*display: inline-block;*/
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: normal;
line-height: 1.428571429;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
border: 1px solid transparent;
border-radius: 4px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
color: #ffffff;
background-color: rgba(240, 173, 78, 0.55);
border-color: #eea236;
margin:0 auto;
}
/*头部*/
.container{
width: 100%;
height: 71px;
background-color: rgba(0, 0, 0, 0.25);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.container .open-nav{
float: left;
line-height: 71px;
padding-left: 10px;
display: none;
cursor: pointer;
}
.container .open-nav i{
cursor: pointer;
}
.container .logo{
float: left;
color: #fff;
font-size: 25px;
padding-left: 20px;
line-height: 71px;
}
.container .right{
float: right;
}
/*主体*/
.wrapper{
display: table;
position: relative;
width: 100%;
}
.wrapper .left-nav{
background-color: rgba(0, 0, 0, 0.20);
color: #FFF;
display: table-cell;
float: none!important;
vertical-align: top;
max-width: 250px;
/*width: 0px;*/
}
.wrapper .left-nav #nav li{
width: 250px;
background-color: rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.wrapper .left-nav #nav li:hover{
background-color: rgba(0, 0, 0, 0.3);
}
.wrapper .left-nav #nav .current{
background-color: rgba(0, 0, 0, 0.3);
}
.wrapper .left-nav #nav li a{
width: 230px;
color: #fff;
font-size: 14px;
padding: 15px 15px 15px 20px;
display: block;
}
.wrapper .left-nav #nav li .sub-menu{
display: none;
background-color:rgba(0, 0, 0, 0.3)
}
.wrapper .left-nav #nav li .opened{
display: block;
}
.wrapper .left-nav #nav li .opened{
}
.wrapper .left-nav #nav li .opened .current{
background-color:rgba(0, 0, 0, 0.4)
}
.wrapper .left-nav #nav li .sub-menu li a{
padding: 12px 15px 12px 45px;
font-size: 14px;
}
.wrapper .left-nav #nav li .sub-menu li a i{
font-size: 12px;
}
.wrapper .left-nav #nav li a i{
padding-right: 10px;
line-height: 16px;
}
.wrapper .left-nav #nav li .nav_right{
float: right;
font-size: 12px;
}
.wrapper .page-content{
color: #FFF;
padding: 20px 30px;
display: table-cell;
float: none!important;
word-wrap:break-word;
word-break:break-all;
}
.wrapper .page-content .content{
min-height: 500px;
/*width: 100%;*/
/*height: 300px;*/
/*background: red url() 0 0 no-repeat;*/
}
.xblock{
display: block;
margin-bottom: 10px;
padding: 5px;
line-height: 22px;
/* border-left: 5px solid #009688; */
border-radius: 0 2px 2px 0;
background-color: rgba(0,0,0,0.2);
}
.x-right{
float: right;
}
.footer{
width: 100%;
background-color: rgba(0, 0, 0, 0.25);
border-top: 1px solid rgba(255, 255, 255, 0.2);
line-height: 41px;
color: #fff;
/*padding-left: 10px;*/
}
.footer .copyright{
margin-left: 10px;
}
@media screen and (max-width: 1024px){
.wrapper .left-nav{
width: 0px;
}
.wrapper .left-nav #side-nav{
display: none;
}
.container .open-nav{
display: block;
}
}
@media screen and (min-width: 1024px){
.wrapper .left-nav{
width: 250px;
}
.wrapper .left-nav #side-nav{
display: block;
}
.container .open-nav{
display: none;
}
}
@media screen and (max-width: 1024px){
.login-box{
width: 100%;
}
}
@media screen and (max-width: 500px){
.container .right{
display: none;
}
}
@media screen and (max-width: 768px){
.xbs768{
display: none;
}
}
body .layui-table{color:#fff;background-color: rgba(0,0,0,0.25);}
body .layui-table-tool,body .layui-laypage input,body .layui-laypage button,body .layui-laypage-limits select{background-color: rgba(0,0,0,0.2);}
body .layui-table-header,body .layui-table-hover,body .layui-table tbody tr:hover,body .layui-table thead tr,body .layui-table-click,body .layui-table-header,body .layui-table-hover,body .layui-table-mend,body .layui-table-patch,body .layui-table-tool,body .layui-table-total,body .layui-table-total tr,body .layui-table[lay-even] tr:nth-child(even) {background-color: rgba(0,0,0,0.25);}
body .layui-table tbody tr:hover{background-color: rgba(0,0,0,0.4);}
body .layui-btn{height: 30px;line-height: 30px;}
body .layui-table-tool .layui-inline[lay-event]{color:#fff;}
body .layui-laypage-limits select{height:26px;line-height: 26px;}
body .layui-table-fixed .layui-table-body{background-color: rgba(0,0,0,0.25);}
body .layui-table-fixed{ background: rgba(0,0,0,0.1);}
body .layui-laypage-limits select option{background-color: rgba(0,0,0,0.4);}
body .fa-color1,body .fa-color2{font-size:25px;}
body .fa-color1{color:#20d620;}
body .fa-color2{color:red;}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
$(function () {
//加载弹出层
layui.use(['form','element'],
function() {
layer = layui.layer;
//element = layui.element();
});
//初如化背景
function bgint () {
if(localStorage.bglist){
var arr = JSON.parse(localStorage.bglist);//
// console.log(arr);
//全局背景统一
if(arr['bgSrc']){
$('body').css('background-image', 'url('+arr['bgSrc']+')');
//初始化弹出层背景
}
//单个背景逻辑
// if(arr[location.href]){
// $('body').css('background-image', 'url('+arr[location.href]+')');
// }
}
}
bgint();
//背景主题功能
/*var changerlist = new Swiper('.changer-list', {
initialSlide :5,
effect: 'coverflow',
grabCursor: true,
centeredSlides: true,
slidesPerView: 'auto',
coverflow: {
rotate: 50,
stretch: -10,
depth: 100,
modifier: 1,
slideShadows : false
}
});*/
//判断是否显示左侧菜单
$(window).resize(function(){
width=$(this).width();
if(width>1024){
$('#side-nav').show();
}
});
//背景主题设置展示
is_show_change=true;
$('#changer-set').click(function(event) {
if(is_show_change){
$('.bg-out').show();
$('.bg-changer').animate({top: '0px'}, 500);
is_show_change=false;
}else{
$('.bg-changer').animate({top: '-110px'}, 500);
is_show_change=true;
}
});
//背景主题切换
$('.bg-changer img.item').click(function(event) {
if(!localStorage.bglist){
arr = {};
}else{
arr = JSON.parse(localStorage.bglist);
}
var src = $(this).attr('src');
$('body').css('background-image', 'url('+src+')');
url = location.href;
// 单个背景逻辑
// arr[url]=src;
// 全局背景统一
arr['bgSrc'] = src;
// console.log(arr);
localStorage.bglist = JSON.stringify(arr);
});
//背景初始化
$('.reset').click(function () {
localStorage.clear();
layer.msg('初如化成功',function(){});
});
//背景切换点击空白区域隐藏
$('.bg-out').click(function () {
$('.bg-changer').animate({top: '-110px'}, 500);
is_show_change=true;
$(this).hide();
})
//窄屏下的左侧菜单隐藏效果
$('.container .open-nav i').click(function(event) {
$('#side-nav').toggle(400);
// $('.wrapper .left-nav').toggle(400)
});
//左侧菜单效果
$('.left-nav #nav li').click(function () {
if($(this).hasClass('open')){
$(this).removeClass('open');
$(this).find('.nav_right').html('&#xe697;');
$(this).children('.sub-menu').slideUp();
// $(this).siblings().children('.sub-menu').slideUp();
}else{
$(this).addClass('open');
$(this).find('.nav_right').html('&#xe6a6;');
$(this).children('.sub-menu').slideDown();
$(this).siblings().children('.sub-menu').slideUp();
$(this).siblings().removeClass('open');
}
})
//初始化菜单展开样式
$('.left-nav #nav li .opened').siblings('a').find('.nav_right').html('&#xe6a6;');
})
/*弹出层*/
/*
参数解释:
title 标题
url 请求的url
id 需要操作的数据id
w 弹出层宽度(缺省调默认值)
h 弹出层高度(缺省调默认值)
*/
function x_admin_show(title,url,w,h){
if (title == null || title == '') {
title=false;
};
if (url == null || url == '') {
url="404.html";
};
if (w == null || w == '') {
w=800;
};
if (h == null || h == '') {
h=($(window).height() - 50);
};
layer.open({
type: 2,
area: [w+'px', h +'px'],
fix: false, //不固定
maxmin: true,
shadeClose: true,
shade:0.4,
title: title,
content: url
});
}
/*关闭弹出框口*/
function x_admin_close(){
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
}
/** layui-v2.4.3 MIT License By https://www.layui.com */
blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')} .layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} .layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important} .layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important} .layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1} .layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0} .layui-edge{border-style:dashed;border-color:transparent;overflow:hidden} .layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap} .layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none} .layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important} .layui-circle{border-radius:100%} .layui-show{display:block!important} .layui-hide{display:none!important} .layui-upload-iframe{border:0;visibility:hidden} .layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)} @-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}} @keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}} .layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale} @-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}} @keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}} .layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up} @-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}} @keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}} .layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left} @-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}} @keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}} .layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right} @-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}} @keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}} .layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout} @-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}} @keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}} .layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout} .layui-m-layer{position:relative;z-index:19891014} .layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box} .layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%} .layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto} .layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none} .layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center} .layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s} .layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px} .layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0} .layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff} .layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center} .layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap} .layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center} .layui-m-layer1 .layui-m-layercont{padding:0;text-align:left} .layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0} .layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both} .layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px} .layui-m-layer2 .layui-m-layercont p{margin-top:20px} @-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}} @keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}} .layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s} .layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s} .layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px} .layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2} .layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer} .layui-m-layerbtn span[yes]{color:#40AFFE} .layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px} .layui-m-layerbtn span:active{background-color:#F6F6F6} .layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px} .layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px} .layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)} body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0} .layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)} .layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none} .layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)} .layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px} .layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px} body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff} .layui-m-layer-msg .layui-m-layercont{padding:10px 20px}
\ No newline at end of file
/** layui-v2.4.3 MIT License By https://www.layui.com */
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
\ No newline at end of file
/** layui-v2.4.3 MIT License By https://www.layui.com */
.laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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