parent
c10ec493b0
commit
b0aaa698f6
@ -0,0 +1,69 @@ |
|||||||
|
package com.cweb.controller; |
||||||
|
|
||||||
|
import com.github.pagehelper.PageHelper; |
||||||
|
import com.github.pagehelper.PageInfo; |
||||||
|
import com.hai.common.exception.ErrorCode; |
||||||
|
import com.hai.common.exception.ErrorHelp; |
||||||
|
import com.hai.common.exception.SysCode; |
||||||
|
import com.hai.common.security.SessionObject; |
||||||
|
import com.hai.common.security.UserCenter; |
||||||
|
import com.hai.common.utils.ResponseMsgUtil; |
||||||
|
import com.hai.entity.HighAgent; |
||||||
|
import com.hai.entity.OutRechargePrice; |
||||||
|
import com.hai.model.ResponseData; |
||||||
|
import com.hai.model.UserInfoModel; |
||||||
|
import com.hai.service.OutRechargePriceService; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import org.apache.commons.lang3.StringUtils; |
||||||
|
import org.slf4j.Logger; |
||||||
|
import org.slf4j.LoggerFactory; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import javax.servlet.http.HttpServletRequest; |
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
@Controller |
||||||
|
@RequestMapping(value = "/outRechargePrice") |
||||||
|
@Api(value = "查询充值金额接口") |
||||||
|
public class OutRechargePriceController { |
||||||
|
|
||||||
|
private static Logger log = LoggerFactory.getLogger(HighMerchantStoreController.class); |
||||||
|
|
||||||
|
@Autowired |
||||||
|
private UserCenter userCenter; |
||||||
|
|
||||||
|
@Resource |
||||||
|
private OutRechargePriceService outRechargePriceService; |
||||||
|
|
||||||
|
@RequestMapping(value = "/getListOutRechargePrice", method = RequestMethod.GET) |
||||||
|
@ResponseBody |
||||||
|
@ApiOperation(value = "查询充值金额列表") |
||||||
|
public ResponseData getListOutRechargePrice( |
||||||
|
@RequestParam(value = "type", required = false) String type |
||||||
|
) { |
||||||
|
try { |
||||||
|
|
||||||
|
Map<String, String> map = new HashMap<>(); |
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(type)) { |
||||||
|
map.put("type", type); |
||||||
|
} |
||||||
|
|
||||||
|
return ResponseMsgUtil.success(outRechargePriceService.getListRechargePrice(map)); |
||||||
|
} catch (Exception e) { |
||||||
|
log.error("HighAgentController --> getListUser() error!", e); |
||||||
|
return ResponseMsgUtil.exception(e); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,105 @@ |
|||||||
|
package com.hai.dao; |
||||||
|
|
||||||
|
import com.hai.entity.OutRechargeUser; |
||||||
|
import com.hai.entity.OutRechargeUserExample; |
||||||
|
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 OutRechargeUserMapper extends OutRechargeUserMapperExt { |
||||||
|
@SelectProvider(type=OutRechargeUserSqlProvider.class, method="countByExample") |
||||||
|
long countByExample(OutRechargeUserExample example); |
||||||
|
|
||||||
|
@DeleteProvider(type=OutRechargeUserSqlProvider.class, method="deleteByExample") |
||||||
|
int deleteByExample(OutRechargeUserExample example); |
||||||
|
|
||||||
|
@Delete({ |
||||||
|
"delete from out_recharge_user", |
||||||
|
"where id = #{id,jdbcType=BIGINT}" |
||||||
|
}) |
||||||
|
int deleteByPrimaryKey(Long id); |
||||||
|
|
||||||
|
@Insert({ |
||||||
|
"insert into out_recharge_user (recharge_name, phone, ", |
||||||
|
"create_time, `status`, ", |
||||||
|
"operator_id, operator_name)", |
||||||
|
"values (#{rechargeName,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, ", |
||||||
|
"#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
||||||
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR})" |
||||||
|
}) |
||||||
|
@Options(useGeneratedKeys=true,keyProperty="id") |
||||||
|
int insert(OutRechargeUser record); |
||||||
|
|
||||||
|
@InsertProvider(type=OutRechargeUserSqlProvider.class, method="insertSelective") |
||||||
|
@Options(useGeneratedKeys=true,keyProperty="id") |
||||||
|
int insertSelective(OutRechargeUser record); |
||||||
|
|
||||||
|
@SelectProvider(type=OutRechargeUserSqlProvider.class, method="selectByExample") |
||||||
|
@Results({ |
||||||
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||||
|
@Result(column="recharge_name", property="rechargeName", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
||||||
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR) |
||||||
|
}) |
||||||
|
List<OutRechargeUser> selectByExample(OutRechargeUserExample example); |
||||||
|
|
||||||
|
@Select({ |
||||||
|
"select", |
||||||
|
"id, recharge_name, phone, create_time, `status`, operator_id, operator_name", |
||||||
|
"from out_recharge_user", |
||||||
|
"where id = #{id,jdbcType=BIGINT}" |
||||||
|
}) |
||||||
|
@Results({ |
||||||
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
||||||
|
@Result(column="recharge_name", property="rechargeName", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), |
||||||
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
||||||
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
||||||
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
||||||
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR) |
||||||
|
}) |
||||||
|
OutRechargeUser selectByPrimaryKey(Long id); |
||||||
|
|
||||||
|
@UpdateProvider(type=OutRechargeUserSqlProvider.class, method="updateByExampleSelective") |
||||||
|
int updateByExampleSelective(@Param("record") OutRechargeUser record, @Param("example") OutRechargeUserExample example); |
||||||
|
|
||||||
|
@UpdateProvider(type=OutRechargeUserSqlProvider.class, method="updateByExample") |
||||||
|
int updateByExample(@Param("record") OutRechargeUser record, @Param("example") OutRechargeUserExample example); |
||||||
|
|
||||||
|
@UpdateProvider(type=OutRechargeUserSqlProvider.class, method="updateByPrimaryKeySelective") |
||||||
|
int updateByPrimaryKeySelective(OutRechargeUser record); |
||||||
|
|
||||||
|
@Update({ |
||||||
|
"update out_recharge_user", |
||||||
|
"set recharge_name = #{rechargeName,jdbcType=VARCHAR},", |
||||||
|
"phone = #{phone,jdbcType=VARCHAR},", |
||||||
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
||||||
|
"`status` = #{status,jdbcType=INTEGER},", |
||||||
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
||||||
|
"operator_name = #{operatorName,jdbcType=VARCHAR}", |
||||||
|
"where id = #{id,jdbcType=BIGINT}" |
||||||
|
}) |
||||||
|
int updateByPrimaryKey(OutRechargeUser record); |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
package com.hai.dao; |
||||||
|
|
||||||
|
/** |
||||||
|
* mapper扩展类 |
||||||
|
*/ |
||||||
|
public interface OutRechargeUserMapperExt { |
||||||
|
} |
@ -0,0 +1,262 @@ |
|||||||
|
package com.hai.dao; |
||||||
|
|
||||||
|
import com.hai.entity.OutRechargeUser; |
||||||
|
import com.hai.entity.OutRechargeUserExample.Criteria; |
||||||
|
import com.hai.entity.OutRechargeUserExample.Criterion; |
||||||
|
import com.hai.entity.OutRechargeUserExample; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
import org.apache.ibatis.jdbc.SQL; |
||||||
|
|
||||||
|
public class OutRechargeUserSqlProvider { |
||||||
|
|
||||||
|
public String countByExample(OutRechargeUserExample example) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.SELECT("count(*)").FROM("out_recharge_user"); |
||||||
|
applyWhere(sql, example, false); |
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String deleteByExample(OutRechargeUserExample example) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.DELETE_FROM("out_recharge_user"); |
||||||
|
applyWhere(sql, example, false); |
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String insertSelective(OutRechargeUser record) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.INSERT_INTO("out_recharge_user"); |
||||||
|
|
||||||
|
if (record.getRechargeName() != null) { |
||||||
|
sql.VALUES("recharge_name", "#{rechargeName,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPhone() != null) { |
||||||
|
sql.VALUES("phone", "#{phone,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreateTime() != null) { |
||||||
|
sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getStatus() != null) { |
||||||
|
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getOperatorId() != null) { |
||||||
|
sql.VALUES("operator_id", "#{operatorId,jdbcType=BIGINT}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getOperatorName() != null) { |
||||||
|
sql.VALUES("operator_name", "#{operatorName,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String selectByExample(OutRechargeUserExample example) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
if (example != null && example.isDistinct()) { |
||||||
|
sql.SELECT_DISTINCT("id"); |
||||||
|
} else { |
||||||
|
sql.SELECT("id"); |
||||||
|
} |
||||||
|
sql.SELECT("recharge_name"); |
||||||
|
sql.SELECT("phone"); |
||||||
|
sql.SELECT("create_time"); |
||||||
|
sql.SELECT("`status`"); |
||||||
|
sql.SELECT("operator_id"); |
||||||
|
sql.SELECT("operator_name"); |
||||||
|
sql.FROM("out_recharge_user"); |
||||||
|
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) { |
||||||
|
OutRechargeUser record = (OutRechargeUser) parameter.get("record"); |
||||||
|
OutRechargeUserExample example = (OutRechargeUserExample) parameter.get("example"); |
||||||
|
|
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.UPDATE("out_recharge_user"); |
||||||
|
|
||||||
|
if (record.getId() != null) { |
||||||
|
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getRechargeName() != null) { |
||||||
|
sql.SET("recharge_name = #{record.rechargeName,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPhone() != null) { |
||||||
|
sql.SET("phone = #{record.phone,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreateTime() != null) { |
||||||
|
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getStatus() != null) { |
||||||
|
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getOperatorId() != null) { |
||||||
|
sql.SET("operator_id = #{record.operatorId,jdbcType=BIGINT}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getOperatorName() != null) { |
||||||
|
sql.SET("operator_name = #{record.operatorName,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
applyWhere(sql, example, true); |
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String updateByExample(Map<String, Object> parameter) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.UPDATE("out_recharge_user"); |
||||||
|
|
||||||
|
sql.SET("id = #{record.id,jdbcType=BIGINT}"); |
||||||
|
sql.SET("recharge_name = #{record.rechargeName,jdbcType=VARCHAR}"); |
||||||
|
sql.SET("phone = #{record.phone,jdbcType=VARCHAR}"); |
||||||
|
sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); |
||||||
|
sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); |
||||||
|
sql.SET("operator_id = #{record.operatorId,jdbcType=BIGINT}"); |
||||||
|
sql.SET("operator_name = #{record.operatorName,jdbcType=VARCHAR}"); |
||||||
|
|
||||||
|
OutRechargeUserExample example = (OutRechargeUserExample) parameter.get("example"); |
||||||
|
applyWhere(sql, example, true); |
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
public String updateByPrimaryKeySelective(OutRechargeUser record) { |
||||||
|
SQL sql = new SQL(); |
||||||
|
sql.UPDATE("out_recharge_user"); |
||||||
|
|
||||||
|
if (record.getRechargeName() != null) { |
||||||
|
sql.SET("recharge_name = #{rechargeName,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getPhone() != null) { |
||||||
|
sql.SET("phone = #{phone,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getCreateTime() != null) { |
||||||
|
sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getStatus() != null) { |
||||||
|
sql.SET("`status` = #{status,jdbcType=INTEGER}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getOperatorId() != null) { |
||||||
|
sql.SET("operator_id = #{operatorId,jdbcType=BIGINT}"); |
||||||
|
} |
||||||
|
|
||||||
|
if (record.getOperatorName() != null) { |
||||||
|
sql.SET("operator_name = #{operatorName,jdbcType=VARCHAR}"); |
||||||
|
} |
||||||
|
|
||||||
|
sql.WHERE("id = #{id,jdbcType=BIGINT}"); |
||||||
|
|
||||||
|
return sql.toString(); |
||||||
|
} |
||||||
|
|
||||||
|
protected void applyWhere(SQL sql, OutRechargeUserExample 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()); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,161 @@ |
|||||||
|
package com.hai.entity; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
import java.util.Date; |
||||||
|
|
||||||
|
/** |
||||||
|
* out_recharge_user |
||||||
|
* @author |
||||||
|
*/ |
||||||
|
/** |
||||||
|
* |
||||||
|
* 代码由工具生成 |
||||||
|
* |
||||||
|
**/ |
||||||
|
public class OutRechargeUser implements Serializable { |
||||||
|
/** |
||||||
|
* 主键 |
||||||
|
*/ |
||||||
|
private Long id; |
||||||
|
|
||||||
|
/** |
||||||
|
* 人员名称 |
||||||
|
*/ |
||||||
|
private String rechargeName; |
||||||
|
|
||||||
|
/** |
||||||
|
* 联系电话 |
||||||
|
*/ |
||||||
|
private String phone; |
||||||
|
|
||||||
|
/** |
||||||
|
* 创建时间 |
||||||
|
*/ |
||||||
|
private Date createTime; |
||||||
|
|
||||||
|
/** |
||||||
|
* 1.正常 2.删除 |
||||||
|
*/ |
||||||
|
private Integer status; |
||||||
|
|
||||||
|
/** |
||||||
|
* 操作人员Id |
||||||
|
*/ |
||||||
|
private Long operatorId; |
||||||
|
|
||||||
|
/** |
||||||
|
* 操作人员名称 |
||||||
|
*/ |
||||||
|
private String operatorName; |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
public Long getId() { |
||||||
|
return id; |
||||||
|
} |
||||||
|
|
||||||
|
public void setId(Long id) { |
||||||
|
this.id = id; |
||||||
|
} |
||||||
|
|
||||||
|
public String getRechargeName() { |
||||||
|
return rechargeName; |
||||||
|
} |
||||||
|
|
||||||
|
public void setRechargeName(String rechargeName) { |
||||||
|
this.rechargeName = rechargeName; |
||||||
|
} |
||||||
|
|
||||||
|
public String getPhone() { |
||||||
|
return phone; |
||||||
|
} |
||||||
|
|
||||||
|
public void setPhone(String phone) { |
||||||
|
this.phone = phone; |
||||||
|
} |
||||||
|
|
||||||
|
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 Long getOperatorId() { |
||||||
|
return operatorId; |
||||||
|
} |
||||||
|
|
||||||
|
public void setOperatorId(Long operatorId) { |
||||||
|
this.operatorId = operatorId; |
||||||
|
} |
||||||
|
|
||||||
|
public String getOperatorName() { |
||||||
|
return operatorName; |
||||||
|
} |
||||||
|
|
||||||
|
public void setOperatorName(String operatorName) { |
||||||
|
this.operatorName = operatorName; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public boolean equals(Object that) { |
||||||
|
if (this == that) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
if (that == null) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (getClass() != that.getClass()) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
OutRechargeUser other = (OutRechargeUser) that; |
||||||
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||||
|
&& (this.getRechargeName() == null ? other.getRechargeName() == null : this.getRechargeName().equals(other.getRechargeName())) |
||||||
|
&& (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) |
||||||
|
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) |
||||||
|
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) |
||||||
|
&& (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId())) |
||||||
|
&& (this.getOperatorName() == null ? other.getOperatorName() == null : this.getOperatorName().equals(other.getOperatorName())); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public int hashCode() { |
||||||
|
final int prime = 31; |
||||||
|
int result = 1; |
||||||
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||||
|
result = prime * result + ((getRechargeName() == null) ? 0 : getRechargeName().hashCode()); |
||||||
|
result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); |
||||||
|
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); |
||||||
|
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); |
||||||
|
result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode()); |
||||||
|
result = prime * result + ((getOperatorName() == null) ? 0 : getOperatorName().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(", rechargeName=").append(rechargeName); |
||||||
|
sb.append(", phone=").append(phone); |
||||||
|
sb.append(", createTime=").append(createTime); |
||||||
|
sb.append(", status=").append(status); |
||||||
|
sb.append(", operatorId=").append(operatorId); |
||||||
|
sb.append(", operatorName=").append(operatorName); |
||||||
|
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||||
|
sb.append("]"); |
||||||
|
return sb.toString(); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,673 @@ |
|||||||
|
package com.hai.entity; |
||||||
|
|
||||||
|
import java.util.ArrayList; |
||||||
|
import java.util.Date; |
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
public class OutRechargeUserExample { |
||||||
|
protected String orderByClause; |
||||||
|
|
||||||
|
protected boolean distinct; |
||||||
|
|
||||||
|
protected List<Criteria> oredCriteria; |
||||||
|
|
||||||
|
private Integer limit; |
||||||
|
|
||||||
|
private Long offset; |
||||||
|
|
||||||
|
public OutRechargeUserExample() { |
||||||
|
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(Long value) { |
||||||
|
addCriterion("id =", value, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||||
|
addCriterion("id <>", value, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdGreaterThan(Long value) { |
||||||
|
addCriterion("id >", value, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||||
|
addCriterion("id >=", value, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdLessThan(Long value) { |
||||||
|
addCriterion("id <", value, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||||
|
addCriterion("id <=", value, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdIn(List<Long> values) { |
||||||
|
addCriterion("id in", values, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||||
|
addCriterion("id not in", values, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||||
|
addCriterion("id between", value1, value2, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||||
|
addCriterion("id not between", value1, value2, "id"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameIsNull() { |
||||||
|
addCriterion("recharge_name is null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameIsNotNull() { |
||||||
|
addCriterion("recharge_name is not null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameEqualTo(String value) { |
||||||
|
addCriterion("recharge_name =", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameNotEqualTo(String value) { |
||||||
|
addCriterion("recharge_name <>", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameGreaterThan(String value) { |
||||||
|
addCriterion("recharge_name >", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameGreaterThanOrEqualTo(String value) { |
||||||
|
addCriterion("recharge_name >=", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameLessThan(String value) { |
||||||
|
addCriterion("recharge_name <", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameLessThanOrEqualTo(String value) { |
||||||
|
addCriterion("recharge_name <=", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameLike(String value) { |
||||||
|
addCriterion("recharge_name like", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameNotLike(String value) { |
||||||
|
addCriterion("recharge_name not like", value, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameIn(List<String> values) { |
||||||
|
addCriterion("recharge_name in", values, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameNotIn(List<String> values) { |
||||||
|
addCriterion("recharge_name not in", values, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameBetween(String value1, String value2) { |
||||||
|
addCriterion("recharge_name between", value1, value2, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andRechargeNameNotBetween(String value1, String value2) { |
||||||
|
addCriterion("recharge_name not between", value1, value2, "rechargeName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneIsNull() { |
||||||
|
addCriterion("phone is null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneIsNotNull() { |
||||||
|
addCriterion("phone is not null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneEqualTo(String value) { |
||||||
|
addCriterion("phone =", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneNotEqualTo(String value) { |
||||||
|
addCriterion("phone <>", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneGreaterThan(String value) { |
||||||
|
addCriterion("phone >", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneGreaterThanOrEqualTo(String value) { |
||||||
|
addCriterion("phone >=", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneLessThan(String value) { |
||||||
|
addCriterion("phone <", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneLessThanOrEqualTo(String value) { |
||||||
|
addCriterion("phone <=", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneLike(String value) { |
||||||
|
addCriterion("phone like", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneNotLike(String value) { |
||||||
|
addCriterion("phone not like", value, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneIn(List<String> values) { |
||||||
|
addCriterion("phone in", values, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneNotIn(List<String> values) { |
||||||
|
addCriterion("phone not in", values, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneBetween(String value1, String value2) { |
||||||
|
addCriterion("phone between", value1, value2, "phone"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andPhoneNotBetween(String value1, String value2) { |
||||||
|
addCriterion("phone not between", value1, value2, "phone"); |
||||||
|
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 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 Criteria andOperatorIdIsNull() { |
||||||
|
addCriterion("operator_id is null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdIsNotNull() { |
||||||
|
addCriterion("operator_id is not null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdEqualTo(Long value) { |
||||||
|
addCriterion("operator_id =", value, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdNotEqualTo(Long value) { |
||||||
|
addCriterion("operator_id <>", value, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdGreaterThan(Long value) { |
||||||
|
addCriterion("operator_id >", value, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdGreaterThanOrEqualTo(Long value) { |
||||||
|
addCriterion("operator_id >=", value, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdLessThan(Long value) { |
||||||
|
addCriterion("operator_id <", value, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdLessThanOrEqualTo(Long value) { |
||||||
|
addCriterion("operator_id <=", value, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdIn(List<Long> values) { |
||||||
|
addCriterion("operator_id in", values, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdNotIn(List<Long> values) { |
||||||
|
addCriterion("operator_id not in", values, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdBetween(Long value1, Long value2) { |
||||||
|
addCriterion("operator_id between", value1, value2, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorIdNotBetween(Long value1, Long value2) { |
||||||
|
addCriterion("operator_id not between", value1, value2, "operatorId"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameIsNull() { |
||||||
|
addCriterion("operator_name is null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameIsNotNull() { |
||||||
|
addCriterion("operator_name is not null"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameEqualTo(String value) { |
||||||
|
addCriterion("operator_name =", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameNotEqualTo(String value) { |
||||||
|
addCriterion("operator_name <>", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameGreaterThan(String value) { |
||||||
|
addCriterion("operator_name >", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameGreaterThanOrEqualTo(String value) { |
||||||
|
addCriterion("operator_name >=", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameLessThan(String value) { |
||||||
|
addCriterion("operator_name <", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameLessThanOrEqualTo(String value) { |
||||||
|
addCriterion("operator_name <=", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameLike(String value) { |
||||||
|
addCriterion("operator_name like", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameNotLike(String value) { |
||||||
|
addCriterion("operator_name not like", value, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameIn(List<String> values) { |
||||||
|
addCriterion("operator_name in", values, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameNotIn(List<String> values) { |
||||||
|
addCriterion("operator_name not in", values, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameBetween(String value1, String value2) { |
||||||
|
addCriterion("operator_name between", value1, value2, "operatorName"); |
||||||
|
return (Criteria) this; |
||||||
|
} |
||||||
|
|
||||||
|
public Criteria andOperatorNameNotBetween(String value1, String value2) { |
||||||
|
addCriterion("operator_name not between", value1, value2, "operatorName"); |
||||||
|
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); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,17 @@ |
|||||||
|
package com.hai.model; |
||||||
|
|
||||||
|
import com.hai.entity.OutRechargeUser; |
||||||
|
import com.hai.entity.SecUser; |
||||||
|
|
||||||
|
public class OutRechargeUserModel extends OutRechargeUser { |
||||||
|
// 账号
|
||||||
|
private SecUser secUser; |
||||||
|
|
||||||
|
public SecUser getSecUser() { |
||||||
|
return secUser; |
||||||
|
} |
||||||
|
|
||||||
|
public void setSecUser(SecUser secUser) { |
||||||
|
this.secUser = secUser; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,45 @@ |
|||||||
|
package com.hai.service; |
||||||
|
|
||||||
|
import com.hai.entity.OutRechargePrice; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
public interface OutRechargePriceService { |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //查询列表 Administrator
|
||||||
|
* @Date 17:38 2021/6/12 |
||||||
|
* @Param [map] |
||||||
|
* @return java.util.List<com.hai.entity.OutRechargePrice> |
||||||
|
**/ |
||||||
|
List<OutRechargePrice> getListRechargePrice(Map<String , String> map); |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //查询详情 Administrator
|
||||||
|
* @Date 17:40 2021/6/12 |
||||||
|
* @Param [id] |
||||||
|
* @return com.hai.entity.OutRechargePrice |
||||||
|
**/ |
||||||
|
OutRechargePrice findById(Long id); |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //新增 Administrator
|
||||||
|
* @Date 17:40 2021/6/12 |
||||||
|
* @Param [outRechargePrice] |
||||||
|
* @return void |
||||||
|
**/ |
||||||
|
void insertRechargePrice(OutRechargePrice outRechargePrice); |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //修改 Administrator
|
||||||
|
* @Date 17:41 2021/6/12 |
||||||
|
* @Param [outRechargePrice] |
||||||
|
* @return void |
||||||
|
**/ |
||||||
|
void updateRechargePrice(OutRechargePrice outRechargePrice); |
||||||
|
} |
@ -0,0 +1,53 @@ |
|||||||
|
package com.hai.service; |
||||||
|
|
||||||
|
import com.hai.entity.HighAgent; |
||||||
|
import com.hai.entity.OutRechargeUser; |
||||||
|
import com.hai.model.HighAgentModel; |
||||||
|
import com.hai.model.OutRechargeUserModel; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
public interface OutRechargeUserService { |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //查询 Administrator
|
||||||
|
* @Date 17:52 2021/6/12 |
||||||
|
* @Param [map] |
||||||
|
* @return java.util.List<com.hai.entity.OutRechargeUser> |
||||||
|
**/ |
||||||
|
List<OutRechargeUser> getListRechargeUser(Map<String , String> map); |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //查询详情 Administrator
|
||||||
|
* @Date 17:53 2021/6/12 |
||||||
|
* @Param [agentId] |
||||||
|
* @return com.hai.entity.OutRechargeUser |
||||||
|
**/ |
||||||
|
OutRechargeUser findById(Long agentId); |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //新增 Administrator
|
||||||
|
* @Date 17:55 2021/6/12 |
||||||
|
* @Param [outRechargeUserModel] |
||||||
|
* @return void |
||||||
|
**/ |
||||||
|
void insertRechargeUser(OutRechargeUserModel outRechargeUserModel) throws Exception ; |
||||||
|
|
||||||
|
|
||||||
|
/** |
||||||
|
* @Author Sum1Dream |
||||||
|
* @Description //修改 Administrator
|
||||||
|
* @Date 17:55 2021/6/12 |
||||||
|
* @Param [outRechargeUserModel] |
||||||
|
* @return void |
||||||
|
**/ |
||||||
|
void updateRechargeUser(OutRechargeUserModel outRechargeUserModel); |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,43 @@ |
|||||||
|
package com.hai.service.impl; |
||||||
|
|
||||||
|
import com.hai.dao.OutRechargePriceMapper; |
||||||
|
import com.hai.entity.OutRechargePrice; |
||||||
|
import com.hai.entity.OutRechargePriceExample; |
||||||
|
import com.hai.entity.OutRechargeUser; |
||||||
|
import com.hai.entity.OutRechargeUserExample; |
||||||
|
import com.hai.service.OutRechargePriceService; |
||||||
|
import org.apache.commons.lang3.StringUtils; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
@Service("outRechargePriceServiceImpl") |
||||||
|
public class OutRechargePriceServiceImpl implements OutRechargePriceService { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private OutRechargePriceMapper outRechargePriceMapper; |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<OutRechargePrice> getListRechargePrice(Map<String, String> map) { |
||||||
|
OutRechargePriceExample example = new OutRechargePriceExample(); |
||||||
|
example.createCriteria().andTypeEqualTo(Integer.valueOf(map.get("Type"))); |
||||||
|
return outRechargePriceMapper.selectByExample(example); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public OutRechargePrice findById(Long id) { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void insertRechargePrice(OutRechargePrice outRechargePrice) { |
||||||
|
outRechargePriceMapper.insert(outRechargePrice); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void updateRechargePrice(OutRechargePrice outRechargePrice) { |
||||||
|
outRechargePriceMapper.updateByPrimaryKey(outRechargePrice); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,57 @@ |
|||||||
|
package com.hai.service.impl; |
||||||
|
|
||||||
|
import com.hai.common.utils.MD5Util; |
||||||
|
import com.hai.dao.OutRechargeUserMapper; |
||||||
|
import com.hai.entity.OutRechargeUser; |
||||||
|
import com.hai.entity.SecUser; |
||||||
|
import com.hai.model.OutRechargeUserModel; |
||||||
|
import com.hai.service.OutRechargeUserService; |
||||||
|
import com.hai.service.SecUserService; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import java.util.Date; |
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
@Service("outRechargeUserServiceImpl") |
||||||
|
public class OutRechargeUserServiceImpl implements OutRechargeUserService { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private OutRechargeUserMapper outRechargeUserMapper; |
||||||
|
|
||||||
|
@Resource |
||||||
|
private SecUserService secUserService; |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<OutRechargeUser> getListRechargeUser(Map<String, String> map) { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public OutRechargeUser findById(Long agentId) { |
||||||
|
return null; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void insertRechargeUser(OutRechargeUserModel outRechargeUserModel) throws Exception { |
||||||
|
outRechargeUserMapper.insert(outRechargeUserModel); |
||||||
|
|
||||||
|
outRechargeUserModel.getSecUser().setUserName(outRechargeUserModel.getRechargeName()); |
||||||
|
outRechargeUserModel.getSecUser().setLoginName(outRechargeUserModel.getSecUser().getLoginName()); |
||||||
|
outRechargeUserModel.getSecUser().setPassword(MD5Util.encode(outRechargeUserModel.getSecUser().getPassword().getBytes())); |
||||||
|
outRechargeUserModel.getSecUser().setAdminFlag(1); |
||||||
|
outRechargeUserModel.getSecUser().setStatus(1); |
||||||
|
outRechargeUserModel.getSecUser().setRoleId(6L); |
||||||
|
outRechargeUserModel.getSecUser().setObjectType(5); |
||||||
|
outRechargeUserModel.getSecUser().setObjectId(outRechargeUserModel.getId()); |
||||||
|
outRechargeUserModel.getSecUser().setCreateTime(new Date()); |
||||||
|
outRechargeUserModel.getSecUser().setUpdateTime(new Date()); |
||||||
|
secUserService.addUser(outRechargeUserModel.getSecUser()); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void updateRechargeUser(OutRechargeUserModel outRechargeUserModel) { |
||||||
|
|
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue