Merge branch 'master' of git.oschina.net:eh3/useful-code
# Conflicts: # src/main/java/osc/git/eh3/testopen/TestOpenPuton.java
This commit is contained in:
commit
9e5e26d1a4
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,7 +6,6 @@
|
|||||||
*.ear
|
*.ear
|
||||||
/target/
|
/target/
|
||||||
target
|
target
|
||||||
com
|
|
||||||
*.project
|
*.project
|
||||||
*.classpath
|
*.classpath
|
||||||
/.settings
|
/.settings
|
||||||
|
36
src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.java
Normal file
36
src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.java
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
package com.pxene.dsp.archer.dao;
|
||||||
|
|
||||||
|
import com.pxene.dsp.archer.model.OperateLogsModel;
|
||||||
|
import com.pxene.dsp.archer.model.OperateLogsModelExample;
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
public interface OperateLogsDao {
|
||||||
|
int countByExample(OperateLogsModelExample example);
|
||||||
|
|
||||||
|
int deleteByExample(OperateLogsModelExample example);
|
||||||
|
|
||||||
|
int deleteByPrimaryKey(String id);
|
||||||
|
|
||||||
|
int insert(OperateLogsModel record);
|
||||||
|
|
||||||
|
int insertSelective(OperateLogsModel record);
|
||||||
|
|
||||||
|
List<OperateLogsModel> selectByExampleWithBLOBs(OperateLogsModelExample example);
|
||||||
|
|
||||||
|
List<OperateLogsModel> selectByExample(OperateLogsModelExample example);
|
||||||
|
|
||||||
|
OperateLogsModel selectByPrimaryKey(String id);
|
||||||
|
|
||||||
|
int updateByExampleSelective(@Param("record") OperateLogsModel record, @Param("example") OperateLogsModelExample example);
|
||||||
|
|
||||||
|
int updateByExampleWithBLOBs(@Param("record") OperateLogsModel record, @Param("example") OperateLogsModelExample example);
|
||||||
|
|
||||||
|
int updateByExample(@Param("record") OperateLogsModel record, @Param("example") OperateLogsModelExample example);
|
||||||
|
|
||||||
|
int updateByPrimaryKeySelective(OperateLogsModel record);
|
||||||
|
|
||||||
|
int updateByPrimaryKeyWithBLOBs(OperateLogsModel record);
|
||||||
|
|
||||||
|
int updateByPrimaryKey(OperateLogsModel record);
|
||||||
|
}
|
342
src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.xml
Normal file
342
src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.xml
Normal file
@ -0,0 +1,342 @@
|
|||||||
|
<?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.pxene.dsp.archer.dao.OperateLogsDao" >
|
||||||
|
<resultMap id="BaseResultMap" type="com.pxene.dsp.archer.model.OperateLogsModel" >
|
||||||
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
||||||
|
<result column="userid" property="userid" jdbcType="VARCHAR" />
|
||||||
|
<result column="usertype" property="usertype" jdbcType="VARCHAR" />
|
||||||
|
<result column="ip" property="ip" jdbcType="VARCHAR" />
|
||||||
|
<result column="operate" property="operate" jdbcType="VARCHAR" />
|
||||||
|
<result column="plangroup" property="plangroup" jdbcType="VARCHAR" />
|
||||||
|
<result column="remark" property="remark" jdbcType="VARCHAR" />
|
||||||
|
<result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
|
||||||
|
<result column="status" property="status" jdbcType="INTEGER" />
|
||||||
|
</resultMap>
|
||||||
|
<resultMap id="ResultMapWithBLOBs" type="com.pxene.dsp.archer.model.OperateLogsModel" extends="BaseResultMap" >
|
||||||
|
<result column="details" property="details" jdbcType="LONGVARCHAR" />
|
||||||
|
</resultMap>
|
||||||
|
<sql id="Example_Where_Clause" >
|
||||||
|
<where >
|
||||||
|
<foreach collection="oredCriteria" item="criteria" separator="or" >
|
||||||
|
<if test="criteria.valid" >
|
||||||
|
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||||
|
<foreach collection="criteria.criteria" item="criterion" >
|
||||||
|
<choose >
|
||||||
|
<when test="criterion.noValue" >
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue" >
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue" >
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue" >
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Update_By_Example_Where_Clause" >
|
||||||
|
<where >
|
||||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
|
||||||
|
<if test="criteria.valid" >
|
||||||
|
<trim prefix="(" suffix=")" prefixOverrides="and" >
|
||||||
|
<foreach collection="criteria.criteria" item="criterion" >
|
||||||
|
<choose >
|
||||||
|
<when test="criterion.noValue" >
|
||||||
|
and ${criterion.condition}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.singleValue" >
|
||||||
|
and ${criterion.condition} #{criterion.value}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.betweenValue" >
|
||||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||||
|
</when>
|
||||||
|
<when test="criterion.listValue" >
|
||||||
|
and ${criterion.condition}
|
||||||
|
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
|
||||||
|
#{listItem}
|
||||||
|
</foreach>
|
||||||
|
</when>
|
||||||
|
</choose>
|
||||||
|
</foreach>
|
||||||
|
</trim>
|
||||||
|
</if>
|
||||||
|
</foreach>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
<sql id="Base_Column_List" >
|
||||||
|
id, userid, usertype, ip, operate, plangroup, remark, createtime, status
|
||||||
|
</sql>
|
||||||
|
<sql id="Blob_Column_List" >
|
||||||
|
details
|
||||||
|
</sql>
|
||||||
|
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.pxene.dsp.archer.model.OperateLogsModelExample" >
|
||||||
|
select
|
||||||
|
<if test="distinct" >
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
'true' as QUERYID,
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from dsp_t_operate_logs
|
||||||
|
<if test="_parameter != null" >
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null" >
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.pxene.dsp.archer.model.OperateLogsModelExample" >
|
||||||
|
select
|
||||||
|
<if test="distinct" >
|
||||||
|
distinct
|
||||||
|
</if>
|
||||||
|
'true' as QUERYID,
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from dsp_t_operate_logs
|
||||||
|
<if test="_parameter != null" >
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
<if test="orderByClause != null" >
|
||||||
|
order by ${orderByClause}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
,
|
||||||
|
<include refid="Blob_Column_List" />
|
||||||
|
from dsp_t_operate_logs
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</select>
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
||||||
|
delete from dsp_t_operate_logs
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</delete>
|
||||||
|
<delete id="deleteByExample" parameterType="com.pxene.dsp.archer.model.OperateLogsModelExample" >
|
||||||
|
delete from dsp_t_operate_logs
|
||||||
|
<if test="_parameter != null" >
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</delete>
|
||||||
|
<insert id="insert" parameterType="com.pxene.dsp.archer.model.OperateLogsModel" >
|
||||||
|
insert into dsp_t_operate_logs (id, userid, usertype,
|
||||||
|
ip, operate, plangroup,
|
||||||
|
remark, createtime, status,
|
||||||
|
details)
|
||||||
|
values (#{id,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{usertype,jdbcType=VARCHAR},
|
||||||
|
#{ip,jdbcType=VARCHAR}, #{operate,jdbcType=VARCHAR}, #{plangroup,jdbcType=VARCHAR},
|
||||||
|
#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER},
|
||||||
|
#{details,jdbcType=LONGVARCHAR})
|
||||||
|
</insert>
|
||||||
|
<insert id="insertSelective" parameterType="com.pxene.dsp.archer.model.OperateLogsModel" >
|
||||||
|
insert into dsp_t_operate_logs
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||||
|
<if test="id != null" >
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="userid != null" >
|
||||||
|
userid,
|
||||||
|
</if>
|
||||||
|
<if test="usertype != null" >
|
||||||
|
usertype,
|
||||||
|
</if>
|
||||||
|
<if test="ip != null" >
|
||||||
|
ip,
|
||||||
|
</if>
|
||||||
|
<if test="operate != null" >
|
||||||
|
operate,
|
||||||
|
</if>
|
||||||
|
<if test="plangroup != null" >
|
||||||
|
plangroup,
|
||||||
|
</if>
|
||||||
|
<if test="remark != null" >
|
||||||
|
remark,
|
||||||
|
</if>
|
||||||
|
<if test="createtime != null" >
|
||||||
|
createtime,
|
||||||
|
</if>
|
||||||
|
<if test="status != null" >
|
||||||
|
status,
|
||||||
|
</if>
|
||||||
|
<if test="details != null" >
|
||||||
|
details,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||||
|
<if test="id != null" >
|
||||||
|
#{id,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="userid != null" >
|
||||||
|
#{userid,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="usertype != null" >
|
||||||
|
#{usertype,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="ip != null" >
|
||||||
|
#{ip,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operate != null" >
|
||||||
|
#{operate,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="plangroup != null" >
|
||||||
|
#{plangroup,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null" >
|
||||||
|
#{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createtime != null" >
|
||||||
|
#{createtime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="status != null" >
|
||||||
|
#{status,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="details != null" >
|
||||||
|
#{details,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<select id="countByExample" parameterType="com.pxene.dsp.archer.model.OperateLogsModelExample" resultType="java.lang.Integer" >
|
||||||
|
select count(*) from dsp_t_operate_logs
|
||||||
|
<if test="_parameter != null" >
|
||||||
|
<include refid="Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<update id="updateByExampleSelective" parameterType="map" >
|
||||||
|
update dsp_t_operate_logs
|
||||||
|
<set >
|
||||||
|
<if test="record.id != null" >
|
||||||
|
id = #{record.id,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.userid != null" >
|
||||||
|
userid = #{record.userid,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.usertype != null" >
|
||||||
|
usertype = #{record.usertype,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.ip != null" >
|
||||||
|
ip = #{record.ip,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.operate != null" >
|
||||||
|
operate = #{record.operate,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.plangroup != null" >
|
||||||
|
plangroup = #{record.plangroup,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.remark != null" >
|
||||||
|
remark = #{record.remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="record.createtime != null" >
|
||||||
|
createtime = #{record.createtime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="record.status != null" >
|
||||||
|
status = #{record.status,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="record.details != null" >
|
||||||
|
details = #{record.details,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<if test="_parameter != null" >
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExampleWithBLOBs" parameterType="map" >
|
||||||
|
update dsp_t_operate_logs
|
||||||
|
set id = #{record.id,jdbcType=VARCHAR},
|
||||||
|
userid = #{record.userid,jdbcType=VARCHAR},
|
||||||
|
usertype = #{record.usertype,jdbcType=VARCHAR},
|
||||||
|
ip = #{record.ip,jdbcType=VARCHAR},
|
||||||
|
operate = #{record.operate,jdbcType=VARCHAR},
|
||||||
|
plangroup = #{record.plangroup,jdbcType=VARCHAR},
|
||||||
|
remark = #{record.remark,jdbcType=VARCHAR},
|
||||||
|
createtime = #{record.createtime,jdbcType=TIMESTAMP},
|
||||||
|
status = #{record.status,jdbcType=INTEGER},
|
||||||
|
details = #{record.details,jdbcType=LONGVARCHAR}
|
||||||
|
<if test="_parameter != null" >
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByExample" parameterType="map" >
|
||||||
|
update dsp_t_operate_logs
|
||||||
|
set id = #{record.id,jdbcType=VARCHAR},
|
||||||
|
userid = #{record.userid,jdbcType=VARCHAR},
|
||||||
|
usertype = #{record.usertype,jdbcType=VARCHAR},
|
||||||
|
ip = #{record.ip,jdbcType=VARCHAR},
|
||||||
|
operate = #{record.operate,jdbcType=VARCHAR},
|
||||||
|
plangroup = #{record.plangroup,jdbcType=VARCHAR},
|
||||||
|
remark = #{record.remark,jdbcType=VARCHAR},
|
||||||
|
createtime = #{record.createtime,jdbcType=TIMESTAMP},
|
||||||
|
status = #{record.status,jdbcType=INTEGER}
|
||||||
|
<if test="_parameter != null" >
|
||||||
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.pxene.dsp.archer.model.OperateLogsModel" >
|
||||||
|
update dsp_t_operate_logs
|
||||||
|
<set >
|
||||||
|
<if test="userid != null" >
|
||||||
|
userid = #{userid,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="usertype != null" >
|
||||||
|
usertype = #{usertype,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="ip != null" >
|
||||||
|
ip = #{ip,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="operate != null" >
|
||||||
|
operate = #{operate,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="plangroup != null" >
|
||||||
|
plangroup = #{plangroup,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remark != null" >
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="createtime != null" >
|
||||||
|
createtime = #{createtime,jdbcType=TIMESTAMP},
|
||||||
|
</if>
|
||||||
|
<if test="status != null" >
|
||||||
|
status = #{status,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="details != null" >
|
||||||
|
details = #{details,jdbcType=LONGVARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.pxene.dsp.archer.model.OperateLogsModel" >
|
||||||
|
update dsp_t_operate_logs
|
||||||
|
set userid = #{userid,jdbcType=VARCHAR},
|
||||||
|
usertype = #{usertype,jdbcType=VARCHAR},
|
||||||
|
ip = #{ip,jdbcType=VARCHAR},
|
||||||
|
operate = #{operate,jdbcType=VARCHAR},
|
||||||
|
plangroup = #{plangroup,jdbcType=VARCHAR},
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
createtime = #{createtime,jdbcType=TIMESTAMP},
|
||||||
|
status = #{status,jdbcType=INTEGER},
|
||||||
|
details = #{details,jdbcType=LONGVARCHAR}
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.pxene.dsp.archer.model.OperateLogsModel" >
|
||||||
|
update dsp_t_operate_logs
|
||||||
|
set userid = #{userid,jdbcType=VARCHAR},
|
||||||
|
usertype = #{usertype,jdbcType=VARCHAR},
|
||||||
|
ip = #{ip,jdbcType=VARCHAR},
|
||||||
|
operate = #{operate,jdbcType=VARCHAR},
|
||||||
|
plangroup = #{plangroup,jdbcType=VARCHAR},
|
||||||
|
remark = #{remark,jdbcType=VARCHAR},
|
||||||
|
createtime = #{createtime,jdbcType=TIMESTAMP},
|
||||||
|
status = #{status,jdbcType=INTEGER}
|
||||||
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
|
</update>
|
||||||
|
</mapper>
|
105
src/main/java/com/pxene/dsp/archer/model/OperateLogsModel.java
Normal file
105
src/main/java/com/pxene/dsp/archer/model/OperateLogsModel.java
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
package com.pxene.dsp.archer.model;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class OperateLogsModel {
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String userid;
|
||||||
|
|
||||||
|
private String usertype;
|
||||||
|
|
||||||
|
private String ip;
|
||||||
|
|
||||||
|
private String operate;
|
||||||
|
|
||||||
|
private String plangroup;
|
||||||
|
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
private Date createtime;
|
||||||
|
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
private String details;
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id == null ? null : id.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserid() {
|
||||||
|
return userid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserid(String userid) {
|
||||||
|
this.userid = userid == null ? null : userid.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUsertype() {
|
||||||
|
return usertype;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsertype(String usertype) {
|
||||||
|
this.usertype = usertype == null ? null : usertype.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIp() {
|
||||||
|
return ip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIp(String ip) {
|
||||||
|
this.ip = ip == null ? null : ip.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOperate() {
|
||||||
|
return operate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOperate(String operate) {
|
||||||
|
this.operate = operate == null ? null : operate.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPlangroup() {
|
||||||
|
return plangroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPlangroup(String plangroup) {
|
||||||
|
this.plangroup = plangroup == null ? null : plangroup.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark == null ? null : remark.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreatetime() {
|
||||||
|
return createtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatetime(Date createtime) {
|
||||||
|
this.createtime = createtime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getStatus() {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatus(Integer status) {
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDetails() {
|
||||||
|
return details;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetails(String details) {
|
||||||
|
this.details = details == null ? null : details.trim();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,811 @@
|
|||||||
|
package com.pxene.dsp.archer.model;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class OperateLogsModelExample {
|
||||||
|
protected String orderByClause;
|
||||||
|
|
||||||
|
protected boolean distinct;
|
||||||
|
|
||||||
|
protected List<Criteria> oredCriteria;
|
||||||
|
|
||||||
|
public OperateLogsModelExample() {
|
||||||
|
oredCriteria = new ArrayList<Criteria>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrderByClause(String orderByClause) {
|
||||||
|
this.orderByClause = orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrderByClause() {
|
||||||
|
return orderByClause;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDistinct(boolean distinct) {
|
||||||
|
this.distinct = distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDistinct() {
|
||||||
|
return distinct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criteria> getOredCriteria() {
|
||||||
|
return oredCriteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void or(Criteria criteria) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria or() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria createCriteria() {
|
||||||
|
Criteria criteria = createCriteriaInternal();
|
||||||
|
if (oredCriteria.size() == 0) {
|
||||||
|
oredCriteria.add(criteria);
|
||||||
|
}
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criteria createCriteriaInternal() {
|
||||||
|
Criteria criteria = new Criteria();
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void clear() {
|
||||||
|
oredCriteria.clear();
|
||||||
|
orderByClause = null;
|
||||||
|
distinct = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected abstract static class GeneratedCriteria {
|
||||||
|
protected List<Criterion> criteria;
|
||||||
|
|
||||||
|
protected GeneratedCriteria() {
|
||||||
|
super();
|
||||||
|
criteria = new ArrayList<Criterion>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isValid() {
|
||||||
|
return criteria.size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getAllCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Criterion> getCriteria() {
|
||||||
|
return criteria;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition) {
|
||||||
|
if (condition == null) {
|
||||||
|
throw new RuntimeException("Value for condition cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value, String property) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value));
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||||
|
if (value1 == null || value2 == null) {
|
||||||
|
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||||
|
}
|
||||||
|
criteria.add(new Criterion(condition, value1, value2));
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNull() {
|
||||||
|
addCriterion("id is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIsNotNull() {
|
||||||
|
addCriterion("id is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdEqualTo(String value) {
|
||||||
|
addCriterion("id =", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(String value) {
|
||||||
|
addCriterion("id <>", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(String value) {
|
||||||
|
addCriterion("id >", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("id >=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThan(String value) {
|
||||||
|
addCriterion("id <", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("id <=", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdLike(String value) {
|
||||||
|
addCriterion("id like", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotLike(String value) {
|
||||||
|
addCriterion("id not like", value, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdIn(List<String> values) {
|
||||||
|
addCriterion("id in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<String> values) {
|
||||||
|
addCriterion("id not in", values, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdBetween(String value1, String value2) {
|
||||||
|
addCriterion("id between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIdNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("id not between", value1, value2, "id");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridIsNull() {
|
||||||
|
addCriterion("userid is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridIsNotNull() {
|
||||||
|
addCriterion("userid is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridEqualTo(String value) {
|
||||||
|
addCriterion("userid =", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridNotEqualTo(String value) {
|
||||||
|
addCriterion("userid <>", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridGreaterThan(String value) {
|
||||||
|
addCriterion("userid >", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("userid >=", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridLessThan(String value) {
|
||||||
|
addCriterion("userid <", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("userid <=", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridLike(String value) {
|
||||||
|
addCriterion("userid like", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridNotLike(String value) {
|
||||||
|
addCriterion("userid not like", value, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridIn(List<String> values) {
|
||||||
|
addCriterion("userid in", values, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridNotIn(List<String> values) {
|
||||||
|
addCriterion("userid not in", values, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridBetween(String value1, String value2) {
|
||||||
|
addCriterion("userid between", value1, value2, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUseridNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("userid not between", value1, value2, "userid");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeIsNull() {
|
||||||
|
addCriterion("usertype is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeIsNotNull() {
|
||||||
|
addCriterion("usertype is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeEqualTo(String value) {
|
||||||
|
addCriterion("usertype =", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeNotEqualTo(String value) {
|
||||||
|
addCriterion("usertype <>", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeGreaterThan(String value) {
|
||||||
|
addCriterion("usertype >", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("usertype >=", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeLessThan(String value) {
|
||||||
|
addCriterion("usertype <", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("usertype <=", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeLike(String value) {
|
||||||
|
addCriterion("usertype like", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeNotLike(String value) {
|
||||||
|
addCriterion("usertype not like", value, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeIn(List<String> values) {
|
||||||
|
addCriterion("usertype in", values, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeNotIn(List<String> values) {
|
||||||
|
addCriterion("usertype not in", values, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeBetween(String value1, String value2) {
|
||||||
|
addCriterion("usertype between", value1, value2, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andUsertypeNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("usertype not between", value1, value2, "usertype");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpIsNull() {
|
||||||
|
addCriterion("ip is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpIsNotNull() {
|
||||||
|
addCriterion("ip is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpEqualTo(String value) {
|
||||||
|
addCriterion("ip =", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpNotEqualTo(String value) {
|
||||||
|
addCriterion("ip <>", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpGreaterThan(String value) {
|
||||||
|
addCriterion("ip >", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("ip >=", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpLessThan(String value) {
|
||||||
|
addCriterion("ip <", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("ip <=", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpLike(String value) {
|
||||||
|
addCriterion("ip like", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpNotLike(String value) {
|
||||||
|
addCriterion("ip not like", value, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpIn(List<String> values) {
|
||||||
|
addCriterion("ip in", values, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpNotIn(List<String> values) {
|
||||||
|
addCriterion("ip not in", values, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpBetween(String value1, String value2) {
|
||||||
|
addCriterion("ip between", value1, value2, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andIpNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("ip not between", value1, value2, "ip");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateIsNull() {
|
||||||
|
addCriterion("operate is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateIsNotNull() {
|
||||||
|
addCriterion("operate is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateEqualTo(String value) {
|
||||||
|
addCriterion("operate =", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateNotEqualTo(String value) {
|
||||||
|
addCriterion("operate <>", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateGreaterThan(String value) {
|
||||||
|
addCriterion("operate >", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("operate >=", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateLessThan(String value) {
|
||||||
|
addCriterion("operate <", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("operate <=", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateLike(String value) {
|
||||||
|
addCriterion("operate like", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateNotLike(String value) {
|
||||||
|
addCriterion("operate not like", value, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateIn(List<String> values) {
|
||||||
|
addCriterion("operate in", values, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateNotIn(List<String> values) {
|
||||||
|
addCriterion("operate not in", values, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateBetween(String value1, String value2) {
|
||||||
|
addCriterion("operate between", value1, value2, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andOperateNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("operate not between", value1, value2, "operate");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupIsNull() {
|
||||||
|
addCriterion("plangroup is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupIsNotNull() {
|
||||||
|
addCriterion("plangroup is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupEqualTo(String value) {
|
||||||
|
addCriterion("plangroup =", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupNotEqualTo(String value) {
|
||||||
|
addCriterion("plangroup <>", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupGreaterThan(String value) {
|
||||||
|
addCriterion("plangroup >", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("plangroup >=", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupLessThan(String value) {
|
||||||
|
addCriterion("plangroup <", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("plangroup <=", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupLike(String value) {
|
||||||
|
addCriterion("plangroup like", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupNotLike(String value) {
|
||||||
|
addCriterion("plangroup not like", value, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupIn(List<String> values) {
|
||||||
|
addCriterion("plangroup in", values, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupNotIn(List<String> values) {
|
||||||
|
addCriterion("plangroup not in", values, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupBetween(String value1, String value2) {
|
||||||
|
addCriterion("plangroup between", value1, value2, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andPlangroupNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("plangroup not between", value1, value2, "plangroup");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkIsNull() {
|
||||||
|
addCriterion("remark is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkIsNotNull() {
|
||||||
|
addCriterion("remark is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkEqualTo(String value) {
|
||||||
|
addCriterion("remark =", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkNotEqualTo(String value) {
|
||||||
|
addCriterion("remark <>", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkGreaterThan(String value) {
|
||||||
|
addCriterion("remark >", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
|
||||||
|
addCriterion("remark >=", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkLessThan(String value) {
|
||||||
|
addCriterion("remark <", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkLessThanOrEqualTo(String value) {
|
||||||
|
addCriterion("remark <=", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkLike(String value) {
|
||||||
|
addCriterion("remark like", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkNotLike(String value) {
|
||||||
|
addCriterion("remark not like", value, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkIn(List<String> values) {
|
||||||
|
addCriterion("remark in", values, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkNotIn(List<String> values) {
|
||||||
|
addCriterion("remark not in", values, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkBetween(String value1, String value2) {
|
||||||
|
addCriterion("remark between", value1, value2, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andRemarkNotBetween(String value1, String value2) {
|
||||||
|
addCriterion("remark not between", value1, value2, "remark");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeIsNull() {
|
||||||
|
addCriterion("createtime is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeIsNotNull() {
|
||||||
|
addCriterion("createtime is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeEqualTo(Date value) {
|
||||||
|
addCriterion("createtime =", value, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeNotEqualTo(Date value) {
|
||||||
|
addCriterion("createtime <>", value, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeGreaterThan(Date value) {
|
||||||
|
addCriterion("createtime >", value, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("createtime >=", value, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeLessThan(Date value) {
|
||||||
|
addCriterion("createtime <", value, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
|
||||||
|
addCriterion("createtime <=", value, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeIn(List<Date> values) {
|
||||||
|
addCriterion("createtime in", values, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeNotIn(List<Date> values) {
|
||||||
|
addCriterion("createtime not in", values, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("createtime between", value1, value2, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
|
||||||
|
addCriterion("createtime not between", value1, value2, "createtime");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusIsNull() {
|
||||||
|
addCriterion("status is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusIsNotNull() {
|
||||||
|
addCriterion("status is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusEqualTo(Integer value) {
|
||||||
|
addCriterion("status =", value, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusNotEqualTo(Integer value) {
|
||||||
|
addCriterion("status <>", value, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusGreaterThan(Integer value) {
|
||||||
|
addCriterion("status >", value, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("status >=", value, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusLessThan(Integer value) {
|
||||||
|
addCriterion("status <", value, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||||
|
addCriterion("status <=", value, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusIn(List<Integer> values) {
|
||||||
|
addCriterion("status in", values, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusNotIn(List<Integer> values) {
|
||||||
|
addCriterion("status not in", values, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("status between", value1, value2, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||||
|
addCriterion("status not between", value1, value2, "status");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Criteria extends GeneratedCriteria {
|
||||||
|
|
||||||
|
protected Criteria() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class Criterion {
|
||||||
|
private String condition;
|
||||||
|
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
private Object secondValue;
|
||||||
|
|
||||||
|
private boolean noValue;
|
||||||
|
|
||||||
|
private boolean singleValue;
|
||||||
|
|
||||||
|
private boolean betweenValue;
|
||||||
|
|
||||||
|
private boolean listValue;
|
||||||
|
|
||||||
|
private String typeHandler;
|
||||||
|
|
||||||
|
public String getCondition() {
|
||||||
|
return condition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getSecondValue() {
|
||||||
|
return secondValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isNoValue() {
|
||||||
|
return noValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSingleValue() {
|
||||||
|
return singleValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isBetweenValue() {
|
||||||
|
return betweenValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isListValue() {
|
||||||
|
return listValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypeHandler() {
|
||||||
|
return typeHandler;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.typeHandler = null;
|
||||||
|
this.noValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
if (value instanceof List<?>) {
|
||||||
|
this.listValue = true;
|
||||||
|
} else {
|
||||||
|
this.singleValue = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value) {
|
||||||
|
this(condition, value, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||||
|
super();
|
||||||
|
this.condition = condition;
|
||||||
|
this.value = value;
|
||||||
|
this.secondValue = secondValue;
|
||||||
|
this.typeHandler = typeHandler;
|
||||||
|
this.betweenValue = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Criterion(String condition, Object value, Object secondValue) {
|
||||||
|
this(condition, value, secondValue, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,17 +1,24 @@
|
|||||||
package osc.git.eh3.test;
|
package osc.git.eh3.test;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.net.URLDecoder;
|
||||||
|
import java.net.URLEncoder;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Iterator;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.regex.Matcher;
|
import java.util.UUID;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
import net.sf.json.JSONArray;
|
||||||
|
import net.sf.json.JSONObject;
|
||||||
|
import osc.git.eh3.utils.AESTool;
|
||||||
|
import osc.git.eh3.utils.Base64;
|
||||||
|
|
||||||
public class TestCode {
|
public class TestCode {
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
@ -117,6 +124,7 @@ public class TestCode {
|
|||||||
// JSONObject jj = new JSONObject();
|
// JSONObject jj = new JSONObject();
|
||||||
// System.out.println(jj.optString("pring"));
|
// System.out.println(jj.optString("pring"));
|
||||||
|
|
||||||
|
|
||||||
// // 根据网卡取本机配置的IP
|
// // 根据网卡取本机配置的IP
|
||||||
// InetAddress inet = null;
|
// InetAddress inet = null;
|
||||||
// try {
|
// try {
|
||||||
@ -128,9 +136,11 @@ public class TestCode {
|
|||||||
//
|
//
|
||||||
// System.out.println(ipAddress);
|
// System.out.println(ipAddress);
|
||||||
|
|
||||||
|
|
||||||
// TestCode test = new TestCode();
|
// TestCode test = new TestCode();
|
||||||
// System.out.println(test.dd("ddd"));
|
// System.out.println(test.dd("ddd"));
|
||||||
|
|
||||||
|
|
||||||
// Package pkg = Package.getPackage("osc.git.eh3.test");
|
// Package pkg = Package.getPackage("osc.git.eh3.test");
|
||||||
// Annotation[] annotations = pkg.getAnnotations();
|
// Annotation[] annotations = pkg.getAnnotations();
|
||||||
// for (Annotation annotation : annotations) {
|
// for (Annotation annotation : annotations) {
|
||||||
@ -152,12 +162,10 @@ public class TestCode {
|
|||||||
//
|
//
|
||||||
// System.out.println(dd instanceof Date);
|
// System.out.println(dd instanceof Date);
|
||||||
//
|
//
|
||||||
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd
|
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
|
||||||
// HH:mm:ss.SSS");
|
|
||||||
// System.out.println(sdf.format(dd));
|
// System.out.println(sdf.format(dd));
|
||||||
|
|
||||||
// JSONObject groupAdxs =
|
// JSONObject groupAdxs = JSONObject.fromObject("{\"4ebdb328-5d4b-42e6-80c3-a6aaaecdcea1\":[\"1e03319c-425d-4a17-a6bf-eeec2f48db29\",\"1fed4171-9925-4834-aa7b-9b4d3a58841b\",\"ce579246-e707-4cb9-b982-88cad7944b92\"],\"9262cbe8-a9dc-4f4e-888b-cf3ffe65defd\":\"ce579246-e707-4cb9-b982-88cad7944b92\"}");
|
||||||
// JSONObject.fromObject("{\"4ebdb328-5d4b-42e6-80c3-a6aaaecdcea1\":[\"1e03319c-425d-4a17-a6bf-eeec2f48db29\",\"1fed4171-9925-4834-aa7b-9b4d3a58841b\",\"ce579246-e707-4cb9-b982-88cad7944b92\"],\"9262cbe8-a9dc-4f4e-888b-cf3ffe65defd\":\"ce579246-e707-4cb9-b982-88cad7944b92\"}");
|
|
||||||
// Set<String> keySet = groupAdxs.keySet();
|
// Set<String> keySet = groupAdxs.keySet();
|
||||||
// for (Object object : keySet) {
|
// for (Object object : keySet) {
|
||||||
// System.out.println(groupAdxs.get(object).getClass().isArray());
|
// System.out.println(groupAdxs.get(object).getClass().isArray());
|
||||||
@ -170,30 +178,27 @@ public class TestCode {
|
|||||||
// System.out.println(Integer.valueOf("11", 16));
|
// System.out.println(Integer.valueOf("11", 16));
|
||||||
// System.out.println(Integer.valueOf("11", 2));
|
// System.out.println(Integer.valueOf("11", 2));
|
||||||
|
|
||||||
|
|
||||||
// System.out.println(AESTool.encrypt("lixiangrong"));
|
// System.out.println(AESTool.encrypt("lixiangrong"));
|
||||||
// System.out.println(AESTool.decrypt(AESEncrypter.encrypt("lixiangrong")));
|
// System.out.println(AESTool.decrypt(AESEncrypter.encrypt("lixiangrong")));
|
||||||
|
|
||||||
// System.out.println(AESTool.encrypt("liixangrong","adjdjfjfjfjdkdkd"));
|
// System.out.println(AESTool.encrypt("liixangrong","adjdjfjfjfjdkdkd"));
|
||||||
// System.out.println(AESTool.decrypt("bfb0c038342ffead45511879853279bf","adjdjfjfjfjdkdkd"));
|
// System.out.println(AESTool.decrypt("bfb0c038342ffead45511879853279bf","adjdjfjfjfjdkdkd"));
|
||||||
// System.out.println(Base64.encodeToString(AESTool.encrypt("fa4d7d90618dcba5fa1d969cffc04def","002020202").getBytes(),
|
// System.out.println(Base64.encodeToString(AESTool.encrypt("fa4d7d90618dcba5fa1d969cffc04def","002020202").getBytes(), false));
|
||||||
// false));
|
|
||||||
|
|
||||||
// byte[] bytes = "lixiangrong".getBytes();
|
// byte[] bytes = "lixiangrong".getBytes();
|
||||||
// for (int i = 0; i < bytes.length; i++) {
|
// for (int i = 0; i < bytes.length; i++) {
|
||||||
// System.out.println(bytes[i]);
|
// System.out.println(bytes[i]);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// System.out.println(Base64.encodeToString("lixiangrong".getBytes(),
|
// System.out.println(Base64.encodeToString("lixiangrong".getBytes(), false));
|
||||||
// false));
|
|
||||||
|
|
||||||
// double lon1 = 109.0145193759;
|
// double lon1 = 109.0145193759;
|
||||||
// double lat1 = 34.236080797698;
|
// double lat1 = 34.236080797698;
|
||||||
// System.out.println(GeoHash.encode(lat1, lon1));
|
// System.out.println(GeoHash.encode(lat1, lon1));
|
||||||
// System.out.println(GeoHash.decode("wmtdgn5esrb1")[0]+"
|
// System.out.println(GeoHash.decode("wmtdgn5esrb1")[0]+" "+GeoHash.decode("wmtdgn5esrb1")[1]);
|
||||||
// "+GeoHash.decode("wmtdgn5esrb1")[1]);
|
|
||||||
|
|
||||||
// String url =
|
// String url = "http://api.map.baidu.com/place/v2/search?query=银行&location=39.915,116.404&radius=2000&output=json&ak=LCG4dyrXyadeD8hFhi8SGCv6";
|
||||||
// "http://api.map.baidu.com/place/v2/search?query=银行&location=39.915,116.404&radius=2000&output=json&ak=LCG4dyrXyadeD8hFhi8SGCv6";
|
|
||||||
// System.out.println(HttpClientUtil.sendGet(url));
|
// System.out.println(HttpClientUtil.sendGet(url));
|
||||||
|
|
||||||
// JSONArray array = new JSONArray();
|
// JSONArray array = new JSONArray();
|
||||||
@ -202,23 +207,21 @@ public class TestCode {
|
|||||||
// array.add("3");
|
// array.add("3");
|
||||||
// array.add("4");
|
// array.add("4");
|
||||||
// array.add("5");
|
// array.add("5");
|
||||||
// List<String> list = JSONArray.toList(array, new String(), new
|
// List<String> list = JSONArray.toList(array, new String(), new JsonConfig());
|
||||||
// JsonConfig());
|
|
||||||
// System.out.println(list);
|
// System.out.println(list);
|
||||||
|
|
||||||
// System.out.println(System.nanoTime());
|
// System.out.println(System.nanoTime());
|
||||||
// System.out.println(System.nanoTime());
|
// System.out.println(System.nanoTime());
|
||||||
|
|
||||||
|
|
||||||
// Map<String, String> postParam = new HashMap<String, String>();
|
// Map<String, String> postParam = new HashMap<String, String>();
|
||||||
// postParam.put("groupid", "100003");
|
// postParam.put("groupid", "100003");
|
||||||
// postParam.put("count", "1");
|
// postParam.put("count", "1");
|
||||||
// postParam.put("type", "m");
|
// postParam.put("type", "m");
|
||||||
// for(int i=0;i<5;i++){
|
// for(int i=0;i<5;i++){
|
||||||
// try {
|
// try {
|
||||||
// HttpClientUtil.sendPostParam("http://192.168.1.135:8080/dsp-counter/remote/chargeCounter/counterControlForThisSumResult",
|
// HttpClientUtil.sendPostParam("http://192.168.1.135:8080/dsp-counter/remote/chargeCounter/counterControlForThisSumResult", postParam);
|
||||||
// postParam);
|
//// HttpClientUtil.sendPost("http://192.168.1.135:8080/dsp-counter/remote/chargeCounter/counterControlForThisSumResult", "groupid=100003&count=1&type=m");
|
||||||
//// HttpClientUtil.sendPost("http://192.168.1.135:8080/dsp-counter/remote/chargeCounter/counterControlForThisSumResult",
|
|
||||||
// "groupid=100003&count=1&type=m");
|
|
||||||
// break;
|
// break;
|
||||||
// } catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
// System.out.println(e.getMessage());
|
// System.out.println(e.getMessage());
|
||||||
@ -262,14 +265,14 @@ public class TestCode {
|
|||||||
// System.out.println(s2);
|
// System.out.println(s2);
|
||||||
// System.out.println(URLDecoder.decode(s2,"utf-8"));
|
// System.out.println(URLDecoder.decode(s2,"utf-8"));
|
||||||
|
|
||||||
|
|
||||||
// Object object = null;
|
// Object object = null;
|
||||||
// JSONObject creativeGroupObj = JSONObject.fromObject(object);
|
// JSONObject creativeGroupObj = JSONObject.fromObject(object);
|
||||||
// System.out.println(creativeGroupObj.isEmpty());
|
// System.out.println(creativeGroupObj.isEmpty());
|
||||||
//
|
//
|
||||||
// System.out.println(UUID.randomUUID().toString());
|
// System.out.println(UUID.randomUUID().toString());
|
||||||
|
|
||||||
// JSONArray putTime =
|
// JSONArray putTime = JSONArray.fromObject("[{\"monday\":[\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"tuesday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"wednesday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"thursday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"friday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"saturday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"sunday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]}]");
|
||||||
// JSONArray.fromObject("[{\"monday\":[\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"tuesday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"wednesday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"thursday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"friday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"saturday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]},{\"sunday\":[\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\"]}]");
|
|
||||||
// JSONArray periods = new JSONArray();
|
// JSONArray periods = new JSONArray();
|
||||||
// for (Object object : putTime) {
|
// for (Object object : putTime) {
|
||||||
// JSONObject putTimeObj = JSONObject.fromObject(object);
|
// JSONObject putTimeObj = JSONObject.fromObject(object);
|
||||||
@ -317,71 +320,40 @@ public class TestCode {
|
|||||||
// jsonParam.put("app", jsonArray);
|
// jsonParam.put("app", jsonArray);
|
||||||
// System.out.println(jsonParam);
|
// System.out.println(jsonParam);
|
||||||
|
|
||||||
|
|
||||||
// String head = "00,";
|
// String head = "00,";
|
||||||
// head = head.substring(0, head.lastIndexOf(","));
|
// head = head.substring(0, head.lastIndexOf(","));
|
||||||
// System.out.println(head);
|
// System.out.println(head);
|
||||||
|
//
|
||||||
// BigDecimal bid = new BigDecimal("").divide(BigDecimal.valueOf(100),0,
|
|
||||||
// BigDecimal.ROUND_DOWN);
|
|
||||||
// System.out.println(bid);
|
|
||||||
|
|
||||||
// System.out.println(UUID.randomUUID().toString());
|
|
||||||
|
|
||||||
// final Map<String, String> srt = new HashMap<String,String>();
|
|
||||||
// srt.put("1", "1111");
|
|
||||||
// System.out.println(srt);
|
|
||||||
|
|
||||||
// String ff = null;
|
|
||||||
// System.out.println(String.valueOf(ff));
|
|
||||||
// Map<String, String[]> map = new HashMap<>();
|
|
||||||
// String[] sarr = { "0397e36c-e5c3-4d96-825e-acf668b92e9b",
|
|
||||||
// "0397e36c-e5c3-4d96-825e-acf668b92e9b" };
|
|
||||||
// String[] sarr1 = { "0397e36c-e5c3-4d96-825e-acf668b92e9b"};
|
|
||||||
// map.put("test[]", sarr);
|
|
||||||
// map.put("test1", sarr1);
|
|
||||||
// Map<String, Object> formatMap = formatMap(map);
|
|
||||||
// System.out.println(formatMap.get("fffffffff"));
|
|
||||||
|
|
||||||
// List<String> ssStrings = new ArrayList<>();
|
|
||||||
// ssStrings.add("1");
|
|
||||||
// ssStrings.add("2");
|
|
||||||
// ssStrings.add("3");
|
|
||||||
// ssStrings.add("4");
|
|
||||||
// System.out.println(ssStrings.toString());
|
|
||||||
|
|
||||||
// String ip = "127, 0, 0,1";
|
// String ip = "127, 0, 0,1";
|
||||||
// // String [] s = ip.split(".");
|
// // String [] s = ip.split(".");
|
||||||
// String[] s = ip.split(",");
|
// String[] s = ip.split("\\,");
|
||||||
// for (String string : s) {
|
// for (String string : s) {
|
||||||
// System.out.println(string + "-");
|
// System.out.println(string);
|
||||||
// }
|
// }
|
||||||
|
//
|
||||||
|
// Object str = null;
|
||||||
|
//// String dd = (String)str;
|
||||||
|
// String dd = String.valueOf(str);
|
||||||
|
// System.out.println(String.valueOf(str) == String.valueOf("null"));
|
||||||
|
|
||||||
String string = "666";
|
|
||||||
System.out.println(isNumeric(string));
|
String sr = "2016-05-25 00:39:33,285 zanadu INFO \"39.159.247.16\" \"Mozilla/5.0 (iPhone; CPU iPhone OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4\" \"http://site.pxene.com/Audi2016Q2Wap/?bid=7ef9ab83e32c4f9c80312b92fba261b1&mapid=0055cb29-dee1-4e77-81bb-0991d2d644c8\" \"load success:Audi load success:bid=7ef9ab83e32c4f9c80312b92fba261b1&mapid=0055cb29-dee1-4e77-81bb-0991d2d644c8\"";
|
||||||
|
String[] split = sr.split("\"");
|
||||||
|
for (String s1 : split) {
|
||||||
|
System.out.println(s1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNumeric(String str) {
|
|
||||||
Pattern pattern = Pattern.compile("^(\\d+\\.?\\d+)|\\d+$");
|
|
||||||
Matcher isNum = pattern.matcher(str);
|
|
||||||
if (!isNum.matches()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Map<String, Object> formatMap(Map<String, String[]> map) {
|
String date = "Mon May 30 14:42:42 GMT+08:00 2016";
|
||||||
Map<String, Object> result = new HashMap<String, Object>();
|
System.out.println(date);
|
||||||
Iterator<String> it = map.keySet().iterator();
|
|
||||||
while (it.hasNext()) {
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||||
String key = it.next();
|
SimpleDateFormat sdf1 = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", java.util.Locale.US);
|
||||||
String[] values = map.get(key);
|
|
||||||
if (key.contains("[") || key.contains("]")) {
|
System.out.println(sdf.format(sdf1.parse(date)));
|
||||||
result.put(key.replace("[", "").replace("]", ""), Arrays.toString(values).replace("[", "").replace("]", ""));
|
|
||||||
} else {
|
System.out.println("可吉可吉");
|
||||||
result.put(key, Arrays.toString(values).replace("[", "").replace("]", ""));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Long parseDate(String s) {
|
public static Long parseDate(String s) {
|
||||||
|
@ -10,8 +10,7 @@ import osc.git.eh3.utils.Base64;
|
|||||||
import osc.git.eh3.utils.HttpClientUtil;
|
import osc.git.eh3.utils.HttpClientUtil;
|
||||||
|
|
||||||
public class TestOpenPuton {
|
public class TestOpenPuton {
|
||||||
// public static String URL = "http://111.235.158.25:8080/dsp-open/pxene/dsp.do";
|
private static String URL = "http://127.0.0.1:8080/dsp-open/pxene/dsp.do";
|
||||||
public static String URL = "http://127.0.0.1:8080/dsp-open/pxene/dsp.do";
|
|
||||||
private static String key = "adjdjfjfjfjdkdkd";//
|
private static String key = "adjdjfjfjfjdkdkd";//
|
||||||
private static String appid = "t123456";// 用户
|
private static String appid = "t123456";// 用户
|
||||||
private static String token = "cst123456";// 令牌
|
private static String token = "cst123456";// 令牌
|
||||||
@ -23,9 +22,9 @@ public class TestOpenPuton {
|
|||||||
// System.out.println(JSONObject.fromObject(data));
|
// System.out.println(JSONObject.fromObject(data));
|
||||||
|
|
||||||
|
|
||||||
String str = "{\"order_info\":{\"order_id\":300001,\"order_name\":\"20160506Amnet\",\"brand_zh\":\"复歌Amnet\",\"brand_en\":\"fugetech\",\"note\":\"note\",\"industry\":\"个人护理/药品>护发品\",\"ad_owner\":{\"owner_id\":201,\"owner_name\":\"复歌\",\"owner_category\":\"个人护理/药品>护发品\",\"organization_code\":\"123456789\",\"website_url\":\"www.fugetech.com\",\"owner_qualification\":[{\"url\":\"http://img.pxene.com/basic/221dab14-e401-446d-bd59-5e0a798a3eb5/366f3ad4156c4625aae8202e03f1f01d.jpg\",\"qualification_name\":\"企业营业执照\"},{\"url\":\"http://img.pxene.com/basic/221dab14-e401-446d-bd59-5e0a798a3eb5/366f3ad4156c4625aae8202e03f1f01d.jpg\",\"qualification_name\":\"ICP证书\"}]},\"start_time\":\"2015-12-01\",\"end_time\":\"2016-12-30\",\"buy_type\":1,\"plat\":1,\"type\":1,\"landing_page\":\"www.fugetech.com\",\"order_area\":[{\"first_level\":\"山东\",\"second_level\":[\"烟台\",\"青岛\"]},{\"first_level\":\"河北\"}],\"order_budget\":{\"budget_all\":20000000,\"budget_day\":200000},\"order_goal\":{\"order_day_show\":200,\"order_total_show\":20000,\"order_day_click\":100,\"order_total_click\":10000,\"order_day_conversion\":50,\"order_total_conversion\":5000,\"order_day_ctr\":0.5,\"order_total_ctr\":0.5},\"order_freq\":{\"imp_day_req\":2000,\"imp_total_req\":10000,\"click_day_freq\":100,\"click_total_freq\":500},\"order_pmp\":[{\"deal_id\":123456,\"ratio\":0.12,\"purcharse\":12345,\"media_domain\":\"www.fugetech.com\"}],\"media_white\":[\"111\"],\"media_black\":[\"222\"],\"creative_group\":[{\"group_id\":1,\"group_name\":\"创意分组A\",\"landing_page\":\"www.fugetech.com\",\"impression_code\":\"www.123.com\",\"click_code\":\"www.456.com\",\"ratio\":\"40%\",\"creative\":[{\"id\":301,\"name\":\"test\",\"plat\":1,\"width\":580,\"height\":90,\"type\":\"jpg\",\"download\":true,\"url\":\"http://img.pxene.com/basic/221dab14-e401-446d-bd59-5e0a798a3eb5/366f3ad4156c4625aae8202e03f1f01d.jpg\"}]},{\"group_id\":2,\"group_name\":\"创意分组B\",\"landing_page\":\"www.fugetech.com\",\"impression_code\":\"www.789.com\",\"click_code\":\"www.963.com\",\"ratio\":\"60%\",\"creative\":[{\"id\":302,\"name\":\"test\",\"plat\":1,\"width\":580,\"height\":90,\"type\":\"jpg\",\"download\":true,\"url\":\"http://img.pxene.com/basic/221dab14-e401-446d-bd59-5e0a798a3eb5/366f3ad4156c4625aae8202e03f1f01d.jpg\"}]}]}}";
|
JSONObject json = new JSONObject();
|
||||||
|
json.put("param", "中午");
|
||||||
// String str = "{\"order_info\":{\"note\":\"媒体类型定向:\\nnull\\n\\n广告素材轮播:\\n平均\\n\\n\",\"put_time\":[],\"buy_type\":1,\"cost_type\":2,\"ad_owner\":{\"owner_name\":\"Fuge-test\",\"owner_category\":\"技术,媒体,通讯类>计算机服务和软件业\",\"website_url\":\"http://www.fugetech.com/\",\"owner_id\":180,\"organization_code\":null,\"owner_qualification\":[]},\"end_time\":\"2016-05-31\",\"order_budget\":{\"budget_all\":11100.0},\"landing_page\":\"www.fugetech.com\",\"industry\":\"技术,媒体,通讯类>计算机服务和软件业\",\"type\":1,\"cost_single\":100.0,\"order_name\":\"Pxene ExecBaics50Log\",\"start_time\":\"2016-05-08\",\"order_goal\":{\"order_total_show\":111000},\"brand_zh\":\"Fuge\",\"plat\":1,\"order_id\":14578,\"brand_en\":null,\"creative_group\":[{\"group_id\":380,\"group_name\":\"test1_ttt\",\"landing_page\":\"www.123.com\",\"plat\":1,\"impression_code\":\"www.abc.com\",\"click_code\":\"www.456.com\",\"creative\":[{\"download\":true,\"name\":\"3218191555260729151.png\",\"width\":960,\"id\":653,\"type\":\"png\",\"url\":\"http://rimix.fugetech.com/sending/14578/20160509171537/creative/3218191555260729151.png\",\"height\":60}],\"ratio\":\"-\"}]}}";
|
String str = "{\"order_info\":{\"put_time\":[],\"cost_type\":1,\"order_budget\":{\"budget_all\":100.0},\"cost_single\":100.0,\"type\":1,\"order_id\":14575,\"landing_page\":\"www.baidu.com\",\"order_name\":\"tony-test-31\",\"brand_en\":null,\"plat\":1,\"end_time\":\"2016-05-03\",\"creative_group\":[{\"group_name\":\"test_五一\",\"plat\":1,\"ratio\":\"-\",\"group_id\":405,\"click_code\":null,\"impression_code\":null,\"landing_page\":\"www.baidu.com\"}],\"buy_type\":1,\"order_freq\":{\"imp_day_req\":5,\"click_total_freq\":5,\"imp_total_req\":10,\"click_day_freq\":1},\"ad_owner\":{\"owner_qualification\":[],\"owner_name\":\"ABI\",\"organization_code\":null,\"owner_id\":107,\"owner_category\":\"食品饮料>健康饮料,运动饮料,功能性饮料\",\"website_url\":\"http://sedrin.reloadbuzz.com/food2/xueJin/index.php/home/user/index\"},\"start_time\":\"2016-05-03\",\"order_goal\":{\"order_total_show\":1},\"brand_zh\":\"Sedrin\",\"industry\":\"食品饮料>健康饮料,运动饮料,功能性饮料\",\"note\":\"媒体类型定向:\\nnull\\n\\n关键词定向:\\n123\\n\\n广告素材轮播:\\n平均\\n\\n备注:\\n备注1(资源设置):\\n321\\n\\n\\n\"}}";
|
||||||
|
|
||||||
System.out.println(HttpClientUtil.sendPostJSONData(URL, str));
|
System.out.println(HttpClientUtil.sendPostJSONData(URL, str));
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,9 @@
|
|||||||
<javaClientGenerator type="XMLMAPPER" targetPackage="com.pxene.dsp.archer.dao" targetProject="src/main/java">
|
<javaClientGenerator type="XMLMAPPER" targetPackage="com.pxene.dsp.archer.dao" targetProject="src/main/java">
|
||||||
<property name="enableSubPackages" value="true"/>
|
<property name="enableSubPackages" value="true"/>
|
||||||
</javaClientGenerator>
|
</javaClientGenerator>
|
||||||
<table tableName="dsp_t_open_data_query" domainObjectName="OpenDataQueryModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true" />
|
<table tableName="dsp_t_operate_logs" domainObjectName="OperateLogsModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true" />
|
||||||
<!--
|
<!--
|
||||||
|
<table tableName="dsp_t_advertiser" domainObjectName="AdvertiserModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true" />
|
||||||
<table tableName="dsp_t_open_request_data" domainObjectName="OpenRequestDataModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
<table tableName="dsp_t_open_request_data" domainObjectName="OpenRequestDataModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
||||||
<table tableName="dsp_t_amnet_ad_owner" domainObjectName="AmnetAdOwnerModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
<table tableName="dsp_t_amnet_ad_owner" domainObjectName="AmnetAdOwnerModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
||||||
<table tableName="dsp_t_amnet_order_info" domainObjectName="AmnetOrderInfoModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
<table tableName="dsp_t_amnet_order_info" domainObjectName="AmnetOrderInfoModel" enableCountByExample="true" enableUpdateByExample="true" enableDeleteByExample="true" enableSelectByExample="true" selectByExampleQueryId="true"></table>
|
||||||
|
Loading…
Reference in New Issue
Block a user