diff --git a/src/main/java/com/nis/domain/restful/jk/JkDmbCk.java b/src/main/java/com/nis/domain/restful/jk/JkDmbCk.java deleted file mode 100644 index 8d6e958..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkDmbCk.java +++ /dev/null @@ -1,149 +0,0 @@ -package com.nis.domain.restful.jk; - -import org.apache.ibatis.type.Alias; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.nis.domain.BaseEntity; -import com.wordnik.swagger.annotations.ApiModelProperty; - -/** - * DmbCk entity. @author MyEclipse Persistence Tools - */ -@Alias("jkDmbck") -public class JkDmbCk extends BaseEntity{ - - /** - * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) - * - * @since 1.0.0 - */ - - private static final long serialVersionUID = -5491965286339219052L; - // Fields - private Long gId; - @ApiModelProperty(value="国际出口ID", required=true) - private Long gjCkId; - @ApiModelProperty(value="是否生效", required=true) - private Long sfSx; -// @ApiModelProperty(value="生效范围", required=true) - private String sxFw; - @ApiModelProperty(value="出口名称", required=true) - private String ckMc; - @ApiModelProperty(value="出口位置", required=true) - private String ckWz; -// @ApiModelProperty(value="通讯方法", required=false) -// private String ckTxff; -// @ApiModelProperty(value="备注", required=false) -// private String ckBz; -// @ApiModelProperty(value="预留", required=false) -// private String yl; -// @ApiModelProperty(value="预留1", required=false) -// private Long yl1; -// @ApiModelProperty(value="预留2", required=false) -// private Long yl2; -// @ApiModelProperty(value="预留3", required=false) -// private String yl3; -// @ApiModelProperty(value="预留4", required=false) -// private String yl4; -// @ApiModelProperty(value="预留5", required=false) -// private String yl5; -// @ApiModelProperty(value="国际出口编号", required=true) -// private Long ckNo; - @ApiModelProperty(value="国际出口编号扩容", required=false) - private String ckNoRaw; - @ApiModelProperty(value="运营商类型", required=true) - private Long isp; - @ApiModelProperty(value="出口地点", required=true) - private Long dd; - - // Constructors - - /** default constructor */ - public JkDmbCk() { - } - - - - /* (non-Javadoc) - * @see com.nis.domain.BaseEntity#getId() - */ - @Override - @JsonIgnore - public Long getId() { - // TODO Auto-generated method stub - return super.getId(); - } - - public Long getGjCkId() { - return this.gjCkId; - } - - public void setGjCkId(Long gjCkId) { - this.gjCkId = gjCkId; - } - @JsonIgnore - public Long getGId() { - return this.gId; - } - - public void setGId(Long gId) { - this.gId = gId; - } - - public Long getSfSx() { - return this.sfSx; - } - - public void setSfSx(Long sfSx) { - this.sfSx = sfSx; - } - @JsonIgnore - public String getSxFw() { - return this.sxFw; - } - - public void setSxFw(String sxFw) { - this.sxFw = sxFw; - } - - public String getCkMc() { - return this.ckMc; - } - - public void setCkMc(String ckMc) { - this.ckMc = ckMc; - } - - public String getCkWz() { - return this.ckWz; - } - - public void setCkWz(String ckWz) { - this.ckWz = ckWz; - } - - public String getCkNoRaw() { - return this.ckNoRaw; - } - - public void setCkNoRaw(String ckNoRaw) { - this.ckNoRaw = ckNoRaw; - } - - public Long getIsp() { - return this.isp; - } - - public void setIsp(Long isp) { - this.isp = isp; - } - - public Long getDd() { - return this.dd; - } - - public void setDd(Long dd) { - this.dd = dd; - } - -} \ No newline at end of file diff --git a/src/main/java/com/nis/domain/restful/jk/JkDmbCkSource.java b/src/main/java/com/nis/domain/restful/jk/JkDmbCkSource.java deleted file mode 100644 index ff3ec56..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkDmbCkSource.java +++ /dev/null @@ -1,125 +0,0 @@ -/** - *@Title: DmbCkSource.java - *@Package com.nis.domain.restful - *@Description TODO - *@author dell - *@date 2016年9月9日 上午9:53:04 - *@version 版本号 - */ -package com.nis.domain.restful.jk; - -import java.util.Date; -import java.util.List; - -import org.apache.ibatis.type.Alias; - -import com.nis.domain.restful.ConfigCommonSource; - -/** - * @ClassName: DmbCkSource.java - * @Description: TODO - * @author (wx) - * @date 2016年9月9日 上午9:53:04 - * @version V1.0 - */ -@Alias("jkDmbCkSource") -public class JkDmbCkSource extends ConfigCommonSource{ - - /** - * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) - * - * @since 1.0.0 - */ - - private static final long serialVersionUID = 262835095511967504L; - private static final String DEFAULT_VERSION = "1.0"; - private List dmbCkList; - - - /** - * 创建一个新的实例 DmbCkSource. - * - */ - public JkDmbCkSource() { - super(); - // TODO Auto-generated constructor stub - this.version=DEFAULT_VERSION; - } - public JkDmbCkSource(String version) { - this.version=version; - } - - /** - * @return version - */ - public String getVersion() { - return version; - } - - /** - * @param version 要设置的 version - */ - public void setVersion(String version) { - this.version = version; - } - - /** - * @return operator - */ - public String getOperator() { - return operator; - } - - /** - * @param operator 要设置的 operator - */ - public void setOperator(String operator) { - this.operator = operator; - } - - - /** - * @return opTime - */ - public Date getOpTime() { - return opTime; - } - - /** - * @param opTime 要设置的 opTime - */ - public void setOpTime(Date opTime) { - this.opTime = opTime; - } - - - - /** - * @return opAction - */ - public Integer getOpAction() { - return opAction; - } - - /** - * @param opAction 要设置的 opAction - */ - public void setOpAction(Integer opAction) { - this.opAction = opAction; - } - - /** - * dmbCkList - * @return dmbCkList - */ - - public List getDmbCkList() { - return dmbCkList; - } - /** - * @param dmbCkList the dmbCkList to set - */ - public void setDmbCkList(List dmbCkList) { - this.dmbCkList = dmbCkList; - } -} diff --git a/src/main/java/com/nis/domain/restful/jk/JkFdZb.java b/src/main/java/com/nis/domain/restful/jk/JkFdZb.java deleted file mode 100644 index 4785160..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkFdZb.java +++ /dev/null @@ -1,208 +0,0 @@ -package com.nis.domain.restful.jk; - -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.nis.domain.BaseEntity; -import com.nis.util.JsonDateSerializer; -import com.wordnik.swagger.annotations.ApiModelProperty; - -/** - * JkFdZb entity. - */ - -public class JkFdZb extends BaseEntity{ - - /** - * - */ - private static final Long serialVersionUID = 6166248976615344964L; - // Fields - @ApiModelProperty(value="全局编号", required=true) - private Long gId; - @ApiModelProperty(value="总表编号", required=true) - private Long zbId; - @ApiModelProperty(value="封堵方式", required=true) - private Long fdFs; - @ApiModelProperty(value="是否封堵", required=true) - private Long sfFd; - @ApiModelProperty(value="IP地址", required=true) - private String jkIp; - @ApiModelProperty(value="掩码", required=true) - private Long jkYm; - @ApiModelProperty(value="生效运营商", required=true) - private String ispRaw; - @ApiModelProperty(value="生效范围", required=true) - private String sxFw; - @ApiModelProperty(value="最后修改时间", required=true) - private Date lastUpdate; - /*@ApiModelProperty(value="IP地址类型", required=true) - private Integer addrType;*/ -// @ApiModelProperty(value="网站名称", required=true) -// private String jkWzMc; -// @ApiModelProperty(value="域名", required=true) -// private String jkDns; -// @ApiModelProperty(value="有害分类", required=true) -// private Long jkFl; -// @ApiModelProperty(value="有害性质", required=true) -// private Long jkXz; -// @ApiModelProperty(value="网站语言", required=true) -// private Long jkYy; -// @ApiModelProperty(value="通知单位", required=true) -// private String jkTzdw; -// @ApiModelProperty(value="来文函号", required=true) -// private String lwhh; -// @ApiModelProperty(value="预审员", required=true) -// private Long czyId; -// @ApiModelProperty(value="预审时间", required=true) -// private Date jkSj1; -// @ApiModelProperty(value="审核员", required=true) -// private Long jkShy; -// @ApiModelProperty(value="审核时间", required=true) -// private Date jkSj2; -// @ApiModelProperty(value="审批单号", required=true) -// private String spd; -// @ApiModelProperty(value="控管操作员", required=true) -// private Long kgczyid; -// @ApiModelProperty(value="控管操作时间", required=true) -// private Date kgczysj; -// @ApiModelProperty(value="用户组ID", required=true) -// private Long groupid; -// @ApiModelProperty(value="任务", required=true) -// private String rw; -// @ApiModelProperty(value="备注信息", required=true) -// private String jkBz; -// @ApiModelProperty(value="首次封堵时间", required=true) -// private String yl; -// @ApiModelProperty(value="有害网址配置ID", required=true) -// private Long yhwzId; -// @ApiModelProperty(value="截止日期", required=true) -// private Date yxrq; -// @ApiModelProperty(value="登记人", required=true) -// private Long djyid; -// @ApiModelProperty(value="登记时间 ", required=true) -// private Date djsj; -// @ApiModelProperty(value="复核人", required=true) -// private Long fhyid; -// @ApiModelProperty(value="复核时间", required=true) -// private Date fhsj; -// @ApiModelProperty(value="有害网址预审员", required=true) -// private Long yhwzysy; -// @ApiModelProperty(value="有害网址预审时间 ", required=true) -// private Date yhwzyssj; -// @ApiModelProperty(value="有害网址审核员", required=true) -// private Long yhwzshy; -// @ApiModelProperty(value="有害网址审核时间 ", required=true) -// private Date yhwzshsj; -// @ApiModelProperty(value="国际出口ID", required=true) -// private Long ipzyYsy; -// @ApiModelProperty(value="预审时间", required=true) -// private Date ipzyYssj; -// @ApiModelProperty(value="审核员", required=true) -// private Long ipzyShy; -// @ApiModelProperty(value="审核时间", required=true) -// private Date ipzyShsj; -// @ApiModelProperty(value="整型IP地址", required=true) -// private Long ipNum; -// @ApiModelProperty(value="生效运营商范围", required=true) -// private Long isp; -// @ApiModelProperty(value="预留1", required=true) -// private Long yl1; -// @ApiModelProperty(value="预留2", required=true) -// private Long yl2; -// @ApiModelProperty(value="预留3", required=true) -// private String yl3; -// @ApiModelProperty(value="预留4", required=true) -// private String yl4; -// @ApiModelProperty(value="预留5", required=true) -// private String yl5; - - public Long getGId() { - return gId; - } - @JsonIgnore - public void setGId(Long gId) { - this.gId = gId; - } - // Property accessors - - public Long getZbId() { - return this.zbId; - } - - public void setZbId(Long zbId) { - this.zbId = zbId; - } - - public Long getFdFs() { - return this.fdFs; - } - - public void setFdFs(Long fdFs) { - this.fdFs = fdFs; - } - - public Long getSfFd() { - return this.sfFd; - } - - public void setSfFd(Long sfFd) { - this.sfFd = sfFd; - } - - /*public Integer getAddrType() { - return addrType; - } - - public void setAddrType(Integer addrType) { - this.addrType = addrType; - } - */ - public String getJkIp() { - return this.jkIp; - } - - public void setJkIp(String jkIp) { - this.jkIp = jkIp; - } - - public Long getJkYm() { - return this.jkYm; - } - - public void setJkYm(Long jkYm) { - this.jkYm = jkYm; - } - - public String getSxFw() { - return this.sxFw; - } - - public void setSxFw(String sxFw) { - this.sxFw = sxFw; - } - - public String getIspRaw() { - return ispRaw; - } - public void setIspRaw(String ispRaw) { - this.ispRaw = ispRaw; - } - @JsonIgnore - /*@JsonSerialize(using=JsonDateSerializer.class)*/ - public Date getLastUpdate() { - return lastUpdate; - } - public void setLastUpdate(Date lastUpdate) { - this.lastUpdate = lastUpdate; - } - - @JsonIgnore - @Override - public Long getId() { - // TODO Auto-generated method stub - return super.getId(); - } - -} \ No newline at end of file diff --git a/src/main/java/com/nis/domain/restful/jk/JkFdZbSource.java b/src/main/java/com/nis/domain/restful/jk/JkFdZbSource.java deleted file mode 100644 index 803d4ee..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkFdZbSource.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - *@Title: JkFdZbSource.java - *@Package com.nis.domain.restful.gk - *@Description TODO - *@author ddm - *@date 2016年10月20日 上午9:13:04 - *@version V1.0 - */ -package com.nis.domain.restful.jk; - -import java.util.Date; -import java.util.List; - -import com.nis.domain.restful.ConfigCommonSource; - -/** - * @ClassName: JkFdZbSource.java - * @Description: TODO - * @author (wx) -*@date 2016年10月20日 上午9:13:04 - * @version V1.0 - */ -public class JkFdZbSource extends ConfigCommonSource{ - - /** - * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) - * - * @since 1.0.0 - */ - private static final long serialVersionUID = 78331728636991746L; - - - private static final String DEFAULT_VERSION = "1.0"; - private List jkFdZbList; - - - /** - * 创建一个新的实例 JkFdZbSource. - * - */ - public JkFdZbSource() { - super(); - this.version=DEFAULT_VERSION; - } - public JkFdZbSource(String version) { - this.version=version; - } - - /** - * @return version - */ - public String getVersion() { - return version; - } - - /** - * @param version 要设置的 version - */ - public void setVersion(String version) { - this.version = version; - } - - /** - * @return operator - */ - public String getOperator() { - return operator; - } - - /** - * @param operator 要设置的 operator - */ - public void setOperator(String operator) { - this.operator = operator; - } - - - /** - * @return opTime - */ - public Date getOpTime() { - return opTime; - } - - /** - * @param opTime 要设置的 opTime - */ - public void setOpTime(Date opTime) { - this.opTime = opTime; - } - - - - /** - * @return opAction - */ - public Integer getOpAction() { - return opAction; - } - - /** - * @param opAction 要设置的 opAction - */ - public void setOpAction(Integer opAction) { - this.opAction = opAction; - } - - /** - * jkFdZbList - * @return jkFdZbList - */ - - public List getJkFdZbList() { - return jkFdZbList; - } - /** - * @param jkFdZbList the jkFdZbList to set - */ - public void setJkFdZbList(List jkFdZbList) { - this.jkFdZbList = jkFdZbList; - } -} diff --git a/src/main/java/com/nis/domain/restful/jk/JkFfjInfo.java b/src/main/java/com/nis/domain/restful/jk/JkFfjInfo.java deleted file mode 100644 index d7c9562..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkFfjInfo.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.nis.domain.restful.jk; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.nis.domain.BaseEntity; -import com.wordnik.swagger.annotations.ApiModelProperty; - -/** - * - * @ClassName: JkFfj.java - * @Description: TODO - * @author (zbc) - * @date 2016年10月19日 下午20:04:16 - * @version V1.0 - */ -public class JkFfjInfo extends BaseEntity { - - /** - * @Fields serialVersionUID - */ - private static final long serialVersionUID = -3343607423394648914L; - - @ApiModelProperty(value="全局编号", required=true) - protected Long gId; - @ApiModelProperty(value="分发机编号", required=true) - protected Long ffjId; - @ApiModelProperty(value="分发机名称", required=true) - protected String ffjMc; - @ApiModelProperty(value="分发机IP", required=true) - protected String ffjIp; - @ApiModelProperty(value="分发机角色", required=true) - protected Long ffjJs; - @ApiModelProperty(value="控管范围", required=true) - protected Long kgFw; - @ApiModelProperty(value="是否生效", required=true) - protected Long sfSx; - @ApiModelProperty(value="生效范围", required=true) - protected String sxFw; - - - public Long getgId() { - return gId; - } - @JsonIgnore - public void setgId(Long gId) { - this.gId = gId; - } - public Long getFfjId() { - return ffjId; - } - public void setFfjId(Long ffjId) { - this.ffjId = ffjId; - } - public String getFfjMc() { - return ffjMc; - } - public void setFfjMc(String ffjMc) { - this.ffjMc = ffjMc; - } - public String getFfjIp() { - return ffjIp; - } - public void setFfjIp(String ffjIp) { - this.ffjIp = ffjIp; - } - public Long getFfjJs() { - return ffjJs; - } - public void setFfjJs(Long ffjJs) { - this.ffjJs = ffjJs; - } - public Long getKgFw() { - return kgFw; - } - public void setKgFw(Long kgFw) { - this.kgFw = kgFw; - } - public Long getSfSx() { - return sfSx; - } - public void setSfSx(Long sfSx) { - this.sfSx = sfSx; - } - @JsonIgnore - public String getSxFw() { - return sxFw; - } - public void setSxFw(String sxFw) { - sxFw="0"; - this.sxFw = sxFw; - } - - - @JsonIgnore - @Override - public Long getId() { - return super.getId(); - } - -} diff --git a/src/main/java/com/nis/domain/restful/jk/JkFfjInfoSource.java b/src/main/java/com/nis/domain/restful/jk/JkFfjInfoSource.java deleted file mode 100644 index 8c7fb80..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkFfjInfoSource.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - *@Title: JkFfjInfoSource.java - *@Package com.nis.domain.restful - *@Description TODO - *@author dell - * @date 2016年10月19日 下午20:04:16 - *@version 版本号 - */ -package com.nis.domain.restful.jk; - -import java.util.List; - -import com.nis.domain.restful.ConfigCommonSource; - -/** - * @ClassName: JkFfjInfoSource.java - * @Description: TODO - * @author (zbc) - * @date 2016年10月19日 下午20:04:16 - * @version V1.0 - */ -public class JkFfjInfoSource extends ConfigCommonSource { - - /** - * @Fields serialVersionUID - */ - private static final long serialVersionUID = 8841765964336072965L; - - - private static final String DEFAULT_VERSION = "1.0"; - private List jkffjList; - - public JkFfjInfoSource() { - super(); - super.version=DEFAULT_VERSION; - } - - public JkFfjInfoSource(String version) { - super(); - super.version = version; - } - - - public List getJkffjList() { - return jkffjList; - } - - public void setJkffjList(List jkffjList) { - this.jkffjList = jkffjList; - } -} diff --git a/src/main/java/com/nis/domain/restful/jk/JkFwqInfo.java b/src/main/java/com/nis/domain/restful/jk/JkFwqInfo.java deleted file mode 100644 index 041150d..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkFwqInfo.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.nis.domain.restful.jk; - -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.nis.domain.BaseEntity; -import com.nis.util.JsonDateSerializer; -import com.wordnik.swagger.annotations.ApiModelProperty; - -public class JkFwqInfo extends BaseEntity { - - /** - * @Fields serialVersionUID - */ - private static final long serialVersionUID = 2875730011488077179L; - - @ApiModelProperty(value="全局编号", required=true) - protected Long gId; - @ApiModelProperty(value="服务器编号", required=true) - protected Long fwqId; - @ApiModelProperty(value="服务器名称", required=true) - protected String fwqMc; - @ApiModelProperty(value="服务器IP地址", required=true) - protected String fwqIp; - @ApiModelProperty(value="是否生效", required=true) - protected Long sfSx; - @ApiModelProperty(value="生效范围", required=true) - protected String sxFw; - - - public Long getgId() { - return gId; - } - @JsonIgnore - public void setgId(Long gId) { - this.gId = gId; - } - public Long getFwqId() { - return fwqId; - } - public void setFwqId(Long fwqId) { - this.fwqId = fwqId; - } - public String getFwqMc() { - return fwqMc; - } - public void setFwqMc(String fwqMc) { - this.fwqMc = fwqMc; - } - public String getFwqIp() { - return fwqIp; - } - public void setFwqIp(String fwqIp) { - this.fwqIp = fwqIp; - } - public Long getSfSx() { - return sfSx; - } - public void setSfSx(Long sfSx) { - this.sfSx = sfSx; - } - @JsonIgnore - public String getSxFw() { - return sxFw; - } - public void setSxFw(String sxFw) { - this.sxFw = sxFw; - } - - - @JsonIgnore - @Override - public Long getId() { - return super.getId(); - } - -} diff --git a/src/main/java/com/nis/domain/restful/jk/JkFwqInfoSource.java b/src/main/java/com/nis/domain/restful/jk/JkFwqInfoSource.java deleted file mode 100644 index 45aafb4..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkFwqInfoSource.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - *@Title: JkFwqInfoSource.java - *@Package com.nis.domain.restful - *@Description TODO - *@author dell - * @date 2016年10月19日 下午20:04:16 - *@version 版本号 - */ -package com.nis.domain.restful.jk; - -import java.util.List; - -import com.nis.domain.restful.ConfigCommonSource; - -/** - * @ClassName: JkFwqInfoSource.java - * @Description: TODO - * @author (zbc) - * @date 2016年10月19日 下午20:04:16 - * @version V1.0 - */ -public class JkFwqInfoSource extends ConfigCommonSource { - - /** - * @Fields serialVersionUID - */ - private static final long serialVersionUID = -2670423354555878411L; - - private static final String DEFAULT_VERSION = "1.0"; - private List jkFwqList; - - - public JkFwqInfoSource() { - super(); - super.version = DEFAULT_VERSION; - } - - public JkFwqInfoSource(String version) { - super(); - super.version = version; - } - - - - public List getJkFwqInfoList() { - return jkFwqList; - } - - public void setJkFwqList(List jkFwqList) { - this.jkFwqList = jkFwqList; - } -} diff --git a/src/main/java/com/nis/domain/restful/jk/JkLyq.java b/src/main/java/com/nis/domain/restful/jk/JkLyq.java deleted file mode 100644 index faa4b52..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkLyq.java +++ /dev/null @@ -1,136 +0,0 @@ -package com.nis.domain.restful.jk; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.nis.domain.BaseEntity; -import com.wordnik.swagger.annotations.ApiModelProperty; - -/** - * JkLyq entity. @author MyEclipse Persistence Tools - */ - -public class JkLyq extends BaseEntity { - - /** - * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) - * - * @since 1.0.0 - */ - - private static final long serialVersionUID = -4644455398744485045L; - // Fields -// @ApiModelProperty(value="全局编号", required=true) - private Long gId; - @ApiModelProperty(value="路由器编号", required=true) - private Long lyqId; - @ApiModelProperty(value="路由器名称", required=true) - private String lyqMc; - @ApiModelProperty(value="控管服务器编号", required=true) - private Long fwqId; - @ApiModelProperty(value="虚拟主机编号", required=true) - private Long kgfs; - @ApiModelProperty(value="国际出口编号", required=true) - private Long gjCkId; - @ApiModelProperty(value="是否生效", required=true) - private Long sfSx; - @ApiModelProperty(value="生效范围", required=true) - private String sxFw; -// @ApiModelProperty(value="操作员", required=true) -// private Long czyId; -// @ApiModelProperty(value="操作时间", required=true) -// private Date czSj; -// @ApiModelProperty(value="备注", required=false) -// private String bz; -// @ApiModelProperty(value="预留", required=false) -// private String yl; - @ApiModelProperty(value="监听的端口", required=false) - private Long fwqDk; - - // Constructors - - /** default constructor */ - public JkLyq() { - } - - // Property accessors - /* (non-Javadoc) - * @see com.nis.domain.BaseEntity#getId() - */ - @Override - @JsonIgnore - public Long getId() { - // TODO Auto-generated method stub - return super.getId(); - } - public Long getLyqId() { - return this.lyqId; - } - - public void setLyqId(Long lyqId) { - this.lyqId = lyqId; - } - @JsonIgnore - public Long getGId() { - return this.gId; - } - - public void setGId(Long gId) { - this.gId = gId; - } - - public String getLyqMc() { - return this.lyqMc; - } - - public void setLyqMc(String lyqMc) { - this.lyqMc = lyqMc; - } - - public Long getFwqId() { - return this.fwqId; - } - - public void setFwqId(Long fwqId) { - this.fwqId = fwqId; - } - - public Long getKgfs() { - return this.kgfs; - } - - public void setKgfs(Long kgfs) { - this.kgfs = kgfs; - } - - public Long getGjCkId() { - return this.gjCkId; - } - - public void setGjCkId(Long gjCkId) { - this.gjCkId = gjCkId; - } - - public Long getSfSx() { - return this.sfSx; - } - - public void setSfSx(Long sfSx) { - this.sfSx = sfSx; - } - @JsonIgnore - public String getSxFw() { - return this.sxFw; - } - - public void setSxFw(String sxFw) { - this.sxFw = sxFw; - } - - public Long getFwqDk() { - return this.fwqDk; - } - - public void setFwqDk(Long fwqDk) { - this.fwqDk = fwqDk; - } - -} \ No newline at end of file diff --git a/src/main/java/com/nis/domain/restful/jk/JkLyqSource.java b/src/main/java/com/nis/domain/restful/jk/JkLyqSource.java deleted file mode 100644 index 6a5e180..0000000 --- a/src/main/java/com/nis/domain/restful/jk/JkLyqSource.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - *@Title: JkLyqSource.java - *@Package com.nis.domain.restful.jk - *@Description TODO - *@author dell - *@date 2016年9月9日 上午9:53:04 - *@version 版本号 - */ -package com.nis.domain.restful.jk; - -import java.util.Date; -import java.util.List; - -import com.nis.domain.restful.ConfigCommonSource; - -/** - * @ClassName: JkLyqSource.java - * @Description: TODO - * @author (wx) - * @date 2016年9月9日 上午9:53:04 - * @version V1.0 - */ -public class JkLyqSource extends ConfigCommonSource{ - - /** - * @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么) - * - * @since 1.0.0 - */ - - private static final long serialVersionUID = 262835095511967504L; - private static final String DEFAULT_VERSION = "1.0"; - private List jkLyqList; - - - /** - * 创建一个新的实例 DmbCkSource. - * - */ - public JkLyqSource() { - super(); - // TODO Auto-generated constructor stub - this.version=DEFAULT_VERSION; - } - public JkLyqSource(String version) { - this.version=version; - } - - /** - * @return version - */ - public String getVersion() { - return version; - } - - /** - * @param version 要设置的 version - */ - public void setVersion(String version) { - this.version = version; - } - - /** - * @return operator - */ - public String getOperator() { - return operator; - } - - /** - * @param operator 要设置的 operator - */ - public void setOperator(String operator) { - this.operator = operator; - } - - - /** - * @return opTime - */ - public Date getOpTime() { - return opTime; - } - - /** - * @param opTime 要设置的 opTime - */ - public void setOpTime(Date opTime) { - this.opTime = opTime; - } - - - - /** - * @return opAction - */ - public Integer getOpAction() { - return opAction; - } - - /** - * @param opAction 要设置的 opAction - */ - public void setOpAction(Integer opAction) { - this.opAction = opAction; - } - - /** - * jkLyqList - * @return jkLyqList - */ - - public List getJkLyqList() { - return jkLyqList; - } - /** - * @param jkLyqList the jkLyqList to set - */ - public void setJkLyqList(List jkLyqList) { - this.jkLyqList = jkLyqList; - } -} diff --git a/src/main/java/com/nis/web/controller/restful/jk/JkDmbCkController.java b/src/main/java/com/nis/web/controller/restful/jk/JkDmbCkController.java deleted file mode 100644 index 117bc99..0000000 --- a/src/main/java/com/nis/web/controller/restful/jk/JkDmbCkController.java +++ /dev/null @@ -1,204 +0,0 @@ -/** - *@Title: JkDmbCkController.java - *@Package com.nis.web.controller.restful - *@Description TODO - *@author wx - *@date 2016年9月7日 下午3:58:16 - *@version 版本号 - */ -package com.nis.web.controller.restful.jk; - -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.log4j.Logger; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import com.nis.domain.restful.jk.JkDmbCk; -import com.nis.domain.restful.jk.JkDmbCkSource; -import com.nis.restful.RestBusinessCode; -import com.nis.restful.RestServiceException; -import com.nis.util.Constants; -import com.nis.util.OracleErrorCodeUtil; -import com.nis.util.StringUtil; -import com.nis.web.controller.BaseRestController; -import com.nis.web.service.SaveRequestLogThread; -import com.nis.web.service.ServicesRequestLogService; -import com.nis.web.service.restful.jk.JkDmbCkService; -import com.wordnik.swagger.annotations.ApiOperation; - -/** - * @ClassName: JkDmbCkController.java - * @Description: TODO - * @author (wx) - * @date 2016年9月7日 下午3:58:16 - * @version V1.0 - */ -@RestController -@RequestMapping("${servicePath}/jk/v1") -public class JkDmbCkController extends BaseRestController { - protected final Logger logger = Logger.getLogger(this.getClass()); - @Autowired - protected JkDmbCkService jkDmbCkService; - @Autowired - protected ServicesRequestLogService servicesRequestLogService; - /** - * saveDmbCkBatch(多条新增) - * (这里描述这个方法适用条件 – 可选) - * @param JkDmbCkSource - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") - @RequestMapping(value = "/dmbCkSources", method = RequestMethod.POST) - @ApiOperation(value = "保存因特网国际出入口", httpMethod = "POST", notes = "保存因特网国际出入口") - public Map saveDmbCkBatch(@RequestBody JkDmbCkSource dmbCkSource, HttpServletRequest request, HttpServletResponse response) { - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_POST,request, dmbCkSource); - super.checkOpAction(thread,System.currentTimeMillis()-start, dmbCkSource.getOpAction(), Constants.OPACTION_POST); - try{ - checkData(thread,start,dmbCkSource,Constants.OPACTION_POST); - jkDmbCkService.saveDmbCkBatch(dmbCkSource.getDmbCkList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"保存因特网国际出入口失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"保存因特网国际出入口成功",dmbCkSource.getDmbCkList()); - } - /** - * - * updateDmbCkBatch(多条更新) - * (这里描述这个方法适用条件 – 可选) - * @param JkDmbCkSource - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") - @RequestMapping(value = "/dmbCkSources", method = RequestMethod.PUT) - @ApiOperation(value = "更新因特网国际出入口", httpMethod = "PUT", notes = "更新因特网国际出入口") - public Map updateDmbCkBatch(@RequestBody JkDmbCkSource dmbCkSource, HttpServletRequest request, HttpServletResponse response){ - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_PUT,request, dmbCkSource); - super.checkOpAction(thread,System.currentTimeMillis()-start,dmbCkSource.getOpAction(), Constants.OPACTION_PUT); - try{ - checkData(thread,start,dmbCkSource,Constants.OPACTION_PUT); - jkDmbCkService.updateDmbCkBatch(dmbCkSource.getDmbCkList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"更新因特网国际出入口失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"更新因特网国际出入口成功",dmbCkSource.getDmbCkList()); - } - /** - * - * deleteDmbCk(单条删除) - * (这里描述这个方法适用条件 – 可选) - * @param id - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") -// @RequestMapping(value = "/dmbCkSources/{id}", method = RequestMethod.DELETE) -// @ApiOperation(value = "删除因特网国际出入口", httpMethod = "DELETE", notes = "删除因特网国际出入口") - public Map deleteDmbCk(@PathVariable("id") long id, HttpServletRequest request, HttpServletResponse response){ - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_DELETE,request, id); - try{ - jkDmbCkService.removeDmbCk(id); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e); - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"删除因特网国际出入口失败", RestBusinessCode.unknow_error.getValue()); - - } - - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"删除成功",id); - } - /** - * - * deleteDmbCk(多条删除) - * (这里描述这个方法适用条件 – 可选) - * @param JkDmbCkSource - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") -// @RequestMapping(value = "/dmbCkSources", method = RequestMethod.DELETE) -// @ApiOperation(value = "删除因特网国际出入口", httpMethod = "DELETE", notes = "删除因特网国际出入口") - public Map deleteDmbCk(@RequestBody JkDmbCkSource dmbCkSource, HttpServletRequest request, HttpServletResponse response){ - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_DELETE,request, dmbCkSource); - super.checkOpAction(thread,System.currentTimeMillis()-start,dmbCkSource.getOpAction(), Constants.OPACTION_DELETE); - try{ - jkDmbCkService.removeDmbCkBatch(dmbCkSource.getDmbCkList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e); - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"删除因特网国际出入口失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"批量删除成功",dmbCkSource.getDmbCkList()); - } - private void checkData(SaveRequestLogThread thread,long start,JkDmbCkSource dmbCkSource,int opAction){ - if(dmbCkSource.getDmbCkList().size()==0){ - throw new RestServiceException(thread,System.currentTimeMillis()-start,"因特网国际出入口不能为空", RestBusinessCode.unknow_error.getValue()); - } - for(JkDmbCk e:dmbCkSource.getDmbCkList()){ - if(opAction==Constants.OPACTION_POST&&e!=null&&e.getSfSx()!=Long.valueOf(Constants.YES)){ - throw new RestServiceException(thread,System.currentTimeMillis()-start,"只能新增有效数据", RestBusinessCode.wrong_range.getValue()); - }else if(opAction==Constants.OPACTION_PUT&&e!=null&&e.getSfSx()!=Long.valueOf(Constants.NO)){ - throw new RestServiceException(thread,System.currentTimeMillis()-start,"只允许将有效数据更改为无效数据", RestBusinessCode.wrong_range.getValue()); - } - if(opAction==Constants.OPACTION_POST){ - e.setSxFw("0"); - } - - } - } -} diff --git a/src/main/java/com/nis/web/controller/restful/jk/JkFdZbController.java b/src/main/java/com/nis/web/controller/restful/jk/JkFdZbController.java deleted file mode 100644 index 1d6f7d3..0000000 --- a/src/main/java/com/nis/web/controller/restful/jk/JkFdZbController.java +++ /dev/null @@ -1,177 +0,0 @@ -package com.nis.web.controller.restful.jk; - -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.List; -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import com.nis.domain.restful.jk.JkFdZb; -import com.nis.domain.restful.jk.JkFdZbSource; -import com.nis.restful.RestBusinessCode; -import com.nis.restful.RestServiceException; -import com.nis.util.Constants; -import com.nis.util.OracleErrorCodeUtil; -import com.nis.util.StringUtil; -import com.nis.web.controller.BaseRestController; -import com.nis.web.service.SaveRequestLogThread; -import com.nis.web.service.ServicesRequestLogService; -import com.nis.web.service.restful.jk.JkFdZbService; -import com.wordnik.swagger.annotations.Api; -import com.wordnik.swagger.annotations.ApiOperation; - - -/** - * @ClassName: JkFdZbController - * @Description: 静态控管封堵/解封 - * @author (DDM) - * @date 2016年10月20日 上午10:20:33 - * @version V1.0 - */ -@RestController -@RequestMapping("${servicePath}/jk/v1") -@Api(value = "JkFdZbController", description = "静态控管封堵/解封") -public class JkFdZbController extends BaseRestController { - Logger logger = LoggerFactory.getLogger(JkFdZbController.class); - SimpleDateFormat ymdhms=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - @Autowired - ServicesRequestLogService servicesRequestLogService; - @Autowired - protected JkFdZbService jkFdZbService; - - /** - * saveJkFdZbBatch(多条新增) - * (这里描述这个方法适用条件 – 可选) - * @param JkFdZbSource - * @param request - * @param response - * @return Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") - @RequestMapping(value = "/jkFdZbSources", method = RequestMethod.POST) - @ApiOperation(value = "静态控管封堵", httpMethod = "POST", notes = "save provider info") - public Map saveJkFdZbBatch(@RequestBody JkFdZbSource jkFdZbSource, HttpServletRequest request, HttpServletResponse response) { - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_POST,request, jkFdZbSource); - super.checkOpAction(thread,System.currentTimeMillis()-start, jkFdZbSource.getOpAction(), Constants.OPACTION_POST); - validJkFdZb(thread,System.currentTimeMillis()-start,jkFdZbSource.getJkFdZbList(),Constants.OPACTION_POST); - try{ - Date date=new Date(); - if(jkFdZbSource.getJkFdZbList() != null && jkFdZbSource.getJkFdZbList().size() >0){ - for (JkFdZb jkFdZb : jkFdZbSource.getJkFdZbList()) { - jkFdZb.setLastUpdate(date); - } - } - jkFdZbService.saveJkFdZbBatch(jkFdZbSource.getJkFdZbList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"静态控管封堵失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"静态控管封堵成功",jkFdZbSource.getJkFdZbList()); - } - /** - * - * updateJkFdZbBatch(多条更新) - * (这里描述这个方法适用条件 – 可选) - * @param JkFdZbSource - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") - @RequestMapping(value = "/jkFdZbSources", method = RequestMethod.PUT) - @ApiOperation(value = "静态控管解封", httpMethod = "PUT", notes = "update provider info") - public Map updateJkFdZbBatch(@RequestBody JkFdZbSource jkFdZbSource, HttpServletRequest request, HttpServletResponse response){ - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_PUT,request, jkFdZbSource); - super.checkOpAction(thread,System.currentTimeMillis()-start,jkFdZbSource.getOpAction(), Constants.OPACTION_PUT); - - validJkFdZb(thread,System.currentTimeMillis()-start,jkFdZbSource.getJkFdZbList(),Constants.OPACTION_PUT); - - try{ - Date date=new Date(); - if(jkFdZbSource.getJkFdZbList() != null && jkFdZbSource.getJkFdZbList().size() >0){ - for (JkFdZb jkFdZb : jkFdZbSource.getJkFdZbList()) { - jkFdZb.setLastUpdate(date); - } - } - jkFdZbService.updateJkFdZbBatch(jkFdZbSource.getJkFdZbList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"静态控管解封失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"静态控管解封成功",jkFdZbSource.getJkFdZbList()); - } - /** - * 校验是否存在无效数据 - * - * @Title: validJkFdZb - * @Description: TODO(这里用一句话描述这个方法的作用) - * @param @param thread - * @param @param start - * @param @param jkFdZbList - * @return Map 返回类型 - * @author (DDM) - * @version V1.0 - */ - public void validJkFdZb(SaveRequestLogThread thread,long start, List jkFdZbList,int opAction){ - String errorInfo = ""; - - if (jkFdZbList.size() <= 0) { - errorInfo = "静控封堵记录不能为空"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.missing_args.getValue()); - }else{ - for (JkFdZb jkFdZb : jkFdZbList) { - if(opAction==Constants.OPACTION_POST&&jkFdZb != null && jkFdZb.getSfFd() !=Long.valueOf(Constants.YES)){ - errorInfo = "只能新增有效数据"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.wrong_range.getValue()); - - }else if(opAction==Constants.OPACTION_PUT && jkFdZb != null && jkFdZb.getSfFd() !=Long.valueOf(Constants.NO)){ - errorInfo = "只允许将有效数据更改为无效数据"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.wrong_range.getValue()); - - } - if(!"".equals(errorInfo)){ - break; - } - if(opAction==Constants.OPACTION_POST){ - jkFdZb.setSxFw("0"); - } - } - } - } - - -} diff --git a/src/main/java/com/nis/web/controller/restful/jk/JkFfjInfoController.java b/src/main/java/com/nis/web/controller/restful/jk/JkFfjInfoController.java deleted file mode 100644 index d35edfd..0000000 --- a/src/main/java/com/nis/web/controller/restful/jk/JkFfjInfoController.java +++ /dev/null @@ -1,134 +0,0 @@ -/** - *@Title: JkFfjInfoController.java - *@Package com.nis.web.controller.restful - *@Description TODO - *@author (zbc) - *@date 2016年10月19日 下午20:04:16 - *@version V1.0 - */ -package com.nis.web.controller.restful.jk; - -import java.util.List; -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.log4j.Logger; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import com.nis.domain.restful.jk.JkFfjInfo; -import com.nis.domain.restful.jk.JkFfjInfoSource; -import com.nis.restful.RestBusinessCode; -import com.nis.restful.RestServiceException; -import com.nis.util.Constants; -import com.nis.util.OracleErrorCodeUtil; -import com.nis.util.StringUtil; -import com.nis.web.controller.BaseRestController; -import com.nis.web.service.SaveRequestLogThread; -import com.nis.web.service.ServicesRequestLogService; -import com.nis.web.service.restful.jk.JkFfjInfoService; -import com.wordnik.swagger.annotations.ApiOperation; - -/** - * @ClassName: JkFfjInfoController.java - * @Description: TODO - * @author (zbc) - * @date 2016年10月19日 下午20:04:16 - * @version V1.0 - */ -@RestController -@RequestMapping("${servicePath}/jk/v1") -@SuppressWarnings("rawtypes") -public class JkFfjInfoController extends BaseRestController { - protected final Logger logger = Logger.getLogger(this.getClass()); - - @Autowired - protected ServicesRequestLogService servicesRequestLogService; - @Autowired - protected JkFfjInfoService jkFfjService; - - - @RequestMapping(value = "/jkFfjSources", method = RequestMethod.POST) - @ApiOperation(value = "保存静态控管分发机信息", httpMethod = "POST", notes = "save server info") - public Map saveJkFfjInfoBatch(@RequestBody JkFfjInfoSource jkFfjSource, HttpServletRequest request, - HttpServletResponse response) { - long start = System.currentTimeMillis(); - SaveRequestLogThread thread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_POST, request, jkFfjSource); - super.checkOpAction(thread, System.currentTimeMillis() - start, jkFfjSource.getOpAction(), Constants.OPACTION_POST); - validJkFdZb(thread,System.currentTimeMillis()-start,jkFfjSource.getJkffjList(),Constants.OPACTION_POST); - try { - jkFfjService.saveJkFfjBatch(jkFfjSource.getJkffjList()); - } catch (Exception e) { - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"保存静态控管分发机信息失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"保存静态控管分发机信息成功",jkFfjSource.getJkffjList()); - } - - @RequestMapping(value = "/jkFfjSources", method = RequestMethod.PUT) - @ApiOperation(value = "更新静态控管分发机信息", httpMethod = "PUT", notes = "update server info") - public Map updateJkFfjInfoBatch(@RequestBody JkFfjInfoSource jkFfjSource, HttpServletRequest request, - HttpServletResponse response) { - long start = System.currentTimeMillis(); - SaveRequestLogThread thread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_PUT, request, jkFfjSource); - super.checkOpAction(thread, System.currentTimeMillis() - start, jkFfjSource.getOpAction(), Constants.OPACTION_PUT); - validJkFdZb(thread,System.currentTimeMillis()-start,jkFfjSource.getJkffjList(),Constants.OPACTION_PUT); - try { - jkFfjService.updateJkFfjBatch(jkFfjSource.getJkffjList()); - } catch (Exception e) { - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info = OracleErrorCodeUtil.getOraCode(e); - if (!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread, System.currentTimeMillis() - start, info); - else - throw new RestServiceException(thread, System.currentTimeMillis() - start, "更新静态控管分发机信息失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"更新静态控管分发机信息成功",jkFfjSource.getJkffjList()); - } - - private void validJkFdZb(SaveRequestLogThread thread, long start, List jkffjList, int opAction) { - String errorInfo = ""; - - if (jkffjList.size() <= 0) { - errorInfo = "静控分发机记录不能为空"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.missing_args.getValue()); - }else{ - for (JkFfjInfo JkFfj : jkffjList) { - if(opAction==Constants.OPACTION_POST&&JkFfj != null && JkFfj.getSfSx() !=Long.valueOf(Constants.YES)){ - errorInfo = "只能新增有效数据"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.wrong_range.getValue()); - - }else if(opAction==Constants.OPACTION_PUT&&JkFfj != null && JkFfj.getSfSx() !=Long.valueOf(Constants.NO)){ - errorInfo = "只允许将有效数据更改为无效数据"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.wrong_range.getValue()); - - } - if(!"".equals(errorInfo)){ - break; - } - if(opAction==Constants.OPACTION_POST){ - JkFfj.setSxFw("0"); - } - } - } - } - -} diff --git a/src/main/java/com/nis/web/controller/restful/jk/JkFwqInfoController.java b/src/main/java/com/nis/web/controller/restful/jk/JkFwqInfoController.java deleted file mode 100644 index 8ddbd78..0000000 --- a/src/main/java/com/nis/web/controller/restful/jk/JkFwqInfoController.java +++ /dev/null @@ -1,134 +0,0 @@ -/** - *@Title: JkFwqInfoController.java - *@Package com.nis.web.controller.restful - *@Description TODO - *@author (zbc) - *@date 2016年10月19日 下午20:04:16 - *@version V1.0 - */ -package com.nis.web.controller.restful.jk; - -import java.util.List; -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.log4j.Logger; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import com.nis.domain.restful.jk.JkFfjInfo; -import com.nis.domain.restful.jk.JkFfjInfoSource; -import com.nis.domain.restful.jk.JkFwqInfo; -import com.nis.domain.restful.jk.JkFwqInfoSource; -import com.nis.restful.RestBusinessCode; -import com.nis.restful.RestServiceException; -import com.nis.util.Constants; -import com.nis.util.OracleErrorCodeUtil; -import com.nis.util.StringUtil; -import com.nis.web.controller.BaseRestController; -import com.nis.web.service.SaveRequestLogThread; -import com.nis.web.service.ServicesRequestLogService; -import com.nis.web.service.restful.jk.JkFwqInfoService; -import com.wordnik.swagger.annotations.ApiOperation; - -/** - * @ClassName: JkFwqInfoController.java - * @Description: TODO - * @author (zbc) - * @date 2016年10月19日 下午20:04:16 - * @version V1.0 - */ -@RestController -@RequestMapping("${servicePath}/jk/v1") -public class JkFwqInfoController extends BaseRestController { - protected final Logger logger = Logger.getLogger(this.getClass()); - - @Autowired - protected JkFwqInfoService jkFwqInfoService; - @Autowired - protected ServicesRequestLogService servicesRequestLogService; - - - @RequestMapping(value = "/jkFwqSources", method = RequestMethod.POST) - @ApiOperation(value = "保存静态控管服务器信息", httpMethod = "POST", notes = "save server info") - public Map saveJkFfjInfoBatch(@RequestBody JkFwqInfoSource jkFwqSource, HttpServletRequest request, - HttpServletResponse response) { - long start = System.currentTimeMillis(); - SaveRequestLogThread thread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_POST, request, jkFwqSource); - super.checkOpAction(thread, System.currentTimeMillis() - start, jkFwqSource.getOpAction(), Constants.OPACTION_POST); - validJkFdZb(thread,System.currentTimeMillis()-start,jkFwqSource.getJkFwqInfoList(),Constants.OPACTION_POST); - try { - jkFwqInfoService.savejkFwqInfoBatch(jkFwqSource.getJkFwqInfoList()); - } catch (Exception e) { - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"保存静态控管服务器信息失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"保存静态控管服务器信息成功",jkFwqSource.getJkFwqInfoList()); - } - - @RequestMapping(value = "/jkFwqSources", method = RequestMethod.PUT) - @ApiOperation(value = "更新静态控管服务器信息", httpMethod = "PUT", notes = "update server info") - public Map updateJkFfjInfoBatch(@RequestBody JkFwqInfoSource jkFwqSource, HttpServletRequest request, - HttpServletResponse response) { - long start = System.currentTimeMillis(); - SaveRequestLogThread thread = super.saveRequestLog(servicesRequestLogService, Constants.OPACTION_PUT, request, jkFwqSource); - super.checkOpAction(thread, System.currentTimeMillis() - start, jkFwqSource.getOpAction(), Constants.OPACTION_PUT); - validJkFdZb(thread,System.currentTimeMillis()-start,jkFwqSource.getJkFwqInfoList(),Constants.OPACTION_PUT); - try { - jkFwqInfoService.updatejkFwqInfoBatch(jkFwqSource.getJkFwqInfoList()); - } catch (Exception e) { - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info = OracleErrorCodeUtil.getOraCode(e); - if (!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread, System.currentTimeMillis() - start, info); - else - throw new RestServiceException(thread, System.currentTimeMillis() - start, "更新静态控管服务器信息失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"更新静态控管服务器信息成功",jkFwqSource.getJkFwqInfoList()); - } - - private void validJkFdZb(SaveRequestLogThread thread, long start, List jkFwqList, int opAction) { - String errorInfo = ""; - - if (jkFwqList.size() <= 0) { - errorInfo = "静态控管服务器信息不能为空"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.missing_args.getValue()); - }else{ - for (JkFwqInfo jkFwq : jkFwqList) { - if(opAction==Constants.OPACTION_POST&&jkFwq != null && jkFwq.getSfSx()!=Long.valueOf(Constants.YES)){ - errorInfo = "只能新增有效数据"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.wrong_range.getValue()); - - }else if(opAction==Constants.OPACTION_PUT&&jkFwq != null && jkFwq.getSfSx() !=Long.valueOf(Constants.NO)){ - errorInfo = "只允许将有效数据更改为无效数据"; - thread.setExceptionInfo(errorInfo); - throw new RestServiceException(thread,System.currentTimeMillis()-start,errorInfo, RestBusinessCode.wrong_range.getValue()); - - } - if(!"".equals(errorInfo)){ - break; - } - if(opAction==Constants.OPACTION_POST){ - jkFwq.setSxFw("0"); - } - } - } - } -} diff --git a/src/main/java/com/nis/web/controller/restful/jk/JkLyqController.java b/src/main/java/com/nis/web/controller/restful/jk/JkLyqController.java deleted file mode 100644 index f732a21..0000000 --- a/src/main/java/com/nis/web/controller/restful/jk/JkLyqController.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - *@Title: JkLyqController.java - *@Package com.nis.web.controller.restful - *@Description TODO - *@author wx - *@date 2016年9月7日 下午3:58:16 - *@version 版本号 - */ -package com.nis.web.controller.restful.jk; - -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.apache.log4j.Logger; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; - -import com.nis.domain.restful.jk.JkLyq; -import com.nis.domain.restful.jk.JkLyqSource; -import com.nis.restful.RestBusinessCode; -import com.nis.restful.RestServiceException; -import com.nis.util.Constants; -import com.nis.util.OracleErrorCodeUtil; -import com.nis.util.StringUtil; -import com.nis.web.controller.BaseRestController; -import com.nis.web.service.SaveRequestLogThread; -import com.nis.web.service.ServicesRequestLogService; -import com.nis.web.service.restful.jk.JkLyqService; -import com.wordnik.swagger.annotations.ApiOperation; - -/** - * @ClassName: JkLyqController.java - * @Description: TODO - * @author (wx) - * @date 2016年9月7日 下午3:58:16 - * @version V1.0 - */ -@RestController -@RequestMapping("${servicePath}/jk/v1") -public class JkLyqController extends BaseRestController { - protected final Logger logger = Logger.getLogger(this.getClass()); - @Autowired - protected JkLyqService jkLyqService; - @Autowired - protected ServicesRequestLogService servicesRequestLogService; - /** - * saveJkLyqBatch(多条新增) - * (这里描述这个方法适用条件 – 可选) - * @param JkLyqSource - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") - @RequestMapping(value = "/jkLyqSources", method = RequestMethod.POST) - @ApiOperation(value = "保存静态控管路由器", httpMethod = "POST", notes = "保存静态控管路由器") - public Map saveJkLyqBatch(@RequestBody JkLyqSource jkLyqSource, HttpServletRequest request, HttpServletResponse response) { - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_POST,request, jkLyqSource); - super.checkOpAction(thread,System.currentTimeMillis()-start, jkLyqSource.getOpAction(), Constants.OPACTION_POST); - try{ - checKData(thread,start,jkLyqSource,Constants.OPACTION_POST); - jkLyqService.saveJkLyqBatch(jkLyqSource.getJkLyqList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"保存静态控管路由器失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"保存静态控管路由器成功",jkLyqSource.getJkLyqList()); - } - /** - * - * updateJkLyqBatch(多条更新) - * (这里描述这个方法适用条件 – 可选) - * @param JkLyqSource - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") - @RequestMapping(value = "/jkLyqSources", method = RequestMethod.PUT) - @ApiOperation(value = "更新静态控管路由器", httpMethod = "PUT", notes = "更新静态控管路由器") - public Map updateJkLyqBatch(@RequestBody JkLyqSource jkLyqSource, HttpServletRequest request, HttpServletResponse response){ - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_PUT,request, jkLyqSource); - super.checkOpAction(thread,System.currentTimeMillis()-start,jkLyqSource.getOpAction(), Constants.OPACTION_PUT); - try{ - checKData(thread,start,jkLyqSource,Constants.OPACTION_PUT); - jkLyqService.updateJkLyqBatch(jkLyqSource.getJkLyqList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - e.printStackTrace(); - logger.error(e.getMessage()+"\r\n"+e.getCause()); - if(e instanceof RestServiceException) throw e; - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"更新静态控管路由器失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"更新静态控管路由器成功",jkLyqSource.getJkLyqList()); - } - /** - * - * deleteJkLyq(单条删除) - * (这里描述这个方法适用条件 – 可选) - * @param id - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") -// @RequestMapping(value = "/jkLyqSources/{id}", method = RequestMethod.DELETE) -// @ApiOperation(value = "删除静态控管路由器", httpMethod = "DELETE", notes = "删除静态控管路由器") - public Map deleteJkLyq(@PathVariable("id") long id, HttpServletRequest request, HttpServletResponse response){ - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_DELETE,request, id); - try{ - jkLyqService.removeJkLyq(id); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"删除静态控管路由器失败", RestBusinessCode.unknow_error.getValue()); - - } - - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"删除成功",id); - } - /** - * - * deleteJkLyq(多条删除) - * (这里描述这个方法适用条件 – 可选) - * @param JkLyqSource - * @param request - * @param response - * @return - *Map - * @exception - * @since 1.0.0 - */ - @SuppressWarnings("rawtypes") -// @RequestMapping(value = "/jkLyqSources", method = RequestMethod.DELETE) -// @ApiOperation(value = "删除静态控管路由器", httpMethod = "DELETE", notes = "删除静态控管路由器") - public Map deleteJkLyq(@RequestBody JkLyqSource jkLyqSource, HttpServletRequest request, HttpServletResponse response){ - long start=System.currentTimeMillis(); - SaveRequestLogThread thread=super.saveRequestLog(servicesRequestLogService,Constants.OPACTION_DELETE,request, jkLyqSource); - super.checkOpAction(thread,System.currentTimeMillis()-start,jkLyqSource.getOpAction(), Constants.OPACTION_DELETE); - try{ - jkLyqService.removeJkLyqBatch(jkLyqSource.getJkLyqList()); - }catch(Exception e){ - thread.setExceptionInfo(e.getMessage()+" "+e.getCause()); - String info=OracleErrorCodeUtil.getOraCode(e); - if(!StringUtil.isEmpty(info)) - OracleErrorCodeUtil.throwExceptionInfo(thread,System.currentTimeMillis()-start,info); - else - throw new RestServiceException(thread,System.currentTimeMillis()-start,"删除静态控管路由器失败", RestBusinessCode.unknow_error.getValue()); - } - return serviceResponse(thread,System.currentTimeMillis()-start,request,response,"批量删除成功",jkLyqSource.getJkLyqList()); - } - private void checKData(SaveRequestLogThread thread,long start,JkLyqSource jkLyqSource,int opAction){ - if(jkLyqSource.getJkLyqList().size()==0){ - throw new RestServiceException(thread,System.currentTimeMillis()-start,"静态控管路由器不能为空", RestBusinessCode.unknow_error.getValue()); - } - for(JkLyq entity:jkLyqSource.getJkLyqList()){ - if(opAction==Constants.OPACTION_POST&&entity!=null&&entity.getSfSx()!=Long.valueOf(Constants.YES)){ - throw new RestServiceException(thread,System.currentTimeMillis()-start,"只能新增有效数据", RestBusinessCode.wrong_range.getValue()); - }else if(opAction==Constants.OPACTION_PUT&&entity!=null&&entity.getSfSx()!=Long.valueOf(Constants.NO)){ - throw new RestServiceException(thread,System.currentTimeMillis()-start,"只允许将有效数据更改为无效数据", RestBusinessCode.wrong_range.getValue()); - } - if(opAction==Constants.OPACTION_POST){ - entity.setSxFw("0"); - } - } - } -} diff --git a/src/main/java/com/nis/web/dao/ConfigPzIdDao.xml b/src/main/java/com/nis/web/dao/ConfigPzIdDao.xml index 7ee034f..c52f90a 100644 --- a/src/main/java/com/nis/web/dao/ConfigPzIdDao.xml +++ b/src/main/java/com/nis/web/dao/ConfigPzIdDao.xml @@ -7,9 +7,6 @@ SEQ_COMPILEID.nextval - - SEQ_CONFIG_GROUP.nextval - SEQ_GROUPID.nextval diff --git a/src/main/java/com/nis/web/dao/jk/JkDmbCkDao.java b/src/main/java/com/nis/web/dao/jk/JkDmbCkDao.java deleted file mode 100644 index e51c15b..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkDmbCkDao.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.nis.web.dao.jk; - -import com.nis.domain.restful.jk.JkDmbCk; -import com.nis.web.dao.CrudDao; -import com.nis.web.dao.MyBatisDao; -/** - * - * @ClassName: DmbCkDao.java - * @Description: TODO - * @author (dell) - * @date 2016年9月9日 上午10:03:33 - * @version V1.0 - */ -@MyBatisDao -public interface JkDmbCkDao extends CrudDao{ - int delete(long id); - int insert(JkDmbCk record); - int update(JkDmbCk record); - int updateValid(JkDmbCk record); -} \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkDmbCkDao.xml b/src/main/java/com/nis/web/dao/jk/JkDmbCkDao.xml deleted file mode 100644 index a4eaefd..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkDmbCkDao.xml +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - - - - - - - - - - - G_ID, GJ_CK_ID,SF_SX,SX_FW,CK_MC,CK_WZ,CK_NO_RAW,ISP,DD - - - - delete from DMB_CK - where GJ_CK_ID = #{gjCkId,jdbcType=BIGINT} - - - - insert into DMB_CK - - - GJ_CK_ID , - - - SF_SX , - - - SX_FW , - - - CK_MC , - - - CK_WZ , - - - - CK_NO_RAW , - - - ISP, - - - DD, - - - - - #{gjCkId,jdbcType=BIGINT}, - - - #{sfSx,jdbcType=BIGINT}, - - - - #{sxFw,jdbcType=VARCHAR}, - - - #{ckMc,jdbcType=VARCHAR}, - - - #{ckWz,jdbcType=BIGINT}, - - - - #{ckNoRaw,jdbcType=VARCHAR}, - - - #{isp,jdbcType=BIGINT}, - - - #{dd,jdbcType=BIGINT}, - - - - - update DMB_CK set SF_SX = #{sfSx,jdbcType=BIGINT} where GJ_CK_ID = #{gjCkId,jdbcType=BIGINT} - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkFdZbDao.java b/src/main/java/com/nis/web/dao/jk/JkFdZbDao.java deleted file mode 100644 index 24c9f45..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkFdZbDao.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.nis.web.dao.jk; - -import com.nis.domain.restful.jk.JkFdZb; -import com.nis.web.dao.CrudDao; -import com.nis.web.dao.MyBatisDao; -/** - * - * @ClassName: JkFdZbDao.java - * @Description: TODO - * @author (ddm) - * @date 2016年10月19日 下午19:03:33 - * @version V1.0 - */ -@MyBatisDao -public interface JkFdZbDao extends CrudDao{ - int delete(long id); - int insert(JkFdZb record); - int update(JkFdZb record); -} \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkFdZbDao.xml b/src/main/java/com/nis/web/dao/jk/JkFdZbDao.xml deleted file mode 100644 index bd3b7ef..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkFdZbDao.xml +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - - - - - - - - - - - - - G_ID,ZB_ID,FD_FS,SF_FD,JK_IP,JK_YM,ISP_RAW,LAST_UPDATE,SX_FW - - - - delete from JK_FD_ZB_FULL - where ZB_ID = #{zbId,jdbcType=BIGINT} - - - insert into JK_FD_ZB_FULL ( - zb_Id - ,fd_Fs - ,sf_Fd - ,jk_Ip - ,jk_Ym - ,isp_Raw - ,LAST_UPDATE - ,sx_Fw - - - ) - values ( - #{zbId,jdbcType=BIGINT}, - #{fdFs,jdbcType=BIGINT}, - #{sfFd,jdbcType=BIGINT}, - #{jkIp,jdbcType=VARCHAR}, - #{jkYm,jdbcType=BIGINT}, - #{ispRaw,jdbcType=VARCHAR}, - #{lastUpdate,jdbcType=VARCHAR}, - #{sxFw,jdbcType=VARCHAR} - ) - - - - update JK_FD_ZB_FULL - - - sf_Fd=#{sfFd,jdbcType=BIGINT}, - - - LAST_UPDATE=#{lastUpdate,jdbcType=BIGINT}, - - - - where ZB_ID = #{zbId,jdbcType=BIGINT} - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.java b/src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.java deleted file mode 100644 index 24e25ee..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.nis.web.dao.jk; - -import com.nis.domain.restful.jk.JkFfjInfo; -import com.nis.web.dao.CrudDao; -import com.nis.web.dao.MyBatisDao; -/** - * - * @ClassName: JkFfjDao.java - * @Description: TODO - * @author (dell) - * @date 2016年9月9日 上午10:01:09 - * @version V1.0 - */ -@MyBatisDao -public interface JkFfjInfoDao extends CrudDao{ - int delete(long id); - int insert(JkFfjInfo record); - int update(JkFfjInfo record); - -} \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.xml b/src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.xml deleted file mode 100644 index b14f144..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkFfjInfoDao.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - G_ID, FFJ_ID, FFJ_MC, FFJ_IP, FFJ_JS, KG_FW, SF_SX, SX_FW - - - - - - delete from JK_FFJ - where FFJ_ID = #{ffjId,jdbcType=BIGINT} - - - - insert into JK_FFJ (FFJ_ID, FFJ_MC, FFJ_IP, FFJ_JS, KG_FW, SF_SX, SX_FW) - values (#{ffjId,jdbcType=BIGINT}, - #{ffjMc,jdbcType=VARCHAR}, #{ffjIp,jdbcType=VARCHAR}, - #{ffjJs,jdbcType=BIGINT}, #{kgFw,jdbcType=BIGINT}, #{sfSx,jdbcType=BIGINT}, - #{sxFw,jdbcType=VARCHAR} - ) - - - - update JK_FFJ - - SF_SX = #{sfSx,jdbcType=BIGINT}, - - where FFJ_ID = #{ffjId,jdbcType=BIGINT} - - - diff --git a/src/main/java/com/nis/web/dao/jk/JkFwqInfoDao.java b/src/main/java/com/nis/web/dao/jk/JkFwqInfoDao.java deleted file mode 100644 index e354476..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkFwqInfoDao.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.nis.web.dao.jk; - -import com.nis.domain.restful.jk.JkFwqInfo; -import com.nis.web.dao.CrudDao; -import com.nis.web.dao.MyBatisDao; -/** - * - * @ClassName: JkFfjDao.java - * @Description: TODO - * @author (dell) - * @date 2016年9月9日 上午10:01:09 - * @version V1.0 - */ -@MyBatisDao -public interface JkFwqInfoDao extends CrudDao{ - - int insert(JkFwqInfo record); - - int update(JkFwqInfo record); - -} \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkFwqInfoDao.xml b/src/main/java/com/nis/web/dao/jk/JkFwqInfoDao.xml deleted file mode 100644 index 38ba109..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkFwqInfoDao.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - G_ID, FWQ_ID, FWQ_MC, FWQ_IP, SF_SX, SX_FW - - - - insert into JK_FWQ (FWQ_ID, FWQ_MC, FWQ_IP, SF_SX, SX_FW) - values (#{fwqId,jdbcType=BIGINT}, - #{fwqMc,jdbcType=VARCHAR}, #{fwqIp,jdbcType=VARCHAR}, - #{sfSx,jdbcType=BIGINT}, #{sxFw,jdbcType=VARCHAR} - ) - - - - update JK_FWQ - - SF_SX = #{sfSx,jdbcType=BIGINT}, - - where FWQ_ID = #{fwqId,jdbcType=BIGINT} - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkLyqDao.java b/src/main/java/com/nis/web/dao/jk/JkLyqDao.java deleted file mode 100644 index eaacf8c..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkLyqDao.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.nis.web.dao.jk; - -import com.nis.domain.restful.jk.JkDmbCk; -import com.nis.domain.restful.jk.JkLyq; -import com.nis.web.dao.CrudDao; -import com.nis.web.dao.MyBatisDao; -/** - * - * @ClassName: DmbCkDao.java - * @Description: TODO - * @author (dell) - * @date 2016年9月9日 上午10:03:33 - * @version V1.0 - */ -@MyBatisDao -public interface JkLyqDao extends CrudDao{ - int delete(long id); - int insert(JkLyq record); - int update(JkLyq record); - int updateValid(JkLyq record); -} \ No newline at end of file diff --git a/src/main/java/com/nis/web/dao/jk/JkLyqDao.xml b/src/main/java/com/nis/web/dao/jk/JkLyqDao.xml deleted file mode 100644 index 4fc0074..0000000 --- a/src/main/java/com/nis/web/dao/jk/JkLyqDao.xml +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - - - - - - - - G_ID, LYQ_ID,LYQ_MC,FWQ_ID,KGFS,GJ_CK_ID,SF_SX,SX_FW ,FWQ_DK - - - - delete from JK_LYQ - where LYQ_ID = #{lyqId,jdbcType=BIGINT} - - - - - insert into JK_LYQ - - - LYQ_ID , - - - LYQ_MC , - - - FWQ_ID , - - - KGFS , - - - GJ_CK_ID , - - - SF_SX , - - - SX_FW , - - - - FWQ_DK , - - - - - #{lyqId,jdbcType=BIGINT}, - - - #{lyqMc,jdbcType=VARCHAR}, - - - #{fwqId,jdbcType=BIGINT}, - - - #{kgfs,jdbcType=BIGINT}, - - - #{gjCkId,jdbcType=BIGINT}, - - - #{sfSx,jdbcType=BIGINT}, - - - #{sxFw,jdbcType=VARCHAR}, - - - - #{fwqDk,jdbcType=BIGINT}, - - - - - update JK_LYQ set SF_SX = #{sfSx,jdbcType=BIGINT} where LYQ_ID = #{lyqId,jdbcType=BIGINT} - - - \ No newline at end of file diff --git a/src/main/java/com/nis/web/service/restful/jk/JkDmbCkService.java b/src/main/java/com/nis/web/service/restful/jk/JkDmbCkService.java deleted file mode 100644 index a080b6e..0000000 --- a/src/main/java/com/nis/web/service/restful/jk/JkDmbCkService.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - *@Title: DmbCkService.java - *@Package com.nis.web.service.restful - *@Description TODO - *@author wx - *@date 2016年9月7日 下午3:28:44 - *@version 版本号 - */ -package com.nis.web.service.restful.jk; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import com.nis.domain.restful.jk.JkDmbCk; -import com.nis.web.dao.jk.JkDmbCkDao; -import com.nis.web.service.CrudService; - -/** - * @ClassName: DmbCkService.java - * @Description: TODO - * @author (wx) - * @date 2016年9月7日 下午3:28:44 - * @version V1.0 - */ -@Service -public class JkDmbCkService extends CrudService { - @Autowired - public JkDmbCkDao jkDmbCkDao; - - public JkDmbCk findById(long id) { - return get(id); - } - public void saveDmbCkBatch(List entity) { - // TODO Auto-generated method stub - super.saveBatch(entity,JkDmbCkDao.class); - } - public void updateDmbCkBatch(List entity) { - // TODO Auto-generated method stub - super.updateBatch(entity, JkDmbCkDao.class); - } - - public void removeDmbCk(long id) { - jkDmbCkDao.delete(id); - } - public void removeDmbCkBatch(List entity) { - super.deleteBatch(entity, JkDmbCkDao.class); - } -} diff --git a/src/main/java/com/nis/web/service/restful/jk/JkFdZbService.java b/src/main/java/com/nis/web/service/restful/jk/JkFdZbService.java deleted file mode 100644 index c892083..0000000 --- a/src/main/java/com/nis/web/service/restful/jk/JkFdZbService.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - *@Title: JkFdZbService.java - *@Package com.nis.web.service.restful - *@Description TODO - *@author wx - *@date 2016年9月7日 下午3:28:44 - *@version 版本号 - */ -package com.nis.web.service.restful.jk; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import com.nis.domain.Page; -import com.nis.domain.restful.jk.JkFdZb; -import com.nis.web.dao.jk.JkFdZbDao; -import com.nis.web.service.CrudService; - -/** - * @ClassName: JkFdZbService.java - * @Description: TODO - * @author (DDM) - * @date 2016年10月19日 下午21:28:44 - * @version V1.0 - */ -@Service -public class JkFdZbService extends CrudService { - @Autowired - public JkFdZbDao dmbCkDao; - public Page getJkFdZb(Page page, JkFdZb entity) { - return findPage(page, entity); - } - - public JkFdZb findById(long zbId) { - return get(zbId); - } - public void saveJkFdZbBatch(List entity) { - super.saveBatch(entity,JkFdZbDao.class); - } - public void updateJkFdZbBatch(List entity) { - super.updateBatch(entity, JkFdZbDao.class); - } - public void removeJkFdZb(long zbId) { - dmbCkDao.delete(zbId); - } - public void removeJkFdZbBatch(List entity) { - super.deleteBatch(entity, JkFdZbDao.class); - } -} diff --git a/src/main/java/com/nis/web/service/restful/jk/JkFfjInfoService.java b/src/main/java/com/nis/web/service/restful/jk/JkFfjInfoService.java deleted file mode 100644 index a46129f..0000000 --- a/src/main/java/com/nis/web/service/restful/jk/JkFfjInfoService.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - *@Title: JkFfjInfoService.java - *@Package com.nis.web.service.restful - *@Description TODO - *@author (zbc) - *@date 2016年10月19日 下午20:04:16 - *@version 版本号 - */ -package com.nis.web.service.restful.jk; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import com.nis.domain.Page; -import com.nis.domain.restful.jk.JkFdZb; -import com.nis.domain.restful.jk.JkFfjInfo; -import com.nis.web.dao.jk.JkFdZbDao; -import com.nis.web.dao.jk.JkFfjInfoDao; -import com.nis.web.service.CrudService; - -/** - * @ClassName: JkFfjInfoService.java - * @Description: TODO - * @author (zbc) - * @date 2016年10月19日 下午20:04:16 - * @version V1.0 - */ -@Service -public class JkFfjInfoService extends CrudService { - - @Autowired - public JkFfjInfoDao jkFfjInfoDao; - - public void saveJkFfjBatch(List entity) { - super.saveBatch(entity, JkFfjInfoDao.class); - } - - - public void updateJkFfjBatch(List entity) { - super.updateBatch(entity, JkFfjInfoDao.class); - } -} diff --git a/src/main/java/com/nis/web/service/restful/jk/JkFwqInfoService.java b/src/main/java/com/nis/web/service/restful/jk/JkFwqInfoService.java deleted file mode 100644 index e2cc4f0..0000000 --- a/src/main/java/com/nis/web/service/restful/jk/JkFwqInfoService.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - *@Title: JkFfjInfoService.java - *@Package com.nis.web.service.restful - *@Description TODO - *@author (zbc) - *@date 2016年10月19日 下午20:04:16 - *@version 版本号 - */ -package com.nis.web.service.restful.jk; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import com.nis.domain.restful.jk.JkFwqInfo; -import com.nis.web.dao.jk.JkFwqInfoDao; -import com.nis.web.service.CrudService; - -/** - * @ClassName: JkFfjInfoService.java - * @Description: TODO - * @author (zbc) - * @date 2016年10月19日 下午20:04:16 - * @version V1.0 - */ -@Service -public class JkFwqInfoService extends CrudService { - - @Autowired - public JkFwqInfoDao jkFwqInfoDao; - - public void savejkFwqInfoBatch(List entity) { - super.saveBatch(entity, JkFwqInfoDao.class); - } - - - public void updatejkFwqInfoBatch(List entity) { - super.updateBatch(entity, JkFwqInfoDao.class); - } - -} diff --git a/src/main/java/com/nis/web/service/restful/jk/JkLyqService.java b/src/main/java/com/nis/web/service/restful/jk/JkLyqService.java deleted file mode 100644 index 02e388e..0000000 --- a/src/main/java/com/nis/web/service/restful/jk/JkLyqService.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - *@Title: JkLyqService.java - *@Package com.nis.web.service.restful - *@Description TODO - *@author wx - *@date 2016年9月7日 下午3:28:44 - *@version 版本号 - */ -package com.nis.web.service.restful.jk; - -import java.util.List; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import com.nis.domain.restful.jk.JkLyq; -import com.nis.web.dao.jk.JkLyqDao; -import com.nis.web.service.CrudService; -import com.nis.web.service.SaveRequestLogThread; - -/** - * @ClassName: JkLyqService.java - * @Description: TODO - * @author (wx) - * @date 2016年9月7日 下午3:28:44 - * @version V1.0 - */ -@Service -public class JkLyqService extends CrudService { - @Autowired - public JkLyqDao jkLyqDao; - - public JkLyq findById(long id) { - return get(id); - } - public void saveJkLyqBatch(List entity) { - // TODO Auto-generated method stub - super.saveBatch(entity,JkLyqDao.class); - } - public void updateJkLyqBatch(List entity) { - // TODO Auto-generated method stub - super.updateBatch(entity, JkLyqDao.class); - } - public void removeJkLyq(long id) { - jkLyqDao.delete(id); - } - public void removeJkLyqBatch(List entity) { - super.deleteBatch(entity, JkLyqDao.class); - } -}