master
parent
9246614b3b
commit
dd88619ad1
@ -0,0 +1,84 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.CyymallAddress; |
||||
import com.hfkj.entity.CyymallAddressExample; |
||||
import java.util.List; |
||||
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.SelectProvider; |
||||
import org.apache.ibatis.annotations.UpdateProvider; |
||||
import org.apache.ibatis.type.JdbcType; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
/** |
||||
* |
||||
* 代码由工具生成,请勿修改!!! |
||||
* 如果需要扩展请在其父类进行扩展 |
||||
* |
||||
**/ |
||||
@Repository |
||||
public interface CyymallAddressMapper extends CyymallAddressMapperExt { |
||||
@SelectProvider(type=CyymallAddressSqlProvider.class, method="countByExample") |
||||
long countByExample(CyymallAddressExample example); |
||||
|
||||
@DeleteProvider(type=CyymallAddressSqlProvider.class, method="deleteByExample") |
||||
int deleteByExample(CyymallAddressExample example); |
||||
|
||||
@Insert({ |
||||
"insert into cyymall_address (store_id, user_id, ", |
||||
"`name`, mobile, province_id, ", |
||||
"province, city_id, ", |
||||
"city, district_id, ", |
||||
"district, detail, ", |
||||
"is_default, addtime, ", |
||||
"is_delete, latitude, ", |
||||
"longitude)", |
||||
"values (#{storeId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, ", |
||||
"#{name,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{provinceId,jdbcType=INTEGER}, ", |
||||
"#{province,jdbcType=VARCHAR}, #{cityId,jdbcType=INTEGER}, ", |
||||
"#{city,jdbcType=VARCHAR}, #{districtId,jdbcType=INTEGER}, ", |
||||
"#{district,jdbcType=VARCHAR}, #{detail,jdbcType=VARCHAR}, ", |
||||
"#{isDefault,jdbcType=SMALLINT}, #{addtime,jdbcType=INTEGER}, ", |
||||
"#{isDelete,jdbcType=SMALLINT}, #{latitude,jdbcType=VARCHAR}, ", |
||||
"#{longitude,jdbcType=VARCHAR})" |
||||
}) |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insert(CyymallAddress record); |
||||
|
||||
@InsertProvider(type=CyymallAddressSqlProvider.class, method="insertSelective") |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insertSelective(CyymallAddress record); |
||||
|
||||
@SelectProvider(type=CyymallAddressSqlProvider.class, method="selectByExample") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="store_id", property="storeId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="user_id", property="userId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="mobile", property="mobile", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="province_id", property="provinceId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="province", property="province", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="city_id", property="cityId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="city", property="city", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="district_id", property="districtId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="district", property="district", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="detail", property="detail", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="is_default", property="isDefault", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="addtime", property="addtime", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_delete", property="isDelete", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="latitude", property="latitude", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="longitude", property="longitude", jdbcType=JdbcType.VARCHAR) |
||||
}) |
||||
List<CyymallAddress> selectByExample(CyymallAddressExample example); |
||||
|
||||
@UpdateProvider(type=CyymallAddressSqlProvider.class, method="updateByExampleSelective") |
||||
int updateByExampleSelective(@Param("record") CyymallAddress record, @Param("example") CyymallAddressExample example); |
||||
|
||||
@UpdateProvider(type=CyymallAddressSqlProvider.class, method="updateByExample") |
||||
int updateByExample(@Param("record") CyymallAddress record, @Param("example") CyymallAddressExample example); |
||||
} |
@ -0,0 +1,7 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface CyymallAddressMapperExt { |
||||
} |
@ -0,0 +1,329 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.CyymallAddress; |
||||
import com.hfkj.entity.CyymallAddressExample.Criteria; |
||||
import com.hfkj.entity.CyymallAddressExample.Criterion; |
||||
import com.hfkj.entity.CyymallAddressExample; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import org.apache.ibatis.jdbc.SQL; |
||||
|
||||
public class CyymallAddressSqlProvider { |
||||
|
||||
public String countByExample(CyymallAddressExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.SELECT("count(*)").FROM("cyymall_address"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String deleteByExample(CyymallAddressExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.DELETE_FROM("cyymall_address"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String insertSelective(CyymallAddress record) { |
||||
SQL sql = new SQL(); |
||||
sql.INSERT_INTO("cyymall_address"); |
||||
|
||||
if (record.getStoreId() != null) { |
||||
sql.VALUES("store_id", "#{storeId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getUserId() != null) { |
||||
sql.VALUES("user_id", "#{userId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getName() != null) { |
||||
sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getMobile() != null) { |
||||
sql.VALUES("mobile", "#{mobile,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getProvinceId() != null) { |
||||
sql.VALUES("province_id", "#{provinceId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getProvince() != null) { |
||||
sql.VALUES("province", "#{province,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCityId() != null) { |
||||
sql.VALUES("city_id", "#{cityId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getCity() != null) { |
||||
sql.VALUES("city", "#{city,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getDistrictId() != null) { |
||||
sql.VALUES("district_id", "#{districtId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getDistrict() != null) { |
||||
sql.VALUES("district", "#{district,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getDetail() != null) { |
||||
sql.VALUES("detail", "#{detail,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsDefault() != null) { |
||||
sql.VALUES("is_default", "#{isDefault,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getAddtime() != null) { |
||||
sql.VALUES("addtime", "#{addtime,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsDelete() != null) { |
||||
sql.VALUES("is_delete", "#{isDelete,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getLatitude() != null) { |
||||
sql.VALUES("latitude", "#{latitude,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getLongitude() != null) { |
||||
sql.VALUES("longitude", "#{longitude,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExample(CyymallAddressExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("store_id"); |
||||
sql.SELECT("user_id"); |
||||
sql.SELECT("`name`"); |
||||
sql.SELECT("mobile"); |
||||
sql.SELECT("province_id"); |
||||
sql.SELECT("province"); |
||||
sql.SELECT("city_id"); |
||||
sql.SELECT("city"); |
||||
sql.SELECT("district_id"); |
||||
sql.SELECT("district"); |
||||
sql.SELECT("detail"); |
||||
sql.SELECT("is_default"); |
||||
sql.SELECT("addtime"); |
||||
sql.SELECT("is_delete"); |
||||
sql.SELECT("latitude"); |
||||
sql.SELECT("longitude"); |
||||
sql.FROM("cyymall_address"); |
||||
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) { |
||||
CyymallAddress record = (CyymallAddress) parameter.get("record"); |
||||
CyymallAddressExample example = (CyymallAddressExample) parameter.get("example"); |
||||
|
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_address"); |
||||
|
||||
if (record.getId() != null) { |
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getStoreId() != null) { |
||||
sql.SET("store_id = #{record.storeId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getUserId() != null) { |
||||
sql.SET("user_id = #{record.userId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getName() != null) { |
||||
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getMobile() != null) { |
||||
sql.SET("mobile = #{record.mobile,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getProvinceId() != null) { |
||||
sql.SET("province_id = #{record.provinceId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getProvince() != null) { |
||||
sql.SET("province = #{record.province,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCityId() != null) { |
||||
sql.SET("city_id = #{record.cityId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getCity() != null) { |
||||
sql.SET("city = #{record.city,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getDistrictId() != null) { |
||||
sql.SET("district_id = #{record.districtId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getDistrict() != null) { |
||||
sql.SET("district = #{record.district,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getDetail() != null) { |
||||
sql.SET("detail = #{record.detail,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsDefault() != null) { |
||||
sql.SET("is_default = #{record.isDefault,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getAddtime() != null) { |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsDelete() != null) { |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getLatitude() != null) { |
||||
sql.SET("latitude = #{record.latitude,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getLongitude() != null) { |
||||
sql.SET("longitude = #{record.longitude,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExample(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_address"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
sql.SET("store_id = #{record.storeId,jdbcType=INTEGER}"); |
||||
sql.SET("user_id = #{record.userId,jdbcType=INTEGER}"); |
||||
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); |
||||
sql.SET("mobile = #{record.mobile,jdbcType=VARCHAR}"); |
||||
sql.SET("province_id = #{record.provinceId,jdbcType=INTEGER}"); |
||||
sql.SET("province = #{record.province,jdbcType=VARCHAR}"); |
||||
sql.SET("city_id = #{record.cityId,jdbcType=INTEGER}"); |
||||
sql.SET("city = #{record.city,jdbcType=VARCHAR}"); |
||||
sql.SET("district_id = #{record.districtId,jdbcType=INTEGER}"); |
||||
sql.SET("district = #{record.district,jdbcType=VARCHAR}"); |
||||
sql.SET("detail = #{record.detail,jdbcType=VARCHAR}"); |
||||
sql.SET("is_default = #{record.isDefault,jdbcType=SMALLINT}"); |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
sql.SET("latitude = #{record.latitude,jdbcType=VARCHAR}"); |
||||
sql.SET("longitude = #{record.longitude,jdbcType=VARCHAR}"); |
||||
|
||||
CyymallAddressExample example = (CyymallAddressExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
protected void applyWhere(SQL sql, CyymallAddressExample 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,255 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.CyymallGoods; |
||||
import com.hfkj.entity.CyymallGoodsExample; |
||||
import com.hfkj.entity.CyymallGoodsWithBLOBs; |
||||
import java.util.List; |
||||
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.SelectProvider; |
||||
import org.apache.ibatis.annotations.UpdateProvider; |
||||
import org.apache.ibatis.type.JdbcType; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
/** |
||||
* |
||||
* 代码由工具生成,请勿修改!!! |
||||
* 如果需要扩展请在其父类进行扩展 |
||||
* |
||||
**/ |
||||
@Repository |
||||
public interface CyymallGoodsMapper extends CyymallGoodsMapperExt { |
||||
@SelectProvider(type=CyymallGoodsSqlProvider.class, method="countByExample") |
||||
long countByExample(CyymallGoodsExample example); |
||||
|
||||
@DeleteProvider(type=CyymallGoodsSqlProvider.class, method="deleteByExample") |
||||
int deleteByExample(CyymallGoodsExample example); |
||||
|
||||
@Insert({ |
||||
"insert into cyymall_goods (store_id, `name`, ", |
||||
"price, original_price, ", |
||||
"cat_id, `status`, ", |
||||
"addtime, is_delete, ", |
||||
"service, sort, virtual_sales, ", |
||||
"video_url, unit, ", |
||||
"individual_share, share_commission_first, ", |
||||
"share_commission_second, share_commission_third, ", |
||||
"weight, freight, ", |
||||
"use_attr, share_type, ", |
||||
"quick_purchase, hot_cakes, ", |
||||
"cost_price, member_discount, ", |
||||
"rebate, mch_id, goods_num, ", |
||||
"mch_sort, confine_count, ", |
||||
"is_level, `type`, ", |
||||
"is_negotiable, attr_setting_type, ", |
||||
"views, supplier_price, ", |
||||
"supplier_goods_id, supplier_id, ", |
||||
"goods_share_title, goods_share_logo, ", |
||||
"goods_share_desc, is_examine, ", |
||||
"dabao_price, brand_id, ", |
||||
"key_word, buying_method, ", |
||||
"buying_method_level, home_block_id, ", |
||||
"new_individual_share, new_attr_setting_type, ", |
||||
"share_commission_base, is_sjht, ", |
||||
"sjht_proIdent, is_oil, ", |
||||
"oil_couTypeCode, is_abholung, ", |
||||
"is_transnational, goods_transfer_rate, ", |
||||
"oil_discount, oil_type, ", |
||||
"detail, attr, ", |
||||
"cover_pic, full_cut, ", |
||||
"integral, shop_id, ", |
||||
"verify_card_id)", |
||||
"values (#{storeId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, ", |
||||
"#{price,jdbcType=DECIMAL}, #{originalPrice,jdbcType=DECIMAL}, ", |
||||
"#{catId,jdbcType=INTEGER}, #{status,jdbcType=SMALLINT}, ", |
||||
"#{addtime,jdbcType=INTEGER}, #{isDelete,jdbcType=SMALLINT}, ", |
||||
"#{service,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{virtualSales,jdbcType=INTEGER}, ", |
||||
"#{videoUrl,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, ", |
||||
"#{individualShare,jdbcType=SMALLINT}, #{shareCommissionFirst,jdbcType=DECIMAL}, ", |
||||
"#{shareCommissionSecond,jdbcType=DECIMAL}, #{shareCommissionThird,jdbcType=DECIMAL}, ", |
||||
"#{weight,jdbcType=DOUBLE}, #{freight,jdbcType=INTEGER}, ", |
||||
"#{useAttr,jdbcType=SMALLINT}, #{shareType,jdbcType=INTEGER}, ", |
||||
"#{quickPurchase,jdbcType=SMALLINT}, #{hotCakes,jdbcType=SMALLINT}, ", |
||||
"#{costPrice,jdbcType=DECIMAL}, #{memberDiscount,jdbcType=SMALLINT}, ", |
||||
"#{rebate,jdbcType=DECIMAL}, #{mchId,jdbcType=INTEGER}, #{goodsNum,jdbcType=INTEGER}, ", |
||||
"#{mchSort,jdbcType=INTEGER}, #{confineCount,jdbcType=INTEGER}, ", |
||||
"#{isLevel,jdbcType=SMALLINT}, #{type,jdbcType=SMALLINT}, ", |
||||
"#{isNegotiable,jdbcType=SMALLINT}, #{attrSettingType,jdbcType=BIT}, ", |
||||
"#{views,jdbcType=BIGINT}, #{supplierPrice,jdbcType=DECIMAL}, ", |
||||
"#{supplierGoodsId,jdbcType=INTEGER}, #{supplierId,jdbcType=INTEGER}, ", |
||||
"#{goodsShareTitle,jdbcType=VARCHAR}, #{goodsShareLogo,jdbcType=VARCHAR}, ", |
||||
"#{goodsShareDesc,jdbcType=VARCHAR}, #{isExamine,jdbcType=INTEGER}, ", |
||||
"#{dabaoPrice,jdbcType=DECIMAL}, #{brandId,jdbcType=INTEGER}, ", |
||||
"#{keyWord,jdbcType=VARCHAR}, #{buyingMethod,jdbcType=INTEGER}, ", |
||||
"#{buyingMethodLevel,jdbcType=INTEGER}, #{homeBlockId,jdbcType=INTEGER}, ", |
||||
"#{newIndividualShare,jdbcType=INTEGER}, #{newAttrSettingType,jdbcType=INTEGER}, ", |
||||
"#{shareCommissionBase,jdbcType=DECIMAL}, #{isSjht,jdbcType=SMALLINT}, ", |
||||
"#{sjhtProident,jdbcType=VARCHAR}, #{isOil,jdbcType=SMALLINT}, ", |
||||
"#{oilCoutypecode,jdbcType=VARCHAR}, #{isAbholung,jdbcType=SMALLINT}, ", |
||||
"#{isTransnational,jdbcType=SMALLINT}, #{goodsTransferRate,jdbcType=INTEGER}, ", |
||||
"#{oilDiscount,jdbcType=INTEGER}, #{oilType,jdbcType=INTEGER}, ", |
||||
"#{detail,jdbcType=LONGVARCHAR}, #{attr,jdbcType=LONGVARCHAR}, ", |
||||
"#{coverPic,jdbcType=LONGVARCHAR}, #{fullCut,jdbcType=LONGVARCHAR}, ", |
||||
"#{integral,jdbcType=LONGVARCHAR}, #{shopId,jdbcType=LONGVARCHAR}, ", |
||||
"#{verifyCardId,jdbcType=LONGVARCHAR})" |
||||
}) |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insert(CyymallGoodsWithBLOBs record); |
||||
|
||||
@InsertProvider(type=CyymallGoodsSqlProvider.class, method="insertSelective") |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insertSelective(CyymallGoodsWithBLOBs record); |
||||
|
||||
@SelectProvider(type=CyymallGoodsSqlProvider.class, method="selectByExampleWithBLOBs") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="store_id", property="storeId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="cat_id", property="catId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="status", property="status", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="addtime", property="addtime", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_delete", property="isDelete", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="service", property="service", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="virtual_sales", property="virtualSales", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="video_url", property="videoUrl", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="unit", property="unit", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="individual_share", property="individualShare", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="share_commission_first", property="shareCommissionFirst", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="share_commission_second", property="shareCommissionSecond", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="share_commission_third", property="shareCommissionThird", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="weight", property="weight", jdbcType=JdbcType.DOUBLE), |
||||
@Result(column="freight", property="freight", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="use_attr", property="useAttr", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="share_type", property="shareType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="quick_purchase", property="quickPurchase", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="hot_cakes", property="hotCakes", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="member_discount", property="memberDiscount", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="rebate", property="rebate", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="mch_id", property="mchId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="goods_num", property="goodsNum", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="mch_sort", property="mchSort", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="confine_count", property="confineCount", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_level", property="isLevel", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="type", property="type", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="is_negotiable", property="isNegotiable", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="attr_setting_type", property="attrSettingType", jdbcType=JdbcType.BIT), |
||||
@Result(column="views", property="views", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="supplier_price", property="supplierPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="supplier_goods_id", property="supplierGoodsId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="supplier_id", property="supplierId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="goods_share_title", property="goodsShareTitle", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="goods_share_logo", property="goodsShareLogo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="goods_share_desc", property="goodsShareDesc", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="is_examine", property="isExamine", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="dabao_price", property="dabaoPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="key_word", property="keyWord", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="buying_method", property="buyingMethod", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="buying_method_level", property="buyingMethodLevel", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="home_block_id", property="homeBlockId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="new_individual_share", property="newIndividualShare", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="new_attr_setting_type", property="newAttrSettingType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="share_commission_base", property="shareCommissionBase", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="is_sjht", property="isSjht", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="sjht_proIdent", property="sjhtProident", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="is_oil", property="isOil", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="oil_couTypeCode", property="oilCoutypecode", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="is_abholung", property="isAbholung", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="is_transnational", property="isTransnational", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="goods_transfer_rate", property="goodsTransferRate", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="oil_discount", property="oilDiscount", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="oil_type", property="oilType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="detail", property="detail", jdbcType=JdbcType.LONGVARCHAR), |
||||
@Result(column="attr", property="attr", jdbcType=JdbcType.LONGVARCHAR), |
||||
@Result(column="cover_pic", property="coverPic", jdbcType=JdbcType.LONGVARCHAR), |
||||
@Result(column="full_cut", property="fullCut", jdbcType=JdbcType.LONGVARCHAR), |
||||
@Result(column="integral", property="integral", jdbcType=JdbcType.LONGVARCHAR), |
||||
@Result(column="shop_id", property="shopId", jdbcType=JdbcType.LONGVARCHAR), |
||||
@Result(column="verify_card_id", property="verifyCardId", jdbcType=JdbcType.LONGVARCHAR) |
||||
}) |
||||
List<CyymallGoodsWithBLOBs> selectByExampleWithBLOBs(CyymallGoodsExample example); |
||||
|
||||
@SelectProvider(type=CyymallGoodsSqlProvider.class, method="selectByExample") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="store_id", property="storeId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="cat_id", property="catId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="status", property="status", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="addtime", property="addtime", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_delete", property="isDelete", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="service", property="service", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="virtual_sales", property="virtualSales", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="video_url", property="videoUrl", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="unit", property="unit", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="individual_share", property="individualShare", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="share_commission_first", property="shareCommissionFirst", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="share_commission_second", property="shareCommissionSecond", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="share_commission_third", property="shareCommissionThird", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="weight", property="weight", jdbcType=JdbcType.DOUBLE), |
||||
@Result(column="freight", property="freight", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="use_attr", property="useAttr", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="share_type", property="shareType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="quick_purchase", property="quickPurchase", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="hot_cakes", property="hotCakes", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="member_discount", property="memberDiscount", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="rebate", property="rebate", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="mch_id", property="mchId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="goods_num", property="goodsNum", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="mch_sort", property="mchSort", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="confine_count", property="confineCount", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_level", property="isLevel", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="type", property="type", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="is_negotiable", property="isNegotiable", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="attr_setting_type", property="attrSettingType", jdbcType=JdbcType.BIT), |
||||
@Result(column="views", property="views", jdbcType=JdbcType.BIGINT), |
||||
@Result(column="supplier_price", property="supplierPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="supplier_goods_id", property="supplierGoodsId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="supplier_id", property="supplierId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="goods_share_title", property="goodsShareTitle", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="goods_share_logo", property="goodsShareLogo", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="goods_share_desc", property="goodsShareDesc", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="is_examine", property="isExamine", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="dabao_price", property="dabaoPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="key_word", property="keyWord", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="buying_method", property="buyingMethod", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="buying_method_level", property="buyingMethodLevel", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="home_block_id", property="homeBlockId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="new_individual_share", property="newIndividualShare", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="new_attr_setting_type", property="newAttrSettingType", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="share_commission_base", property="shareCommissionBase", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="is_sjht", property="isSjht", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="sjht_proIdent", property="sjhtProident", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="is_oil", property="isOil", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="oil_couTypeCode", property="oilCoutypecode", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="is_abholung", property="isAbholung", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="is_transnational", property="isTransnational", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="goods_transfer_rate", property="goodsTransferRate", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="oil_discount", property="oilDiscount", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="oil_type", property="oilType", jdbcType=JdbcType.INTEGER) |
||||
}) |
||||
List<CyymallGoods> selectByExample(CyymallGoodsExample example); |
||||
|
||||
@UpdateProvider(type=CyymallGoodsSqlProvider.class, method="updateByExampleSelective") |
||||
int updateByExampleSelective(@Param("record") CyymallGoodsWithBLOBs record, @Param("example") CyymallGoodsExample example); |
||||
|
||||
@UpdateProvider(type=CyymallGoodsSqlProvider.class, method="updateByExampleWithBLOBs") |
||||
int updateByExampleWithBLOBs(@Param("record") CyymallGoodsWithBLOBs record, @Param("example") CyymallGoodsExample example); |
||||
|
||||
@UpdateProvider(type=CyymallGoodsSqlProvider.class, method="updateByExample") |
||||
int updateByExample(@Param("record") CyymallGoods record, @Param("example") CyymallGoodsExample example); |
||||
} |
@ -0,0 +1,7 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface CyymallGoodsMapperExt { |
||||
} |
@ -0,0 +1,987 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.CyymallGoodsExample.Criteria; |
||||
import com.hfkj.entity.CyymallGoodsExample.Criterion; |
||||
import com.hfkj.entity.CyymallGoodsExample; |
||||
import com.hfkj.entity.CyymallGoodsWithBLOBs; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import org.apache.ibatis.jdbc.SQL; |
||||
|
||||
public class CyymallGoodsSqlProvider { |
||||
|
||||
public String countByExample(CyymallGoodsExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.SELECT("count(*)").FROM("cyymall_goods"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String deleteByExample(CyymallGoodsExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.DELETE_FROM("cyymall_goods"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String insertSelective(CyymallGoodsWithBLOBs record) { |
||||
SQL sql = new SQL(); |
||||
sql.INSERT_INTO("cyymall_goods"); |
||||
|
||||
if (record.getStoreId() != null) { |
||||
sql.VALUES("store_id", "#{storeId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getName() != null) { |
||||
sql.VALUES("`name`", "#{name,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPrice() != null) { |
||||
sql.VALUES("price", "#{price,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getOriginalPrice() != null) { |
||||
sql.VALUES("original_price", "#{originalPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getCatId() != null) { |
||||
sql.VALUES("cat_id", "#{catId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.VALUES("`status`", "#{status,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getAddtime() != null) { |
||||
sql.VALUES("addtime", "#{addtime,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsDelete() != null) { |
||||
sql.VALUES("is_delete", "#{isDelete,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getService() != null) { |
||||
sql.VALUES("service", "#{service,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSort() != null) { |
||||
sql.VALUES("sort", "#{sort,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getVirtualSales() != null) { |
||||
sql.VALUES("virtual_sales", "#{virtualSales,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getVideoUrl() != null) { |
||||
sql.VALUES("video_url", "#{videoUrl,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getUnit() != null) { |
||||
sql.VALUES("unit", "#{unit,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIndividualShare() != null) { |
||||
sql.VALUES("individual_share", "#{individualShare,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionFirst() != null) { |
||||
sql.VALUES("share_commission_first", "#{shareCommissionFirst,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionSecond() != null) { |
||||
sql.VALUES("share_commission_second", "#{shareCommissionSecond,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionThird() != null) { |
||||
sql.VALUES("share_commission_third", "#{shareCommissionThird,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getWeight() != null) { |
||||
sql.VALUES("weight", "#{weight,jdbcType=DOUBLE}"); |
||||
} |
||||
|
||||
if (record.getFreight() != null) { |
||||
sql.VALUES("freight", "#{freight,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getUseAttr() != null) { |
||||
sql.VALUES("use_attr", "#{useAttr,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getShareType() != null) { |
||||
sql.VALUES("share_type", "#{shareType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getQuickPurchase() != null) { |
||||
sql.VALUES("quick_purchase", "#{quickPurchase,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getHotCakes() != null) { |
||||
sql.VALUES("hot_cakes", "#{hotCakes,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getCostPrice() != null) { |
||||
sql.VALUES("cost_price", "#{costPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getMemberDiscount() != null) { |
||||
sql.VALUES("member_discount", "#{memberDiscount,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getRebate() != null) { |
||||
sql.VALUES("rebate", "#{rebate,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getMchId() != null) { |
||||
sql.VALUES("mch_id", "#{mchId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGoodsNum() != null) { |
||||
sql.VALUES("goods_num", "#{goodsNum,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getMchSort() != null) { |
||||
sql.VALUES("mch_sort", "#{mchSort,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getConfineCount() != null) { |
||||
sql.VALUES("confine_count", "#{confineCount,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsLevel() != null) { |
||||
sql.VALUES("is_level", "#{isLevel,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getType() != null) { |
||||
sql.VALUES("`type`", "#{type,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getIsNegotiable() != null) { |
||||
sql.VALUES("is_negotiable", "#{isNegotiable,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getAttrSettingType() != null) { |
||||
sql.VALUES("attr_setting_type", "#{attrSettingType,jdbcType=BIT}"); |
||||
} |
||||
|
||||
if (record.getViews() != null) { |
||||
sql.VALUES("views", "#{views,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getSupplierPrice() != null) { |
||||
sql.VALUES("supplier_price", "#{supplierPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getSupplierGoodsId() != null) { |
||||
sql.VALUES("supplier_goods_id", "#{supplierGoodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getSupplierId() != null) { |
||||
sql.VALUES("supplier_id", "#{supplierId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGoodsShareTitle() != null) { |
||||
sql.VALUES("goods_share_title", "#{goodsShareTitle,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getGoodsShareLogo() != null) { |
||||
sql.VALUES("goods_share_logo", "#{goodsShareLogo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getGoodsShareDesc() != null) { |
||||
sql.VALUES("goods_share_desc", "#{goodsShareDesc,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsExamine() != null) { |
||||
sql.VALUES("is_examine", "#{isExamine,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getDabaoPrice() != null) { |
||||
sql.VALUES("dabao_price", "#{dabaoPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getBrandId() != null) { |
||||
sql.VALUES("brand_id", "#{brandId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getKeyWord() != null) { |
||||
sql.VALUES("key_word", "#{keyWord,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBuyingMethod() != null) { |
||||
sql.VALUES("buying_method", "#{buyingMethod,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getBuyingMethodLevel() != null) { |
||||
sql.VALUES("buying_method_level", "#{buyingMethodLevel,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getHomeBlockId() != null) { |
||||
sql.VALUES("home_block_id", "#{homeBlockId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getNewIndividualShare() != null) { |
||||
sql.VALUES("new_individual_share", "#{newIndividualShare,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getNewAttrSettingType() != null) { |
||||
sql.VALUES("new_attr_setting_type", "#{newAttrSettingType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionBase() != null) { |
||||
sql.VALUES("share_commission_base", "#{shareCommissionBase,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getIsSjht() != null) { |
||||
sql.VALUES("is_sjht", "#{isSjht,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getSjhtProident() != null) { |
||||
sql.VALUES("sjht_proIdent", "#{sjhtProident,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsOil() != null) { |
||||
sql.VALUES("is_oil", "#{isOil,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getOilCoutypecode() != null) { |
||||
sql.VALUES("oil_couTypeCode", "#{oilCoutypecode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsAbholung() != null) { |
||||
sql.VALUES("is_abholung", "#{isAbholung,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getIsTransnational() != null) { |
||||
sql.VALUES("is_transnational", "#{isTransnational,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getGoodsTransferRate() != null) { |
||||
sql.VALUES("goods_transfer_rate", "#{goodsTransferRate,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getOilDiscount() != null) { |
||||
sql.VALUES("oil_discount", "#{oilDiscount,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getOilType() != null) { |
||||
sql.VALUES("oil_type", "#{oilType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getDetail() != null) { |
||||
sql.VALUES("detail", "#{detail,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getAttr() != null) { |
||||
sql.VALUES("attr", "#{attr,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCoverPic() != null) { |
||||
sql.VALUES("cover_pic", "#{coverPic,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getFullCut() != null) { |
||||
sql.VALUES("full_cut", "#{fullCut,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIntegral() != null) { |
||||
sql.VALUES("integral", "#{integral,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getShopId() != null) { |
||||
sql.VALUES("shop_id", "#{shopId,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getVerifyCardId() != null) { |
||||
sql.VALUES("verify_card_id", "#{verifyCardId,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExampleWithBLOBs(CyymallGoodsExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("store_id"); |
||||
sql.SELECT("`name`"); |
||||
sql.SELECT("price"); |
||||
sql.SELECT("original_price"); |
||||
sql.SELECT("cat_id"); |
||||
sql.SELECT("`status`"); |
||||
sql.SELECT("addtime"); |
||||
sql.SELECT("is_delete"); |
||||
sql.SELECT("service"); |
||||
sql.SELECT("sort"); |
||||
sql.SELECT("virtual_sales"); |
||||
sql.SELECT("video_url"); |
||||
sql.SELECT("unit"); |
||||
sql.SELECT("individual_share"); |
||||
sql.SELECT("share_commission_first"); |
||||
sql.SELECT("share_commission_second"); |
||||
sql.SELECT("share_commission_third"); |
||||
sql.SELECT("weight"); |
||||
sql.SELECT("freight"); |
||||
sql.SELECT("use_attr"); |
||||
sql.SELECT("share_type"); |
||||
sql.SELECT("quick_purchase"); |
||||
sql.SELECT("hot_cakes"); |
||||
sql.SELECT("cost_price"); |
||||
sql.SELECT("member_discount"); |
||||
sql.SELECT("rebate"); |
||||
sql.SELECT("mch_id"); |
||||
sql.SELECT("goods_num"); |
||||
sql.SELECT("mch_sort"); |
||||
sql.SELECT("confine_count"); |
||||
sql.SELECT("is_level"); |
||||
sql.SELECT("`type`"); |
||||
sql.SELECT("is_negotiable"); |
||||
sql.SELECT("attr_setting_type"); |
||||
sql.SELECT("views"); |
||||
sql.SELECT("supplier_price"); |
||||
sql.SELECT("supplier_goods_id"); |
||||
sql.SELECT("supplier_id"); |
||||
sql.SELECT("goods_share_title"); |
||||
sql.SELECT("goods_share_logo"); |
||||
sql.SELECT("goods_share_desc"); |
||||
sql.SELECT("is_examine"); |
||||
sql.SELECT("dabao_price"); |
||||
sql.SELECT("brand_id"); |
||||
sql.SELECT("key_word"); |
||||
sql.SELECT("buying_method"); |
||||
sql.SELECT("buying_method_level"); |
||||
sql.SELECT("home_block_id"); |
||||
sql.SELECT("new_individual_share"); |
||||
sql.SELECT("new_attr_setting_type"); |
||||
sql.SELECT("share_commission_base"); |
||||
sql.SELECT("is_sjht"); |
||||
sql.SELECT("sjht_proIdent"); |
||||
sql.SELECT("is_oil"); |
||||
sql.SELECT("oil_couTypeCode"); |
||||
sql.SELECT("is_abholung"); |
||||
sql.SELECT("is_transnational"); |
||||
sql.SELECT("goods_transfer_rate"); |
||||
sql.SELECT("oil_discount"); |
||||
sql.SELECT("oil_type"); |
||||
sql.SELECT("detail"); |
||||
sql.SELECT("attr"); |
||||
sql.SELECT("cover_pic"); |
||||
sql.SELECT("full_cut"); |
||||
sql.SELECT("integral"); |
||||
sql.SELECT("shop_id"); |
||||
sql.SELECT("verify_card_id"); |
||||
sql.FROM("cyymall_goods"); |
||||
applyWhere(sql, example, false); |
||||
|
||||
if (example != null && example.getOrderByClause() != null) { |
||||
sql.ORDER_BY(example.getOrderByClause()); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExample(CyymallGoodsExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("store_id"); |
||||
sql.SELECT("`name`"); |
||||
sql.SELECT("price"); |
||||
sql.SELECT("original_price"); |
||||
sql.SELECT("cat_id"); |
||||
sql.SELECT("`status`"); |
||||
sql.SELECT("addtime"); |
||||
sql.SELECT("is_delete"); |
||||
sql.SELECT("service"); |
||||
sql.SELECT("sort"); |
||||
sql.SELECT("virtual_sales"); |
||||
sql.SELECT("video_url"); |
||||
sql.SELECT("unit"); |
||||
sql.SELECT("individual_share"); |
||||
sql.SELECT("share_commission_first"); |
||||
sql.SELECT("share_commission_second"); |
||||
sql.SELECT("share_commission_third"); |
||||
sql.SELECT("weight"); |
||||
sql.SELECT("freight"); |
||||
sql.SELECT("use_attr"); |
||||
sql.SELECT("share_type"); |
||||
sql.SELECT("quick_purchase"); |
||||
sql.SELECT("hot_cakes"); |
||||
sql.SELECT("cost_price"); |
||||
sql.SELECT("member_discount"); |
||||
sql.SELECT("rebate"); |
||||
sql.SELECT("mch_id"); |
||||
sql.SELECT("goods_num"); |
||||
sql.SELECT("mch_sort"); |
||||
sql.SELECT("confine_count"); |
||||
sql.SELECT("is_level"); |
||||
sql.SELECT("`type`"); |
||||
sql.SELECT("is_negotiable"); |
||||
sql.SELECT("attr_setting_type"); |
||||
sql.SELECT("views"); |
||||
sql.SELECT("supplier_price"); |
||||
sql.SELECT("supplier_goods_id"); |
||||
sql.SELECT("supplier_id"); |
||||
sql.SELECT("goods_share_title"); |
||||
sql.SELECT("goods_share_logo"); |
||||
sql.SELECT("goods_share_desc"); |
||||
sql.SELECT("is_examine"); |
||||
sql.SELECT("dabao_price"); |
||||
sql.SELECT("brand_id"); |
||||
sql.SELECT("key_word"); |
||||
sql.SELECT("buying_method"); |
||||
sql.SELECT("buying_method_level"); |
||||
sql.SELECT("home_block_id"); |
||||
sql.SELECT("new_individual_share"); |
||||
sql.SELECT("new_attr_setting_type"); |
||||
sql.SELECT("share_commission_base"); |
||||
sql.SELECT("is_sjht"); |
||||
sql.SELECT("sjht_proIdent"); |
||||
sql.SELECT("is_oil"); |
||||
sql.SELECT("oil_couTypeCode"); |
||||
sql.SELECT("is_abholung"); |
||||
sql.SELECT("is_transnational"); |
||||
sql.SELECT("goods_transfer_rate"); |
||||
sql.SELECT("oil_discount"); |
||||
sql.SELECT("oil_type"); |
||||
sql.FROM("cyymall_goods"); |
||||
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) { |
||||
CyymallGoodsWithBLOBs record = (CyymallGoodsWithBLOBs) parameter.get("record"); |
||||
CyymallGoodsExample example = (CyymallGoodsExample) parameter.get("example"); |
||||
|
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_goods"); |
||||
|
||||
if (record.getId() != null) { |
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getStoreId() != null) { |
||||
sql.SET("store_id = #{record.storeId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getName() != null) { |
||||
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getPrice() != null) { |
||||
sql.SET("price = #{record.price,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getOriginalPrice() != null) { |
||||
sql.SET("original_price = #{record.originalPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getCatId() != null) { |
||||
sql.SET("cat_id = #{record.catId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getStatus() != null) { |
||||
sql.SET("`status` = #{record.status,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getAddtime() != null) { |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsDelete() != null) { |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getService() != null) { |
||||
sql.SET("service = #{record.service,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSort() != null) { |
||||
sql.SET("sort = #{record.sort,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getVirtualSales() != null) { |
||||
sql.SET("virtual_sales = #{record.virtualSales,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getVideoUrl() != null) { |
||||
sql.SET("video_url = #{record.videoUrl,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getUnit() != null) { |
||||
sql.SET("unit = #{record.unit,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIndividualShare() != null) { |
||||
sql.SET("individual_share = #{record.individualShare,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionFirst() != null) { |
||||
sql.SET("share_commission_first = #{record.shareCommissionFirst,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionSecond() != null) { |
||||
sql.SET("share_commission_second = #{record.shareCommissionSecond,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionThird() != null) { |
||||
sql.SET("share_commission_third = #{record.shareCommissionThird,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getWeight() != null) { |
||||
sql.SET("weight = #{record.weight,jdbcType=DOUBLE}"); |
||||
} |
||||
|
||||
if (record.getFreight() != null) { |
||||
sql.SET("freight = #{record.freight,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getUseAttr() != null) { |
||||
sql.SET("use_attr = #{record.useAttr,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getShareType() != null) { |
||||
sql.SET("share_type = #{record.shareType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getQuickPurchase() != null) { |
||||
sql.SET("quick_purchase = #{record.quickPurchase,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getHotCakes() != null) { |
||||
sql.SET("hot_cakes = #{record.hotCakes,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getCostPrice() != null) { |
||||
sql.SET("cost_price = #{record.costPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getMemberDiscount() != null) { |
||||
sql.SET("member_discount = #{record.memberDiscount,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getRebate() != null) { |
||||
sql.SET("rebate = #{record.rebate,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getMchId() != null) { |
||||
sql.SET("mch_id = #{record.mchId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGoodsNum() != null) { |
||||
sql.SET("goods_num = #{record.goodsNum,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getMchSort() != null) { |
||||
sql.SET("mch_sort = #{record.mchSort,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getConfineCount() != null) { |
||||
sql.SET("confine_count = #{record.confineCount,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsLevel() != null) { |
||||
sql.SET("is_level = #{record.isLevel,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getType() != null) { |
||||
sql.SET("`type` = #{record.type,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getIsNegotiable() != null) { |
||||
sql.SET("is_negotiable = #{record.isNegotiable,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getAttrSettingType() != null) { |
||||
sql.SET("attr_setting_type = #{record.attrSettingType,jdbcType=BIT}"); |
||||
} |
||||
|
||||
if (record.getViews() != null) { |
||||
sql.SET("views = #{record.views,jdbcType=BIGINT}"); |
||||
} |
||||
|
||||
if (record.getSupplierPrice() != null) { |
||||
sql.SET("supplier_price = #{record.supplierPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getSupplierGoodsId() != null) { |
||||
sql.SET("supplier_goods_id = #{record.supplierGoodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getSupplierId() != null) { |
||||
sql.SET("supplier_id = #{record.supplierId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGoodsShareTitle() != null) { |
||||
sql.SET("goods_share_title = #{record.goodsShareTitle,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getGoodsShareLogo() != null) { |
||||
sql.SET("goods_share_logo = #{record.goodsShareLogo,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getGoodsShareDesc() != null) { |
||||
sql.SET("goods_share_desc = #{record.goodsShareDesc,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsExamine() != null) { |
||||
sql.SET("is_examine = #{record.isExamine,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getDabaoPrice() != null) { |
||||
sql.SET("dabao_price = #{record.dabaoPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getBrandId() != null) { |
||||
sql.SET("brand_id = #{record.brandId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getKeyWord() != null) { |
||||
sql.SET("key_word = #{record.keyWord,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getBuyingMethod() != null) { |
||||
sql.SET("buying_method = #{record.buyingMethod,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getBuyingMethodLevel() != null) { |
||||
sql.SET("buying_method_level = #{record.buyingMethodLevel,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getHomeBlockId() != null) { |
||||
sql.SET("home_block_id = #{record.homeBlockId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getNewIndividualShare() != null) { |
||||
sql.SET("new_individual_share = #{record.newIndividualShare,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getNewAttrSettingType() != null) { |
||||
sql.SET("new_attr_setting_type = #{record.newAttrSettingType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getShareCommissionBase() != null) { |
||||
sql.SET("share_commission_base = #{record.shareCommissionBase,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getIsSjht() != null) { |
||||
sql.SET("is_sjht = #{record.isSjht,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getSjhtProident() != null) { |
||||
sql.SET("sjht_proIdent = #{record.sjhtProident,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsOil() != null) { |
||||
sql.SET("is_oil = #{record.isOil,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getOilCoutypecode() != null) { |
||||
sql.SET("oil_couTypeCode = #{record.oilCoutypecode,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIsAbholung() != null) { |
||||
sql.SET("is_abholung = #{record.isAbholung,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getIsTransnational() != null) { |
||||
sql.SET("is_transnational = #{record.isTransnational,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getGoodsTransferRate() != null) { |
||||
sql.SET("goods_transfer_rate = #{record.goodsTransferRate,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getOilDiscount() != null) { |
||||
sql.SET("oil_discount = #{record.oilDiscount,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getOilType() != null) { |
||||
sql.SET("oil_type = #{record.oilType,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getDetail() != null) { |
||||
sql.SET("detail = #{record.detail,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getAttr() != null) { |
||||
sql.SET("attr = #{record.attr,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getCoverPic() != null) { |
||||
sql.SET("cover_pic = #{record.coverPic,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getFullCut() != null) { |
||||
sql.SET("full_cut = #{record.fullCut,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIntegral() != null) { |
||||
sql.SET("integral = #{record.integral,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getShopId() != null) { |
||||
sql.SET("shop_id = #{record.shopId,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
if (record.getVerifyCardId() != null) { |
||||
sql.SET("verify_card_id = #{record.verifyCardId,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExampleWithBLOBs(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_goods"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
sql.SET("store_id = #{record.storeId,jdbcType=INTEGER}"); |
||||
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); |
||||
sql.SET("price = #{record.price,jdbcType=DECIMAL}"); |
||||
sql.SET("original_price = #{record.originalPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("cat_id = #{record.catId,jdbcType=INTEGER}"); |
||||
sql.SET("`status` = #{record.status,jdbcType=SMALLINT}"); |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
sql.SET("service = #{record.service,jdbcType=VARCHAR}"); |
||||
sql.SET("sort = #{record.sort,jdbcType=INTEGER}"); |
||||
sql.SET("virtual_sales = #{record.virtualSales,jdbcType=INTEGER}"); |
||||
sql.SET("video_url = #{record.videoUrl,jdbcType=VARCHAR}"); |
||||
sql.SET("unit = #{record.unit,jdbcType=VARCHAR}"); |
||||
sql.SET("individual_share = #{record.individualShare,jdbcType=SMALLINT}"); |
||||
sql.SET("share_commission_first = #{record.shareCommissionFirst,jdbcType=DECIMAL}"); |
||||
sql.SET("share_commission_second = #{record.shareCommissionSecond,jdbcType=DECIMAL}"); |
||||
sql.SET("share_commission_third = #{record.shareCommissionThird,jdbcType=DECIMAL}"); |
||||
sql.SET("weight = #{record.weight,jdbcType=DOUBLE}"); |
||||
sql.SET("freight = #{record.freight,jdbcType=INTEGER}"); |
||||
sql.SET("use_attr = #{record.useAttr,jdbcType=SMALLINT}"); |
||||
sql.SET("share_type = #{record.shareType,jdbcType=INTEGER}"); |
||||
sql.SET("quick_purchase = #{record.quickPurchase,jdbcType=SMALLINT}"); |
||||
sql.SET("hot_cakes = #{record.hotCakes,jdbcType=SMALLINT}"); |
||||
sql.SET("cost_price = #{record.costPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("member_discount = #{record.memberDiscount,jdbcType=SMALLINT}"); |
||||
sql.SET("rebate = #{record.rebate,jdbcType=DECIMAL}"); |
||||
sql.SET("mch_id = #{record.mchId,jdbcType=INTEGER}"); |
||||
sql.SET("goods_num = #{record.goodsNum,jdbcType=INTEGER}"); |
||||
sql.SET("mch_sort = #{record.mchSort,jdbcType=INTEGER}"); |
||||
sql.SET("confine_count = #{record.confineCount,jdbcType=INTEGER}"); |
||||
sql.SET("is_level = #{record.isLevel,jdbcType=SMALLINT}"); |
||||
sql.SET("`type` = #{record.type,jdbcType=SMALLINT}"); |
||||
sql.SET("is_negotiable = #{record.isNegotiable,jdbcType=SMALLINT}"); |
||||
sql.SET("attr_setting_type = #{record.attrSettingType,jdbcType=BIT}"); |
||||
sql.SET("views = #{record.views,jdbcType=BIGINT}"); |
||||
sql.SET("supplier_price = #{record.supplierPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("supplier_goods_id = #{record.supplierGoodsId,jdbcType=INTEGER}"); |
||||
sql.SET("supplier_id = #{record.supplierId,jdbcType=INTEGER}"); |
||||
sql.SET("goods_share_title = #{record.goodsShareTitle,jdbcType=VARCHAR}"); |
||||
sql.SET("goods_share_logo = #{record.goodsShareLogo,jdbcType=VARCHAR}"); |
||||
sql.SET("goods_share_desc = #{record.goodsShareDesc,jdbcType=VARCHAR}"); |
||||
sql.SET("is_examine = #{record.isExamine,jdbcType=INTEGER}"); |
||||
sql.SET("dabao_price = #{record.dabaoPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("brand_id = #{record.brandId,jdbcType=INTEGER}"); |
||||
sql.SET("key_word = #{record.keyWord,jdbcType=VARCHAR}"); |
||||
sql.SET("buying_method = #{record.buyingMethod,jdbcType=INTEGER}"); |
||||
sql.SET("buying_method_level = #{record.buyingMethodLevel,jdbcType=INTEGER}"); |
||||
sql.SET("home_block_id = #{record.homeBlockId,jdbcType=INTEGER}"); |
||||
sql.SET("new_individual_share = #{record.newIndividualShare,jdbcType=INTEGER}"); |
||||
sql.SET("new_attr_setting_type = #{record.newAttrSettingType,jdbcType=INTEGER}"); |
||||
sql.SET("share_commission_base = #{record.shareCommissionBase,jdbcType=DECIMAL}"); |
||||
sql.SET("is_sjht = #{record.isSjht,jdbcType=SMALLINT}"); |
||||
sql.SET("sjht_proIdent = #{record.sjhtProident,jdbcType=VARCHAR}"); |
||||
sql.SET("is_oil = #{record.isOil,jdbcType=SMALLINT}"); |
||||
sql.SET("oil_couTypeCode = #{record.oilCoutypecode,jdbcType=VARCHAR}"); |
||||
sql.SET("is_abholung = #{record.isAbholung,jdbcType=SMALLINT}"); |
||||
sql.SET("is_transnational = #{record.isTransnational,jdbcType=SMALLINT}"); |
||||
sql.SET("goods_transfer_rate = #{record.goodsTransferRate,jdbcType=INTEGER}"); |
||||
sql.SET("oil_discount = #{record.oilDiscount,jdbcType=INTEGER}"); |
||||
sql.SET("oil_type = #{record.oilType,jdbcType=INTEGER}"); |
||||
sql.SET("detail = #{record.detail,jdbcType=LONGVARCHAR}"); |
||||
sql.SET("attr = #{record.attr,jdbcType=LONGVARCHAR}"); |
||||
sql.SET("cover_pic = #{record.coverPic,jdbcType=LONGVARCHAR}"); |
||||
sql.SET("full_cut = #{record.fullCut,jdbcType=LONGVARCHAR}"); |
||||
sql.SET("integral = #{record.integral,jdbcType=LONGVARCHAR}"); |
||||
sql.SET("shop_id = #{record.shopId,jdbcType=LONGVARCHAR}"); |
||||
sql.SET("verify_card_id = #{record.verifyCardId,jdbcType=LONGVARCHAR}"); |
||||
|
||||
CyymallGoodsExample example = (CyymallGoodsExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExample(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_goods"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
sql.SET("store_id = #{record.storeId,jdbcType=INTEGER}"); |
||||
sql.SET("`name` = #{record.name,jdbcType=VARCHAR}"); |
||||
sql.SET("price = #{record.price,jdbcType=DECIMAL}"); |
||||
sql.SET("original_price = #{record.originalPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("cat_id = #{record.catId,jdbcType=INTEGER}"); |
||||
sql.SET("`status` = #{record.status,jdbcType=SMALLINT}"); |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
sql.SET("service = #{record.service,jdbcType=VARCHAR}"); |
||||
sql.SET("sort = #{record.sort,jdbcType=INTEGER}"); |
||||
sql.SET("virtual_sales = #{record.virtualSales,jdbcType=INTEGER}"); |
||||
sql.SET("video_url = #{record.videoUrl,jdbcType=VARCHAR}"); |
||||
sql.SET("unit = #{record.unit,jdbcType=VARCHAR}"); |
||||
sql.SET("individual_share = #{record.individualShare,jdbcType=SMALLINT}"); |
||||
sql.SET("share_commission_first = #{record.shareCommissionFirst,jdbcType=DECIMAL}"); |
||||
sql.SET("share_commission_second = #{record.shareCommissionSecond,jdbcType=DECIMAL}"); |
||||
sql.SET("share_commission_third = #{record.shareCommissionThird,jdbcType=DECIMAL}"); |
||||
sql.SET("weight = #{record.weight,jdbcType=DOUBLE}"); |
||||
sql.SET("freight = #{record.freight,jdbcType=INTEGER}"); |
||||
sql.SET("use_attr = #{record.useAttr,jdbcType=SMALLINT}"); |
||||
sql.SET("share_type = #{record.shareType,jdbcType=INTEGER}"); |
||||
sql.SET("quick_purchase = #{record.quickPurchase,jdbcType=SMALLINT}"); |
||||
sql.SET("hot_cakes = #{record.hotCakes,jdbcType=SMALLINT}"); |
||||
sql.SET("cost_price = #{record.costPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("member_discount = #{record.memberDiscount,jdbcType=SMALLINT}"); |
||||
sql.SET("rebate = #{record.rebate,jdbcType=DECIMAL}"); |
||||
sql.SET("mch_id = #{record.mchId,jdbcType=INTEGER}"); |
||||
sql.SET("goods_num = #{record.goodsNum,jdbcType=INTEGER}"); |
||||
sql.SET("mch_sort = #{record.mchSort,jdbcType=INTEGER}"); |
||||
sql.SET("confine_count = #{record.confineCount,jdbcType=INTEGER}"); |
||||
sql.SET("is_level = #{record.isLevel,jdbcType=SMALLINT}"); |
||||
sql.SET("`type` = #{record.type,jdbcType=SMALLINT}"); |
||||
sql.SET("is_negotiable = #{record.isNegotiable,jdbcType=SMALLINT}"); |
||||
sql.SET("attr_setting_type = #{record.attrSettingType,jdbcType=BIT}"); |
||||
sql.SET("views = #{record.views,jdbcType=BIGINT}"); |
||||
sql.SET("supplier_price = #{record.supplierPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("supplier_goods_id = #{record.supplierGoodsId,jdbcType=INTEGER}"); |
||||
sql.SET("supplier_id = #{record.supplierId,jdbcType=INTEGER}"); |
||||
sql.SET("goods_share_title = #{record.goodsShareTitle,jdbcType=VARCHAR}"); |
||||
sql.SET("goods_share_logo = #{record.goodsShareLogo,jdbcType=VARCHAR}"); |
||||
sql.SET("goods_share_desc = #{record.goodsShareDesc,jdbcType=VARCHAR}"); |
||||
sql.SET("is_examine = #{record.isExamine,jdbcType=INTEGER}"); |
||||
sql.SET("dabao_price = #{record.dabaoPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("brand_id = #{record.brandId,jdbcType=INTEGER}"); |
||||
sql.SET("key_word = #{record.keyWord,jdbcType=VARCHAR}"); |
||||
sql.SET("buying_method = #{record.buyingMethod,jdbcType=INTEGER}"); |
||||
sql.SET("buying_method_level = #{record.buyingMethodLevel,jdbcType=INTEGER}"); |
||||
sql.SET("home_block_id = #{record.homeBlockId,jdbcType=INTEGER}"); |
||||
sql.SET("new_individual_share = #{record.newIndividualShare,jdbcType=INTEGER}"); |
||||
sql.SET("new_attr_setting_type = #{record.newAttrSettingType,jdbcType=INTEGER}"); |
||||
sql.SET("share_commission_base = #{record.shareCommissionBase,jdbcType=DECIMAL}"); |
||||
sql.SET("is_sjht = #{record.isSjht,jdbcType=SMALLINT}"); |
||||
sql.SET("sjht_proIdent = #{record.sjhtProident,jdbcType=VARCHAR}"); |
||||
sql.SET("is_oil = #{record.isOil,jdbcType=SMALLINT}"); |
||||
sql.SET("oil_couTypeCode = #{record.oilCoutypecode,jdbcType=VARCHAR}"); |
||||
sql.SET("is_abholung = #{record.isAbholung,jdbcType=SMALLINT}"); |
||||
sql.SET("is_transnational = #{record.isTransnational,jdbcType=SMALLINT}"); |
||||
sql.SET("goods_transfer_rate = #{record.goodsTransferRate,jdbcType=INTEGER}"); |
||||
sql.SET("oil_discount = #{record.oilDiscount,jdbcType=INTEGER}"); |
||||
sql.SET("oil_type = #{record.oilType,jdbcType=INTEGER}"); |
||||
|
||||
CyymallGoodsExample example = (CyymallGoodsExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
protected void applyWhere(SQL sql, CyymallGoodsExample 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,108 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.CyymallOrderDetail; |
||||
import com.hfkj.entity.CyymallOrderDetailExample; |
||||
import java.util.List; |
||||
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.SelectProvider; |
||||
import org.apache.ibatis.annotations.UpdateProvider; |
||||
import org.apache.ibatis.type.JdbcType; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
/** |
||||
* |
||||
* 代码由工具生成,请勿修改!!! |
||||
* 如果需要扩展请在其父类进行扩展 |
||||
* |
||||
**/ |
||||
@Repository |
||||
public interface CyymallOrderDetailMapper extends CyymallOrderDetailMapperExt { |
||||
@SelectProvider(type=CyymallOrderDetailSqlProvider.class, method="countByExample") |
||||
long countByExample(CyymallOrderDetailExample example); |
||||
|
||||
@DeleteProvider(type=CyymallOrderDetailSqlProvider.class, method="deleteByExample") |
||||
int deleteByExample(CyymallOrderDetailExample example); |
||||
|
||||
@Insert({ |
||||
"insert into cyymall_order_detail (order_id, goods_id, ", |
||||
"num, total_price, ", |
||||
"addtime, is_delete, ", |
||||
"pic, integral, is_level, ", |
||||
"batch_price_tips, supplier_price, ", |
||||
"vgoods_id, vgoods_price, ", |
||||
"verify_card_sale_id, give_goods_id, ", |
||||
"attr)", |
||||
"values (#{orderId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, ", |
||||
"#{num,jdbcType=INTEGER}, #{totalPrice,jdbcType=DECIMAL}, ", |
||||
"#{addtime,jdbcType=INTEGER}, #{isDelete,jdbcType=SMALLINT}, ", |
||||
"#{pic,jdbcType=VARCHAR}, #{integral,jdbcType=INTEGER}, #{isLevel,jdbcType=SMALLINT}, ", |
||||
"#{batchPriceTips,jdbcType=VARCHAR}, #{supplierPrice,jdbcType=DECIMAL}, ", |
||||
"#{vgoodsId,jdbcType=INTEGER}, #{vgoodsPrice,jdbcType=DECIMAL}, ", |
||||
"#{verifyCardSaleId,jdbcType=INTEGER}, #{giveGoodsId,jdbcType=INTEGER}, ", |
||||
"#{attr,jdbcType=LONGVARCHAR})" |
||||
}) |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insert(CyymallOrderDetail record); |
||||
|
||||
@InsertProvider(type=CyymallOrderDetailSqlProvider.class, method="insertSelective") |
||||
@Options(useGeneratedKeys=true,keyProperty="id") |
||||
int insertSelective(CyymallOrderDetail record); |
||||
|
||||
@SelectProvider(type=CyymallOrderDetailSqlProvider.class, method="selectByExampleWithBLOBs") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="order_id", property="orderId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="addtime", property="addtime", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_delete", property="isDelete", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="integral", property="integral", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_level", property="isLevel", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="batch_price_tips", property="batchPriceTips", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="supplier_price", property="supplierPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="vgoods_id", property="vgoodsId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="vgoods_price", property="vgoodsPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="verify_card_sale_id", property="verifyCardSaleId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="give_goods_id", property="giveGoodsId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="attr", property="attr", jdbcType=JdbcType.LONGVARCHAR) |
||||
}) |
||||
List<CyymallOrderDetail> selectByExampleWithBLOBs(CyymallOrderDetailExample example); |
||||
|
||||
@SelectProvider(type=CyymallOrderDetailSqlProvider.class, method="selectByExample") |
||||
@Results({ |
||||
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="order_id", property="orderId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="num", property="num", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="total_price", property="totalPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="addtime", property="addtime", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_delete", property="isDelete", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="integral", property="integral", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="is_level", property="isLevel", jdbcType=JdbcType.SMALLINT), |
||||
@Result(column="batch_price_tips", property="batchPriceTips", jdbcType=JdbcType.VARCHAR), |
||||
@Result(column="supplier_price", property="supplierPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="vgoods_id", property="vgoodsId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="vgoods_price", property="vgoodsPrice", jdbcType=JdbcType.DECIMAL), |
||||
@Result(column="verify_card_sale_id", property="verifyCardSaleId", jdbcType=JdbcType.INTEGER), |
||||
@Result(column="give_goods_id", property="giveGoodsId", jdbcType=JdbcType.INTEGER) |
||||
}) |
||||
List<CyymallOrderDetail> selectByExample(CyymallOrderDetailExample example); |
||||
|
||||
@UpdateProvider(type=CyymallOrderDetailSqlProvider.class, method="updateByExampleSelective") |
||||
int updateByExampleSelective(@Param("record") CyymallOrderDetail record, @Param("example") CyymallOrderDetailExample example); |
||||
|
||||
@UpdateProvider(type=CyymallOrderDetailSqlProvider.class, method="updateByExampleWithBLOBs") |
||||
int updateByExampleWithBLOBs(@Param("record") CyymallOrderDetail record, @Param("example") CyymallOrderDetailExample example); |
||||
|
||||
@UpdateProvider(type=CyymallOrderDetailSqlProvider.class, method="updateByExample") |
||||
int updateByExample(@Param("record") CyymallOrderDetail record, @Param("example") CyymallOrderDetailExample example); |
||||
} |
@ -0,0 +1,7 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface CyymallOrderDetailMapperExt { |
||||
} |
@ -0,0 +1,387 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import com.hfkj.entity.CyymallOrderDetail; |
||||
import com.hfkj.entity.CyymallOrderDetailExample.Criteria; |
||||
import com.hfkj.entity.CyymallOrderDetailExample.Criterion; |
||||
import com.hfkj.entity.CyymallOrderDetailExample; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import org.apache.ibatis.jdbc.SQL; |
||||
|
||||
public class CyymallOrderDetailSqlProvider { |
||||
|
||||
public String countByExample(CyymallOrderDetailExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.SELECT("count(*)").FROM("cyymall_order_detail"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String deleteByExample(CyymallOrderDetailExample example) { |
||||
SQL sql = new SQL(); |
||||
sql.DELETE_FROM("cyymall_order_detail"); |
||||
applyWhere(sql, example, false); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String insertSelective(CyymallOrderDetail record) { |
||||
SQL sql = new SQL(); |
||||
sql.INSERT_INTO("cyymall_order_detail"); |
||||
|
||||
if (record.getOrderId() != null) { |
||||
sql.VALUES("order_id", "#{orderId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGoodsId() != null) { |
||||
sql.VALUES("goods_id", "#{goodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getNum() != null) { |
||||
sql.VALUES("num", "#{num,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getTotalPrice() != null) { |
||||
sql.VALUES("total_price", "#{totalPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getAddtime() != null) { |
||||
sql.VALUES("addtime", "#{addtime,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsDelete() != null) { |
||||
sql.VALUES("is_delete", "#{isDelete,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getPic() != null) { |
||||
sql.VALUES("pic", "#{pic,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIntegral() != null) { |
||||
sql.VALUES("integral", "#{integral,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsLevel() != null) { |
||||
sql.VALUES("is_level", "#{isLevel,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getBatchPriceTips() != null) { |
||||
sql.VALUES("batch_price_tips", "#{batchPriceTips,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSupplierPrice() != null) { |
||||
sql.VALUES("supplier_price", "#{supplierPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getVgoodsId() != null) { |
||||
sql.VALUES("vgoods_id", "#{vgoodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getVgoodsPrice() != null) { |
||||
sql.VALUES("vgoods_price", "#{vgoodsPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getVerifyCardSaleId() != null) { |
||||
sql.VALUES("verify_card_sale_id", "#{verifyCardSaleId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGiveGoodsId() != null) { |
||||
sql.VALUES("give_goods_id", "#{giveGoodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getAttr() != null) { |
||||
sql.VALUES("attr", "#{attr,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExampleWithBLOBs(CyymallOrderDetailExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("order_id"); |
||||
sql.SELECT("goods_id"); |
||||
sql.SELECT("num"); |
||||
sql.SELECT("total_price"); |
||||
sql.SELECT("addtime"); |
||||
sql.SELECT("is_delete"); |
||||
sql.SELECT("pic"); |
||||
sql.SELECT("integral"); |
||||
sql.SELECT("is_level"); |
||||
sql.SELECT("batch_price_tips"); |
||||
sql.SELECT("supplier_price"); |
||||
sql.SELECT("vgoods_id"); |
||||
sql.SELECT("vgoods_price"); |
||||
sql.SELECT("verify_card_sale_id"); |
||||
sql.SELECT("give_goods_id"); |
||||
sql.SELECT("attr"); |
||||
sql.FROM("cyymall_order_detail"); |
||||
applyWhere(sql, example, false); |
||||
|
||||
if (example != null && example.getOrderByClause() != null) { |
||||
sql.ORDER_BY(example.getOrderByClause()); |
||||
} |
||||
|
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String selectByExample(CyymallOrderDetailExample example) { |
||||
SQL sql = new SQL(); |
||||
if (example != null && example.isDistinct()) { |
||||
sql.SELECT_DISTINCT("id"); |
||||
} else { |
||||
sql.SELECT("id"); |
||||
} |
||||
sql.SELECT("order_id"); |
||||
sql.SELECT("goods_id"); |
||||
sql.SELECT("num"); |
||||
sql.SELECT("total_price"); |
||||
sql.SELECT("addtime"); |
||||
sql.SELECT("is_delete"); |
||||
sql.SELECT("pic"); |
||||
sql.SELECT("integral"); |
||||
sql.SELECT("is_level"); |
||||
sql.SELECT("batch_price_tips"); |
||||
sql.SELECT("supplier_price"); |
||||
sql.SELECT("vgoods_id"); |
||||
sql.SELECT("vgoods_price"); |
||||
sql.SELECT("verify_card_sale_id"); |
||||
sql.SELECT("give_goods_id"); |
||||
sql.FROM("cyymall_order_detail"); |
||||
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) { |
||||
CyymallOrderDetail record = (CyymallOrderDetail) parameter.get("record"); |
||||
CyymallOrderDetailExample example = (CyymallOrderDetailExample) parameter.get("example"); |
||||
|
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_order_detail"); |
||||
|
||||
if (record.getId() != null) { |
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getOrderId() != null) { |
||||
sql.SET("order_id = #{record.orderId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGoodsId() != null) { |
||||
sql.SET("goods_id = #{record.goodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getNum() != null) { |
||||
sql.SET("num = #{record.num,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getTotalPrice() != null) { |
||||
sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getAddtime() != null) { |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsDelete() != null) { |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getPic() != null) { |
||||
sql.SET("pic = #{record.pic,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getIntegral() != null) { |
||||
sql.SET("integral = #{record.integral,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getIsLevel() != null) { |
||||
sql.SET("is_level = #{record.isLevel,jdbcType=SMALLINT}"); |
||||
} |
||||
|
||||
if (record.getBatchPriceTips() != null) { |
||||
sql.SET("batch_price_tips = #{record.batchPriceTips,jdbcType=VARCHAR}"); |
||||
} |
||||
|
||||
if (record.getSupplierPrice() != null) { |
||||
sql.SET("supplier_price = #{record.supplierPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getVgoodsId() != null) { |
||||
sql.SET("vgoods_id = #{record.vgoodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getVgoodsPrice() != null) { |
||||
sql.SET("vgoods_price = #{record.vgoodsPrice,jdbcType=DECIMAL}"); |
||||
} |
||||
|
||||
if (record.getVerifyCardSaleId() != null) { |
||||
sql.SET("verify_card_sale_id = #{record.verifyCardSaleId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getGiveGoodsId() != null) { |
||||
sql.SET("give_goods_id = #{record.giveGoodsId,jdbcType=INTEGER}"); |
||||
} |
||||
|
||||
if (record.getAttr() != null) { |
||||
sql.SET("attr = #{record.attr,jdbcType=LONGVARCHAR}"); |
||||
} |
||||
|
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExampleWithBLOBs(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_order_detail"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
sql.SET("order_id = #{record.orderId,jdbcType=INTEGER}"); |
||||
sql.SET("goods_id = #{record.goodsId,jdbcType=INTEGER}"); |
||||
sql.SET("num = #{record.num,jdbcType=INTEGER}"); |
||||
sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
sql.SET("pic = #{record.pic,jdbcType=VARCHAR}"); |
||||
sql.SET("integral = #{record.integral,jdbcType=INTEGER}"); |
||||
sql.SET("is_level = #{record.isLevel,jdbcType=SMALLINT}"); |
||||
sql.SET("batch_price_tips = #{record.batchPriceTips,jdbcType=VARCHAR}"); |
||||
sql.SET("supplier_price = #{record.supplierPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("vgoods_id = #{record.vgoodsId,jdbcType=INTEGER}"); |
||||
sql.SET("vgoods_price = #{record.vgoodsPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("verify_card_sale_id = #{record.verifyCardSaleId,jdbcType=INTEGER}"); |
||||
sql.SET("give_goods_id = #{record.giveGoodsId,jdbcType=INTEGER}"); |
||||
sql.SET("attr = #{record.attr,jdbcType=LONGVARCHAR}"); |
||||
|
||||
CyymallOrderDetailExample example = (CyymallOrderDetailExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
public String updateByExample(Map<String, Object> parameter) { |
||||
SQL sql = new SQL(); |
||||
sql.UPDATE("cyymall_order_detail"); |
||||
|
||||
sql.SET("id = #{record.id,jdbcType=INTEGER}"); |
||||
sql.SET("order_id = #{record.orderId,jdbcType=INTEGER}"); |
||||
sql.SET("goods_id = #{record.goodsId,jdbcType=INTEGER}"); |
||||
sql.SET("num = #{record.num,jdbcType=INTEGER}"); |
||||
sql.SET("total_price = #{record.totalPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("addtime = #{record.addtime,jdbcType=INTEGER}"); |
||||
sql.SET("is_delete = #{record.isDelete,jdbcType=SMALLINT}"); |
||||
sql.SET("pic = #{record.pic,jdbcType=VARCHAR}"); |
||||
sql.SET("integral = #{record.integral,jdbcType=INTEGER}"); |
||||
sql.SET("is_level = #{record.isLevel,jdbcType=SMALLINT}"); |
||||
sql.SET("batch_price_tips = #{record.batchPriceTips,jdbcType=VARCHAR}"); |
||||
sql.SET("supplier_price = #{record.supplierPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("vgoods_id = #{record.vgoodsId,jdbcType=INTEGER}"); |
||||
sql.SET("vgoods_price = #{record.vgoodsPrice,jdbcType=DECIMAL}"); |
||||
sql.SET("verify_card_sale_id = #{record.verifyCardSaleId,jdbcType=INTEGER}"); |
||||
sql.SET("give_goods_id = #{record.giveGoodsId,jdbcType=INTEGER}"); |
||||
|
||||
CyymallOrderDetailExample example = (CyymallOrderDetailExample) parameter.get("example"); |
||||
applyWhere(sql, example, true); |
||||
return sql.toString(); |
||||
} |
||||
|
||||
protected void applyWhere(SQL sql, CyymallOrderDetailExample 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,269 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* cyymall_address |
||||
* @author |
||||
*/ |
||||
/** |
||||
* |
||||
* 代码由工具生成 |
||||
* |
||||
**/ |
||||
public class CyymallAddress implements Serializable { |
||||
private Integer id; |
||||
|
||||
private Integer storeId; |
||||
|
||||
private Integer userId; |
||||
|
||||
private String name; |
||||
|
||||
private String mobile; |
||||
|
||||
private Integer provinceId; |
||||
|
||||
private String province; |
||||
|
||||
private Integer cityId; |
||||
|
||||
private String city; |
||||
|
||||
private Integer districtId; |
||||
|
||||
private String district; |
||||
|
||||
private String detail; |
||||
|
||||
private Short isDefault; |
||||
|
||||
private Integer addtime; |
||||
|
||||
private Short isDelete; |
||||
|
||||
private String latitude; |
||||
|
||||
private String longitude; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public Integer getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Integer id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Integer getStoreId() { |
||||
return storeId; |
||||
} |
||||
|
||||
public void setStoreId(Integer storeId) { |
||||
this.storeId = storeId; |
||||
} |
||||
|
||||
public Integer getUserId() { |
||||
return userId; |
||||
} |
||||
|
||||
public void setUserId(Integer userId) { |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public String getMobile() { |
||||
return mobile; |
||||
} |
||||
|
||||
public void setMobile(String mobile) { |
||||
this.mobile = mobile; |
||||
} |
||||
|
||||
public Integer getProvinceId() { |
||||
return provinceId; |
||||
} |
||||
|
||||
public void setProvinceId(Integer provinceId) { |
||||
this.provinceId = provinceId; |
||||
} |
||||
|
||||
public String getProvince() { |
||||
return province; |
||||
} |
||||
|
||||
public void setProvince(String province) { |
||||
this.province = province; |
||||
} |
||||
|
||||
public Integer getCityId() { |
||||
return cityId; |
||||
} |
||||
|
||||
public void setCityId(Integer cityId) { |
||||
this.cityId = cityId; |
||||
} |
||||
|
||||
public String getCity() { |
||||
return city; |
||||
} |
||||
|
||||
public void setCity(String city) { |
||||
this.city = city; |
||||
} |
||||
|
||||
public Integer getDistrictId() { |
||||
return districtId; |
||||
} |
||||
|
||||
public void setDistrictId(Integer districtId) { |
||||
this.districtId = districtId; |
||||
} |
||||
|
||||
public String getDistrict() { |
||||
return district; |
||||
} |
||||
|
||||
public void setDistrict(String district) { |
||||
this.district = district; |
||||
} |
||||
|
||||
public String getDetail() { |
||||
return detail; |
||||
} |
||||
|
||||
public void setDetail(String detail) { |
||||
this.detail = detail; |
||||
} |
||||
|
||||
public Short getIsDefault() { |
||||
return isDefault; |
||||
} |
||||
|
||||
public void setIsDefault(Short isDefault) { |
||||
this.isDefault = isDefault; |
||||
} |
||||
|
||||
public Integer getAddtime() { |
||||
return addtime; |
||||
} |
||||
|
||||
public void setAddtime(Integer addtime) { |
||||
this.addtime = addtime; |
||||
} |
||||
|
||||
public Short getIsDelete() { |
||||
return isDelete; |
||||
} |
||||
|
||||
public void setIsDelete(Short isDelete) { |
||||
this.isDelete = isDelete; |
||||
} |
||||
|
||||
public String getLatitude() { |
||||
return latitude; |
||||
} |
||||
|
||||
public void setLatitude(String latitude) { |
||||
this.latitude = latitude; |
||||
} |
||||
|
||||
public String getLongitude() { |
||||
return longitude; |
||||
} |
||||
|
||||
public void setLongitude(String longitude) { |
||||
this.longitude = longitude; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
CyymallAddress other = (CyymallAddress) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId())) |
||||
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) |
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) |
||||
&& (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile())) |
||||
&& (this.getProvinceId() == null ? other.getProvinceId() == null : this.getProvinceId().equals(other.getProvinceId())) |
||||
&& (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince())) |
||||
&& (this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId())) |
||||
&& (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity())) |
||||
&& (this.getDistrictId() == null ? other.getDistrictId() == null : this.getDistrictId().equals(other.getDistrictId())) |
||||
&& (this.getDistrict() == null ? other.getDistrict() == null : this.getDistrict().equals(other.getDistrict())) |
||||
&& (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail())) |
||||
&& (this.getIsDefault() == null ? other.getIsDefault() == null : this.getIsDefault().equals(other.getIsDefault())) |
||||
&& (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime())) |
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete())) |
||||
&& (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude())) |
||||
&& (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode()); |
||||
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); |
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); |
||||
result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode()); |
||||
result = prime * result + ((getProvinceId() == null) ? 0 : getProvinceId().hashCode()); |
||||
result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode()); |
||||
result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode()); |
||||
result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode()); |
||||
result = prime * result + ((getDistrictId() == null) ? 0 : getDistrictId().hashCode()); |
||||
result = prime * result + ((getDistrict() == null) ? 0 : getDistrict().hashCode()); |
||||
result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode()); |
||||
result = prime * result + ((getIsDefault() == null) ? 0 : getIsDefault().hashCode()); |
||||
result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode()); |
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode()); |
||||
result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode()); |
||||
result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().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(", storeId=").append(storeId); |
||||
sb.append(", userId=").append(userId); |
||||
sb.append(", name=").append(name); |
||||
sb.append(", mobile=").append(mobile); |
||||
sb.append(", provinceId=").append(provinceId); |
||||
sb.append(", province=").append(province); |
||||
sb.append(", cityId=").append(cityId); |
||||
sb.append(", city=").append(city); |
||||
sb.append(", districtId=").append(districtId); |
||||
sb.append(", district=").append(district); |
||||
sb.append(", detail=").append(detail); |
||||
sb.append(", isDefault=").append(isDefault); |
||||
sb.append(", addtime=").append(addtime); |
||||
sb.append(", isDelete=").append(isDelete); |
||||
sb.append(", latitude=").append(latitude); |
||||
sb.append(", longitude=").append(longitude); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,842 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* cyymall_goods |
||||
* @author |
||||
*/ |
||||
/** |
||||
* |
||||
* 代码由工具生成 |
||||
* |
||||
**/ |
||||
public class CyymallGoods implements Serializable { |
||||
private Integer id; |
||||
|
||||
private Integer storeId; |
||||
|
||||
private String name; |
||||
|
||||
private BigDecimal price; |
||||
|
||||
private BigDecimal originalPrice; |
||||
|
||||
private Integer catId; |
||||
|
||||
private Short status; |
||||
|
||||
private Integer addtime; |
||||
|
||||
private Short isDelete; |
||||
|
||||
private String service; |
||||
|
||||
private Integer sort; |
||||
|
||||
private Integer virtualSales; |
||||
|
||||
private String videoUrl; |
||||
|
||||
private String unit; |
||||
|
||||
private Short individualShare; |
||||
|
||||
private BigDecimal shareCommissionFirst; |
||||
|
||||
private BigDecimal shareCommissionSecond; |
||||
|
||||
private BigDecimal shareCommissionThird; |
||||
|
||||
private Double weight; |
||||
|
||||
private Integer freight; |
||||
|
||||
private Short useAttr; |
||||
|
||||
private Integer shareType; |
||||
|
||||
private Short quickPurchase; |
||||
|
||||
private Short hotCakes; |
||||
|
||||
private BigDecimal costPrice; |
||||
|
||||
private Short memberDiscount; |
||||
|
||||
private BigDecimal rebate; |
||||
|
||||
private Integer mchId; |
||||
|
||||
private Integer goodsNum; |
||||
|
||||
private Integer mchSort; |
||||
|
||||
private Integer confineCount; |
||||
|
||||
private Short isLevel; |
||||
|
||||
private Short type; |
||||
|
||||
private Short isNegotiable; |
||||
|
||||
private Boolean attrSettingType; |
||||
|
||||
private Long views; |
||||
|
||||
private BigDecimal supplierPrice; |
||||
|
||||
private Integer supplierGoodsId; |
||||
|
||||
private Integer supplierId; |
||||
|
||||
private String goodsShareTitle; |
||||
|
||||
private String goodsShareLogo; |
||||
|
||||
private String goodsShareDesc; |
||||
|
||||
private Integer isExamine; |
||||
|
||||
private BigDecimal dabaoPrice; |
||||
|
||||
private Integer brandId; |
||||
|
||||
private String keyWord; |
||||
|
||||
private Integer buyingMethod; |
||||
|
||||
private Integer buyingMethodLevel; |
||||
|
||||
private Integer homeBlockId; |
||||
|
||||
private Integer newIndividualShare; |
||||
|
||||
private Integer newAttrSettingType; |
||||
|
||||
private BigDecimal shareCommissionBase; |
||||
|
||||
private Short isSjht; |
||||
|
||||
private String sjhtProident; |
||||
|
||||
private Short isOil; |
||||
|
||||
private String oilCoutypecode; |
||||
|
||||
private Short isAbholung; |
||||
|
||||
private Short isTransnational; |
||||
|
||||
private Integer goodsTransferRate; |
||||
|
||||
private Integer oilDiscount; |
||||
|
||||
private Integer oilType; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public Integer getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Integer id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Integer getStoreId() { |
||||
return storeId; |
||||
} |
||||
|
||||
public void setStoreId(Integer storeId) { |
||||
this.storeId = storeId; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public BigDecimal getPrice() { |
||||
return price; |
||||
} |
||||
|
||||
public void setPrice(BigDecimal price) { |
||||
this.price = price; |
||||
} |
||||
|
||||
public BigDecimal getOriginalPrice() { |
||||
return originalPrice; |
||||
} |
||||
|
||||
public void setOriginalPrice(BigDecimal originalPrice) { |
||||
this.originalPrice = originalPrice; |
||||
} |
||||
|
||||
public Integer getCatId() { |
||||
return catId; |
||||
} |
||||
|
||||
public void setCatId(Integer catId) { |
||||
this.catId = catId; |
||||
} |
||||
|
||||
public Short getStatus() { |
||||
return status; |
||||
} |
||||
|
||||
public void setStatus(Short status) { |
||||
this.status = status; |
||||
} |
||||
|
||||
public Integer getAddtime() { |
||||
return addtime; |
||||
} |
||||
|
||||
public void setAddtime(Integer addtime) { |
||||
this.addtime = addtime; |
||||
} |
||||
|
||||
public Short getIsDelete() { |
||||
return isDelete; |
||||
} |
||||
|
||||
public void setIsDelete(Short isDelete) { |
||||
this.isDelete = isDelete; |
||||
} |
||||
|
||||
public String getService() { |
||||
return service; |
||||
} |
||||
|
||||
public void setService(String service) { |
||||
this.service = service; |
||||
} |
||||
|
||||
public Integer getSort() { |
||||
return sort; |
||||
} |
||||
|
||||
public void setSort(Integer sort) { |
||||
this.sort = sort; |
||||
} |
||||
|
||||
public Integer getVirtualSales() { |
||||
return virtualSales; |
||||
} |
||||
|
||||
public void setVirtualSales(Integer virtualSales) { |
||||
this.virtualSales = virtualSales; |
||||
} |
||||
|
||||
public String getVideoUrl() { |
||||
return videoUrl; |
||||
} |
||||
|
||||
public void setVideoUrl(String videoUrl) { |
||||
this.videoUrl = videoUrl; |
||||
} |
||||
|
||||
public String getUnit() { |
||||
return unit; |
||||
} |
||||
|
||||
public void setUnit(String unit) { |
||||
this.unit = unit; |
||||
} |
||||
|
||||
public Short getIndividualShare() { |
||||
return individualShare; |
||||
} |
||||
|
||||
public void setIndividualShare(Short individualShare) { |
||||
this.individualShare = individualShare; |
||||
} |
||||
|
||||
public BigDecimal getShareCommissionFirst() { |
||||
return shareCommissionFirst; |
||||
} |
||||
|
||||
public void setShareCommissionFirst(BigDecimal shareCommissionFirst) { |
||||
this.shareCommissionFirst = shareCommissionFirst; |
||||
} |
||||
|
||||
public BigDecimal getShareCommissionSecond() { |
||||
return shareCommissionSecond; |
||||
} |
||||
|
||||
public void setShareCommissionSecond(BigDecimal shareCommissionSecond) { |
||||
this.shareCommissionSecond = shareCommissionSecond; |
||||
} |
||||
|
||||
public BigDecimal getShareCommissionThird() { |
||||
return shareCommissionThird; |
||||
} |
||||
|
||||
public void setShareCommissionThird(BigDecimal shareCommissionThird) { |
||||
this.shareCommissionThird = shareCommissionThird; |
||||
} |
||||
|
||||
public Double getWeight() { |
||||
return weight; |
||||
} |
||||
|
||||
public void setWeight(Double weight) { |
||||
this.weight = weight; |
||||
} |
||||
|
||||
public Integer getFreight() { |
||||
return freight; |
||||
} |
||||
|
||||
public void setFreight(Integer freight) { |
||||
this.freight = freight; |
||||
} |
||||
|
||||
public Short getUseAttr() { |
||||
return useAttr; |
||||
} |
||||
|
||||
public void setUseAttr(Short useAttr) { |
||||
this.useAttr = useAttr; |
||||
} |
||||
|
||||
public Integer getShareType() { |
||||
return shareType; |
||||
} |
||||
|
||||
public void setShareType(Integer shareType) { |
||||
this.shareType = shareType; |
||||
} |
||||
|
||||
public Short getQuickPurchase() { |
||||
return quickPurchase; |
||||
} |
||||
|
||||
public void setQuickPurchase(Short quickPurchase) { |
||||
this.quickPurchase = quickPurchase; |
||||
} |
||||
|
||||
public Short getHotCakes() { |
||||
return hotCakes; |
||||
} |
||||
|
||||
public void setHotCakes(Short hotCakes) { |
||||
this.hotCakes = hotCakes; |
||||
} |
||||
|
||||
public BigDecimal getCostPrice() { |
||||
return costPrice; |
||||
} |
||||
|
||||
public void setCostPrice(BigDecimal costPrice) { |
||||
this.costPrice = costPrice; |
||||
} |
||||
|
||||
public Short getMemberDiscount() { |
||||
return memberDiscount; |
||||
} |
||||
|
||||
public void setMemberDiscount(Short memberDiscount) { |
||||
this.memberDiscount = memberDiscount; |
||||
} |
||||
|
||||
public BigDecimal getRebate() { |
||||
return rebate; |
||||
} |
||||
|
||||
public void setRebate(BigDecimal rebate) { |
||||
this.rebate = rebate; |
||||
} |
||||
|
||||
public Integer getMchId() { |
||||
return mchId; |
||||
} |
||||
|
||||
public void setMchId(Integer mchId) { |
||||
this.mchId = mchId; |
||||
} |
||||
|
||||
public Integer getGoodsNum() { |
||||
return goodsNum; |
||||
} |
||||
|
||||
public void setGoodsNum(Integer goodsNum) { |
||||
this.goodsNum = goodsNum; |
||||
} |
||||
|
||||
public Integer getMchSort() { |
||||
return mchSort; |
||||
} |
||||
|
||||
public void setMchSort(Integer mchSort) { |
||||
this.mchSort = mchSort; |
||||
} |
||||
|
||||
public Integer getConfineCount() { |
||||
return confineCount; |
||||
} |
||||
|
||||
public void setConfineCount(Integer confineCount) { |
||||
this.confineCount = confineCount; |
||||
} |
||||
|
||||
public Short getIsLevel() { |
||||
return isLevel; |
||||
} |
||||
|
||||
public void setIsLevel(Short isLevel) { |
||||
this.isLevel = isLevel; |
||||
} |
||||
|
||||
public Short getType() { |
||||
return type; |
||||
} |
||||
|
||||
public void setType(Short type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
public Short getIsNegotiable() { |
||||
return isNegotiable; |
||||
} |
||||
|
||||
public void setIsNegotiable(Short isNegotiable) { |
||||
this.isNegotiable = isNegotiable; |
||||
} |
||||
|
||||
public Boolean getAttrSettingType() { |
||||
return attrSettingType; |
||||
} |
||||
|
||||
public void setAttrSettingType(Boolean attrSettingType) { |
||||
this.attrSettingType = attrSettingType; |
||||
} |
||||
|
||||
public Long getViews() { |
||||
return views; |
||||
} |
||||
|
||||
public void setViews(Long views) { |
||||
this.views = views; |
||||
} |
||||
|
||||
public BigDecimal getSupplierPrice() { |
||||
return supplierPrice; |
||||
} |
||||
|
||||
public void setSupplierPrice(BigDecimal supplierPrice) { |
||||
this.supplierPrice = supplierPrice; |
||||
} |
||||
|
||||
public Integer getSupplierGoodsId() { |
||||
return supplierGoodsId; |
||||
} |
||||
|
||||
public void setSupplierGoodsId(Integer supplierGoodsId) { |
||||
this.supplierGoodsId = supplierGoodsId; |
||||
} |
||||
|
||||
public Integer getSupplierId() { |
||||
return supplierId; |
||||
} |
||||
|
||||
public void setSupplierId(Integer supplierId) { |
||||
this.supplierId = supplierId; |
||||
} |
||||
|
||||
public String getGoodsShareTitle() { |
||||
return goodsShareTitle; |
||||
} |
||||
|
||||
public void setGoodsShareTitle(String goodsShareTitle) { |
||||
this.goodsShareTitle = goodsShareTitle; |
||||
} |
||||
|
||||
public String getGoodsShareLogo() { |
||||
return goodsShareLogo; |
||||
} |
||||
|
||||
public void setGoodsShareLogo(String goodsShareLogo) { |
||||
this.goodsShareLogo = goodsShareLogo; |
||||
} |
||||
|
||||
public String getGoodsShareDesc() { |
||||
return goodsShareDesc; |
||||
} |
||||
|
||||
public void setGoodsShareDesc(String goodsShareDesc) { |
||||
this.goodsShareDesc = goodsShareDesc; |
||||
} |
||||
|
||||
public Integer getIsExamine() { |
||||
return isExamine; |
||||
} |
||||
|
||||
public void setIsExamine(Integer isExamine) { |
||||
this.isExamine = isExamine; |
||||
} |
||||
|
||||
public BigDecimal getDabaoPrice() { |
||||
return dabaoPrice; |
||||
} |
||||
|
||||
public void setDabaoPrice(BigDecimal dabaoPrice) { |
||||
this.dabaoPrice = dabaoPrice; |
||||
} |
||||
|
||||
public Integer getBrandId() { |
||||
return brandId; |
||||
} |
||||
|
||||
public void setBrandId(Integer brandId) { |
||||
this.brandId = brandId; |
||||
} |
||||
|
||||
public String getKeyWord() { |
||||
return keyWord; |
||||
} |
||||
|
||||
public void setKeyWord(String keyWord) { |
||||
this.keyWord = keyWord; |
||||
} |
||||
|
||||
public Integer getBuyingMethod() { |
||||
return buyingMethod; |
||||
} |
||||
|
||||
public void setBuyingMethod(Integer buyingMethod) { |
||||
this.buyingMethod = buyingMethod; |
||||
} |
||||
|
||||
public Integer getBuyingMethodLevel() { |
||||
return buyingMethodLevel; |
||||
} |
||||
|
||||
public void setBuyingMethodLevel(Integer buyingMethodLevel) { |
||||
this.buyingMethodLevel = buyingMethodLevel; |
||||
} |
||||
|
||||
public Integer getHomeBlockId() { |
||||
return homeBlockId; |
||||
} |
||||
|
||||
public void setHomeBlockId(Integer homeBlockId) { |
||||
this.homeBlockId = homeBlockId; |
||||
} |
||||
|
||||
public Integer getNewIndividualShare() { |
||||
return newIndividualShare; |
||||
} |
||||
|
||||
public void setNewIndividualShare(Integer newIndividualShare) { |
||||
this.newIndividualShare = newIndividualShare; |
||||
} |
||||
|
||||
public Integer getNewAttrSettingType() { |
||||
return newAttrSettingType; |
||||
} |
||||
|
||||
public void setNewAttrSettingType(Integer newAttrSettingType) { |
||||
this.newAttrSettingType = newAttrSettingType; |
||||
} |
||||
|
||||
public BigDecimal getShareCommissionBase() { |
||||
return shareCommissionBase; |
||||
} |
||||
|
||||
public void setShareCommissionBase(BigDecimal shareCommissionBase) { |
||||
this.shareCommissionBase = shareCommissionBase; |
||||
} |
||||
|
||||
public Short getIsSjht() { |
||||
return isSjht; |
||||
} |
||||
|
||||
public void setIsSjht(Short isSjht) { |
||||
this.isSjht = isSjht; |
||||
} |
||||
|
||||
public String getSjhtProident() { |
||||
return sjhtProident; |
||||
} |
||||
|
||||
public void setSjhtProident(String sjhtProident) { |
||||
this.sjhtProident = sjhtProident; |
||||
} |
||||
|
||||
public Short getIsOil() { |
||||
return isOil; |
||||
} |
||||
|
||||
public void setIsOil(Short isOil) { |
||||
this.isOil = isOil; |
||||
} |
||||
|
||||
public String getOilCoutypecode() { |
||||
return oilCoutypecode; |
||||
} |
||||
|
||||
public void setOilCoutypecode(String oilCoutypecode) { |
||||
this.oilCoutypecode = oilCoutypecode; |
||||
} |
||||
|
||||
public Short getIsAbholung() { |
||||
return isAbholung; |
||||
} |
||||
|
||||
public void setIsAbholung(Short isAbholung) { |
||||
this.isAbholung = isAbholung; |
||||
} |
||||
|
||||
public Short getIsTransnational() { |
||||
return isTransnational; |
||||
} |
||||
|
||||
public void setIsTransnational(Short isTransnational) { |
||||
this.isTransnational = isTransnational; |
||||
} |
||||
|
||||
public Integer getGoodsTransferRate() { |
||||
return goodsTransferRate; |
||||
} |
||||
|
||||
public void setGoodsTransferRate(Integer goodsTransferRate) { |
||||
this.goodsTransferRate = goodsTransferRate; |
||||
} |
||||
|
||||
public Integer getOilDiscount() { |
||||
return oilDiscount; |
||||
} |
||||
|
||||
public void setOilDiscount(Integer oilDiscount) { |
||||
this.oilDiscount = oilDiscount; |
||||
} |
||||
|
||||
public Integer getOilType() { |
||||
return oilType; |
||||
} |
||||
|
||||
public void setOilType(Integer oilType) { |
||||
this.oilType = oilType; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
CyymallGoods other = (CyymallGoods) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId())) |
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) |
||||
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) |
||||
&& (this.getOriginalPrice() == null ? other.getOriginalPrice() == null : this.getOriginalPrice().equals(other.getOriginalPrice())) |
||||
&& (this.getCatId() == null ? other.getCatId() == null : this.getCatId().equals(other.getCatId())) |
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) |
||||
&& (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime())) |
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete())) |
||||
&& (this.getService() == null ? other.getService() == null : this.getService().equals(other.getService())) |
||||
&& (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort())) |
||||
&& (this.getVirtualSales() == null ? other.getVirtualSales() == null : this.getVirtualSales().equals(other.getVirtualSales())) |
||||
&& (this.getVideoUrl() == null ? other.getVideoUrl() == null : this.getVideoUrl().equals(other.getVideoUrl())) |
||||
&& (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit())) |
||||
&& (this.getIndividualShare() == null ? other.getIndividualShare() == null : this.getIndividualShare().equals(other.getIndividualShare())) |
||||
&& (this.getShareCommissionFirst() == null ? other.getShareCommissionFirst() == null : this.getShareCommissionFirst().equals(other.getShareCommissionFirst())) |
||||
&& (this.getShareCommissionSecond() == null ? other.getShareCommissionSecond() == null : this.getShareCommissionSecond().equals(other.getShareCommissionSecond())) |
||||
&& (this.getShareCommissionThird() == null ? other.getShareCommissionThird() == null : this.getShareCommissionThird().equals(other.getShareCommissionThird())) |
||||
&& (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight())) |
||||
&& (this.getFreight() == null ? other.getFreight() == null : this.getFreight().equals(other.getFreight())) |
||||
&& (this.getUseAttr() == null ? other.getUseAttr() == null : this.getUseAttr().equals(other.getUseAttr())) |
||||
&& (this.getShareType() == null ? other.getShareType() == null : this.getShareType().equals(other.getShareType())) |
||||
&& (this.getQuickPurchase() == null ? other.getQuickPurchase() == null : this.getQuickPurchase().equals(other.getQuickPurchase())) |
||||
&& (this.getHotCakes() == null ? other.getHotCakes() == null : this.getHotCakes().equals(other.getHotCakes())) |
||||
&& (this.getCostPrice() == null ? other.getCostPrice() == null : this.getCostPrice().equals(other.getCostPrice())) |
||||
&& (this.getMemberDiscount() == null ? other.getMemberDiscount() == null : this.getMemberDiscount().equals(other.getMemberDiscount())) |
||||
&& (this.getRebate() == null ? other.getRebate() == null : this.getRebate().equals(other.getRebate())) |
||||
&& (this.getMchId() == null ? other.getMchId() == null : this.getMchId().equals(other.getMchId())) |
||||
&& (this.getGoodsNum() == null ? other.getGoodsNum() == null : this.getGoodsNum().equals(other.getGoodsNum())) |
||||
&& (this.getMchSort() == null ? other.getMchSort() == null : this.getMchSort().equals(other.getMchSort())) |
||||
&& (this.getConfineCount() == null ? other.getConfineCount() == null : this.getConfineCount().equals(other.getConfineCount())) |
||||
&& (this.getIsLevel() == null ? other.getIsLevel() == null : this.getIsLevel().equals(other.getIsLevel())) |
||||
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType())) |
||||
&& (this.getIsNegotiable() == null ? other.getIsNegotiable() == null : this.getIsNegotiable().equals(other.getIsNegotiable())) |
||||
&& (this.getAttrSettingType() == null ? other.getAttrSettingType() == null : this.getAttrSettingType().equals(other.getAttrSettingType())) |
||||
&& (this.getViews() == null ? other.getViews() == null : this.getViews().equals(other.getViews())) |
||||
&& (this.getSupplierPrice() == null ? other.getSupplierPrice() == null : this.getSupplierPrice().equals(other.getSupplierPrice())) |
||||
&& (this.getSupplierGoodsId() == null ? other.getSupplierGoodsId() == null : this.getSupplierGoodsId().equals(other.getSupplierGoodsId())) |
||||
&& (this.getSupplierId() == null ? other.getSupplierId() == null : this.getSupplierId().equals(other.getSupplierId())) |
||||
&& (this.getGoodsShareTitle() == null ? other.getGoodsShareTitle() == null : this.getGoodsShareTitle().equals(other.getGoodsShareTitle())) |
||||
&& (this.getGoodsShareLogo() == null ? other.getGoodsShareLogo() == null : this.getGoodsShareLogo().equals(other.getGoodsShareLogo())) |
||||
&& (this.getGoodsShareDesc() == null ? other.getGoodsShareDesc() == null : this.getGoodsShareDesc().equals(other.getGoodsShareDesc())) |
||||
&& (this.getIsExamine() == null ? other.getIsExamine() == null : this.getIsExamine().equals(other.getIsExamine())) |
||||
&& (this.getDabaoPrice() == null ? other.getDabaoPrice() == null : this.getDabaoPrice().equals(other.getDabaoPrice())) |
||||
&& (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId())) |
||||
&& (this.getKeyWord() == null ? other.getKeyWord() == null : this.getKeyWord().equals(other.getKeyWord())) |
||||
&& (this.getBuyingMethod() == null ? other.getBuyingMethod() == null : this.getBuyingMethod().equals(other.getBuyingMethod())) |
||||
&& (this.getBuyingMethodLevel() == null ? other.getBuyingMethodLevel() == null : this.getBuyingMethodLevel().equals(other.getBuyingMethodLevel())) |
||||
&& (this.getHomeBlockId() == null ? other.getHomeBlockId() == null : this.getHomeBlockId().equals(other.getHomeBlockId())) |
||||
&& (this.getNewIndividualShare() == null ? other.getNewIndividualShare() == null : this.getNewIndividualShare().equals(other.getNewIndividualShare())) |
||||
&& (this.getNewAttrSettingType() == null ? other.getNewAttrSettingType() == null : this.getNewAttrSettingType().equals(other.getNewAttrSettingType())) |
||||
&& (this.getShareCommissionBase() == null ? other.getShareCommissionBase() == null : this.getShareCommissionBase().equals(other.getShareCommissionBase())) |
||||
&& (this.getIsSjht() == null ? other.getIsSjht() == null : this.getIsSjht().equals(other.getIsSjht())) |
||||
&& (this.getSjhtProident() == null ? other.getSjhtProident() == null : this.getSjhtProident().equals(other.getSjhtProident())) |
||||
&& (this.getIsOil() == null ? other.getIsOil() == null : this.getIsOil().equals(other.getIsOil())) |
||||
&& (this.getOilCoutypecode() == null ? other.getOilCoutypecode() == null : this.getOilCoutypecode().equals(other.getOilCoutypecode())) |
||||
&& (this.getIsAbholung() == null ? other.getIsAbholung() == null : this.getIsAbholung().equals(other.getIsAbholung())) |
||||
&& (this.getIsTransnational() == null ? other.getIsTransnational() == null : this.getIsTransnational().equals(other.getIsTransnational())) |
||||
&& (this.getGoodsTransferRate() == null ? other.getGoodsTransferRate() == null : this.getGoodsTransferRate().equals(other.getGoodsTransferRate())) |
||||
&& (this.getOilDiscount() == null ? other.getOilDiscount() == null : this.getOilDiscount().equals(other.getOilDiscount())) |
||||
&& (this.getOilType() == null ? other.getOilType() == null : this.getOilType().equals(other.getOilType())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode()); |
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); |
||||
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); |
||||
result = prime * result + ((getOriginalPrice() == null) ? 0 : getOriginalPrice().hashCode()); |
||||
result = prime * result + ((getCatId() == null) ? 0 : getCatId().hashCode()); |
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); |
||||
result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode()); |
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode()); |
||||
result = prime * result + ((getService() == null) ? 0 : getService().hashCode()); |
||||
result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode()); |
||||
result = prime * result + ((getVirtualSales() == null) ? 0 : getVirtualSales().hashCode()); |
||||
result = prime * result + ((getVideoUrl() == null) ? 0 : getVideoUrl().hashCode()); |
||||
result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode()); |
||||
result = prime * result + ((getIndividualShare() == null) ? 0 : getIndividualShare().hashCode()); |
||||
result = prime * result + ((getShareCommissionFirst() == null) ? 0 : getShareCommissionFirst().hashCode()); |
||||
result = prime * result + ((getShareCommissionSecond() == null) ? 0 : getShareCommissionSecond().hashCode()); |
||||
result = prime * result + ((getShareCommissionThird() == null) ? 0 : getShareCommissionThird().hashCode()); |
||||
result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode()); |
||||
result = prime * result + ((getFreight() == null) ? 0 : getFreight().hashCode()); |
||||
result = prime * result + ((getUseAttr() == null) ? 0 : getUseAttr().hashCode()); |
||||
result = prime * result + ((getShareType() == null) ? 0 : getShareType().hashCode()); |
||||
result = prime * result + ((getQuickPurchase() == null) ? 0 : getQuickPurchase().hashCode()); |
||||
result = prime * result + ((getHotCakes() == null) ? 0 : getHotCakes().hashCode()); |
||||
result = prime * result + ((getCostPrice() == null) ? 0 : getCostPrice().hashCode()); |
||||
result = prime * result + ((getMemberDiscount() == null) ? 0 : getMemberDiscount().hashCode()); |
||||
result = prime * result + ((getRebate() == null) ? 0 : getRebate().hashCode()); |
||||
result = prime * result + ((getMchId() == null) ? 0 : getMchId().hashCode()); |
||||
result = prime * result + ((getGoodsNum() == null) ? 0 : getGoodsNum().hashCode()); |
||||
result = prime * result + ((getMchSort() == null) ? 0 : getMchSort().hashCode()); |
||||
result = prime * result + ((getConfineCount() == null) ? 0 : getConfineCount().hashCode()); |
||||
result = prime * result + ((getIsLevel() == null) ? 0 : getIsLevel().hashCode()); |
||||
result = prime * result + ((getType() == null) ? 0 : getType().hashCode()); |
||||
result = prime * result + ((getIsNegotiable() == null) ? 0 : getIsNegotiable().hashCode()); |
||||
result = prime * result + ((getAttrSettingType() == null) ? 0 : getAttrSettingType().hashCode()); |
||||
result = prime * result + ((getViews() == null) ? 0 : getViews().hashCode()); |
||||
result = prime * result + ((getSupplierPrice() == null) ? 0 : getSupplierPrice().hashCode()); |
||||
result = prime * result + ((getSupplierGoodsId() == null) ? 0 : getSupplierGoodsId().hashCode()); |
||||
result = prime * result + ((getSupplierId() == null) ? 0 : getSupplierId().hashCode()); |
||||
result = prime * result + ((getGoodsShareTitle() == null) ? 0 : getGoodsShareTitle().hashCode()); |
||||
result = prime * result + ((getGoodsShareLogo() == null) ? 0 : getGoodsShareLogo().hashCode()); |
||||
result = prime * result + ((getGoodsShareDesc() == null) ? 0 : getGoodsShareDesc().hashCode()); |
||||
result = prime * result + ((getIsExamine() == null) ? 0 : getIsExamine().hashCode()); |
||||
result = prime * result + ((getDabaoPrice() == null) ? 0 : getDabaoPrice().hashCode()); |
||||
result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode()); |
||||
result = prime * result + ((getKeyWord() == null) ? 0 : getKeyWord().hashCode()); |
||||
result = prime * result + ((getBuyingMethod() == null) ? 0 : getBuyingMethod().hashCode()); |
||||
result = prime * result + ((getBuyingMethodLevel() == null) ? 0 : getBuyingMethodLevel().hashCode()); |
||||
result = prime * result + ((getHomeBlockId() == null) ? 0 : getHomeBlockId().hashCode()); |
||||
result = prime * result + ((getNewIndividualShare() == null) ? 0 : getNewIndividualShare().hashCode()); |
||||
result = prime * result + ((getNewAttrSettingType() == null) ? 0 : getNewAttrSettingType().hashCode()); |
||||
result = prime * result + ((getShareCommissionBase() == null) ? 0 : getShareCommissionBase().hashCode()); |
||||
result = prime * result + ((getIsSjht() == null) ? 0 : getIsSjht().hashCode()); |
||||
result = prime * result + ((getSjhtProident() == null) ? 0 : getSjhtProident().hashCode()); |
||||
result = prime * result + ((getIsOil() == null) ? 0 : getIsOil().hashCode()); |
||||
result = prime * result + ((getOilCoutypecode() == null) ? 0 : getOilCoutypecode().hashCode()); |
||||
result = prime * result + ((getIsAbholung() == null) ? 0 : getIsAbholung().hashCode()); |
||||
result = prime * result + ((getIsTransnational() == null) ? 0 : getIsTransnational().hashCode()); |
||||
result = prime * result + ((getGoodsTransferRate() == null) ? 0 : getGoodsTransferRate().hashCode()); |
||||
result = prime * result + ((getOilDiscount() == null) ? 0 : getOilDiscount().hashCode()); |
||||
result = prime * result + ((getOilType() == null) ? 0 : getOilType().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(", storeId=").append(storeId); |
||||
sb.append(", name=").append(name); |
||||
sb.append(", price=").append(price); |
||||
sb.append(", originalPrice=").append(originalPrice); |
||||
sb.append(", catId=").append(catId); |
||||
sb.append(", status=").append(status); |
||||
sb.append(", addtime=").append(addtime); |
||||
sb.append(", isDelete=").append(isDelete); |
||||
sb.append(", service=").append(service); |
||||
sb.append(", sort=").append(sort); |
||||
sb.append(", virtualSales=").append(virtualSales); |
||||
sb.append(", videoUrl=").append(videoUrl); |
||||
sb.append(", unit=").append(unit); |
||||
sb.append(", individualShare=").append(individualShare); |
||||
sb.append(", shareCommissionFirst=").append(shareCommissionFirst); |
||||
sb.append(", shareCommissionSecond=").append(shareCommissionSecond); |
||||
sb.append(", shareCommissionThird=").append(shareCommissionThird); |
||||
sb.append(", weight=").append(weight); |
||||
sb.append(", freight=").append(freight); |
||||
sb.append(", useAttr=").append(useAttr); |
||||
sb.append(", shareType=").append(shareType); |
||||
sb.append(", quickPurchase=").append(quickPurchase); |
||||
sb.append(", hotCakes=").append(hotCakes); |
||||
sb.append(", costPrice=").append(costPrice); |
||||
sb.append(", memberDiscount=").append(memberDiscount); |
||||
sb.append(", rebate=").append(rebate); |
||||
sb.append(", mchId=").append(mchId); |
||||
sb.append(", goodsNum=").append(goodsNum); |
||||
sb.append(", mchSort=").append(mchSort); |
||||
sb.append(", confineCount=").append(confineCount); |
||||
sb.append(", isLevel=").append(isLevel); |
||||
sb.append(", type=").append(type); |
||||
sb.append(", isNegotiable=").append(isNegotiable); |
||||
sb.append(", attrSettingType=").append(attrSettingType); |
||||
sb.append(", views=").append(views); |
||||
sb.append(", supplierPrice=").append(supplierPrice); |
||||
sb.append(", supplierGoodsId=").append(supplierGoodsId); |
||||
sb.append(", supplierId=").append(supplierId); |
||||
sb.append(", goodsShareTitle=").append(goodsShareTitle); |
||||
sb.append(", goodsShareLogo=").append(goodsShareLogo); |
||||
sb.append(", goodsShareDesc=").append(goodsShareDesc); |
||||
sb.append(", isExamine=").append(isExamine); |
||||
sb.append(", dabaoPrice=").append(dabaoPrice); |
||||
sb.append(", brandId=").append(brandId); |
||||
sb.append(", keyWord=").append(keyWord); |
||||
sb.append(", buyingMethod=").append(buyingMethod); |
||||
sb.append(", buyingMethodLevel=").append(buyingMethodLevel); |
||||
sb.append(", homeBlockId=").append(homeBlockId); |
||||
sb.append(", newIndividualShare=").append(newIndividualShare); |
||||
sb.append(", newAttrSettingType=").append(newAttrSettingType); |
||||
sb.append(", shareCommissionBase=").append(shareCommissionBase); |
||||
sb.append(", isSjht=").append(isSjht); |
||||
sb.append(", sjhtProident=").append(sjhtProident); |
||||
sb.append(", isOil=").append(isOil); |
||||
sb.append(", oilCoutypecode=").append(oilCoutypecode); |
||||
sb.append(", isAbholung=").append(isAbholung); |
||||
sb.append(", isTransnational=").append(isTransnational); |
||||
sb.append(", goodsTransferRate=").append(goodsTransferRate); |
||||
sb.append(", oilDiscount=").append(oilDiscount); |
||||
sb.append(", oilType=").append(oilType); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,256 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* cyymall_goods |
||||
* @author |
||||
*/ |
||||
public class CyymallGoodsWithBLOBs extends CyymallGoods implements Serializable { |
||||
private String detail; |
||||
|
||||
private String attr; |
||||
|
||||
private String coverPic; |
||||
|
||||
private String fullCut; |
||||
|
||||
private String integral; |
||||
|
||||
private String shopId; |
||||
|
||||
private String verifyCardId; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public String getDetail() { |
||||
return detail; |
||||
} |
||||
|
||||
public void setDetail(String detail) { |
||||
this.detail = detail; |
||||
} |
||||
|
||||
public String getAttr() { |
||||
return attr; |
||||
} |
||||
|
||||
public void setAttr(String attr) { |
||||
this.attr = attr; |
||||
} |
||||
|
||||
public String getCoverPic() { |
||||
return coverPic; |
||||
} |
||||
|
||||
public void setCoverPic(String coverPic) { |
||||
this.coverPic = coverPic; |
||||
} |
||||
|
||||
public String getFullCut() { |
||||
return fullCut; |
||||
} |
||||
|
||||
public void setFullCut(String fullCut) { |
||||
this.fullCut = fullCut; |
||||
} |
||||
|
||||
public String getIntegral() { |
||||
return integral; |
||||
} |
||||
|
||||
public void setIntegral(String integral) { |
||||
this.integral = integral; |
||||
} |
||||
|
||||
public String getShopId() { |
||||
return shopId; |
||||
} |
||||
|
||||
public void setShopId(String shopId) { |
||||
this.shopId = shopId; |
||||
} |
||||
|
||||
public String getVerifyCardId() { |
||||
return verifyCardId; |
||||
} |
||||
|
||||
public void setVerifyCardId(String verifyCardId) { |
||||
this.verifyCardId = verifyCardId; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
CyymallGoodsWithBLOBs other = (CyymallGoodsWithBLOBs) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId())) |
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) |
||||
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice())) |
||||
&& (this.getOriginalPrice() == null ? other.getOriginalPrice() == null : this.getOriginalPrice().equals(other.getOriginalPrice())) |
||||
&& (this.getCatId() == null ? other.getCatId() == null : this.getCatId().equals(other.getCatId())) |
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) |
||||
&& (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime())) |
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete())) |
||||
&& (this.getService() == null ? other.getService() == null : this.getService().equals(other.getService())) |
||||
&& (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort())) |
||||
&& (this.getVirtualSales() == null ? other.getVirtualSales() == null : this.getVirtualSales().equals(other.getVirtualSales())) |
||||
&& (this.getVideoUrl() == null ? other.getVideoUrl() == null : this.getVideoUrl().equals(other.getVideoUrl())) |
||||
&& (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit())) |
||||
&& (this.getIndividualShare() == null ? other.getIndividualShare() == null : this.getIndividualShare().equals(other.getIndividualShare())) |
||||
&& (this.getShareCommissionFirst() == null ? other.getShareCommissionFirst() == null : this.getShareCommissionFirst().equals(other.getShareCommissionFirst())) |
||||
&& (this.getShareCommissionSecond() == null ? other.getShareCommissionSecond() == null : this.getShareCommissionSecond().equals(other.getShareCommissionSecond())) |
||||
&& (this.getShareCommissionThird() == null ? other.getShareCommissionThird() == null : this.getShareCommissionThird().equals(other.getShareCommissionThird())) |
||||
&& (this.getWeight() == null ? other.getWeight() == null : this.getWeight().equals(other.getWeight())) |
||||
&& (this.getFreight() == null ? other.getFreight() == null : this.getFreight().equals(other.getFreight())) |
||||
&& (this.getUseAttr() == null ? other.getUseAttr() == null : this.getUseAttr().equals(other.getUseAttr())) |
||||
&& (this.getShareType() == null ? other.getShareType() == null : this.getShareType().equals(other.getShareType())) |
||||
&& (this.getQuickPurchase() == null ? other.getQuickPurchase() == null : this.getQuickPurchase().equals(other.getQuickPurchase())) |
||||
&& (this.getHotCakes() == null ? other.getHotCakes() == null : this.getHotCakes().equals(other.getHotCakes())) |
||||
&& (this.getCostPrice() == null ? other.getCostPrice() == null : this.getCostPrice().equals(other.getCostPrice())) |
||||
&& (this.getMemberDiscount() == null ? other.getMemberDiscount() == null : this.getMemberDiscount().equals(other.getMemberDiscount())) |
||||
&& (this.getRebate() == null ? other.getRebate() == null : this.getRebate().equals(other.getRebate())) |
||||
&& (this.getMchId() == null ? other.getMchId() == null : this.getMchId().equals(other.getMchId())) |
||||
&& (this.getGoodsNum() == null ? other.getGoodsNum() == null : this.getGoodsNum().equals(other.getGoodsNum())) |
||||
&& (this.getMchSort() == null ? other.getMchSort() == null : this.getMchSort().equals(other.getMchSort())) |
||||
&& (this.getConfineCount() == null ? other.getConfineCount() == null : this.getConfineCount().equals(other.getConfineCount())) |
||||
&& (this.getIsLevel() == null ? other.getIsLevel() == null : this.getIsLevel().equals(other.getIsLevel())) |
||||
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType())) |
||||
&& (this.getIsNegotiable() == null ? other.getIsNegotiable() == null : this.getIsNegotiable().equals(other.getIsNegotiable())) |
||||
&& (this.getAttrSettingType() == null ? other.getAttrSettingType() == null : this.getAttrSettingType().equals(other.getAttrSettingType())) |
||||
&& (this.getViews() == null ? other.getViews() == null : this.getViews().equals(other.getViews())) |
||||
&& (this.getSupplierPrice() == null ? other.getSupplierPrice() == null : this.getSupplierPrice().equals(other.getSupplierPrice())) |
||||
&& (this.getSupplierGoodsId() == null ? other.getSupplierGoodsId() == null : this.getSupplierGoodsId().equals(other.getSupplierGoodsId())) |
||||
&& (this.getSupplierId() == null ? other.getSupplierId() == null : this.getSupplierId().equals(other.getSupplierId())) |
||||
&& (this.getGoodsShareTitle() == null ? other.getGoodsShareTitle() == null : this.getGoodsShareTitle().equals(other.getGoodsShareTitle())) |
||||
&& (this.getGoodsShareLogo() == null ? other.getGoodsShareLogo() == null : this.getGoodsShareLogo().equals(other.getGoodsShareLogo())) |
||||
&& (this.getGoodsShareDesc() == null ? other.getGoodsShareDesc() == null : this.getGoodsShareDesc().equals(other.getGoodsShareDesc())) |
||||
&& (this.getIsExamine() == null ? other.getIsExamine() == null : this.getIsExamine().equals(other.getIsExamine())) |
||||
&& (this.getDabaoPrice() == null ? other.getDabaoPrice() == null : this.getDabaoPrice().equals(other.getDabaoPrice())) |
||||
&& (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId())) |
||||
&& (this.getKeyWord() == null ? other.getKeyWord() == null : this.getKeyWord().equals(other.getKeyWord())) |
||||
&& (this.getBuyingMethod() == null ? other.getBuyingMethod() == null : this.getBuyingMethod().equals(other.getBuyingMethod())) |
||||
&& (this.getBuyingMethodLevel() == null ? other.getBuyingMethodLevel() == null : this.getBuyingMethodLevel().equals(other.getBuyingMethodLevel())) |
||||
&& (this.getHomeBlockId() == null ? other.getHomeBlockId() == null : this.getHomeBlockId().equals(other.getHomeBlockId())) |
||||
&& (this.getNewIndividualShare() == null ? other.getNewIndividualShare() == null : this.getNewIndividualShare().equals(other.getNewIndividualShare())) |
||||
&& (this.getNewAttrSettingType() == null ? other.getNewAttrSettingType() == null : this.getNewAttrSettingType().equals(other.getNewAttrSettingType())) |
||||
&& (this.getShareCommissionBase() == null ? other.getShareCommissionBase() == null : this.getShareCommissionBase().equals(other.getShareCommissionBase())) |
||||
&& (this.getIsSjht() == null ? other.getIsSjht() == null : this.getIsSjht().equals(other.getIsSjht())) |
||||
&& (this.getSjhtProident() == null ? other.getSjhtProident() == null : this.getSjhtProident().equals(other.getSjhtProident())) |
||||
&& (this.getIsOil() == null ? other.getIsOil() == null : this.getIsOil().equals(other.getIsOil())) |
||||
&& (this.getOilCoutypecode() == null ? other.getOilCoutypecode() == null : this.getOilCoutypecode().equals(other.getOilCoutypecode())) |
||||
&& (this.getIsAbholung() == null ? other.getIsAbholung() == null : this.getIsAbholung().equals(other.getIsAbholung())) |
||||
&& (this.getIsTransnational() == null ? other.getIsTransnational() == null : this.getIsTransnational().equals(other.getIsTransnational())) |
||||
&& (this.getGoodsTransferRate() == null ? other.getGoodsTransferRate() == null : this.getGoodsTransferRate().equals(other.getGoodsTransferRate())) |
||||
&& (this.getOilDiscount() == null ? other.getOilDiscount() == null : this.getOilDiscount().equals(other.getOilDiscount())) |
||||
&& (this.getOilType() == null ? other.getOilType() == null : this.getOilType().equals(other.getOilType())) |
||||
&& (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail())) |
||||
&& (this.getAttr() == null ? other.getAttr() == null : this.getAttr().equals(other.getAttr())) |
||||
&& (this.getCoverPic() == null ? other.getCoverPic() == null : this.getCoverPic().equals(other.getCoverPic())) |
||||
&& (this.getFullCut() == null ? other.getFullCut() == null : this.getFullCut().equals(other.getFullCut())) |
||||
&& (this.getIntegral() == null ? other.getIntegral() == null : this.getIntegral().equals(other.getIntegral())) |
||||
&& (this.getShopId() == null ? other.getShopId() == null : this.getShopId().equals(other.getShopId())) |
||||
&& (this.getVerifyCardId() == null ? other.getVerifyCardId() == null : this.getVerifyCardId().equals(other.getVerifyCardId())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode()); |
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); |
||||
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode()); |
||||
result = prime * result + ((getOriginalPrice() == null) ? 0 : getOriginalPrice().hashCode()); |
||||
result = prime * result + ((getCatId() == null) ? 0 : getCatId().hashCode()); |
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); |
||||
result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode()); |
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode()); |
||||
result = prime * result + ((getService() == null) ? 0 : getService().hashCode()); |
||||
result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode()); |
||||
result = prime * result + ((getVirtualSales() == null) ? 0 : getVirtualSales().hashCode()); |
||||
result = prime * result + ((getVideoUrl() == null) ? 0 : getVideoUrl().hashCode()); |
||||
result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode()); |
||||
result = prime * result + ((getIndividualShare() == null) ? 0 : getIndividualShare().hashCode()); |
||||
result = prime * result + ((getShareCommissionFirst() == null) ? 0 : getShareCommissionFirst().hashCode()); |
||||
result = prime * result + ((getShareCommissionSecond() == null) ? 0 : getShareCommissionSecond().hashCode()); |
||||
result = prime * result + ((getShareCommissionThird() == null) ? 0 : getShareCommissionThird().hashCode()); |
||||
result = prime * result + ((getWeight() == null) ? 0 : getWeight().hashCode()); |
||||
result = prime * result + ((getFreight() == null) ? 0 : getFreight().hashCode()); |
||||
result = prime * result + ((getUseAttr() == null) ? 0 : getUseAttr().hashCode()); |
||||
result = prime * result + ((getShareType() == null) ? 0 : getShareType().hashCode()); |
||||
result = prime * result + ((getQuickPurchase() == null) ? 0 : getQuickPurchase().hashCode()); |
||||
result = prime * result + ((getHotCakes() == null) ? 0 : getHotCakes().hashCode()); |
||||
result = prime * result + ((getCostPrice() == null) ? 0 : getCostPrice().hashCode()); |
||||
result = prime * result + ((getMemberDiscount() == null) ? 0 : getMemberDiscount().hashCode()); |
||||
result = prime * result + ((getRebate() == null) ? 0 : getRebate().hashCode()); |
||||
result = prime * result + ((getMchId() == null) ? 0 : getMchId().hashCode()); |
||||
result = prime * result + ((getGoodsNum() == null) ? 0 : getGoodsNum().hashCode()); |
||||
result = prime * result + ((getMchSort() == null) ? 0 : getMchSort().hashCode()); |
||||
result = prime * result + ((getConfineCount() == null) ? 0 : getConfineCount().hashCode()); |
||||
result = prime * result + ((getIsLevel() == null) ? 0 : getIsLevel().hashCode()); |
||||
result = prime * result + ((getType() == null) ? 0 : getType().hashCode()); |
||||
result = prime * result + ((getIsNegotiable() == null) ? 0 : getIsNegotiable().hashCode()); |
||||
result = prime * result + ((getAttrSettingType() == null) ? 0 : getAttrSettingType().hashCode()); |
||||
result = prime * result + ((getViews() == null) ? 0 : getViews().hashCode()); |
||||
result = prime * result + ((getSupplierPrice() == null) ? 0 : getSupplierPrice().hashCode()); |
||||
result = prime * result + ((getSupplierGoodsId() == null) ? 0 : getSupplierGoodsId().hashCode()); |
||||
result = prime * result + ((getSupplierId() == null) ? 0 : getSupplierId().hashCode()); |
||||
result = prime * result + ((getGoodsShareTitle() == null) ? 0 : getGoodsShareTitle().hashCode()); |
||||
result = prime * result + ((getGoodsShareLogo() == null) ? 0 : getGoodsShareLogo().hashCode()); |
||||
result = prime * result + ((getGoodsShareDesc() == null) ? 0 : getGoodsShareDesc().hashCode()); |
||||
result = prime * result + ((getIsExamine() == null) ? 0 : getIsExamine().hashCode()); |
||||
result = prime * result + ((getDabaoPrice() == null) ? 0 : getDabaoPrice().hashCode()); |
||||
result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode()); |
||||
result = prime * result + ((getKeyWord() == null) ? 0 : getKeyWord().hashCode()); |
||||
result = prime * result + ((getBuyingMethod() == null) ? 0 : getBuyingMethod().hashCode()); |
||||
result = prime * result + ((getBuyingMethodLevel() == null) ? 0 : getBuyingMethodLevel().hashCode()); |
||||
result = prime * result + ((getHomeBlockId() == null) ? 0 : getHomeBlockId().hashCode()); |
||||
result = prime * result + ((getNewIndividualShare() == null) ? 0 : getNewIndividualShare().hashCode()); |
||||
result = prime * result + ((getNewAttrSettingType() == null) ? 0 : getNewAttrSettingType().hashCode()); |
||||
result = prime * result + ((getShareCommissionBase() == null) ? 0 : getShareCommissionBase().hashCode()); |
||||
result = prime * result + ((getIsSjht() == null) ? 0 : getIsSjht().hashCode()); |
||||
result = prime * result + ((getSjhtProident() == null) ? 0 : getSjhtProident().hashCode()); |
||||
result = prime * result + ((getIsOil() == null) ? 0 : getIsOil().hashCode()); |
||||
result = prime * result + ((getOilCoutypecode() == null) ? 0 : getOilCoutypecode().hashCode()); |
||||
result = prime * result + ((getIsAbholung() == null) ? 0 : getIsAbholung().hashCode()); |
||||
result = prime * result + ((getIsTransnational() == null) ? 0 : getIsTransnational().hashCode()); |
||||
result = prime * result + ((getGoodsTransferRate() == null) ? 0 : getGoodsTransferRate().hashCode()); |
||||
result = prime * result + ((getOilDiscount() == null) ? 0 : getOilDiscount().hashCode()); |
||||
result = prime * result + ((getOilType() == null) ? 0 : getOilType().hashCode()); |
||||
result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode()); |
||||
result = prime * result + ((getAttr() == null) ? 0 : getAttr().hashCode()); |
||||
result = prime * result + ((getCoverPic() == null) ? 0 : getCoverPic().hashCode()); |
||||
result = prime * result + ((getFullCut() == null) ? 0 : getFullCut().hashCode()); |
||||
result = prime * result + ((getIntegral() == null) ? 0 : getIntegral().hashCode()); |
||||
result = prime * result + ((getShopId() == null) ? 0 : getShopId().hashCode()); |
||||
result = prime * result + ((getVerifyCardId() == null) ? 0 : getVerifyCardId().hashCode()); |
||||
return result; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
StringBuilder sb = new StringBuilder(); |
||||
sb.append(getClass().getSimpleName()); |
||||
sb.append(" ["); |
||||
sb.append("Hash = ").append(hashCode()); |
||||
sb.append(", detail=").append(detail); |
||||
sb.append(", attr=").append(attr); |
||||
sb.append(", coverPic=").append(coverPic); |
||||
sb.append(", fullCut=").append(fullCut); |
||||
sb.append(", integral=").append(integral); |
||||
sb.append(", shopId=").append(shopId); |
||||
sb.append(", verifyCardId=").append(verifyCardId); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
@ -0,0 +1,270 @@ |
||||
package com.hfkj.entity; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* cyymall_order_detail |
||||
* @author |
||||
*/ |
||||
/** |
||||
* |
||||
* 代码由工具生成 |
||||
* |
||||
**/ |
||||
public class CyymallOrderDetail implements Serializable { |
||||
private Integer id; |
||||
|
||||
private Integer orderId; |
||||
|
||||
private Integer goodsId; |
||||
|
||||
private Integer num; |
||||
|
||||
private BigDecimal totalPrice; |
||||
|
||||
private Integer addtime; |
||||
|
||||
private Short isDelete; |
||||
|
||||
private String pic; |
||||
|
||||
private Integer integral; |
||||
|
||||
private Short isLevel; |
||||
|
||||
private String batchPriceTips; |
||||
|
||||
private BigDecimal supplierPrice; |
||||
|
||||
private Integer vgoodsId; |
||||
|
||||
private BigDecimal vgoodsPrice; |
||||
|
||||
private Integer verifyCardSaleId; |
||||
|
||||
private Integer giveGoodsId; |
||||
|
||||
private String attr; |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public Integer getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Integer id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Integer getOrderId() { |
||||
return orderId; |
||||
} |
||||
|
||||
public void setOrderId(Integer orderId) { |
||||
this.orderId = orderId; |
||||
} |
||||
|
||||
public Integer getGoodsId() { |
||||
return goodsId; |
||||
} |
||||
|
||||
public void setGoodsId(Integer goodsId) { |
||||
this.goodsId = goodsId; |
||||
} |
||||
|
||||
public Integer getNum() { |
||||
return num; |
||||
} |
||||
|
||||
public void setNum(Integer num) { |
||||
this.num = num; |
||||
} |
||||
|
||||
public BigDecimal getTotalPrice() { |
||||
return totalPrice; |
||||
} |
||||
|
||||
public void setTotalPrice(BigDecimal totalPrice) { |
||||
this.totalPrice = totalPrice; |
||||
} |
||||
|
||||
public Integer getAddtime() { |
||||
return addtime; |
||||
} |
||||
|
||||
public void setAddtime(Integer addtime) { |
||||
this.addtime = addtime; |
||||
} |
||||
|
||||
public Short getIsDelete() { |
||||
return isDelete; |
||||
} |
||||
|
||||
public void setIsDelete(Short isDelete) { |
||||
this.isDelete = isDelete; |
||||
} |
||||
|
||||
public String getPic() { |
||||
return pic; |
||||
} |
||||
|
||||
public void setPic(String pic) { |
||||
this.pic = pic; |
||||
} |
||||
|
||||
public Integer getIntegral() { |
||||
return integral; |
||||
} |
||||
|
||||
public void setIntegral(Integer integral) { |
||||
this.integral = integral; |
||||
} |
||||
|
||||
public Short getIsLevel() { |
||||
return isLevel; |
||||
} |
||||
|
||||
public void setIsLevel(Short isLevel) { |
||||
this.isLevel = isLevel; |
||||
} |
||||
|
||||
public String getBatchPriceTips() { |
||||
return batchPriceTips; |
||||
} |
||||
|
||||
public void setBatchPriceTips(String batchPriceTips) { |
||||
this.batchPriceTips = batchPriceTips; |
||||
} |
||||
|
||||
public BigDecimal getSupplierPrice() { |
||||
return supplierPrice; |
||||
} |
||||
|
||||
public void setSupplierPrice(BigDecimal supplierPrice) { |
||||
this.supplierPrice = supplierPrice; |
||||
} |
||||
|
||||
public Integer getVgoodsId() { |
||||
return vgoodsId; |
||||
} |
||||
|
||||
public void setVgoodsId(Integer vgoodsId) { |
||||
this.vgoodsId = vgoodsId; |
||||
} |
||||
|
||||
public BigDecimal getVgoodsPrice() { |
||||
return vgoodsPrice; |
||||
} |
||||
|
||||
public void setVgoodsPrice(BigDecimal vgoodsPrice) { |
||||
this.vgoodsPrice = vgoodsPrice; |
||||
} |
||||
|
||||
public Integer getVerifyCardSaleId() { |
||||
return verifyCardSaleId; |
||||
} |
||||
|
||||
public void setVerifyCardSaleId(Integer verifyCardSaleId) { |
||||
this.verifyCardSaleId = verifyCardSaleId; |
||||
} |
||||
|
||||
public Integer getGiveGoodsId() { |
||||
return giveGoodsId; |
||||
} |
||||
|
||||
public void setGiveGoodsId(Integer giveGoodsId) { |
||||
this.giveGoodsId = giveGoodsId; |
||||
} |
||||
|
||||
public String getAttr() { |
||||
return attr; |
||||
} |
||||
|
||||
public void setAttr(String attr) { |
||||
this.attr = attr; |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object that) { |
||||
if (this == that) { |
||||
return true; |
||||
} |
||||
if (that == null) { |
||||
return false; |
||||
} |
||||
if (getClass() != that.getClass()) { |
||||
return false; |
||||
} |
||||
CyymallOrderDetail other = (CyymallOrderDetail) that; |
||||
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) |
||||
&& (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId())) |
||||
&& (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId())) |
||||
&& (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum())) |
||||
&& (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice())) |
||||
&& (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime())) |
||||
&& (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete())) |
||||
&& (this.getPic() == null ? other.getPic() == null : this.getPic().equals(other.getPic())) |
||||
&& (this.getIntegral() == null ? other.getIntegral() == null : this.getIntegral().equals(other.getIntegral())) |
||||
&& (this.getIsLevel() == null ? other.getIsLevel() == null : this.getIsLevel().equals(other.getIsLevel())) |
||||
&& (this.getBatchPriceTips() == null ? other.getBatchPriceTips() == null : this.getBatchPriceTips().equals(other.getBatchPriceTips())) |
||||
&& (this.getSupplierPrice() == null ? other.getSupplierPrice() == null : this.getSupplierPrice().equals(other.getSupplierPrice())) |
||||
&& (this.getVgoodsId() == null ? other.getVgoodsId() == null : this.getVgoodsId().equals(other.getVgoodsId())) |
||||
&& (this.getVgoodsPrice() == null ? other.getVgoodsPrice() == null : this.getVgoodsPrice().equals(other.getVgoodsPrice())) |
||||
&& (this.getVerifyCardSaleId() == null ? other.getVerifyCardSaleId() == null : this.getVerifyCardSaleId().equals(other.getVerifyCardSaleId())) |
||||
&& (this.getGiveGoodsId() == null ? other.getGiveGoodsId() == null : this.getGiveGoodsId().equals(other.getGiveGoodsId())) |
||||
&& (this.getAttr() == null ? other.getAttr() == null : this.getAttr().equals(other.getAttr())); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
final int prime = 31; |
||||
int result = 1; |
||||
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); |
||||
result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode()); |
||||
result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode()); |
||||
result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode()); |
||||
result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode()); |
||||
result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode()); |
||||
result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode()); |
||||
result = prime * result + ((getPic() == null) ? 0 : getPic().hashCode()); |
||||
result = prime * result + ((getIntegral() == null) ? 0 : getIntegral().hashCode()); |
||||
result = prime * result + ((getIsLevel() == null) ? 0 : getIsLevel().hashCode()); |
||||
result = prime * result + ((getBatchPriceTips() == null) ? 0 : getBatchPriceTips().hashCode()); |
||||
result = prime * result + ((getSupplierPrice() == null) ? 0 : getSupplierPrice().hashCode()); |
||||
result = prime * result + ((getVgoodsId() == null) ? 0 : getVgoodsId().hashCode()); |
||||
result = prime * result + ((getVgoodsPrice() == null) ? 0 : getVgoodsPrice().hashCode()); |
||||
result = prime * result + ((getVerifyCardSaleId() == null) ? 0 : getVerifyCardSaleId().hashCode()); |
||||
result = prime * result + ((getGiveGoodsId() == null) ? 0 : getGiveGoodsId().hashCode()); |
||||
result = prime * result + ((getAttr() == null) ? 0 : getAttr().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(", orderId=").append(orderId); |
||||
sb.append(", goodsId=").append(goodsId); |
||||
sb.append(", num=").append(num); |
||||
sb.append(", totalPrice=").append(totalPrice); |
||||
sb.append(", addtime=").append(addtime); |
||||
sb.append(", isDelete=").append(isDelete); |
||||
sb.append(", pic=").append(pic); |
||||
sb.append(", integral=").append(integral); |
||||
sb.append(", isLevel=").append(isLevel); |
||||
sb.append(", batchPriceTips=").append(batchPriceTips); |
||||
sb.append(", supplierPrice=").append(supplierPrice); |
||||
sb.append(", vgoodsId=").append(vgoodsId); |
||||
sb.append(", vgoodsPrice=").append(vgoodsPrice); |
||||
sb.append(", verifyCardSaleId=").append(verifyCardSaleId); |
||||
sb.append(", giveGoodsId=").append(giveGoodsId); |
||||
sb.append(", attr=").append(attr); |
||||
sb.append(", serialVersionUID=").append(serialVersionUID); |
||||
sb.append("]"); |
||||
return sb.toString(); |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue