'解决冲突'

dev-discount
= 3 years ago
commit 907a66e2ea
  1. 38
      hai-bweb/src/main/java/com/bweb/controller/OutRechargeOrderController.java
  2. 27
      hai-service/src/main/java/com/hai/dao/OutRechargeOrderMapperExt.java
  3. 52
      hai-service/src/main/java/com/hai/model/OutOrderModel.java
  4. 10
      hai-service/src/main/java/com/hai/service/OutRechargeOrderService.java
  5. 10
      hai-service/src/main/java/com/hai/service/impl/OutRechargeOrderServiceImpl.java
  6. 105
      src/main/java/com/hai/dao/SecSinopecConfigMapper.java
  7. 7
      src/main/java/com/hai/dao/SecSinopecConfigMapperExt.java
  8. 262
      src/main/java/com/hai/dao/SecSinopecConfigSqlProvider.java
  9. 161
      src/main/java/com/hai/entity/SecSinopecConfig.java
  10. 693
      src/main/java/com/hai/entity/SecSinopecConfigExample.java

@ -12,6 +12,7 @@ import com.hai.common.exception.ErrorHelp;
import com.hai.common.exception.SysCode;
import com.hai.common.pay.util.XmlUtil;
import com.hai.common.pay.util.sdk.WXPayConstants;
import com.hai.common.security.SessionObject;
import com.hai.common.security.UserCenter;
import com.hai.common.utils.DateUtil;
import com.hai.common.utils.IDGenerator;
@ -22,6 +23,7 @@ import com.hai.model.HighOrderModel;
import com.hai.model.OutRechargeOrderModel;
import com.hai.model.OrderRefundModel;
import com.hai.model.ResponseData;
import com.hai.model.UserInfoModel;
import com.hai.service.OutRechargeOrderService;
import com.hai.service.TelApiService;
import com.hai.service.pay.impl.GoodsOrderServiceImpl;
@ -180,7 +182,6 @@ public class OutRechargeOrderController {
}
}
@RequestMapping(value = "/exportOrderList", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "导出订单")
@ -298,4 +299,39 @@ public class OutRechargeOrderController {
httpClient.close();
}
}
@RequestMapping(value = "/getOrderCountList", method = RequestMethod.GET)
@ResponseBody
@ApiOperation(value = "查询商品")
public ResponseData getOrderCountList(
@RequestParam(name = "finishTimeS", required = false) Long finishTimeS,
@RequestParam(name = "finishTimeE", required = false) Long finishTimeE,
@RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize,
HttpServletRequest request) {
try {
Map<String,String> map = new HashMap<>();
if (finishTimeS != null){
map.put("finishTimeS", finishTimeS.toString());
} else {
map.put("finishTimeS", null);
}
if (finishTimeE != null){
map.put("finishTimeE", finishTimeE.toString());
} else {
map.put("finishTimeE", null);
}
PageHelper.startPage(pageNum,pageSize);
return ResponseMsgUtil.success(new PageInfo<>(outRechargeOrderService.getListOrderCount(map)));
} catch (Exception e) {
log.error("HighOrderController --> getUserOrderList() error!", e);
return ResponseMsgUtil.exception(e);
}
}
}

@ -1,8 +1,14 @@
package com.hai.dao;
import com.hai.model.OutOrderModel;
import com.hai.model.OutRechargeOrderModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;
import java.util.List;
import java.util.Map;
@ -12,6 +18,27 @@ import java.util.Map;
*/
public interface OutRechargeOrderMapperExt {
@Select(value = {
"<script>",
"SELECT DATE_FORMAT(finish_time, '%Y-%m-%d') as day,",
"count(1) as count,",
"sum(pay_price) as pay_price,",
"sum(order_price) as order_price",
"from out_recharge_order",
"where status = 3",
" <if test='map.finishTimeS != null'> <![CDATA[ AND bco.finish_time >= '${map.finishTimeS}' ]]> </if> " ,
" <if test='map.finishTimeE != null'> <![CDATA[ AND bco.finish_time <= '${map.finishTimeE}' ]]> </if> " ,
"GROUP BY day",
"</script>"
})
@Results({
@Result(column="count", property="count", jdbcType=JdbcType.BIGINT),
@Result(column="day", property="day", jdbcType=JdbcType.TIMESTAMP),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="order_price", property="orderPrice", jdbcType=JdbcType.DECIMAL),
})
List<OutOrderModel> getListOrderCount(@Param("map") Map<String,String> map);
@Select({"<script>" +
"SELECT" +
" a.order_no orderNo," +

@ -0,0 +1,52 @@
package com.hai.model;
import java.math.BigDecimal;
import java.util.Date;
public class OutOrderModel {
private Date day;
private Long count;
/**
* 支付金额
*/
private BigDecimal payPrice;
/**
* 订单充值金额
*/
private BigDecimal orderPrice;
public Date getDay() {
return day;
}
public void setDay(Date day) {
this.day = day;
}
public Long getCount() {
return count;
}
public void setCount(Long count) {
this.count = count;
}
public BigDecimal getPayPrice() {
return payPrice;
}
public void setPayPrice(BigDecimal payPrice) {
this.payPrice = payPrice;
}
public BigDecimal getOrderPrice() {
return orderPrice;
}
public void setOrderPrice(BigDecimal orderPrice) {
this.orderPrice = orderPrice;
}
}

@ -1,6 +1,7 @@
package com.hai.service;
import com.hai.entity.OutRechargeOrder;
import com.hai.model.OutOrderModel;
import com.hai.model.OutRechargeOrderModel;
import io.swagger.models.auth.In;
@ -88,4 +89,13 @@ public interface OutRechargeOrderService {
**/
Long CountOrder();
/**
* @Author Sum1Dream
* @Description //TODO Administrator
* @Date 1:04 2021/6/22
* @Param [map]
* @return java.util.List<com.hai.model.OutRechargeOrderModel>
**/
List<OutOrderModel> getListOrderCount(Map<String , String> map);
}

@ -2,7 +2,9 @@ package com.hai.service.impl;
import com.hai.common.utils.DateUtil;
import com.hai.dao.OutRechargeOrderMapper;
import com.hai.dao.OutRechargeOrderMapperExt;
import com.hai.entity.*;
import com.hai.model.OutOrderModel;
import com.hai.model.OutRechargeOrderModel;
import com.hai.service.OutRechargeOrderService;
import org.apache.commons.collections4.MapUtils;
@ -22,6 +24,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
@Resource
private OutRechargeOrderMapper outRechargeOrderMapper;
@Resource
private OutRechargeOrderMapperExt outRechargeOrderMapperExt;
@Override
public List<OutRechargeOrder> getListRechargeOrder(Map<String, String> map) {
OutRechargeOrderExample example = new OutRechargeOrderExample();
@ -132,4 +137,9 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService {
example.createCriteria().andStatusEqualTo(2);
return outRechargeOrderMapper.countByExample(example);
}
@Override
public List<OutOrderModel> getListOrderCount(Map<String, String> map) {
return outRechargeOrderMapperExt.getListOrderCount(map);
}
}

@ -1,105 +0,0 @@
package com.hai.dao;
import com.hai.entity.SecSinopecConfig;
import com.hai.entity.SecSinopecConfigExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;
/**
*
* 代码由工具生成,请勿修改!!!
* 如果需要扩展请在其父类进行扩展
*
**/
@Repository
public interface SecSinopecConfigMapper extends SecSinopecConfigMapperExt {
@SelectProvider(type=SecSinopecConfigSqlProvider.class, method="countByExample")
long countByExample(SecSinopecConfigExample example);
@DeleteProvider(type=SecSinopecConfigSqlProvider.class, method="deleteByExample")
int deleteByExample(SecSinopecConfigExample example);
@Delete({
"delete from sec_sinopec_config",
"where id = #{id,jdbcType=INTEGER}"
})
int deleteByPrimaryKey(Integer id);
@Insert({
"insert into sec_sinopec_config (`name`, app_secret, ",
"code, create_time, ",
"SignKey, app_id)",
"values (#{name,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, ",
"#{code,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
"#{signkey,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(SecSinopecConfig record);
@InsertProvider(type=SecSinopecConfigSqlProvider.class, method="insertSelective")
@Options(useGeneratedKeys=true,keyProperty="id")
int insertSelective(SecSinopecConfig record);
@SelectProvider(type=SecSinopecConfigSqlProvider.class, method="selectByExample")
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR),
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR),
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR)
})
List<SecSinopecConfig> selectByExample(SecSinopecConfigExample example);
@Select({
"select",
"id, `name`, app_secret, code, create_time, SignKey, app_id",
"from sec_sinopec_config",
"where id = #{id,jdbcType=INTEGER}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
@Result(column="app_secret", property="appSecret", jdbcType=JdbcType.VARCHAR),
@Result(column="code", property="code", jdbcType=JdbcType.VARCHAR),
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="SignKey", property="signkey", jdbcType=JdbcType.VARCHAR),
@Result(column="app_id", property="appId", jdbcType=JdbcType.VARCHAR)
})
SecSinopecConfig selectByPrimaryKey(Integer id);
@UpdateProvider(type=SecSinopecConfigSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") SecSinopecConfig record, @Param("example") SecSinopecConfigExample example);
@UpdateProvider(type=SecSinopecConfigSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") SecSinopecConfig record, @Param("example") SecSinopecConfigExample example);
@UpdateProvider(type=SecSinopecConfigSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(SecSinopecConfig record);
@Update({
"update sec_sinopec_config",
"set `name` = #{name,jdbcType=VARCHAR},",
"app_secret = #{appSecret,jdbcType=VARCHAR},",
"code = #{code,jdbcType=VARCHAR},",
"create_time = #{createTime,jdbcType=TIMESTAMP},",
"SignKey = #{signkey,jdbcType=VARCHAR},",
"app_id = #{appId,jdbcType=VARCHAR}",
"where id = #{id,jdbcType=INTEGER}"
})
int updateByPrimaryKey(SecSinopecConfig record);
}

@ -1,7 +0,0 @@
package com.hai.dao;
/**
* mapper扩展类
*/
public interface SecSinopecConfigMapperExt {
}

@ -1,262 +0,0 @@
package com.hai.dao;
import com.hai.entity.SecSinopecConfig;
import com.hai.entity.SecSinopecConfigExample.Criteria;
import com.hai.entity.SecSinopecConfigExample.Criterion;
import com.hai.entity.SecSinopecConfigExample;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.jdbc.SQL;
public class SecSinopecConfigSqlProvider {
public String countByExample(SecSinopecConfigExample example) {
SQL sql = new SQL();
sql.SELECT("count(*)").FROM("sec_sinopec_config");
applyWhere(sql, example, false);
return sql.toString();
}
public String deleteByExample(SecSinopecConfigExample example) {
SQL sql = new SQL();
sql.DELETE_FROM("sec_sinopec_config");
applyWhere(sql, example, false);
return sql.toString();
}
public String insertSelective(SecSinopecConfig record) {
SQL sql = new SQL();
sql.INSERT_INTO("sec_sinopec_config");
if (record.getName() != null) {
sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}");
}
if (record.getAppSecret() != null) {
sql.VALUES("app_secret", "#{appSecret,jdbcType=VARCHAR}");
}
if (record.getCode() != null) {
sql.VALUES("code", "#{code,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}");
}
if (record.getSignkey() != null) {
sql.VALUES("SignKey", "#{signkey,jdbcType=VARCHAR}");
}
if (record.getAppId() != null) {
sql.VALUES("app_id", "#{appId,jdbcType=VARCHAR}");
}
return sql.toString();
}
public String selectByExample(SecSinopecConfigExample example) {
SQL sql = new SQL();
if (example != null && example.isDistinct()) {
sql.SELECT_DISTINCT("id");
} else {
sql.SELECT("id");
}
sql.SELECT("`name`");
sql.SELECT("app_secret");
sql.SELECT("code");
sql.SELECT("create_time");
sql.SELECT("SignKey");
sql.SELECT("app_id");
sql.FROM("sec_sinopec_config");
applyWhere(sql, example, false);
if (example != null && example.getOrderByClause() != null) {
sql.ORDER_BY(example.getOrderByClause());
}
return sql.toString();
}
public String updateByExampleSelective(Map<String, Object> parameter) {
SecSinopecConfig record = (SecSinopecConfig) parameter.get("record");
SecSinopecConfigExample example = (SecSinopecConfigExample) parameter.get("example");
SQL sql = new SQL();
sql.UPDATE("sec_sinopec_config");
if (record.getId() != null) {
sql.SET("id = #{record.id,jdbcType=INTEGER}");
}
if (record.getName() != null) {
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}");
}
if (record.getAppSecret() != null) {
sql.SET("app_secret = #{record.appSecret,jdbcType=VARCHAR}");
}
if (record.getCode() != null) {
sql.SET("code = #{record.code,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
}
if (record.getSignkey() != null) {
sql.SET("SignKey = #{record.signkey,jdbcType=VARCHAR}");
}
if (record.getAppId() != null) {
sql.SET("app_id = #{record.appId,jdbcType=VARCHAR}");
}
applyWhere(sql, example, true);
return sql.toString();
}
public String updateByExample(Map<String, Object> parameter) {
SQL sql = new SQL();
sql.UPDATE("sec_sinopec_config");
sql.SET("id = #{record.id,jdbcType=INTEGER}");
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}");
sql.SET("app_secret = #{record.appSecret,jdbcType=VARCHAR}");
sql.SET("code = #{record.code,jdbcType=VARCHAR}");
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}");
sql.SET("SignKey = #{record.signkey,jdbcType=VARCHAR}");
sql.SET("app_id = #{record.appId,jdbcType=VARCHAR}");
SecSinopecConfigExample example = (SecSinopecConfigExample) parameter.get("example");
applyWhere(sql, example, true);
return sql.toString();
}
public String updateByPrimaryKeySelective(SecSinopecConfig record) {
SQL sql = new SQL();
sql.UPDATE("sec_sinopec_config");
if (record.getName() != null) {
sql.SET("`name` = #{name,jdbcType=VARCHAR}");
}
if (record.getAppSecret() != null) {
sql.SET("app_secret = #{appSecret,jdbcType=VARCHAR}");
}
if (record.getCode() != null) {
sql.SET("code = #{code,jdbcType=VARCHAR}");
}
if (record.getCreateTime() != null) {
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}");
}
if (record.getSignkey() != null) {
sql.SET("SignKey = #{signkey,jdbcType=VARCHAR}");
}
if (record.getAppId() != null) {
sql.SET("app_id = #{appId,jdbcType=VARCHAR}");
}
sql.WHERE("id = #{id,jdbcType=INTEGER}");
return sql.toString();
}
protected void applyWhere(SQL sql, SecSinopecConfigExample example, boolean includeExamplePhrase) {
if (example == null) {
return;
}
String parmPhrase1;
String parmPhrase1_th;
String parmPhrase2;
String parmPhrase2_th;
String parmPhrase3;
String parmPhrase3_th;
if (includeExamplePhrase) {
parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}";
parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}";
parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}";
parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
} else {
parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}";
parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}";
parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}";
parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
}
StringBuilder sb = new StringBuilder();
List<Criteria> oredCriteria = example.getOredCriteria();
boolean firstCriteria = true;
for (int i = 0; i < oredCriteria.size(); i++) {
Criteria criteria = oredCriteria.get(i);
if (criteria.isValid()) {
if (firstCriteria) {
firstCriteria = false;
} else {
sb.append(" or ");
}
sb.append('(');
List<Criterion> criterions = criteria.getAllCriteria();
boolean firstCriterion = true;
for (int j = 0; j < criterions.size(); j++) {
Criterion criterion = criterions.get(j);
if (firstCriterion) {
firstCriterion = false;
} else {
sb.append(" and ");
}
if (criterion.isNoValue()) {
sb.append(criterion.getCondition());
} else if (criterion.isSingleValue()) {
if (criterion.getTypeHandler() == null) {
sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));
} else {
sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));
}
} else if (criterion.isBetweenValue()) {
if (criterion.getTypeHandler() == null) {
sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));
} else {
sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));
}
} else if (criterion.isListValue()) {
sb.append(criterion.getCondition());
sb.append(" (");
List<?> listItems = (List<?>) criterion.getValue();
boolean comma = false;
for (int k = 0; k < listItems.size(); k++) {
if (comma) {
sb.append(", ");
} else {
comma = true;
}
if (criterion.getTypeHandler() == null) {
sb.append(String.format(parmPhrase3, i, j, k));
} else {
sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));
}
}
sb.append(')');
}
}
sb.append(')');
}
}
if (sb.length() > 0) {
sql.WHERE(sb.toString());
}
}
}

@ -1,161 +0,0 @@
package com.hai.entity;
import java.io.Serializable;
import java.util.Date;
/**
* sec_sinopec_config
* @author
*/
/**
*
* 代码由工具生成
*
**/
public class SecSinopecConfig implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 中石化客户名称
*/
private String name;
/**
* 客户密码
*/
private String appSecret;
/**
* 客户编码
*/
private String code;
/**
* 创建时间
*/
private Date createTime;
/**
* 签名key
*/
private String signkey;
/**
* 客户AppId
*/
private String appId;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAppSecret() {
return appSecret;
}
public void setAppSecret(String appSecret) {
this.appSecret = appSecret;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getSignkey() {
return signkey;
}
public void setSignkey(String signkey) {
this.signkey = signkey;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SecSinopecConfig other = (SecSinopecConfig) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getAppSecret() == null ? other.getAppSecret() == null : this.getAppSecret().equals(other.getAppSecret()))
&& (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getSignkey() == null ? other.getSignkey() == null : this.getSignkey().equals(other.getSignkey()))
&& (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getAppSecret() == null) ? 0 : getAppSecret().hashCode());
result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getSignkey() == null) ? 0 : getSignkey().hashCode());
result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", appSecret=").append(appSecret);
sb.append(", code=").append(code);
sb.append(", createTime=").append(createTime);
sb.append(", signkey=").append(signkey);
sb.append(", appId=").append(appId);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}

@ -1,693 +0,0 @@
package com.hai.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class SecSinopecConfigExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
private Integer limit;
private Long offset;
public SecSinopecConfigExample() {
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;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public Integer getLimit() {
return limit;
}
public void setOffset(Long offset) {
this.offset = offset;
}
public Long getOffset() {
return offset;
}
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(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("`name` is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("`name` is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("`name` =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("`name` <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("`name` >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("`name` >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("`name` <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("`name` <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("`name` like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("`name` not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("`name` in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("`name` not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("`name` between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("`name` not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andAppSecretIsNull() {
addCriterion("app_secret is null");
return (Criteria) this;
}
public Criteria andAppSecretIsNotNull() {
addCriterion("app_secret is not null");
return (Criteria) this;
}
public Criteria andAppSecretEqualTo(String value) {
addCriterion("app_secret =", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretNotEqualTo(String value) {
addCriterion("app_secret <>", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretGreaterThan(String value) {
addCriterion("app_secret >", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretGreaterThanOrEqualTo(String value) {
addCriterion("app_secret >=", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretLessThan(String value) {
addCriterion("app_secret <", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretLessThanOrEqualTo(String value) {
addCriterion("app_secret <=", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretLike(String value) {
addCriterion("app_secret like", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretNotLike(String value) {
addCriterion("app_secret not like", value, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretIn(List<String> values) {
addCriterion("app_secret in", values, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretNotIn(List<String> values) {
addCriterion("app_secret not in", values, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretBetween(String value1, String value2) {
addCriterion("app_secret between", value1, value2, "appSecret");
return (Criteria) this;
}
public Criteria andAppSecretNotBetween(String value1, String value2) {
addCriterion("app_secret not between", value1, value2, "appSecret");
return (Criteria) this;
}
public Criteria andCodeIsNull() {
addCriterion("code is null");
return (Criteria) this;
}
public Criteria andCodeIsNotNull() {
addCriterion("code is not null");
return (Criteria) this;
}
public Criteria andCodeEqualTo(String value) {
addCriterion("code =", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotEqualTo(String value) {
addCriterion("code <>", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThan(String value) {
addCriterion("code >", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThanOrEqualTo(String value) {
addCriterion("code >=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThan(String value) {
addCriterion("code <", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThanOrEqualTo(String value) {
addCriterion("code <=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLike(String value) {
addCriterion("code like", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotLike(String value) {
addCriterion("code not like", value, "code");
return (Criteria) this;
}
public Criteria andCodeIn(List<String> values) {
addCriterion("code in", values, "code");
return (Criteria) this;
}
public Criteria andCodeNotIn(List<String> values) {
addCriterion("code not in", values, "code");
return (Criteria) this;
}
public Criteria andCodeBetween(String value1, String value2) {
addCriterion("code between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andCodeNotBetween(String value1, String value2) {
addCriterion("code not between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andSignkeyIsNull() {
addCriterion("SignKey is null");
return (Criteria) this;
}
public Criteria andSignkeyIsNotNull() {
addCriterion("SignKey is not null");
return (Criteria) this;
}
public Criteria andSignkeyEqualTo(String value) {
addCriterion("SignKey =", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyNotEqualTo(String value) {
addCriterion("SignKey <>", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyGreaterThan(String value) {
addCriterion("SignKey >", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyGreaterThanOrEqualTo(String value) {
addCriterion("SignKey >=", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyLessThan(String value) {
addCriterion("SignKey <", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyLessThanOrEqualTo(String value) {
addCriterion("SignKey <=", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyLike(String value) {
addCriterion("SignKey like", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyNotLike(String value) {
addCriterion("SignKey not like", value, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyIn(List<String> values) {
addCriterion("SignKey in", values, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyNotIn(List<String> values) {
addCriterion("SignKey not in", values, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyBetween(String value1, String value2) {
addCriterion("SignKey between", value1, value2, "signkey");
return (Criteria) this;
}
public Criteria andSignkeyNotBetween(String value1, String value2) {
addCriterion("SignKey not between", value1, value2, "signkey");
return (Criteria) this;
}
public Criteria andAppIdIsNull() {
addCriterion("app_id is null");
return (Criteria) this;
}
public Criteria andAppIdIsNotNull() {
addCriterion("app_id is not null");
return (Criteria) this;
}
public Criteria andAppIdEqualTo(String value) {
addCriterion("app_id =", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotEqualTo(String value) {
addCriterion("app_id <>", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdGreaterThan(String value) {
addCriterion("app_id >", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdGreaterThanOrEqualTo(String value) {
addCriterion("app_id >=", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdLessThan(String value) {
addCriterion("app_id <", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdLessThanOrEqualTo(String value) {
addCriterion("app_id <=", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdLike(String value) {
addCriterion("app_id like", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotLike(String value) {
addCriterion("app_id not like", value, "appId");
return (Criteria) this;
}
public Criteria andAppIdIn(List<String> values) {
addCriterion("app_id in", values, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotIn(List<String> values) {
addCriterion("app_id not in", values, "appId");
return (Criteria) this;
}
public Criteria andAppIdBetween(String value1, String value2) {
addCriterion("app_id between", value1, value2, "appId");
return (Criteria) this;
}
public Criteria andAppIdNotBetween(String value1, String value2) {
addCriterion("app_id not between", value1, value2, "appId");
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);
}
}
}
Loading…
Cancel
Save