删除静控接口
This commit is contained in:
@@ -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<JkDmbCk>{
|
||||
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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<JkDmbCk> 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<JkDmbCk> getDmbCkList() {
|
||||
return dmbCkList;
|
||||
}
|
||||
/**
|
||||
* @param dmbCkList the dmbCkList to set
|
||||
*/
|
||||
public void setDmbCkList(List<JkDmbCk> dmbCkList) {
|
||||
this.dmbCkList = dmbCkList;
|
||||
}
|
||||
}
|
||||
@@ -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<JkFdZb>{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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<JkFdZb> 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<JkFdZb> getJkFdZbList() {
|
||||
return jkFdZbList;
|
||||
}
|
||||
/**
|
||||
* @param jkFdZbList the jkFdZbList to set
|
||||
*/
|
||||
public void setJkFdZbList(List<JkFdZb> jkFdZbList) {
|
||||
this.jkFdZbList = jkFdZbList;
|
||||
}
|
||||
}
|
||||
@@ -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<JkFfjInfo> {
|
||||
|
||||
/**
|
||||
* @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();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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<JkFfjInfo> jkffjList;
|
||||
|
||||
public JkFfjInfoSource() {
|
||||
super();
|
||||
super.version=DEFAULT_VERSION;
|
||||
}
|
||||
|
||||
public JkFfjInfoSource(String version) {
|
||||
super();
|
||||
super.version = version;
|
||||
}
|
||||
|
||||
|
||||
public List<JkFfjInfo> getJkffjList() {
|
||||
return jkffjList;
|
||||
}
|
||||
|
||||
public void setJkffjList(List<JkFfjInfo> jkffjList) {
|
||||
this.jkffjList = jkffjList;
|
||||
}
|
||||
}
|
||||
@@ -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<JkFwqInfo> {
|
||||
|
||||
/**
|
||||
* @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();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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<JkFwqInfo> jkFwqList;
|
||||
|
||||
|
||||
public JkFwqInfoSource() {
|
||||
super();
|
||||
super.version = DEFAULT_VERSION;
|
||||
}
|
||||
|
||||
public JkFwqInfoSource(String version) {
|
||||
super();
|
||||
super.version = version;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<JkFwqInfo> getJkFwqInfoList() {
|
||||
return jkFwqList;
|
||||
}
|
||||
|
||||
public void setJkFwqList(List<JkFwqInfo> jkFwqList) {
|
||||
this.jkFwqList = jkFwqList;
|
||||
}
|
||||
}
|
||||
@@ -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<JkLyq> {
|
||||
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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<JkLyq> 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<JkLyq> getJkLyqList() {
|
||||
return jkLyqList;
|
||||
}
|
||||
/**
|
||||
* @param jkLyqList the jkLyqList to set
|
||||
*/
|
||||
public void setJkLyqList(List<JkLyq> jkLyqList) {
|
||||
this.jkLyqList = jkLyqList;
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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<JkFdZb> 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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<JkFfjInfo> 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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<JkFwqInfo> 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,9 +7,6 @@
|
||||
<if test="sourceName != null and sourceName =='CONFIG_COMPILE'">
|
||||
SEQ_COMPILEID.nextval
|
||||
</if>
|
||||
<if test="sourceName != null and sourceName =='CONFIG_GROUP_ID'">
|
||||
SEQ_CONFIG_GROUP.nextval
|
||||
</if>
|
||||
<if test="sourceName != null and sourceName =='CONFIG_GROUP'">
|
||||
SEQ_GROUPID.nextval
|
||||
</if>
|
||||
|
||||
@@ -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<JkDmbCk>{
|
||||
int delete(long id);
|
||||
int insert(JkDmbCk record);
|
||||
int update(JkDmbCk record);
|
||||
int updateValid(JkDmbCk record);
|
||||
}
|
||||
@@ -1,237 +0,0 @@
|
||||
<?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.nis.web.dao.jk.JkDmbCkDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.restful.jk.JkDmbCk">
|
||||
<id column="G_ID" jdbcType="BIGINT" property="gId" />
|
||||
<result column="GJ_CK_ID" jdbcType="BIGINT" property="gjCkId" />
|
||||
<result column="SF_SX" jdbcType="BIGINT" property="sfSx" />
|
||||
<result column="SX_FW" jdbcType="VARCHAR" property="sxFw" />
|
||||
<result column="CK_MC" jdbcType="VARCHAR" property="ckMc" />
|
||||
<result column="CK_WZ" jdbcType="VARCHAR" property="ckWz" />
|
||||
<!--
|
||||
<result column="CK_TXFF" jdbcType="VARCHAR" property="ckTxff" />
|
||||
<result column="CK_BZ" jdbcType="VARCHAR" property="ckBz" />
|
||||
<result column="YL" jdbcType="BIGINT" property="yl" />
|
||||
<result column="YL1" jdbcType="BIGINT" property="yl1" />
|
||||
<result column="YL2" jdbcType="VARCHAR" property="yl2" />
|
||||
<result column="YL3" jdbcType="VARCHAR" property="yl3" />
|
||||
<result column="YL4" jdbcType="VARCHAR" property="yl4" />
|
||||
<result column="YL5" jdbcType="VARCHAR" property="yl5" />
|
||||
<result column="CK_NO" jdbcType="BIGINT" property="ckNo" /> -->
|
||||
<result column="CK_NO_RAW" jdbcType="VARCHAR" property="ckNoRaw" />
|
||||
<result column="ISP" jdbcType="BIGINT" property="isp" />
|
||||
<result column="DD" jdbcType="BIGINT" property="dd" />
|
||||
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
G_ID, GJ_CK_ID,SF_SX,SX_FW,CK_MC,CK_WZ,<!-- CK_TXFF,CK_BZ,YL,YL1,YL2,YL3,YL4,YL5,CK_NO, -->CK_NO_RAW,ISP,DD
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from DMB_CK
|
||||
where GJ_CK_ID = #{gjCkId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="delete" parameterType="java.lang.Long">
|
||||
delete from DMB_CK
|
||||
where GJ_CK_ID = #{gjCkId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<!--
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkDmbCk">
|
||||
insert into DMB_CK (GJ_CK_ID,SF_SX,SX_FW,CK_MC,CK_WZ,CK_TXFF,CK_BZ,YL,YL1,YL2,YL3,YL4,YL5,CK_NO,CK_NO_RAW,ISP,DD
|
||||
)
|
||||
values (
|
||||
#{gjCkId,jdbcType=BIGINT},
|
||||
#{sfSx,jdbcType=BIGINT},
|
||||
#{sxFw,jdbcType=VARCHAR},
|
||||
#{ckMc,jdbcType=VARCHAR},
|
||||
#{ckWz,jdbcType=BIGINT},
|
||||
#{ckTxff,jdbcType=VARCHAR},
|
||||
#{ckBz,jdbcType=VARCHAR},
|
||||
#{yl,jdbcType=BIGINT},
|
||||
#{yl1,jdbcType=BIGINT},
|
||||
#{yl2,jdbcType=VARCHAR},
|
||||
#{yl3,jdbcType=VARCHAR},
|
||||
#{yl4,jdbcType=VARCHAR},
|
||||
#{yl5,jdbcType=VARCHAR},
|
||||
#{ckNo,jdbcType=BIGINT},
|
||||
#{ckNoRaw,jdbcType=VARCHAR},
|
||||
#{isp,jdbcType=BIGINT},
|
||||
#{dd,jdbcType=BIGINT}
|
||||
)
|
||||
</insert>
|
||||
-->
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkDmbCk" keyProperty="gjCkId">
|
||||
insert into DMB_CK
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="gjCkId != null">
|
||||
GJ_CK_ID ,
|
||||
</if>
|
||||
<if test="sfSx != null">
|
||||
SF_SX ,
|
||||
</if>
|
||||
<if test="sxFw != null">
|
||||
SX_FW ,
|
||||
</if>
|
||||
<if test="ckMc != null">
|
||||
CK_MC ,
|
||||
</if>
|
||||
<if test="ckWz != null">
|
||||
CK_WZ ,
|
||||
</if>
|
||||
<!--
|
||||
<if test="ckTxff != null">
|
||||
CK_TXFF ,
|
||||
</if>
|
||||
<if test="ckBz != null">
|
||||
CK_BZ ,
|
||||
</if>
|
||||
<if test="yl != null">
|
||||
YL ,
|
||||
</if>
|
||||
<if test="yl1 != null">
|
||||
YL1,
|
||||
</if>
|
||||
<if test="yl2 != null">
|
||||
YL2,
|
||||
</if>
|
||||
<if test="yl3 != null">
|
||||
YL3,
|
||||
</if>
|
||||
<if test="yl4 != null">
|
||||
YL4,
|
||||
</if>
|
||||
<if test="yl5 != null">
|
||||
YL5,
|
||||
</if>
|
||||
<if test="ckNo != null">
|
||||
CK_NO ,
|
||||
</if>
|
||||
-->
|
||||
<if test="ckNoRaw != null">
|
||||
CK_NO_RAW ,
|
||||
</if>
|
||||
<if test="isp != null">
|
||||
ISP,
|
||||
</if>
|
||||
<if test="dd != null">
|
||||
DD,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="gjCkId != null">
|
||||
#{gjCkId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="sfSx != null">
|
||||
#{sfSx,jdbcType=BIGINT},
|
||||
</if>
|
||||
|
||||
<if test="sxFw != null">
|
||||
#{sxFw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckMc != null">
|
||||
#{ckMc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckWz != null">
|
||||
#{ckWz,jdbcType=BIGINT},
|
||||
</if>
|
||||
<!--
|
||||
<if test="ckTxff != null">
|
||||
#{ckTxff,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckBz != null">
|
||||
#{ckBz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl != null">
|
||||
#{yl,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="yl1 != null">
|
||||
#{yl1,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="yl2 != null">
|
||||
#{yl2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl3 != null">
|
||||
#{yl3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl4 != null">
|
||||
#{yl4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl5 != null">
|
||||
#{yl5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckNo != null">
|
||||
#{ckNo,jdbcType=BIGINT},
|
||||
</if>
|
||||
-->
|
||||
<if test="ckNoRaw != null">
|
||||
#{ckNoRaw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isp != null">
|
||||
#{isp,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="dd != null">
|
||||
#{dd,jdbcType=BIGINT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkDmbCk">
|
||||
update DMB_CK set SF_SX = #{sfSx,jdbcType=BIGINT} where GJ_CK_ID = #{gjCkId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkDmbCk">
|
||||
update DMB_CK
|
||||
<set>
|
||||
<if test="sfSx != null">
|
||||
SF_SX = #{sfSx,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="sxFw != null">
|
||||
SX_FW = #{sxFw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckMc != null">
|
||||
CK_MC = #{ckMc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckWz != null">
|
||||
CK_WZ = #{ckWz,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="ckTxff != null">
|
||||
CK_TXFF = #{ckTxff,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckBz != null">
|
||||
CK_BZ = #{ckBz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl != null">
|
||||
YL = #{yl,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="yl1 != null">
|
||||
YL1 = #{yl1,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="yl2 != null">
|
||||
YL2 = #{yl2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl3 != null">
|
||||
YL3 = #{yl3,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl4 != null">
|
||||
YL4 = #{yl4,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl5 != null">
|
||||
YL5 = #{yl5,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ckNo != null">
|
||||
CK_NO = #{ckNo,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="ckNoRaw != null">
|
||||
CK_NO_RAW = #{ckNoRaw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isp != null">
|
||||
ISP =#{isp,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="dd != null">
|
||||
DD = #{dd,jdbcType=BIGINT}
|
||||
</if>
|
||||
</set>
|
||||
where GJ_CK_ID = #{gjCkId,jdbcType=BIGINT}
|
||||
</update>
|
||||
-->
|
||||
</mapper>
|
||||
@@ -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<JkFdZb>{
|
||||
int delete(long id);
|
||||
int insert(JkFdZb record);
|
||||
int update(JkFdZb record);
|
||||
}
|
||||
@@ -1,191 +0,0 @@
|
||||
<?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.nis.web.dao.jk.JkFdZbDao">
|
||||
<resultMap id="JkFdZbMap" type="com.nis.domain.restful.jk.JkFdZb">
|
||||
<result column="g_Id" jdbcType="BIGINT" property="gId" />
|
||||
<result column="zb_Id" jdbcType="BIGINT" property="zbId" />
|
||||
<result column="fd_Fs" jdbcType="BIGINT" property="fdFs" />
|
||||
<result column="sf_Fd" jdbcType="BIGINT" property="sfFd" />
|
||||
<result column="jk_Ip" jdbcType="VARCHAR" property="jkIp" />
|
||||
<result column="jk_Ym" jdbcType="BIGINT" property="jkYm" />
|
||||
<result column="isp_Raw" jdbcType="VARCHAR" property="ispRaw" />
|
||||
<result column="LAST_UPDATE" jdbcType="TIMESTAMP" property="lastUpdate" />
|
||||
<result column="sx_Fw" jdbcType="VARCHAR" property="sxFw" />
|
||||
<!-- <result column="addr_type" jdbcType="INTEGER" property="addrType" /> -->
|
||||
<!--
|
||||
<result column="jk_Wz_Mc" jdbcType="VARCHAR" property="jkWzMc" />
|
||||
<result column="jk_Dns" jdbcType="VARCHAR" property="jkDns" />
|
||||
<result column="jk_Fl" jdbcType="BIGINT" property="jkFl" />
|
||||
<result column="jk_Xz" jdbcType="BIGINT" property="jkXz" />
|
||||
<result column="jk_yy" jdbcType="BIGINT" property="jkYy" />
|
||||
<result column="jk_Tzdw" jdbcType="VARCHAR" property="jkTzdw" />
|
||||
<result column="lwhh" jdbcType="VARCHAR" property="lwhh" />
|
||||
<result column="czy_Id" jdbcType="BIGINT" property="czyId" />
|
||||
<result column="jk_Sj1" jdbcType="TIMESTAMP" property="jkSj1" />
|
||||
<result column="jk_Shy" jdbcType="BIGINT" property="jkShy" />
|
||||
<result column="jk_Sj2" jdbcType="TIMESTAMP" property="jkSj2" />
|
||||
<result column="spd" jdbcType="VARCHAR" property="spd" />
|
||||
<result column="kgczyid" jdbcType="BIGINT" property="kgczyid" />
|
||||
<result column="kgczysj" jdbcType="TIMESTAMP" property="kgczysj" />
|
||||
<result column="groupid" jdbcType="BIGINT" property="groupid" />
|
||||
<result column="rw" jdbcType="VARCHAR" property="rw" />
|
||||
<result column="jk_Bz" jdbcType="VARCHAR" property="jkBz" />
|
||||
<result column="yl" jdbcType="VARCHAR" property="yl" />
|
||||
<result column="yhwz_Id" jdbcType="BIGINT" property="yhwzId" />
|
||||
<result column="yxrq" jdbcType="TIMESTAMP" property="yxrq" />
|
||||
<result column="yl1" jdbcType="BIGINT" property="yl1" />
|
||||
<result column="yl2" jdbcType="BIGINT" property="yl2" />
|
||||
<result column="yl3" jdbcType="VARCHAR" property="yl3" />
|
||||
<result column="yl4" jdbcType="VARCHAR" property="yl4" />
|
||||
<result column="yl5" jdbcType="VARCHAR" property="yl5" />
|
||||
<result column="djyid" jdbcType="BIGINT" property="djyid" />
|
||||
<result column="djsj" jdbcType="TIMESTAMP" property="djsj" />
|
||||
<result column="fhyid" jdbcType="BIGINT" property="fhyid" />
|
||||
<result column="fhsj" jdbcType="TIMESTAMP" property="fhsj" />
|
||||
<result column="yhwzysy" jdbcType="BIGINT" property="yhwzysy" />
|
||||
<result column="yhwzyssj" jdbcType="TIMESTAMP" property="yhwzyssj" />
|
||||
<result column="yhwzshy" jdbcType="BIGINT" property="yhwzshy" />
|
||||
<result column="yhwzshsj" jdbcType="TIMESTAMP" property="yhwzshsj" />
|
||||
<result column="ipzy_Ysy" jdbcType="BIGINT" property="ipzyYsy" />
|
||||
<result column="ipzy_Yssj" jdbcType="TIMESTAMP" property="ipzyYssj" />
|
||||
<result column="ipzy_Shy" jdbcType="BIGINT" property="ipzyShy" />
|
||||
<result column="ipzy_Shsj" jdbcType="TIMESTAMP" property="ipzyShsj" />
|
||||
<result column="ip_Num" jdbcType="BIGINT" property="ipNum" />
|
||||
<result column="isp" jdbcType="BIGINT" property="isp" />
|
||||
-->
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
G_ID,ZB_ID,FD_FS,SF_FD,JK_IP,JK_YM,ISP_RAW,LAST_UPDATE,SX_FW<!-- ,ADDR_TYPE --><!-- ,JK_WZ_MC,JK_DNS,
|
||||
JK_FL,JK_XZ,JK_YY,JK_TZDW,LWHH,CZY_ID,JK_SJ1,JK_SHY,JK_SJ2,SPD,KGCZYID,
|
||||
KGCZYSJ,GROUPID,RW,JK_BZ,YL,YHWZ_ID,YXRQ,YL1,YL2,DJYID,DJSJ,FHYID,
|
||||
FHSJ,YHWZYSY,YHWZYSSJ,YHWZSHY,YHWZSHSJ,IPZY_YSY,IPZY_YSSJ,IPZY_SHY,
|
||||
IPZY_SHSJ,IP_NUM,ISP,YL5,YL4,YL3 -->
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="JkFdZbMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from JK_FD_ZB_FULL
|
||||
where ZB_ID = #{zbId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="delete" parameterType="java.lang.Long">
|
||||
delete from JK_FD_ZB_FULL
|
||||
where ZB_ID = #{zbId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkFdZb">
|
||||
insert into JK_FD_ZB_FULL (
|
||||
zb_Id
|
||||
,fd_Fs
|
||||
,sf_Fd
|
||||
,jk_Ip
|
||||
,jk_Ym
|
||||
,isp_Raw
|
||||
,LAST_UPDATE
|
||||
,sx_Fw
|
||||
<!-- ,addr_type -->
|
||||
<!--
|
||||
,jk_Wz_Mc
|
||||
,jk_Dns
|
||||
,jk_Fl
|
||||
,jk_Xz
|
||||
,jk_yy
|
||||
,jk_Tzdw
|
||||
,lwhh
|
||||
,czy_Id
|
||||
,jk_Sj1
|
||||
,jk_Shy
|
||||
,jk_Sj2
|
||||
,spd
|
||||
,kgczyid
|
||||
,kgczysj
|
||||
,groupid
|
||||
,rw
|
||||
,jk_Bz
|
||||
,yl
|
||||
,yhwz_Id
|
||||
,yxrq
|
||||
,yl1
|
||||
,yl2
|
||||
,yl3
|
||||
,yl4
|
||||
,yl5
|
||||
,djyid
|
||||
,djsj
|
||||
,fhyid
|
||||
,fhsj
|
||||
,yhwzysy
|
||||
,yhwzyssj
|
||||
,yhwzshy
|
||||
,yhwzshsj
|
||||
,ipzy_Ysy
|
||||
,ipzy_Yssj
|
||||
,ipzy_Shy
|
||||
,ipzy_Shsj
|
||||
,ip_Num
|
||||
,isp -->
|
||||
)
|
||||
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}<!-- ,
|
||||
#{addrType,jdbcType=VARCHAR} --><!-- ,
|
||||
#{jkWzMc,jdbcType=VARCHAR},
|
||||
#{jkDns,jdbcType=VARCHAR},
|
||||
#{jkFl,jdbcType=BIGINT},
|
||||
#{jkXz,jdbcType=BIGINT},
|
||||
#{jkYy,jdbcType=BIGINT},
|
||||
#{jkTzdw,jdbcType=VARCHAR},
|
||||
#{lwhh,jdbcType=VARCHAR},
|
||||
#{czyId,jdbcType=BIGINT},
|
||||
#{jkSj1,jdbcType=TIMESTAMP},
|
||||
#{jkShy,jdbcType=BIGINT},
|
||||
#{jkSj2,jdbcType=TIMESTAMP},
|
||||
#{spd,jdbcType=VARCHAR},
|
||||
#{kgczyid,jdbcType=BIGINT},
|
||||
#{kgczysj,jdbcType=TIMESTAMP},
|
||||
#{groupid,jdbcType=BIGINT},
|
||||
#{rw,jdbcType=VARCHAR},
|
||||
#{jkBz,jdbcType=VARCHAR},
|
||||
#{yl,jdbcType=VARCHAR},
|
||||
#{yhwzId,jdbcType=BIGINT},
|
||||
#{yxrq,jdbcType=TIMESTAMP},
|
||||
#{yl1,jdbcType=BIGINT},
|
||||
#{yl2,jdbcType=BIGINT},
|
||||
#{yl3,jdbcType=VARCHAR},
|
||||
#{yl4,jdbcType=VARCHAR},
|
||||
#{yl5,jdbcType=VARCHAR},
|
||||
#{djyid,jdbcType=BIGINT},
|
||||
#{djsj,jdbcType=TIMESTAMP},
|
||||
#{fhyid,jdbcType=BIGINT},
|
||||
#{fhsj,jdbcType=TIMESTAMP},
|
||||
#{yhwzysy,jdbcType=BIGINT},
|
||||
#{yhwzyssj,jdbcType=TIMESTAMP},
|
||||
#{yhwzshy,jdbcType=BIGINT},
|
||||
#{yhwzshsj,jdbcType=TIMESTAMP},
|
||||
#{ipzyYsy,jdbcType=BIGINT},
|
||||
#{ipzyYssj,jdbcType=TIMESTAMP},
|
||||
#{ipzyShy,jdbcType=BIGINT},
|
||||
#{ipzyShsj,jdbcType=TIMESTAMP},
|
||||
#{ipNum,jdbcType=BIGINT},
|
||||
#{isp,jdbcType=BIGINT} -->
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkFdZb">
|
||||
update JK_FD_ZB_FULL
|
||||
<set>
|
||||
<if test="sfFd != null">
|
||||
sf_Fd=#{sfFd,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
LAST_UPDATE=#{lastUpdate,jdbcType=BIGINT},
|
||||
</if>
|
||||
|
||||
</set>
|
||||
where ZB_ID = #{zbId,jdbcType=BIGINT}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -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<JkFfjInfo>{
|
||||
int delete(long id);
|
||||
int insert(JkFfjInfo record);
|
||||
int update(JkFfjInfo record);
|
||||
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
<?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.nis.web.dao.jk.JkFfjInfoDao">
|
||||
<resultMap id="JkFfjInfoResultMap" type="com.nis.domain.restful.jk.JkFfjInfo">
|
||||
<id column="G_ID" jdbcType="BIGINT" property="gId" />
|
||||
<result column="FFJ_ID" jdbcType="BIGINT" property="ffjId" />
|
||||
<result column="FFJ_MC" jdbcType="VARCHAR" property="ffjMc" />
|
||||
<result column="FFJ_IP" jdbcType="VARCHAR" property="ffjIp" />
|
||||
<result column="FFJ_JS" jdbcType="BIGINT" property="ffjJs" />
|
||||
<result column="KG_FW" jdbcType="BIGINT" property="kgFw" />
|
||||
<result column="SF_SX" jdbcType="BIGINT" property="sfSx" />
|
||||
<result column="SX_FW" jdbcType="VARCHAR" property="sxFw" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
G_ID, FFJ_ID, FFJ_MC, FFJ_IP, FFJ_JS, KG_FW, SF_SX, SX_FW
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="JkFfjInfoResultMap">
|
||||
select <include refid="Base_Column_List" />
|
||||
from JK_FFJ
|
||||
where FFJ_ID = #{ffjId,jdbcType=BIGINT}
|
||||
</select>
|
||||
|
||||
<delete id="delete" parameterType="java.lang.Long">
|
||||
delete from JK_FFJ
|
||||
where FFJ_ID = #{ffjId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkFfjInfo">
|
||||
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}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkFfjInfo">
|
||||
update JK_FFJ
|
||||
<set>
|
||||
<if test="sfSx != null">SF_SX = #{sfSx,jdbcType=BIGINT},</if>
|
||||
</set>
|
||||
where FFJ_ID = #{ffjId,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -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<JkFwqInfo>{
|
||||
|
||||
int insert(JkFwqInfo record);
|
||||
|
||||
int update(JkFwqInfo record);
|
||||
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
<?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.nis.web.dao.jk.JkFwqInfoDao">
|
||||
<resultMap id="resultMap" type="com.nis.domain.restful.jk.JkFwqInfo">
|
||||
<id column="G_ID" jdbcType="BIGINT" property="gId" />
|
||||
<result column="FWQ_ID" jdbcType="BIGINT" property="fwqId" />
|
||||
<result column="FWQ_MC" jdbcType="VARCHAR" property="fwqMc" />
|
||||
<result column="FWQ_IP" jdbcType="VARCHAR" property="fwqIp" />
|
||||
<result column="SF_SX" jdbcType="BIGINT" property="sfSx" />
|
||||
<result column="SX_FW" jdbcType="VARCHAR" property="sxFw" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
G_ID, FWQ_ID, FWQ_MC, FWQ_IP, SF_SX, SX_FW
|
||||
</sql>
|
||||
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkFwqInfo">
|
||||
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}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkFwqInfo">
|
||||
update JK_FWQ
|
||||
<set>
|
||||
<if test="sfSx != null">SF_SX = #{sfSx,jdbcType=BIGINT},</if>
|
||||
</set>
|
||||
where FWQ_ID = #{fwqId,jdbcType=BIGINT}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -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<JkLyq>{
|
||||
int delete(long id);
|
||||
int insert(JkLyq record);
|
||||
int update(JkLyq record);
|
||||
int updateValid(JkLyq record);
|
||||
}
|
||||
@@ -1,180 +0,0 @@
|
||||
<?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.nis.web.dao.jk.JkLyqDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.restful.jk.JkLyq">
|
||||
<id column="G_ID" jdbcType="BIGINT" property="gId" />
|
||||
<result column="LYQ_ID" jdbcType="BIGINT" property="lyqId" />
|
||||
<result column="LYQ_MC" jdbcType="VARCHAR" property="lyqMc" />
|
||||
<result column="FWQ_ID" jdbcType="BIGINT" property="fwqId" />
|
||||
<result column="KGFS" jdbcType="BIGINT" property="kgfs" />
|
||||
<result column="GJ_CK_ID" jdbcType="BIGINT" property="gjCkId" />
|
||||
<result column="SF_SX" jdbcType="BIGINT" property="sfSx" />
|
||||
<result column="SX_FW" jdbcType="VARCHAR" property="sxFw" />
|
||||
<!--
|
||||
<result column="CZY_ID" jdbcType="BIGINT" property="czyId" />
|
||||
<result column="CZ_SJ" jdbcType="TIMESTAMP" property="czSj" />
|
||||
<result column="BZ" jdbcType="VARCHAR" property="bz" />
|
||||
<result column="YL" jdbcType="VARCHAR" property="yl" /> -->
|
||||
<result column="FWQ_DK" jdbcType="BIGINT" property="fwqDk" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
G_ID, LYQ_ID,LYQ_MC,FWQ_ID,KGFS,GJ_CK_ID,SF_SX,SX_FW ,<!--CZY_ID,CZ_SJ,BZ,YL, -->FWQ_DK
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from JK_LYQ
|
||||
where LYQ_ID = #{lyqId,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="delete" parameterType="java.lang.Long">
|
||||
delete from JK_LYQ
|
||||
where LYQ_ID = #{lyqId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<!--
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkLyq" keyProperty="lyqId">
|
||||
insert into JK_LYQ (LYQ_ID,LYQ_MC,FWQ_ID,KGFS,GJ_CK_ID,SF_SX,SX_FW,CZY_ID,CZ_SJ,BZ,YL,FWQ_DK
|
||||
)
|
||||
values (
|
||||
#{lyqId,jdbcType=BIGINT},
|
||||
#{lyqMc,jdbcType=VARCHAR},
|
||||
#{fwqId,jdbcType=BIGINT},
|
||||
#{kgfs,jdbcType=BIGINT},
|
||||
#{gjCkId,jdbcType=BIGINT},
|
||||
#{sfSx,jdbcType=BIGINT},
|
||||
#{sxFw,jdbcType=VARCHAR},
|
||||
#{czyId,jdbcType=BIGINT},
|
||||
#{czSj,jdbcType=TIMESTAMP},
|
||||
#{bz,jdbcType=VARCHAR},
|
||||
#{yl,jdbcType=VARCHAR},
|
||||
#{fwqDk,jdbcType=BIGINT}
|
||||
)
|
||||
</insert>
|
||||
-->
|
||||
<!---->
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.jk.JkLyq">
|
||||
insert into JK_LYQ
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="lyqId != null">
|
||||
LYQ_ID ,
|
||||
</if>
|
||||
<if test="lyqMc != null">
|
||||
LYQ_MC ,
|
||||
</if>
|
||||
<if test="fwqId != null">
|
||||
FWQ_ID ,
|
||||
</if>
|
||||
<if test="kgfs != null">
|
||||
KGFS ,
|
||||
</if>
|
||||
<if test="gjCkId != null">
|
||||
GJ_CK_ID ,
|
||||
</if>
|
||||
<if test="sfSx != null">
|
||||
SF_SX ,
|
||||
</if>
|
||||
<if test="sxFw != null">
|
||||
SX_FW ,
|
||||
</if>
|
||||
<!--
|
||||
<if test="czyId != null">
|
||||
CZY_ID ,
|
||||
</if>
|
||||
<if test="czSj != null">
|
||||
CZ_SJ ,
|
||||
</if>
|
||||
<if test="bz != null">
|
||||
BZ ,
|
||||
</if>
|
||||
<if test="yl != null">
|
||||
YL ,
|
||||
</if> -->
|
||||
<if test="fwqDk != null">
|
||||
FWQ_DK ,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="lyqId != null">
|
||||
#{lyqId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="lyqMc != null">
|
||||
#{lyqMc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fwqId != null">
|
||||
#{fwqId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="kgfs != null">
|
||||
#{kgfs,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="gjCkId != null">
|
||||
#{gjCkId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="sfSx != null">
|
||||
#{sfSx,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="sxFw != null">
|
||||
#{sxFw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<!--
|
||||
<if test="czyId != null">
|
||||
#{czyId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="czSj != null">
|
||||
#{czSj,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="bz != null">
|
||||
#{bz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl != null">
|
||||
#{yl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
-->
|
||||
<if test="fwqDk != null">
|
||||
#{fwqDk,jdbcType=BIGINT},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkLyq">
|
||||
update JK_LYQ set SF_SX = #{sfSx,jdbcType=BIGINT} where LYQ_ID = #{lyqId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--
|
||||
<update id="update" parameterType="com.nis.domain.restful.jk.JkLyq">
|
||||
update JK_LYQ
|
||||
<set>
|
||||
<if test="lyqMc != null">
|
||||
LYQ_MC = #{lyqMc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fwqId != null">
|
||||
FWQ_ID = #{fwqId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="kgfs != null">
|
||||
KGFS = #{kgfs,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="gjCkId != null">
|
||||
GJ_CK_ID = #{gjCkId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="sfSx != null">
|
||||
SF_SX = #{sfSx,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="sxFw != null">
|
||||
SX_FW = #{sxFw,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="czyId != null">
|
||||
CZY_ID = #{czyId,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="czSj != null">
|
||||
CZ_SJ = #{czSj,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="bz != null">
|
||||
BZ = #{bz,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="yl != null">
|
||||
YL = #{yl,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fwqDk != null">
|
||||
FWQ_DK = #{fwqDk,jdbcType=BIGINT},
|
||||
</if>
|
||||
</set>
|
||||
where LYQ_ID = #{lyqId,jdbcType=BIGINT}
|
||||
</update>
|
||||
-->
|
||||
</mapper>
|
||||
@@ -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<JkDmbCkDao, JkDmbCk> {
|
||||
@Autowired
|
||||
public JkDmbCkDao jkDmbCkDao;
|
||||
|
||||
public JkDmbCk findById(long id) {
|
||||
return get(id);
|
||||
}
|
||||
public void saveDmbCkBatch(List<JkDmbCk> entity) {
|
||||
// TODO Auto-generated method stub
|
||||
super.saveBatch(entity,JkDmbCkDao.class);
|
||||
}
|
||||
public void updateDmbCkBatch(List<JkDmbCk> entity) {
|
||||
// TODO Auto-generated method stub
|
||||
super.updateBatch(entity, JkDmbCkDao.class);
|
||||
}
|
||||
|
||||
public void removeDmbCk(long id) {
|
||||
jkDmbCkDao.delete(id);
|
||||
}
|
||||
public void removeDmbCkBatch(List<JkDmbCk> entity) {
|
||||
super.deleteBatch(entity, JkDmbCkDao.class);
|
||||
}
|
||||
}
|
||||
@@ -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<JkFdZbDao, JkFdZb> {
|
||||
@Autowired
|
||||
public JkFdZbDao dmbCkDao;
|
||||
public Page<JkFdZb> getJkFdZb(Page<JkFdZb> page, JkFdZb entity) {
|
||||
return findPage(page, entity);
|
||||
}
|
||||
|
||||
public JkFdZb findById(long zbId) {
|
||||
return get(zbId);
|
||||
}
|
||||
public void saveJkFdZbBatch(List<JkFdZb> entity) {
|
||||
super.saveBatch(entity,JkFdZbDao.class);
|
||||
}
|
||||
public void updateJkFdZbBatch(List<JkFdZb> entity) {
|
||||
super.updateBatch(entity, JkFdZbDao.class);
|
||||
}
|
||||
public void removeJkFdZb(long zbId) {
|
||||
dmbCkDao.delete(zbId);
|
||||
}
|
||||
public void removeJkFdZbBatch(List<JkFdZb> entity) {
|
||||
super.deleteBatch(entity, JkFdZbDao.class);
|
||||
}
|
||||
}
|
||||
@@ -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<JkFfjInfoDao, JkFfjInfo> {
|
||||
|
||||
@Autowired
|
||||
public JkFfjInfoDao jkFfjInfoDao;
|
||||
|
||||
public void saveJkFfjBatch(List<JkFfjInfo> entity) {
|
||||
super.saveBatch(entity, JkFfjInfoDao.class);
|
||||
}
|
||||
|
||||
|
||||
public void updateJkFfjBatch(List<JkFfjInfo> entity) {
|
||||
super.updateBatch(entity, JkFfjInfoDao.class);
|
||||
}
|
||||
}
|
||||
@@ -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<JkFwqInfoDao, JkFwqInfo> {
|
||||
|
||||
@Autowired
|
||||
public JkFwqInfoDao jkFwqInfoDao;
|
||||
|
||||
public void savejkFwqInfoBatch(List<JkFwqInfo> entity) {
|
||||
super.saveBatch(entity, JkFwqInfoDao.class);
|
||||
}
|
||||
|
||||
|
||||
public void updatejkFwqInfoBatch(List<JkFwqInfo> entity) {
|
||||
super.updateBatch(entity, JkFwqInfoDao.class);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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<JkLyqDao, JkLyq> {
|
||||
@Autowired
|
||||
public JkLyqDao jkLyqDao;
|
||||
|
||||
public JkLyq findById(long id) {
|
||||
return get(id);
|
||||
}
|
||||
public void saveJkLyqBatch(List<JkLyq> entity) {
|
||||
// TODO Auto-generated method stub
|
||||
super.saveBatch(entity,JkLyqDao.class);
|
||||
}
|
||||
public void updateJkLyqBatch(List<JkLyq> entity) {
|
||||
// TODO Auto-generated method stub
|
||||
super.updateBatch(entity, JkLyqDao.class);
|
||||
}
|
||||
public void removeJkLyq(long id) {
|
||||
jkLyqDao.delete(id);
|
||||
}
|
||||
public void removeJkLyqBatch(List<JkLyq> entity) {
|
||||
super.deleteBatch(entity, JkLyqDao.class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user