diff --git a/hai-cweb/src/main/resources/dev/application.yml b/hai-cweb/src/main/resources/dev/application.yml index 2145d8a7..e2b5f630 100644 --- a/hai-cweb/src/main/resources/dev/application.yml +++ b/hai-cweb/src/main/resources/dev/application.yml @@ -9,7 +9,7 @@ debug: false #datasource数据源设置 spring: datasource: - url: jdbc:mysql://122.9.135.148:3306/hsg?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false + url: jdbc:mysql://139.159.177.244:3306/hfkj?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false username: root password: HF123456. type: com.alibaba.druid.pool.DruidDataSource diff --git a/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java b/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java index da144239..2ddbcfa3 100644 --- a/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java +++ b/hai-schedule/src/main/java/com/hai/schedule/SynchronizeCNPC.java @@ -147,6 +147,66 @@ public class SynchronizeCNPC { } } + /*@Scheduled(cron="0 0/1 * * * ?") //每5分钟执行一次 + public void certification3(){ + List sinopecConfig = secSinopecConfigService.getListSinopecConfig(new HashMap<>()); + for (SecSinopecConfig config : sinopecConfig) { + Map tokenMap = new HashMap<>(); + tokenMap.put("appId", config.getAppId()); + tokenMap.put("appSecret", config.getAppSecret()); + JSONObject jsonObject = HttpsUtils.doPost("https://app.zshcqsy.com/api-provider/api/open/merchant/token", JSON.toJSONString(tokenMap)); + + if (jsonObject != null && jsonObject.getBoolean("success") == true) { + JSONObject data = jsonObject.getJSONObject("data"); + String token = data.getString("token"); + + Calendar instance = Calendar.getInstance(); + instance.set(Calendar.MONTH, 9); + instance.set(Calendar.DAY_OF_MONTH, 9); + instance.set(Calendar.HOUR_OF_DAY, 00); + instance.set(Calendar.MINUTE, 00); + instance.set(Calendar.SECOND, 00); + //instance.add(Calendar.MINUTE, -15); + + Calendar endTime = Calendar.getInstance(); + endTime.set(Calendar.MONTH, 9); + endTime.set(Calendar.DAY_OF_MONTH, 9); + endTime.set(Calendar.HOUR_OF_DAY, 23); + endTime.set(Calendar.MINUTE, 59); + endTime.set(Calendar.SECOND, 59); + + Map bodyMap = new HashMap<>(); + bodyMap.put("appId", config.getAppId()); + bodyMap.put("pageNo", 1); + bodyMap.put("pageSize", 10000); + bodyMap.put("startTime", instance.getTime()); + bodyMap.put("endTime", new Date().getTime()); + bodyMap.put("customerCode", config.getCode()); + + Long date = new Date().getTime(); + String sha256 = encodeBySHA256(config.getSignkey() + JSON.toJSONString(bodyMap) + date); + JSONObject object = HttpsUtils.doPost("https://app.zshcqsy.com/api-provider/sapapi/open/coupon/customerRedeemcodeList", JSON.toJSONString(bodyMap), token, sha256, date); + System.out.println(object.toJSONString()); + //JSONObject object = JSONObject.parseObject("{\"code\":1000,\"data\":{\"pageNo\":1,\"pageSize\":100,\"rowCount\":\"2\",\"list\":[{\"nodeName\":\"中国石油化工股份有限公司重庆江南石油分公司大学城南二路加油加\",\"totalAmount\":150.00,\"codeId\":\"01DIhbtPzIghPP0mPWaWzO13\",\"nodeNo\":\"50000105\",\"name\":\"重庆惠昕石化有限责任公司11.02日150元券\",\"useTime\":\"2021-04-03 06:11:14\"},{\"nodeName\":\"中国石化销售有限公司重庆三峡分公司忠县经营部三台加油站\",\"totalAmount\":100.00,\"codeId\":\"201126141728001027\",\"nodeNo\":\"50000238\",\"name\":\"重庆惠昕石化有限责任公司11.26日100元券\",\"useTime\":\"2021-04-03 15:16:03\"}]},\"success\":true}"); + + if(Objects.equals(object.get("success"), true)) { + Object dataJson = JSONObject.parse(JSONObject.toJSONString(object.get("data"))); + JSONObject dataObject = JSON.parseObject(JSONObject.toJSONString(dataJson)); + JSONArray list = dataObject.getJSONArray("list"); + for (Object dataJsonObject : list) { + try { + JSONObject parseObject = JSON.parseObject(JSON.toJSONString(dataJsonObject)); + String codeId = parseObject.getString("codeId"); + String nodeName = parseObject.getString("nodeName"); + Date useTime = DateUtil.format(parseObject.getString("useTime"), "yyyy-MM-dd HH:mm:ss"); + highCouponCodeService.cnpcCallbackCouponCode(codeId, useTime, nodeName); + } catch (Exception e) { + } + } + } + } + } + }*/ /* @Scheduled(cron="0 0/1 * * * ?") //每1分钟执行一次 public void certification3() { diff --git a/hai-service/src/main/java/com/hai/dao/BsResourceMapper.java b/hai-service/src/main/java/com/hai/dao/BsResourceMapper.java new file mode 100644 index 00000000..74b6db1b --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/BsResourceMapper.java @@ -0,0 +1,138 @@ +package com.hai.dao; + +import com.hai.entity.BsResource; +import com.hai.entity.BsResourceExample; +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 BsResourceMapper extends BsResourceMapperExt { + @SelectProvider(type=BsResourceSqlProvider.class, method="countByExample") + long countByExample(BsResourceExample example); + + @DeleteProvider(type=BsResourceSqlProvider.class, method="deleteByExample") + int deleteByExample(BsResourceExample example); + + @Delete({ + "delete from bs_resource", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into bs_resource (folder_id, res_type, ", + "cover_picture, `name`, ", + "res_size, res_duration, ", + "res_url, `status`, ", + "create_time, quote_status, ", + "op_id, ext_1, ext_2, ", + "ext_3)", + "values (#{folderId,jdbcType=BIGINT}, #{resType,jdbcType=INTEGER}, ", + "#{coverPicture,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ", + "#{resSize,jdbcType=REAL}, #{resDuration,jdbcType=INTEGER}, ", + "#{resUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", + "#{createTime,jdbcType=TIMESTAMP}, #{quoteStatus,jdbcType=INTEGER}, ", + "#{opId,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", + "#{ext3,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(BsResource record); + + @InsertProvider(type=BsResourceSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(BsResource record); + + @SelectProvider(type=BsResourceSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="folder_id", property="folderId", jdbcType=JdbcType.BIGINT), + @Result(column="res_type", property="resType", jdbcType=JdbcType.INTEGER), + @Result(column="cover_picture", property="coverPicture", jdbcType=JdbcType.VARCHAR), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="res_size", property="resSize", jdbcType=JdbcType.REAL), + @Result(column="res_duration", property="resDuration", jdbcType=JdbcType.INTEGER), + @Result(column="res_url", property="resUrl", jdbcType=JdbcType.VARCHAR), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="quote_status", property="quoteStatus", jdbcType=JdbcType.INTEGER), + @Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + List selectByExample(BsResourceExample example); + + @Select({ + "select", + "id, folder_id, res_type, cover_picture, `name`, res_size, res_duration, res_url, ", + "`status`, create_time, quote_status, op_id, ext_1, ext_2, ext_3", + "from bs_resource", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="folder_id", property="folderId", jdbcType=JdbcType.BIGINT), + @Result(column="res_type", property="resType", jdbcType=JdbcType.INTEGER), + @Result(column="cover_picture", property="coverPicture", jdbcType=JdbcType.VARCHAR), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="res_size", property="resSize", jdbcType=JdbcType.REAL), + @Result(column="res_duration", property="resDuration", jdbcType=JdbcType.INTEGER), + @Result(column="res_url", property="resUrl", jdbcType=JdbcType.VARCHAR), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="quote_status", property="quoteStatus", jdbcType=JdbcType.INTEGER), + @Result(column="op_id", property="opId", jdbcType=JdbcType.BIGINT), + @Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), + @Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) + }) + BsResource selectByPrimaryKey(Long id); + + @UpdateProvider(type=BsResourceSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") BsResource record, @Param("example") BsResourceExample example); + + @UpdateProvider(type=BsResourceSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") BsResource record, @Param("example") BsResourceExample example); + + @UpdateProvider(type=BsResourceSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(BsResource record); + + @Update({ + "update bs_resource", + "set folder_id = #{folderId,jdbcType=BIGINT},", + "res_type = #{resType,jdbcType=INTEGER},", + "cover_picture = #{coverPicture,jdbcType=VARCHAR},", + "`name` = #{name,jdbcType=VARCHAR},", + "res_size = #{resSize,jdbcType=REAL},", + "res_duration = #{resDuration,jdbcType=INTEGER},", + "res_url = #{resUrl,jdbcType=VARCHAR},", + "`status` = #{status,jdbcType=INTEGER},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "quote_status = #{quoteStatus,jdbcType=INTEGER},", + "op_id = #{opId,jdbcType=BIGINT},", + "ext_1 = #{ext1,jdbcType=VARCHAR},", + "ext_2 = #{ext2,jdbcType=VARCHAR},", + "ext_3 = #{ext3,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(BsResource record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/BsResourceMapperExt.java b/hai-service/src/main/java/com/hai/dao/BsResourceMapperExt.java new file mode 100644 index 00000000..ac0db707 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/BsResourceMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface BsResourceMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/BsResourceSqlProvider.java b/hai-service/src/main/java/com/hai/dao/BsResourceSqlProvider.java new file mode 100644 index 00000000..3bdac44b --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/BsResourceSqlProvider.java @@ -0,0 +1,374 @@ +package com.hai.dao; + +import com.hai.entity.BsResource; +import com.hai.entity.BsResourceExample.Criteria; +import com.hai.entity.BsResourceExample.Criterion; +import com.hai.entity.BsResourceExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class BsResourceSqlProvider { + + public String countByExample(BsResourceExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("bs_resource"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(BsResourceExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("bs_resource"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(BsResource record) { + SQL sql = new SQL(); + sql.INSERT_INTO("bs_resource"); + + if (record.getFolderId() != null) { + sql.VALUES("folder_id", "#{folderId,jdbcType=BIGINT}"); + } + + if (record.getResType() != null) { + sql.VALUES("res_type", "#{resType,jdbcType=INTEGER}"); + } + + if (record.getCoverPicture() != null) { + sql.VALUES("cover_picture", "#{coverPicture,jdbcType=VARCHAR}"); + } + + if (record.getName() != null) { + sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}"); + } + + if (record.getResSize() != null) { + sql.VALUES("res_size", "#{resSize,jdbcType=REAL}"); + } + + if (record.getResDuration() != null) { + sql.VALUES("res_duration", "#{resDuration,jdbcType=INTEGER}"); + } + + if (record.getResUrl() != null) { + sql.VALUES("res_url", "#{resUrl,jdbcType=VARCHAR}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + + if (record.getCreateTime() != null) { + sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getQuoteStatus() != null) { + sql.VALUES("quote_status", "#{quoteStatus,jdbcType=INTEGER}"); + } + + if (record.getOpId() != null) { + sql.VALUES("op_id", "#{opId,jdbcType=BIGINT}"); + } + + if (record.getExt1() != null) { + sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(BsResourceExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("folder_id"); + sql.SELECT("res_type"); + sql.SELECT("cover_picture"); + sql.SELECT("`name`"); + sql.SELECT("res_size"); + sql.SELECT("res_duration"); + sql.SELECT("res_url"); + sql.SELECT("`status`"); + sql.SELECT("create_time"); + sql.SELECT("quote_status"); + sql.SELECT("op_id"); + sql.SELECT("ext_1"); + sql.SELECT("ext_2"); + sql.SELECT("ext_3"); + sql.FROM("bs_resource"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + BsResource record = (BsResource) parameter.get("record"); + BsResourceExample example = (BsResourceExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("bs_resource"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getFolderId() != null) { + sql.SET("folder_id = #{record.folderId,jdbcType=BIGINT}"); + } + + if (record.getResType() != null) { + sql.SET("res_type = #{record.resType,jdbcType=INTEGER}"); + } + + if (record.getCoverPicture() != null) { + sql.SET("cover_picture = #{record.coverPicture,jdbcType=VARCHAR}"); + } + + if (record.getName() != null) { + sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); + } + + if (record.getResSize() != null) { + sql.SET("res_size = #{record.resSize,jdbcType=REAL}"); + } + + if (record.getResDuration() != null) { + sql.SET("res_duration = #{record.resDuration,jdbcType=INTEGER}"); + } + + if (record.getResUrl() != null) { + sql.SET("res_url = #{record.resUrl,jdbcType=VARCHAR}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getQuoteStatus() != null) { + sql.SET("quote_status = #{record.quoteStatus,jdbcType=INTEGER}"); + } + + if (record.getOpId() != null) { + sql.SET("op_id = #{record.opId,jdbcType=BIGINT}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("bs_resource"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("folder_id = #{record.folderId,jdbcType=BIGINT}"); + sql.SET("res_type = #{record.resType,jdbcType=INTEGER}"); + sql.SET("cover_picture = #{record.coverPicture,jdbcType=VARCHAR}"); + sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); + sql.SET("res_size = #{record.resSize,jdbcType=REAL}"); + sql.SET("res_duration = #{record.resDuration,jdbcType=INTEGER}"); + sql.SET("res_url = #{record.resUrl,jdbcType=VARCHAR}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("quote_status = #{record.quoteStatus,jdbcType=INTEGER}"); + sql.SET("op_id = #{record.opId,jdbcType=BIGINT}"); + sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}"); + sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}"); + sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}"); + + BsResourceExample example = (BsResourceExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(BsResource record) { + SQL sql = new SQL(); + sql.UPDATE("bs_resource"); + + if (record.getFolderId() != null) { + sql.SET("folder_id = #{folderId,jdbcType=BIGINT}"); + } + + if (record.getResType() != null) { + sql.SET("res_type = #{resType,jdbcType=INTEGER}"); + } + + if (record.getCoverPicture() != null) { + sql.SET("cover_picture = #{coverPicture,jdbcType=VARCHAR}"); + } + + if (record.getName() != null) { + sql.SET("`name` = #{name,jdbcType=VARCHAR}"); + } + + if (record.getResSize() != null) { + sql.SET("res_size = #{resSize,jdbcType=REAL}"); + } + + if (record.getResDuration() != null) { + sql.SET("res_duration = #{resDuration,jdbcType=INTEGER}"); + } + + if (record.getResUrl() != null) { + sql.SET("res_url = #{resUrl,jdbcType=VARCHAR}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getQuoteStatus() != null) { + sql.SET("quote_status = #{quoteStatus,jdbcType=INTEGER}"); + } + + if (record.getOpId() != null) { + sql.SET("op_id = #{opId,jdbcType=BIGINT}"); + } + + if (record.getExt1() != null) { + sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}"); + } + + if (record.getExt2() != null) { + sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}"); + } + + if (record.getExt3() != null) { + sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, BsResourceExample 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 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 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()); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighOrderMapper.java b/hai-service/src/main/java/com/hai/dao/HighOrderMapper.java index 3d0510c3..a3d8489a 100644 --- a/hai-service/src/main/java/com/hai/dao/HighOrderMapper.java +++ b/hai-service/src/main/java/com/hai/dao/HighOrderMapper.java @@ -7,6 +7,7 @@ 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; @@ -38,9 +39,9 @@ public interface HighOrderMapper extends HighOrderMapperExt { int deleteByPrimaryKey(Long id); @Insert({ - "insert into high_order (id, order_no, ", - "mem_discount_id, mem_discount_name, ", - "mem_id, mem_name, mem_phone, ", + "insert into high_order (order_no, mem_discount_id, ", + "mem_discount_name, mem_id, ", + "mem_name, mem_phone, ", "mem_card_id, mem_card_type, ", "mem_card_no, pay_model, ", "pay_type, pay_gold, ", @@ -54,9 +55,9 @@ public interface HighOrderMapper extends HighOrderMapperExt { "refund_content, refusal_refund_content, ", "Identification_code, ext_1, ", "ext_2, ext_3)", - "values (#{id,jdbcType=BIGINT}, #{orderNo,jdbcType=VARCHAR}, ", - "#{memDiscountId,jdbcType=BIGINT}, #{memDiscountName,jdbcType=VARCHAR}, ", - "#{memId,jdbcType=BIGINT}, #{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ", + "values (#{orderNo,jdbcType=VARCHAR}, #{memDiscountId,jdbcType=BIGINT}, ", + "#{memDiscountName,jdbcType=VARCHAR}, #{memId,jdbcType=BIGINT}, ", + "#{memName,jdbcType=VARCHAR}, #{memPhone,jdbcType=VARCHAR}, ", "#{memCardId,jdbcType=BIGINT}, #{memCardType,jdbcType=INTEGER}, ", "#{memCardNo,jdbcType=VARCHAR}, #{payModel,jdbcType=INTEGER}, ", "#{payType,jdbcType=INTEGER}, #{payGold,jdbcType=INTEGER}, ", @@ -71,9 +72,11 @@ public interface HighOrderMapper extends HighOrderMapperExt { "#{identificationCode,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ", "#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" }) + @Options(useGeneratedKeys=true,keyProperty="id") int insert(HighOrder record); @InsertProvider(type=HighOrderSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") int insertSelective(HighOrder record); @SelectProvider(type=HighOrderSqlProvider.class, method="selectByExample") diff --git a/hai-service/src/main/java/com/hai/dao/HighOrderSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighOrderSqlProvider.java index bcaa7021..10dd906d 100644 --- a/hai-service/src/main/java/com/hai/dao/HighOrderSqlProvider.java +++ b/hai-service/src/main/java/com/hai/dao/HighOrderSqlProvider.java @@ -28,10 +28,6 @@ public class HighOrderSqlProvider { SQL sql = new SQL(); sql.INSERT_INTO("high_order"); - if (record.getId() != null) { - sql.VALUES("id", "#{id,jdbcType=BIGINT}"); - } - if (record.getOrderNo() != null) { sql.VALUES("order_no", "#{orderNo,jdbcType=VARCHAR}"); } diff --git a/hai-service/src/main/java/com/hai/entity/BsResource.java b/hai-service/src/main/java/com/hai/entity/BsResource.java new file mode 100644 index 00000000..87132c63 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/BsResource.java @@ -0,0 +1,283 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.util.Date; + +/** + * bs_resource + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class BsResource implements Serializable { + /** + * 主键ID + */ + private Long id; + + /** + * 分组id + */ + private Long folderId; + + /** + * 素材类型 1:图片 2:视频 3:电子书 4:音频 + */ + private Integer resType; + + /** + * 封面图 + */ + private String coverPicture; + + /** + * 素材名称 + */ + private String name; + + /** + * 素材大小 + */ + private Float resSize; + + /** + * 视频时长 + */ + private Integer resDuration; + + /** + * 素材地址 + */ + private String resUrl; + + /** + * 状态 0:删除 1:可用 + */ + private Integer status; + + /** + * 上传时间 + */ + private Date createTime; + + /** + * 是否引用 0:未引用 1:已引用 + */ + private Integer quoteStatus; + + /** + * 操作人 + */ + private Long opId; + + /** + * ext_1 + */ + private String ext1; + + private String ext2; + + private String ext3; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getFolderId() { + return folderId; + } + + public void setFolderId(Long folderId) { + this.folderId = folderId; + } + + public Integer getResType() { + return resType; + } + + public void setResType(Integer resType) { + this.resType = resType; + } + + public String getCoverPicture() { + return coverPicture; + } + + public void setCoverPicture(String coverPicture) { + this.coverPicture = coverPicture; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Float getResSize() { + return resSize; + } + + public void setResSize(Float resSize) { + this.resSize = resSize; + } + + public Integer getResDuration() { + return resDuration; + } + + public void setResDuration(Integer resDuration) { + this.resDuration = resDuration; + } + + public String getResUrl() { + return resUrl; + } + + public void setResUrl(String resUrl) { + this.resUrl = resUrl; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getQuoteStatus() { + return quoteStatus; + } + + public void setQuoteStatus(Integer quoteStatus) { + this.quoteStatus = quoteStatus; + } + + public Long getOpId() { + return opId; + } + + public void setOpId(Long opId) { + this.opId = opId; + } + + public String getExt1() { + return ext1; + } + + public void setExt1(String ext1) { + this.ext1 = ext1; + } + + public String getExt2() { + return ext2; + } + + public void setExt2(String ext2) { + this.ext2 = ext2; + } + + public String getExt3() { + return ext3; + } + + public void setExt3(String ext3) { + this.ext3 = ext3; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + BsResource other = (BsResource) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getFolderId() == null ? other.getFolderId() == null : this.getFolderId().equals(other.getFolderId())) + && (this.getResType() == null ? other.getResType() == null : this.getResType().equals(other.getResType())) + && (this.getCoverPicture() == null ? other.getCoverPicture() == null : this.getCoverPicture().equals(other.getCoverPicture())) + && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) + && (this.getResSize() == null ? other.getResSize() == null : this.getResSize().equals(other.getResSize())) + && (this.getResDuration() == null ? other.getResDuration() == null : this.getResDuration().equals(other.getResDuration())) + && (this.getResUrl() == null ? other.getResUrl() == null : this.getResUrl().equals(other.getResUrl())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getQuoteStatus() == null ? other.getQuoteStatus() == null : this.getQuoteStatus().equals(other.getQuoteStatus())) + && (this.getOpId() == null ? other.getOpId() == null : this.getOpId().equals(other.getOpId())) + && (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1())) + && (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2())) + && (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getFolderId() == null) ? 0 : getFolderId().hashCode()); + result = prime * result + ((getResType() == null) ? 0 : getResType().hashCode()); + result = prime * result + ((getCoverPicture() == null) ? 0 : getCoverPicture().hashCode()); + result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); + result = prime * result + ((getResSize() == null) ? 0 : getResSize().hashCode()); + result = prime * result + ((getResDuration() == null) ? 0 : getResDuration().hashCode()); + result = prime * result + ((getResUrl() == null) ? 0 : getResUrl().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getQuoteStatus() == null) ? 0 : getQuoteStatus().hashCode()); + result = prime * result + ((getOpId() == null) ? 0 : getOpId().hashCode()); + result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode()); + result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode()); + result = prime * result + ((getExt3() == null) ? 0 : getExt3().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(", folderId=").append(folderId); + sb.append(", resType=").append(resType); + sb.append(", coverPicture=").append(coverPicture); + sb.append(", name=").append(name); + sb.append(", resSize=").append(resSize); + sb.append(", resDuration=").append(resDuration); + sb.append(", resUrl=").append(resUrl); + sb.append(", status=").append(status); + sb.append(", createTime=").append(createTime); + sb.append(", quoteStatus=").append(quoteStatus); + sb.append(", opId=").append(opId); + sb.append(", ext1=").append(ext1); + sb.append(", ext2=").append(ext2); + sb.append(", ext3=").append(ext3); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/BsResourceExample.java b/hai-service/src/main/java/com/hai/entity/BsResourceExample.java new file mode 100644 index 00000000..89a2e745 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/BsResourceExample.java @@ -0,0 +1,1183 @@ +package com.hai.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class BsResourceExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public BsResourceExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andFolderIdIsNull() { + addCriterion("folder_id is null"); + return (Criteria) this; + } + + public Criteria andFolderIdIsNotNull() { + addCriterion("folder_id is not null"); + return (Criteria) this; + } + + public Criteria andFolderIdEqualTo(Long value) { + addCriterion("folder_id =", value, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdNotEqualTo(Long value) { + addCriterion("folder_id <>", value, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdGreaterThan(Long value) { + addCriterion("folder_id >", value, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdGreaterThanOrEqualTo(Long value) { + addCriterion("folder_id >=", value, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdLessThan(Long value) { + addCriterion("folder_id <", value, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdLessThanOrEqualTo(Long value) { + addCriterion("folder_id <=", value, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdIn(List values) { + addCriterion("folder_id in", values, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdNotIn(List values) { + addCriterion("folder_id not in", values, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdBetween(Long value1, Long value2) { + addCriterion("folder_id between", value1, value2, "folderId"); + return (Criteria) this; + } + + public Criteria andFolderIdNotBetween(Long value1, Long value2) { + addCriterion("folder_id not between", value1, value2, "folderId"); + return (Criteria) this; + } + + public Criteria andResTypeIsNull() { + addCriterion("res_type is null"); + return (Criteria) this; + } + + public Criteria andResTypeIsNotNull() { + addCriterion("res_type is not null"); + return (Criteria) this; + } + + public Criteria andResTypeEqualTo(Integer value) { + addCriterion("res_type =", value, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeNotEqualTo(Integer value) { + addCriterion("res_type <>", value, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeGreaterThan(Integer value) { + addCriterion("res_type >", value, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("res_type >=", value, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeLessThan(Integer value) { + addCriterion("res_type <", value, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeLessThanOrEqualTo(Integer value) { + addCriterion("res_type <=", value, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeIn(List values) { + addCriterion("res_type in", values, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeNotIn(List values) { + addCriterion("res_type not in", values, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeBetween(Integer value1, Integer value2) { + addCriterion("res_type between", value1, value2, "resType"); + return (Criteria) this; + } + + public Criteria andResTypeNotBetween(Integer value1, Integer value2) { + addCriterion("res_type not between", value1, value2, "resType"); + return (Criteria) this; + } + + public Criteria andCoverPictureIsNull() { + addCriterion("cover_picture is null"); + return (Criteria) this; + } + + public Criteria andCoverPictureIsNotNull() { + addCriterion("cover_picture is not null"); + return (Criteria) this; + } + + public Criteria andCoverPictureEqualTo(String value) { + addCriterion("cover_picture =", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureNotEqualTo(String value) { + addCriterion("cover_picture <>", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureGreaterThan(String value) { + addCriterion("cover_picture >", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureGreaterThanOrEqualTo(String value) { + addCriterion("cover_picture >=", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureLessThan(String value) { + addCriterion("cover_picture <", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureLessThanOrEqualTo(String value) { + addCriterion("cover_picture <=", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureLike(String value) { + addCriterion("cover_picture like", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureNotLike(String value) { + addCriterion("cover_picture not like", value, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureIn(List values) { + addCriterion("cover_picture in", values, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureNotIn(List values) { + addCriterion("cover_picture not in", values, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureBetween(String value1, String value2) { + addCriterion("cover_picture between", value1, value2, "coverPicture"); + return (Criteria) this; + } + + public Criteria andCoverPictureNotBetween(String value1, String value2) { + addCriterion("cover_picture not between", value1, value2, "coverPicture"); + 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 values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andResSizeIsNull() { + addCriterion("res_size is null"); + return (Criteria) this; + } + + public Criteria andResSizeIsNotNull() { + addCriterion("res_size is not null"); + return (Criteria) this; + } + + public Criteria andResSizeEqualTo(Float value) { + addCriterion("res_size =", value, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeNotEqualTo(Float value) { + addCriterion("res_size <>", value, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeGreaterThan(Float value) { + addCriterion("res_size >", value, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeGreaterThanOrEqualTo(Float value) { + addCriterion("res_size >=", value, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeLessThan(Float value) { + addCriterion("res_size <", value, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeLessThanOrEqualTo(Float value) { + addCriterion("res_size <=", value, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeIn(List values) { + addCriterion("res_size in", values, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeNotIn(List values) { + addCriterion("res_size not in", values, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeBetween(Float value1, Float value2) { + addCriterion("res_size between", value1, value2, "resSize"); + return (Criteria) this; + } + + public Criteria andResSizeNotBetween(Float value1, Float value2) { + addCriterion("res_size not between", value1, value2, "resSize"); + return (Criteria) this; + } + + public Criteria andResDurationIsNull() { + addCriterion("res_duration is null"); + return (Criteria) this; + } + + public Criteria andResDurationIsNotNull() { + addCriterion("res_duration is not null"); + return (Criteria) this; + } + + public Criteria andResDurationEqualTo(Integer value) { + addCriterion("res_duration =", value, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationNotEqualTo(Integer value) { + addCriterion("res_duration <>", value, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationGreaterThan(Integer value) { + addCriterion("res_duration >", value, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationGreaterThanOrEqualTo(Integer value) { + addCriterion("res_duration >=", value, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationLessThan(Integer value) { + addCriterion("res_duration <", value, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationLessThanOrEqualTo(Integer value) { + addCriterion("res_duration <=", value, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationIn(List values) { + addCriterion("res_duration in", values, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationNotIn(List values) { + addCriterion("res_duration not in", values, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationBetween(Integer value1, Integer value2) { + addCriterion("res_duration between", value1, value2, "resDuration"); + return (Criteria) this; + } + + public Criteria andResDurationNotBetween(Integer value1, Integer value2) { + addCriterion("res_duration not between", value1, value2, "resDuration"); + return (Criteria) this; + } + + public Criteria andResUrlIsNull() { + addCriterion("res_url is null"); + return (Criteria) this; + } + + public Criteria andResUrlIsNotNull() { + addCriterion("res_url is not null"); + return (Criteria) this; + } + + public Criteria andResUrlEqualTo(String value) { + addCriterion("res_url =", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlNotEqualTo(String value) { + addCriterion("res_url <>", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlGreaterThan(String value) { + addCriterion("res_url >", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlGreaterThanOrEqualTo(String value) { + addCriterion("res_url >=", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlLessThan(String value) { + addCriterion("res_url <", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlLessThanOrEqualTo(String value) { + addCriterion("res_url <=", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlLike(String value) { + addCriterion("res_url like", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlNotLike(String value) { + addCriterion("res_url not like", value, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlIn(List values) { + addCriterion("res_url in", values, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlNotIn(List values) { + addCriterion("res_url not in", values, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlBetween(String value1, String value2) { + addCriterion("res_url between", value1, value2, "resUrl"); + return (Criteria) this; + } + + public Criteria andResUrlNotBetween(String value1, String value2) { + addCriterion("res_url not between", value1, value2, "resUrl"); + 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 values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List 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 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 andQuoteStatusIsNull() { + addCriterion("quote_status is null"); + return (Criteria) this; + } + + public Criteria andQuoteStatusIsNotNull() { + addCriterion("quote_status is not null"); + return (Criteria) this; + } + + public Criteria andQuoteStatusEqualTo(Integer value) { + addCriterion("quote_status =", value, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusNotEqualTo(Integer value) { + addCriterion("quote_status <>", value, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusGreaterThan(Integer value) { + addCriterion("quote_status >", value, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("quote_status >=", value, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusLessThan(Integer value) { + addCriterion("quote_status <", value, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusLessThanOrEqualTo(Integer value) { + addCriterion("quote_status <=", value, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusIn(List values) { + addCriterion("quote_status in", values, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusNotIn(List values) { + addCriterion("quote_status not in", values, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusBetween(Integer value1, Integer value2) { + addCriterion("quote_status between", value1, value2, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andQuoteStatusNotBetween(Integer value1, Integer value2) { + addCriterion("quote_status not between", value1, value2, "quoteStatus"); + return (Criteria) this; + } + + public Criteria andOpIdIsNull() { + addCriterion("op_id is null"); + return (Criteria) this; + } + + public Criteria andOpIdIsNotNull() { + addCriterion("op_id is not null"); + return (Criteria) this; + } + + public Criteria andOpIdEqualTo(Long value) { + addCriterion("op_id =", value, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdNotEqualTo(Long value) { + addCriterion("op_id <>", value, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdGreaterThan(Long value) { + addCriterion("op_id >", value, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdGreaterThanOrEqualTo(Long value) { + addCriterion("op_id >=", value, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdLessThan(Long value) { + addCriterion("op_id <", value, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdLessThanOrEqualTo(Long value) { + addCriterion("op_id <=", value, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdIn(List values) { + addCriterion("op_id in", values, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdNotIn(List values) { + addCriterion("op_id not in", values, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdBetween(Long value1, Long value2) { + addCriterion("op_id between", value1, value2, "opId"); + return (Criteria) this; + } + + public Criteria andOpIdNotBetween(Long value1, Long value2) { + addCriterion("op_id not between", value1, value2, "opId"); + return (Criteria) this; + } + + public Criteria andExt1IsNull() { + addCriterion("ext_1 is null"); + return (Criteria) this; + } + + public Criteria andExt1IsNotNull() { + addCriterion("ext_1 is not null"); + return (Criteria) this; + } + + public Criteria andExt1EqualTo(String value) { + addCriterion("ext_1 =", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotEqualTo(String value) { + addCriterion("ext_1 <>", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThan(String value) { + addCriterion("ext_1 >", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1GreaterThanOrEqualTo(String value) { + addCriterion("ext_1 >=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThan(String value) { + addCriterion("ext_1 <", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1LessThanOrEqualTo(String value) { + addCriterion("ext_1 <=", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Like(String value) { + addCriterion("ext_1 like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotLike(String value) { + addCriterion("ext_1 not like", value, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1In(List values) { + addCriterion("ext_1 in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotIn(List values) { + addCriterion("ext_1 not in", values, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1Between(String value1, String value2) { + addCriterion("ext_1 between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt1NotBetween(String value1, String value2) { + addCriterion("ext_1 not between", value1, value2, "ext1"); + return (Criteria) this; + } + + public Criteria andExt2IsNull() { + addCriterion("ext_2 is null"); + return (Criteria) this; + } + + public Criteria andExt2IsNotNull() { + addCriterion("ext_2 is not null"); + return (Criteria) this; + } + + public Criteria andExt2EqualTo(String value) { + addCriterion("ext_2 =", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotEqualTo(String value) { + addCriterion("ext_2 <>", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThan(String value) { + addCriterion("ext_2 >", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2GreaterThanOrEqualTo(String value) { + addCriterion("ext_2 >=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThan(String value) { + addCriterion("ext_2 <", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2LessThanOrEqualTo(String value) { + addCriterion("ext_2 <=", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Like(String value) { + addCriterion("ext_2 like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotLike(String value) { + addCriterion("ext_2 not like", value, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2In(List values) { + addCriterion("ext_2 in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotIn(List values) { + addCriterion("ext_2 not in", values, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2Between(String value1, String value2) { + addCriterion("ext_2 between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt2NotBetween(String value1, String value2) { + addCriterion("ext_2 not between", value1, value2, "ext2"); + return (Criteria) this; + } + + public Criteria andExt3IsNull() { + addCriterion("ext_3 is null"); + return (Criteria) this; + } + + public Criteria andExt3IsNotNull() { + addCriterion("ext_3 is not null"); + return (Criteria) this; + } + + public Criteria andExt3EqualTo(String value) { + addCriterion("ext_3 =", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotEqualTo(String value) { + addCriterion("ext_3 <>", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThan(String value) { + addCriterion("ext_3 >", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3GreaterThanOrEqualTo(String value) { + addCriterion("ext_3 >=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThan(String value) { + addCriterion("ext_3 <", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3LessThanOrEqualTo(String value) { + addCriterion("ext_3 <=", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Like(String value) { + addCriterion("ext_3 like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotLike(String value) { + addCriterion("ext_3 not like", value, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3In(List values) { + addCriterion("ext_3 in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotIn(List values) { + addCriterion("ext_3 not in", values, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3Between(String value1, String value2) { + addCriterion("ext_3 between", value1, value2, "ext3"); + return (Criteria) this; + } + + public Criteria andExt3NotBetween(String value1, String value2) { + addCriterion("ext_3 not between", value1, value2, "ext3"); + 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); + } + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/HighOrder.java b/hai-service/src/main/java/com/hai/entity/HighOrder.java index e9a2c0bb..911dd3ff 100644 --- a/hai-service/src/main/java/com/hai/entity/HighOrder.java +++ b/hai-service/src/main/java/com/hai/entity/HighOrder.java @@ -175,8 +175,6 @@ public class HighOrder implements Serializable { private HighDiscount highDiscount; - private static final long serialVersionUID = 1L; - public List getHighChildOrderList() { return highChildOrderList; } @@ -193,9 +191,7 @@ public class HighOrder implements Serializable { this.highDiscount = highDiscount; } - public static long getSerialVersionUID() { - return serialVersionUID; - } + private static final long serialVersionUID = 1L; public Long getId() { return id; @@ -591,4 +587,4 @@ public class HighOrder implements Serializable { sb.append("]"); return sb.toString(); } -} \ No newline at end of file +}