Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div
# Conflicts:
# fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoMapper.java
| | |
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry excluding="**" including="**/*.java" kind="src" output="target/classes" path="src/main/resource">
|
| | | <attributes>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
| | | <attributes>
|
| | | <attribute name="optional" value="true"/>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | <attribute name="test" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
| | |
| | | <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry excluding="**" including="**/*.java" kind="src" output="target/classes" path="src/main/resource">
|
| | | <attributes>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="lib" path="libs/opush-server-sdk-1.0.3.jar"/>
|
| | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
| | | <attributes>
|
| | | <attribute name="maven.pomderived" value="true"/>
|
| | | </attributes>
|
| | | </classpathentry>
|
| | | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.8.0_181"/>
|
| | | <classpathentry kind="output" path="target/classes"/>
|
| | | </classpath>
|
| | |
| | |
|
| | | @Resource
|
| | | private IntegralGetService integralGetService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private UserMoneyExtraService userMoneyExtraService;
|
| | |
|
| | |
| | | import com.yeshi.fanli.service.inter.order.LostOrderService;
|
| | | import com.yeshi.fanli.service.inter.order.OrderService;
|
| | | import com.yeshi.fanli.service.inter.order.config.HongBaoManageService;
|
| | | import com.yeshi.fanli.service.inter.redpack.RedPackBalanceService;
|
| | | import com.yeshi.fanli.service.inter.redpack.RedPackForbidService;
|
| | | import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinDetailService;
|
| | | import com.yeshi.fanli.service.inter.user.AccountMessageService;
|
| | |
| | | import com.yeshi.fanli.service.inter.user.UserShareGoodsRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.invite.ThreeSaleExtraInfoSerivce;
|
| | | import com.yeshi.fanli.service.inter.user.invite.ThreeSaleSerivce;
|
| | | import com.yeshi.fanli.service.inter.user.vip.UserVIPInfoService;
|
| | | import com.yeshi.fanli.util.AESUtil;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.GsonUtil;
|
| | |
| | |
|
| | | @Resource
|
| | | private UserInfoModifyRecordService userInfoModifyRecordService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private BindRemindService bindRemindService;
|
| | | |
| | |
|
| | | @Resource |
| | | private RedPackBalanceService redPackBalanceService;
|
| | |
|
| | | @Resource
|
| | | private UserRankService userRankService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private UserVIPInfoService userVIPInfoService;
|
| | | private RedPackForbidService redPackForbidService;
|
| | | |
| | |
|
| | |
|
| | |
|
| | | private static final String PASSWORD_MAX_ERROR = "password_max_error";
|
| | | private static final String EXTRACT_MIN_MONEY = "extract_min_money";
|
| | |
| | | userActiveLog.setOsVersion(acceptData.getOsVersion());
|
| | | userActiveLog.setDeviceType(acceptData.getDeviceType());
|
| | | userActiveLog.setDevice(acceptData.getDevice());
|
| | | |
| | |
|
| | | userActiveLogService.addUserActiveLog(userActiveLog);
|
| | |
|
| | | outUserInfo(acceptData, out, remotIP, find, acceptData.getDevice());
|
| | |
| | | // 1.6.5 之后返回 微信号提示
|
| | | if (VersionUtil.greaterThan_1_6_5(acceptData.getPlatform(), acceptData.getVersion()))
|
| | | userInfo.setWeiXinTip("添加微信号后,你的邀请人和一级队员可以通过微信与你建立联系。");
|
| | | |
| | |
|
| | | // 查询是否为VIP
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | userInfo.setVip(userVIPInfoService.isVIP(uid));
|
| | | }
|
| | |
|
| | | data.put("user", JsonUtil.getConvertBigDecimalToStringBuilder(gsonBuilder).create().toJson(userInfo));
|
| | | data.put("invitCode", invitCode); // 邀请码
|
| | | if (userInfoExtra.getInviteCodeState() != null
|
| | | && userInfoExtra.getInviteCodeState() == UserInfoExtra.INVITE_CODE_SATTE_VALID_UPDATED)
|
| | | data.put("invitCodeUpdated", true);// 邀请码是否已经修改过
|
| | | else
|
| | | data.put("invitCodeUpdated", false);
|
| | | data.put("welfareCenterNews", welfareCenterNews);// 福利中心消息
|
| | | |
| | | data.put("vipLink", configService.get("vip_link"));// 超级会员升级链接
|
| | |
|
| | | // 2.0.1之后绑定手机号
|
| | | if (VersionUtil.greaterThan_2_0_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | boolean bindPhone = false;
|
| | | if (StringUtil.isNullOrEmpty(userInfo.getPhone())) |
| | | if (StringUtil.isNullOrEmpty(userInfo.getPhone()))
|
| | | bindPhone = bindRemindService.bindRemind(uid, BindRemind.TYPE_PHONE);
|
| | | data.put("bindPhone", bindPhone);
|
| | | }
|
| | | |
| | |
|
| | | // 2.0.2 版本
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | |
|
| | | data.put("redPackLock", redPackForbidService.verifyForbid(uid));
|
| | | }
|
| | | |
| | |
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | |
| | |
|
| | | final UserInfo uuser = userInfo;
|
| | | ThreadUtil.run(new Runnable() {
|
| | | public void run() {
|
| | |
| | | */
|
| | | @RequestMapping(value = "saveInfo")
|
| | | public void saveInfo(AcceptData acceptData, String nickName, String weiXin, Integer sex, Long uid,
|
| | | PrintWriter out) {
|
| | | String inviteCode, PrintWriter out) {
|
| | | try {
|
| | | if (uid == null) {
|
| | | out.print(JsonUtil.loadFalseResult("用户未登录"));
|
| | |
| | | userInfoModifyRecordService.addModifyRecord(uid, ModifyTypeEnum.gender, sex + "");
|
| | | }
|
| | | }
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(inviteCode)) {// 邀请码不为空
|
| | | inviteCode = inviteCode.trim();
|
| | | if (inviteCode.length() >= 6 && inviteCode.length() <= 12) {
|
| | |
|
| | | if (!userVIPInfoService.isVIP(uid)) {
|
| | | out.print(JsonUtil.loadFalseResult(20, "只有超级会员才能修改"));
|
| | | return;
|
| | | }
|
| | |
|
| | | try {
|
| | | userInfoExtraService.updateInviteCode(inviteCode, uid);
|
| | | out.print(JsonUtil.loadTrueResult("保存成功"));
|
| | | return;
|
| | | } catch (UserInfoExtraException e) {
|
| | | out.print(JsonUtil.loadFalseResult(e.getCode(), e.getMessage()));
|
| | | }
|
| | | } else {
|
| | | out.print(JsonUtil.loadFalseResult(1, "邀请码必须为6到12位"));
|
| | | return;
|
| | | }
|
| | | }
|
| | | out.print(JsonUtil.loadTrueResult("保存成功"));
|
| | | } catch (UserInfoException e) {
|
| | | out.print(JsonUtil.loadFalseResult(e.getMsg()));
|
| | |
| | |
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("listAD", JsonUtil.getApiCommonGson().toJson(listVO));
|
| | | data.put("protocol", configService.get("user_protocol_home_data"));
|
| | |
|
| | | // 领券帮助链接,1.5.2后生效
|
| | | String couponHelp = configService.get("taobao_coupon_help");
|
| | |
| | | import com.yeshi.fanli.util.TaoBaoConstant;
|
| | | import com.yeshi.fanli.util.ThreadUtil;
|
| | | import com.yeshi.fanli.util.TimeUtil;
|
| | | import com.yeshi.fanli.util.VersionUtil;
|
| | | import com.yeshi.fanli.util.cache.JDGoodsCacheUtil;
|
| | | import com.yeshi.fanli.util.cache.PinDuoDuoCacheUtil;
|
| | | import com.yeshi.fanli.util.cache.TaoBaoGoodsCacheUtil;
|
| | |
| | | rewardCoupon.setJumpDetail(jumpDetailV2Service.getByTypeCache("web"));
|
| | | JSONObject params1 = new JSONObject();
|
| | | params1.put("url", configService.get("special_guide_reward_coupon_link"));
|
| | | rewardCoupon.setParams(params1.toString());
|
| | |
|
| | | rewardCoupon.setMaxMoney("¥" + TaoBaoUtil.getGoodsHongBaoMoney(goods, fanLiRate).add(MoneyBigDecimalUtil
|
| | | .mul(TaoBaoUtil.getGoodsHongBaoMoney(goods, fanLiRate), Constant.MAX_REWARD_RATE)));
|
| | | rewardCoupon.setDesc("用返利奖励券最高返");
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | rewardCoupon.setDesc("返");
|
| | | params1.put("url", configService.get("vip_link"));
|
| | | rewardCoupon.getJumpDetail().setNeedLogin(true);
|
| | | } else
|
| | | rewardCoupon.setDesc("用返利奖励券最高返");
|
| | | rewardCoupon.setParams(params1.toString());
|
| | | otherInfo.setRewardCoupon(rewardCoupon);
|
| | | goodsDetail.setOtherInfo(otherInfo);
|
| | | }
|
| | |
| | | BigDecimal fanliMoneyPlus = JDUtil.getGoodsFanLiMoneyPlus(jdGoods, fanLiRate);
|
| | | otherInfo.setFanliMoneyPlus("京东plus会员返¥" + fanliMoneyPlus);
|
| | | // 使用奖励券最高返
|
| | | maxMoneyPlus = "(京东plus会员最高返¥"
|
| | | + fanliMoneyPlus.add(MoneyBigDecimalUtil.mul(fanliMoneyPlus, Constant.MAX_REWARD_RATE))
|
| | | + ")";
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | maxMoneyPlus = "(京东plus返¥"
|
| | | + fanliMoneyPlus.add(MoneyBigDecimalUtil.mul(fanliMoneyPlus, Constant.MAX_REWARD_RATE))
|
| | | + ")";
|
| | | } else
|
| | | maxMoneyPlus = "(京东plus会员最高返¥"
|
| | | + fanliMoneyPlus.add(MoneyBigDecimalUtil.mul(fanliMoneyPlus, Constant.MAX_REWARD_RATE))
|
| | | + ")";
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | rewardCoupon.setJumpDetail(jumpDetailV2Service.getByTypeCache("web"));
|
| | | JSONObject params1 = new JSONObject();
|
| | | params1.put("url", configService.get("special_guide_reward_coupon_link"));
|
| | | rewardCoupon.setParams(params1.toString());
|
| | |
|
| | | rewardCoupon.setMaxMoney("¥" + JDUtil.getGoodsFanLiMoney(jdGoods, fanLiRate)
|
| | | .add(MoneyBigDecimalUtil.mul(JDUtil.getGoodsFanLiMoney(jdGoods, fanLiRate), Constant.MAX_REWARD_RATE)));
|
| | | rewardCoupon.setDesc("用返利奖励券最高返");
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | rewardCoupon.setDesc("返");
|
| | | params1.put("url", configService.get("vip_link"));
|
| | | rewardCoupon.getJumpDetail().setNeedLogin(true);
|
| | | } else {
|
| | | rewardCoupon.setDesc("用返利奖励券最高返");
|
| | | }
|
| | | rewardCoupon.setParams(params1.toString());
|
| | | otherInfo.setRewardCoupon(rewardCoupon);
|
| | | goodsDetail.setOtherInfo(otherInfo);
|
| | |
|
| | |
| | | rewardCoupon.setJumpDetail(jumpDetailV2Service.getByTypeCache("web"));
|
| | | JSONObject params1 = new JSONObject();
|
| | | params1.put("url", configService.get("special_guide_reward_coupon_link"));
|
| | | rewardCoupon.setParams(params1.toString());
|
| | |
|
| | | rewardCoupon.setMaxMoney("¥" + PinDuoDuoUtil.getGoodsFanLiMoney(pddGoods, fanLiRate).add(MoneyBigDecimalUtil
|
| | | .mul(PinDuoDuoUtil.getGoodsFanLiMoney(pddGoods, fanLiRate), Constant.MAX_REWARD_RATE)));
|
| | | rewardCoupon.setDesc("用返利奖励券最高返");
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | rewardCoupon.setDesc("返");
|
| | | params1.put("url", configService.get("vip_link"));
|
| | | rewardCoupon.getJumpDetail().setNeedLogin(true);
|
| | | } else
|
| | | rewardCoupon.setDesc("用返利奖励券最高返");
|
| | | rewardCoupon.setParams(params1.toString());
|
| | | otherInfo.setRewardCoupon(rewardCoupon);
|
| | | goodsDetail.setOtherInfo(otherInfo);
|
| | |
|
| | |
| | | * @param acceptData
|
| | | * @param uid
|
| | | * @param id
|
| | | * @param couponUrl
|
| | | * -优惠券链接
|
| | | * @param source
|
| | | * @param request
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "getJDLink")
|
| | | public void getJDLink(AcceptData acceptData, Long uid, Long id, String source, PrintWriter out) {
|
| | | public void getJDLink(AcceptData acceptData, Long uid, Long id, String couponUrl, String source, PrintWriter out) {
|
| | | if (uid == null || uid <= 0) {
|
| | | out.print(JsonUtil.loadFalseResult(1, "用户ID不能为空"));
|
| | | return;
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | String couponUrl = null;
|
| | | String jumpLink = null;
|
| | | String materialId = "https://item.jd.com/" + id + ".html";
|
| | | JDCouponInfo couponInfo = goods.getCouponInfo();
|
| | | if (couponInfo != null) {
|
| | | couponUrl = couponInfo.getLink();
|
| | | if (StringUtil.isNullOrEmpty(couponUrl)) {
|
| | | JDCouponInfo couponInfo = JDUtil.getShowCouponInfo(goods.getCouponInfoList(), goods.getPrice());
|
| | | if (couponInfo != null) {
|
| | | couponUrl = couponInfo.getLink();
|
| | | }
|
| | | jumpLink = JDApiUtil.convertLink(materialId, couponUrl, JDApiUtil.POSITION_FANLI + "", uid + "");
|
| | | } else {
|
| | | jumpLink = JDApiUtil.convertLink(materialId, couponUrl, JDApiUtil.POSITION_FANLI + "", uid + "");
|
| | | }
|
| | | String jumpLink = JDApiUtil.convertLink(materialId, couponUrl, JDApiUtil.POSITION_FANLI + "", uid + "");
|
| | |
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("native", true);
|
| | |
| | | import java.util.ArrayList;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | |
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | | import com.yeshi.fanli.service.inter.user.invite.ThreeSaleExtraInfoSerivce;
|
| | | import com.yeshi.fanli.service.inter.user.invite.ThreeSaleSerivce;
|
| | | import com.yeshi.fanli.service.inter.user.vip.UserVIPInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.RedisManager;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.VersionUtil;
|
| | | import com.yeshi.fanli.util.annotation.RequestSerializableByKey;
|
| | | import com.yeshi.fanli.util.wx.WXLoginUtil;
|
| | |
|
| | |
| | |
|
| | | @Resource
|
| | | private RedisManager redisManager;
|
| | | |
| | |
|
| | | @Resource
|
| | | private ConfigService configService;
|
| | |
|
| | |
| | |
|
| | | @Resource
|
| | | private ThreeSaleExtraInfoSerivce threeSaleExtraInfoSerivce;
|
| | |
|
| | | @Resource
|
| | | private UserVIPInfoService userVIPInfoService;
|
| | |
|
| | | /**
|
| | | * 邀请码验证
|
| | |
| | | WeiXinUser weiXinUser = WXLoginUtil.getWeiXinUser(code, wxAccount.getAppId(), wxAccount.getAppSecret());
|
| | | if (weiXinUser == null)
|
| | | throw new UserInfoExtraException(1, "微信授权失败");
|
| | | |
| | |
|
| | | String wxUnionId = weiXinUser.getUnionid();
|
| | | if (wxUnionId == null || wxUnionId.trim().length() == 0)
|
| | | throw new UserInfoExtraException(1, "微信授权失败");
|
| | | |
| | |
|
| | | String activeWX = StringUtil.Md5("activeWX:" + weiXinUser.getUnionid());
|
| | | redisManager.cacheCommonString(activeWX, JsonUtil.getSimpleGson().toJson(weiXinUser), 60 * 20);
|
| | | |
| | |
|
| | | // 邀请关系用户信息
|
| | | UserInfo userInfo = userInfoExtraService.getInviterInfo(uid, wxUnionId);
|
| | | |
| | |
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("nickName", userInfo.getNickName());
|
| | | data.put("portrait", userInfo.getPortrait());
|
| | |
| | |
|
| | | /**
|
| | | * 微信激活
|
| | | * |
| | | * @param acceptData
|
| | | * @param uid
|
| | | * @param key 验证返回的key
|
| | | * @param key
|
| | | * 验证返回的key
|
| | | * @param out
|
| | | */
|
| | | @RequestSerializableByKey(key = "'activeInviteWX-'+#uid")
|
| | |
| | | String value = redisManager.getCommonString(key);
|
| | | if (StringUtil.isNullOrEmpty(value))
|
| | | throw new UserAccountException(1, "微信授权失效");
|
| | | |
| | |
|
| | | WeiXinUser weiXinUser = JsonUtil.getSimpleGson().fromJson(value, WeiXinUser.class);
|
| | | if (weiXinUser == null)
|
| | | throw new UserAccountException(1, "微信授权失效");
|
| | | |
| | |
|
| | | userInfoExtraService.activeInviteWX(uid, weiXinUser);
|
| | | // 删除缓存
|
| | | redisManager.removeCommonString(key);
|
| | | |
| | |
|
| | | out.print(JsonUtil.loadTrueResult("邀请码激活成功"));
|
| | | } catch (UserInfoExtraException e) {
|
| | | out.print(JsonUtil.loadFalseResult(e.getMsg()));
|
| | |
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | | |
| | | |
| | | |
| | |
|
| | | /**
|
| | | * 用户队员列表查询 1.5.3查询有效队员
|
| | | *
|
| | |
| | | count = threeSaleSerivce.countSecondTeam(uid, 1);
|
| | | }
|
| | |
|
| | | boolean needVIPInfo = false;
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion()))
|
| | | needVIPInfo = true;
|
| | |
|
| | | // 组织数据
|
| | | JSONObject resultData = organizeTeam(count, listTeam, uid, type);
|
| | | JSONObject resultData = organizeTeam(count, listTeam, uid, type,needVIPInfo);
|
| | |
|
| | | // 第一页判断是否激活 是否有队员
|
| | | if (type == 1 && page == 1) {
|
| | |
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | private JSONObject organizeTeam(long count, List<ThreeSale> list, Long uid, int type) {
|
| | | private JSONObject organizeTeam(long count, List<ThreeSale> list, Long uid, int type, boolean needVipInfo) {
|
| | | JSONObject result = new JSONObject();
|
| | | JSONArray resultArray = new JSONArray();
|
| | |
|
| | |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd HH:mm");
|
| | | SimpleDateFormat formatYears = new SimpleDateFormat("yyyy");
|
| | |
|
| | | List<Long> workerIdList = new ArrayList<>();
|
| | | Map<Long, Boolean> vipMap = null;
|
| | | if (needVipInfo) {
|
| | | for (ThreeSale threeSale : list)
|
| | | workerIdList.add(threeSale.getWorker().getId());
|
| | | if (workerIdList.size() > 0)
|
| | | vipMap = userVIPInfoService.listByUids(workerIdList);
|
| | | }
|
| | | for (ThreeSale threeSale : list) {
|
| | | UserInfo worker = threeSale.getWorker();
|
| | | if (worker == null) {
|
| | |
| | |
|
| | | Date inviteTime = new Date(threeSale.getCreateTime());
|
| | | object.put("inviteTime", format.format(inviteTime) + " 加入");
|
| | | // 添加是否为VIP
|
| | | if (vipMap != null && vipMap.get(worker.getId()) != null)
|
| | | object.put("vip", vipMap.get(worker.getId()));
|
| | |
|
| | | String fontColor1 = "#888888";
|
| | | JSONArray array = new JSONArray();
|
| | |
| | | // goodsId + "");
|
| | |
|
| | | String couponUrl = null;
|
| | | JDCouponInfo couponInfo = jdGoods.getCouponInfo();
|
| | | JDCouponInfo couponInfo = JDUtil.getShowCouponInfo(jdGoods);
|
| | | if (couponInfo != null) {
|
| | | couponUrl = couponInfo.getLink();
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | String couponUrl = null;
|
| | | JDCouponInfo couponInfo = goods.getCouponInfo();
|
| | | JDCouponInfo couponInfo = JDUtil.getShowCouponInfo(goods);
|
| | | if (couponInfo != null) {
|
| | | couponUrl = couponInfo.getLink();
|
| | | }
|
| | |
| | | boolean hasCoupon = false;
|
| | | String couponUrl = null;
|
| | | BigDecimal discount = new BigDecimal(0);
|
| | | JDCouponInfo couponInfo = jdGoods.getCouponInfo();
|
| | | JDCouponInfo couponInfo = JDUtil.getShowCouponInfo( jdGoods) ;
|
| | | if (couponInfo != null) {
|
| | | hasCoupon = true;
|
| | | discount = couponInfo.getDiscount();
|
| | |
| | | import com.yeshi.fanli.dao.MongodbBaseDao;
|
| | | import com.yeshi.fanli.entity.taobao.dataoke.DaTaoKeDetailV2;
|
| | | import com.yeshi.fanli.util.MoneyBigDecimalUtil;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | | @Repository
|
| | | public class DaTaoKeGoodsDetailV2Dao extends MongodbBaseDao<DaTaoKeDetailV2> {
|
| | |
| | | return mongoTemplate.count(query, DaTaoKeDetailV2.class);
|
| | | }
|
| | |
|
| | | public List<DaTaoKeDetailV2> listByMaxPrice(Integer cid, BigDecimal maxPrice, String sortName, int start,
|
| | | int count) {
|
| | | Query query = new Query();
|
| | | if (cid != null)
|
| | | query.addCriteria(Criteria.where("actualPrice").lt(maxPrice).andOperator(Criteria.where("cid").is(cid)));
|
| | | else
|
| | | query.addCriteria(Criteria.where("actualPrice").lt(maxPrice));
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(sortName)) {
|
| | | List<Order> orders = new ArrayList<>();
|
| | | orders.add(new Order(Direction.DESC, sortName));
|
| | | query.with(new Sort(orders));
|
| | | }
|
| | | query.skip(start);
|
| | | query.limit(count);
|
| | | return mongoTemplate.find(query, getEntityClass());
|
| | | }
|
| | |
|
| | | public long countByMaxPrice(Integer cid, BigDecimal maxPrice) {
|
| | | Query query = new Query();
|
| | | if (cid != null)
|
| | | query.addCriteria(Criteria.where("actualPrice").lt(maxPrice).andOperator(Criteria.where("cid").is(cid)));
|
| | | else
|
| | | query.addCriteria(Criteria.where("actualPrice").lt(maxPrice));
|
| | | return mongoTemplate.count(query, getEntityClass());
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.AccountMessage; |
| | | |
| | | public interface AccountMessageMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(AccountMessage record); |
| | | |
| | | int insertSelective(AccountMessage record); |
| | | |
| | | AccountMessage selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(AccountMessage record); |
| | | |
| | | int updateByPrimaryKey(AccountMessage record); |
| | | |
| | | /** |
| | | * 通过用户ID查询消息(id倒叙排列) |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<AccountMessage> listByUidOrderByIdDesc(@Param("uid")Long uid, @Param("start")long start, @Param("count")int count); |
| | | |
| | | |
| | | /** |
| | | * 根据用户ID获取是否已经打开的消息数量 |
| | | * @param uid |
| | | * @param open |
| | | * @return |
| | | */ |
| | | long countByUidAndOpen(@Param("uid")Long uid,@Param("open")Boolean open); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.AccountMessage;
|
| | |
|
| | | public interface AccountMessageMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(AccountMessage record);
|
| | |
|
| | | int insertSelective(AccountMessage record);
|
| | |
|
| | | AccountMessage selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(AccountMessage record);
|
| | |
|
| | | int updateByPrimaryKey(AccountMessage record);
|
| | |
|
| | | /**
|
| | | * 通过用户ID查询消息(id倒叙排列)
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<AccountMessage> listByUidOrderByIdDesc(@Param("uid")Long uid, @Param("start")long start, @Param("count")int count);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据用户ID获取是否已经打开的消息数量
|
| | | * @param uid
|
| | | * @param open
|
| | | * @return
|
| | | */
|
| | | long countByUidAndOpen(@Param("uid")Long uid,@Param("open")Boolean open);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.common.AdminUser; |
| | | |
| | | public interface AdminUserMapper extends BaseMapper<AdminUser>{ |
| | | |
| | | AdminUser getByAccountAndPwd(@Param("account") String account, @Param("pwd") String pwd); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.common.AdminUser;
|
| | |
|
| | | public interface AdminUserMapper extends BaseMapper<AdminUser>{
|
| | |
|
| | | AdminUser getByAccountAndPwd(@Param("account") String account, @Param("pwd") String pwd);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory; |
| | | |
| | | public interface AlipayAccountValidNormalHistoryMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(AlipayAccountValidNormalHistory record); |
| | | |
| | | int insertSelective(AlipayAccountValidNormalHistory record); |
| | | |
| | | AlipayAccountValidNormalHistory selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(AlipayAccountValidNormalHistory record); |
| | | |
| | | int updateByPrimaryKey(AlipayAccountValidNormalHistory record); |
| | | |
| | | AlipayAccountValidNormalHistory selectLatestByUid(Long uid); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory;
|
| | |
|
| | | public interface AlipayAccountValidNormalHistoryMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(AlipayAccountValidNormalHistory record);
|
| | |
|
| | | int insertSelective(AlipayAccountValidNormalHistory record);
|
| | |
|
| | | AlipayAccountValidNormalHistory selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(AlipayAccountValidNormalHistory record);
|
| | |
|
| | | int updateByPrimaryKey(AlipayAccountValidNormalHistory record);
|
| | |
|
| | | AlipayAccountValidNormalHistory selectLatestByUid(Long uid);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.AppVersionInfo; |
| | | |
| | | public interface AppVersionInfoMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(AppVersionInfo record); |
| | | |
| | | int insertSelective(AppVersionInfo record); |
| | | |
| | | AppVersionInfo selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 根据平台获取版本信息 |
| | | * |
| | | * @param platform |
| | | * @return |
| | | */ |
| | | List<AppVersionInfo> selectByPlatform(String platform); |
| | | |
| | | /** |
| | | * 根据平台和版本获取版本信息 |
| | | * |
| | | * @param platform |
| | | * @param versionCode |
| | | * @return |
| | | */ |
| | | AppVersionInfo selectByPlatformAndVersion(@Param("platform") String platform, |
| | | @Param("version") String version); |
| | | |
| | | |
| | | /** |
| | | * 根据平台和版本号获取版本信息 |
| | | * |
| | | * @param platform |
| | | * @param versionCode |
| | | * @return |
| | | */ |
| | | AppVersionInfo selectByPlatformAndVersionCode(@Param("platform") String platform, |
| | | @Param("versionCode") int versionCode); |
| | | |
| | | int updateByPrimaryKeySelective(AppVersionInfo record); |
| | | |
| | | int updateByPrimaryKey(AppVersionInfo record); |
| | | |
| | | /** |
| | | * 根据平台和最小版本获取版本列表 |
| | | * |
| | | * @param platform |
| | | * @param minVersionCode |
| | | * @return |
| | | */ |
| | | List<AppVersionInfo> listByPlatformAndMinVersionCode(@Param("platform") String platform, |
| | | @Param("minVersionCode") int minVersionCode); |
| | | |
| | | /** |
| | | * 根据平台和最大版本号获取版本列表 |
| | | * |
| | | * @param platform |
| | | * @param minVersionCode |
| | | * @return |
| | | */ |
| | | List<AppVersionInfo> listByPlatformAndMaxVersionCode(@Param("platform") String platform, |
| | | @Param("maxVersionCode") int maxVersionCode); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.AppVersionInfo;
|
| | |
|
| | | public interface AppVersionInfoMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(AppVersionInfo record);
|
| | |
|
| | | int insertSelective(AppVersionInfo record);
|
| | |
|
| | | AppVersionInfo selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 根据平台获取版本信息
|
| | | * |
| | | * @param platform
|
| | | * @return
|
| | | */
|
| | | List<AppVersionInfo> selectByPlatform(String platform);
|
| | |
|
| | | /**
|
| | | * 根据平台和版本获取版本信息
|
| | | * |
| | | * @param platform
|
| | | * @param versionCode
|
| | | * @return
|
| | | */
|
| | | AppVersionInfo selectByPlatformAndVersion(@Param("platform") String platform,
|
| | | @Param("version") String version);
|
| | | |
| | | |
| | | /**
|
| | | * 根据平台和版本号获取版本信息
|
| | | * |
| | | * @param platform
|
| | | * @param versionCode
|
| | | * @return
|
| | | */
|
| | | AppVersionInfo selectByPlatformAndVersionCode(@Param("platform") String platform,
|
| | | @Param("versionCode") int versionCode);
|
| | |
|
| | | int updateByPrimaryKeySelective(AppVersionInfo record);
|
| | |
|
| | | int updateByPrimaryKey(AppVersionInfo record);
|
| | |
|
| | | /**
|
| | | * 根据平台和最小版本获取版本列表
|
| | | * |
| | | * @param platform
|
| | | * @param minVersionCode
|
| | | * @return
|
| | | */
|
| | | List<AppVersionInfo> listByPlatformAndMinVersionCode(@Param("platform") String platform,
|
| | | @Param("minVersionCode") int minVersionCode);
|
| | |
|
| | | /**
|
| | | * 根据平台和最大版本号获取版本列表
|
| | | * |
| | | * @param platform
|
| | | * @param minVersionCode
|
| | | * @return
|
| | | */
|
| | | List<AppVersionInfo> listByPlatformAndMaxVersionCode(@Param("platform") String platform,
|
| | | @Param("maxVersionCode") int maxVersionCode);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.BindingAccount; |
| | | |
| | | public interface BindingAccountMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(BindingAccount record); |
| | | |
| | | int insertSelective(BindingAccount record); |
| | | |
| | | BindingAccount selectByPrimaryKey(Long id); |
| | | |
| | | List<BindingAccount> selectByAccount(String account); |
| | | |
| | | BindingAccount selectByUidAndType(@Param("uid") Long uid, @Param("type") int type); |
| | | |
| | | List<BindingAccount> selectByUid(Long uid); |
| | | |
| | | int updateByPrimaryKeySelective(BindingAccount record); |
| | | |
| | | int updateByPrimaryKey(BindingAccount record); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.BindingAccount;
|
| | |
|
| | | public interface BindingAccountMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(BindingAccount record);
|
| | |
|
| | | int insertSelective(BindingAccount record);
|
| | |
|
| | | BindingAccount selectByPrimaryKey(Long id);
|
| | | |
| | | List<BindingAccount> selectByAccount(String account);
|
| | |
|
| | | BindingAccount selectByUidAndType(@Param("uid") Long uid, @Param("type") int type);
|
| | |
|
| | | List<BindingAccount> selectByUid(Long uid);
|
| | |
|
| | | int updateByPrimaryKeySelective(BindingAccount record);
|
| | |
|
| | | int updateByPrimaryKey(BindingAccount record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.system.BusinessSystem; |
| | | |
| | | public interface BusinessSystemMapper extends BaseMapper<BusinessSystem> { |
| | | |
| | | /** |
| | | * 所有数据 |
| | | * |
| | | * @return |
| | | */ |
| | | List<BusinessSystem> listAll(); |
| | | |
| | | /** |
| | | * 根据平台和包名查询 |
| | | * |
| | | * @param platform |
| | | * @param packageName |
| | | * @return |
| | | */ |
| | | List<BusinessSystem> listByPlatformAndPackage(@Param("platform") int platform, |
| | | @Param("packageName") String packageName); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | |
|
| | | public interface BusinessSystemMapper extends BaseMapper<BusinessSystem> {
|
| | |
|
| | | /**
|
| | | * 所有数据
|
| | | * |
| | | * @return
|
| | | */
|
| | | List<BusinessSystem> listAll();
|
| | |
|
| | | /**
|
| | | * 根据平台和包名查询
|
| | | * |
| | | * @param platform
|
| | | * @param packageName
|
| | | * @return
|
| | | */
|
| | | List<BusinessSystem> listByPlatformAndPackage(@Param("platform") int platform,
|
| | | @Param("packageName") String packageName);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.common.Config; |
| | | |
| | | public interface ConfigMapper extends BaseMapper<Config> { |
| | | |
| | | /** |
| | | * 获取所有配置 |
| | | * |
| | | * @return |
| | | */ |
| | | List<Config> listAll(); |
| | | |
| | | /** |
| | | * 通过名字搜索 |
| | | * |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<Config> listSearchByName(@Param("key") String key, @Param("start") int start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 获取通过名字搜索得到的数量 |
| | | * |
| | | * @param key |
| | | * @return |
| | | */ |
| | | long countSearchByName(@Param("key") String key); |
| | | |
| | | /** |
| | | * 根据关键词提取 |
| | | * |
| | | * @param key |
| | | * @param minAndroidVersion |
| | | * @param maxAndroidVersion |
| | | * @return |
| | | */ |
| | | List<Config> listByKey(@Param("key") String key, @Param("minAndroidVersion") Integer minAndroidVersion, |
| | | @Param("minIosVersion") Integer minIosVersion); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.common.Config;
|
| | |
|
| | | public interface ConfigMapper extends BaseMapper<Config> {
|
| | |
|
| | | /**
|
| | | * 获取所有配置
|
| | | * |
| | | * @return
|
| | | */
|
| | | List<Config> listAll();
|
| | |
|
| | | /**
|
| | | * 通过名字搜索
|
| | | * |
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<Config> listSearchByName(@Param("key") String key, @Param("start") int start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 获取通过名字搜索得到的数量
|
| | | * |
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | long countSearchByName(@Param("key") String key);
|
| | |
|
| | | /**
|
| | | * 根据关键词提取
|
| | | * |
| | | * @param key
|
| | | * @param minAndroidVersion
|
| | | * @param maxAndroidVersion
|
| | | * @return
|
| | | */
|
| | | List<Config> listByKey(@Param("key") String key, @Param("minAndroidVersion") Integer minAndroidVersion,
|
| | | @Param("minIosVersion") Integer minIosVersion);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.system.CustomerContent; |
| | | |
| | | public interface CustomerContentMapper extends BaseMapper<CustomerContent>{ |
| | | |
| | | List<CustomerContent> listByCnidAndTitle(@Param("start") long start, @Param("count") int count, |
| | | @Param("cnid")Long cnid, @Param("key")String key); |
| | | |
| | | |
| | | List<CustomerContent> contactCustomerService(@Param("title")String title); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.system.CustomerContent;
|
| | |
|
| | | public interface CustomerContentMapper extends BaseMapper<CustomerContent>{
|
| | | |
| | | List<CustomerContent> listByCnidAndTitle(@Param("start") long start, @Param("count") int count, |
| | | @Param("cnid")Long cnid, @Param("key")String key);
|
| | | |
| | | |
| | | List<CustomerContent> contactCustomerService(@Param("title")String title);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.system.CustomerName; |
| | | |
| | | public interface CustomerNameMapper extends BaseMapper<CustomerName>{ |
| | | |
| | | List<CustomerName> listByTypeAndName(@Param("start") long start, @Param("count") int count, |
| | | @Param("type")Integer type, @Param("key")String key); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.system.CustomerName;
|
| | |
|
| | | public interface CustomerNameMapper extends BaseMapper<CustomerName>{
|
| | | |
| | | List<CustomerName> listByTypeAndName(@Param("start") long start, @Param("count") int count, |
| | | @Param("type")Integer type, @Param("key")String key);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.ExtractRecord; |
| | | |
| | | public interface ExtractRecordMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int deleteAll(); |
| | | |
| | | int insert(ExtractRecord record); |
| | | |
| | | int insertSelective(ExtractRecord record); |
| | | |
| | | ExtractRecord selectByPrimaryKey(Long id); |
| | | |
| | | List<ExtractRecord> selectByUid(Long uid); |
| | | |
| | | List<ExtractRecord> selectByUidAndToday(Long uid); |
| | | |
| | | int updateByPrimaryKeySelective(ExtractRecord record); |
| | | |
| | | int updateByPrimaryKey(ExtractRecord record); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.ExtractRecord;
|
| | |
|
| | | public interface ExtractRecordMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | | |
| | | int deleteAll();
|
| | |
|
| | | int insert(ExtractRecord record);
|
| | |
|
| | | int insertSelective(ExtractRecord record);
|
| | |
|
| | | ExtractRecord selectByPrimaryKey(Long id);
|
| | | |
| | | List<ExtractRecord> selectByUid(Long uid);
|
| | | |
| | | List<ExtractRecord> selectByUidAndToday(Long uid);
|
| | |
|
| | | int updateByPrimaryKeySelective(ExtractRecord record);
|
| | |
|
| | | int updateByPrimaryKey(ExtractRecord record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord; |
| | | |
| | | public interface ExtractWeiXinRecordMapper extends BaseMapper<ExtractWeiXinRecord> { |
| | | |
| | | |
| | | /** |
| | | * 根据openid、发放方式查询 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | ExtractWeiXinRecord getByOpenIdAndType(@Param("openId")String openId, @Param("type") Integer type); |
| | | |
| | | |
| | | /** |
| | | * 查询满足条件的用户id |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<Long> getValidUsers(@Param("list")List<Long> list,@Param("receivedDate") String receivedDate, |
| | | @Param("refundDate") String refundDate); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord;
|
| | |
|
| | | public interface ExtractWeiXinRecordMapper extends BaseMapper<ExtractWeiXinRecord> {
|
| | | |
| | | |
| | | /**
|
| | | * 根据openid、发放方式查询
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | ExtractWeiXinRecord getByOpenIdAndType(@Param("openId")String openId, @Param("type") Integer type);
|
| | | |
| | | |
| | | /**
|
| | | * 查询满足条件的用户id
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<Long> getValidUsers(@Param("list")List<Long> list,@Param("receivedDate") String receivedDate,
|
| | | @Param("refundDate") String refundDate);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass; |
| | | |
| | | public interface GoodsSecondClassMapper extends BaseMapper<GoodsSecondClass>{ |
| | | |
| | | /** |
| | | * 根据上级分类ID查询 |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | List<GoodsSecondClass> getByGoodsClassId(@Param("pid") Long pid); |
| | | |
| | | /** |
| | | * 根据上级分类ID查询 |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | List<GoodsSecondClass> getByNameAndGoodsClassId(@Param("start") long start, @Param("count") int count, |
| | | @Param("pid") Long pid, @Param("name") String name); |
| | | |
| | | |
| | | int countByNameAndGoodsClassId(@Param("pid") Long pid, @Param("name") String name); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass;
|
| | |
|
| | | public interface GoodsSecondClassMapper extends BaseMapper<GoodsSecondClass>{
|
| | | |
| | | /**
|
| | | * 根据上级分类ID查询
|
| | | * @param pid
|
| | | * @return
|
| | | */
|
| | | List<GoodsSecondClass> getByGoodsClassId(@Param("pid") Long pid);
|
| | | |
| | | /**
|
| | | * 根据上级分类ID查询
|
| | | * @param pid
|
| | | * @return
|
| | | */
|
| | | List<GoodsSecondClass> getByNameAndGoodsClassId(@Param("start") long start, @Param("count") int count, |
| | | @Param("pid") Long pid, @Param("name") String name);
|
| | | |
| | | |
| | | int countByNameAndGoodsClassId(@Param("pid") Long pid, @Param("name") String name);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass; |
| | | |
| | | public interface GoodsSubClassMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(GoodsSubClass record); |
| | | |
| | | int insertSelective(GoodsSubClass record); |
| | | |
| | | GoodsSubClass selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(GoodsSubClass record); |
| | | |
| | | int updateByPrimaryKey(GoodsSubClass record); |
| | | |
| | | |
| | | /** |
| | | * 查询一级之下的所有二级分类 |
| | | * @param rootId 一级id |
| | | * @returnL |
| | | */ |
| | | List<GoodsSubClass> queryByRootId(@Param("rootId") Long rootId, @Param("state") Integer state,@Param("month") Integer month); |
| | | |
| | | /** |
| | | * 查询二级分类之下其他分类 |
| | | * @param rootId 一级id |
| | | * @return |
| | | */ |
| | | List<GoodsSubClass> queryByPid(@Param("pid") Long pid, @Param("state") Integer state); |
| | | |
| | | |
| | | List<GoodsSubClass> queryByRootIdAndWeight(@Param("rootId") Long rootId, @Param("type") int type, @Param("weight") int weight); |
| | | |
| | | List<GoodsSubClass> queryByPidAndWeight(@Param("pid") Long pid, @Param("type") int type, @Param("weight") int weight); |
| | | |
| | | /** |
| | | * 统计一级之下的所有二级分类 |
| | | * @param rootId 一级id |
| | | * @returnL |
| | | */ |
| | | int countByRootId(@Param("rootId") Long rootId); |
| | | |
| | | /** |
| | | * 统计二级分类之下其他分类 |
| | | * @param rootId 一级id |
| | | * @return |
| | | */ |
| | | int countByPid(@Param("pid") Long pid); |
| | | |
| | | /** |
| | | * 统计一级之下最大权重 |
| | | * @param rootId 一级id |
| | | * @returnL |
| | | */ |
| | | int getMaxWeightByRootId(@Param("rootId") Long rootId); |
| | | |
| | | /** |
| | | * 统计二级分类之最大权重 |
| | | * @param rootId 一级id |
| | | * @return |
| | | */ |
| | | int getMaxWeightByPid(@Param("pid") Long pid); |
| | | |
| | | /** |
| | | * 一级id查询 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<GoodsSubClass> queryByListCid(List<Long> list); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClass;
|
| | |
|
| | | public interface GoodsSubClassMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(GoodsSubClass record);
|
| | |
|
| | | int insertSelective(GoodsSubClass record);
|
| | |
|
| | | GoodsSubClass selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(GoodsSubClass record);
|
| | |
|
| | | int updateByPrimaryKey(GoodsSubClass record);
|
| | | |
| | | |
| | | /**
|
| | | * 查询一级之下的所有二级分类
|
| | | * @param rootId 一级id
|
| | | * @returnL
|
| | | */
|
| | | List<GoodsSubClass> queryByRootId(@Param("rootId") Long rootId, @Param("state") Integer state,@Param("month") Integer month);
|
| | | |
| | | /**
|
| | | * 查询二级分类之下其他分类
|
| | | * @param rootId 一级id
|
| | | * @return
|
| | | */
|
| | | List<GoodsSubClass> queryByPid(@Param("pid") Long pid, @Param("state") Integer state);
|
| | | |
| | | |
| | | List<GoodsSubClass> queryByRootIdAndWeight(@Param("rootId") Long rootId, @Param("type") int type, @Param("weight") int weight);
|
| | | |
| | | List<GoodsSubClass> queryByPidAndWeight(@Param("pid") Long pid, @Param("type") int type, @Param("weight") int weight);
|
| | | |
| | | /**
|
| | | * 统计一级之下的所有二级分类
|
| | | * @param rootId 一级id
|
| | | * @returnL
|
| | | */
|
| | | int countByRootId(@Param("rootId") Long rootId);
|
| | | |
| | | /**
|
| | | * 统计二级分类之下其他分类
|
| | | * @param rootId 一级id
|
| | | * @return
|
| | | */
|
| | | int countByPid(@Param("pid") Long pid);
|
| | | |
| | | /**
|
| | | * 统计一级之下最大权重
|
| | | * @param rootId 一级id
|
| | | * @returnL
|
| | | */
|
| | | int getMaxWeightByRootId(@Param("rootId") Long rootId);
|
| | | |
| | | /**
|
| | | * 统计二级分类之最大权重
|
| | | * @param rootId 一级id
|
| | | * @return
|
| | | */
|
| | | int getMaxWeightByPid(@Param("pid") Long pid);
|
| | | |
| | | /**
|
| | | * 一级id查询
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<GoodsSubClass> queryByListCid(List<Long> list);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.search.HistorySearch; |
| | | |
| | | public interface HistorySearchMapper extends BaseMapper<HistorySearch> { |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.search.HistorySearch;
|
| | |
|
| | | public interface HistorySearchMapper extends BaseMapper<HistorySearch> {
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.HongBaoManage; |
| | | |
| | | public interface HongBaoManageMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(HongBaoManage record); |
| | | |
| | | int insertSelective(HongBaoManage record); |
| | | |
| | | HongBaoManage selectByPrimaryKey(Long id); |
| | | |
| | | HongBaoManage selectByKey(String key); |
| | | |
| | | int updateByPrimaryKeySelective(HongBaoManage record); |
| | | |
| | | int updateByPrimaryKey(HongBaoManage record); |
| | | |
| | | /** |
| | | * 按最大有效时间搜索红包对象 |
| | | * |
| | | * @param key |
| | | * @param timeStamp |
| | | * @return |
| | | */ |
| | | HongBaoManage selectByKeyAndMaxValidTime(@Param("key") String key, @Param("timeStamp") long timeStamp); |
| | | |
| | | /** |
| | | * 获取所有的配置 |
| | | * |
| | | * @return |
| | | */ |
| | | List<HongBaoManage> listAll(); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.HongBaoManage;
|
| | |
|
| | | public interface HongBaoManageMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(HongBaoManage record);
|
| | |
|
| | | int insertSelective(HongBaoManage record);
|
| | |
|
| | | HongBaoManage selectByPrimaryKey(Long id);
|
| | |
|
| | | HongBaoManage selectByKey(String key);
|
| | |
|
| | | int updateByPrimaryKeySelective(HongBaoManage record);
|
| | |
|
| | | int updateByPrimaryKey(HongBaoManage record);
|
| | |
|
| | | /**
|
| | | * 按最大有效时间搜索红包对象
|
| | | * |
| | | * @param key
|
| | | * @param timeStamp
|
| | | * @return
|
| | | */
|
| | | HongBaoManage selectByKeyAndMaxValidTime(@Param("key") String key, @Param("timeStamp") long timeStamp);
|
| | |
|
| | | /**
|
| | | * 获取所有的配置
|
| | | * |
| | | * @return
|
| | | */
|
| | | List<HongBaoManage> listAll();
|
| | | } |
| | |
| | | * @param endTime 结束时间 |
| | | * @return |
| | | */ |
| | | |
| | | BigDecimal getOrderRewardByTeamUid(@Param("uid") Long uid, @Param("teamUid") Long teamUid, @Param("endTime") Date endTime); |
| | | |
| | | /** |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.PayInfo; |
| | | |
| | | public interface PayInfoMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(PayInfo record); |
| | | |
| | | int insertSelective(PayInfo record); |
| | | |
| | | PayInfo selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(PayInfo record); |
| | | |
| | | int updateByPrimaryKey(PayInfo record); |
| | | |
| | | List<PayInfo> getListbyExtractId(Long eId); |
| | | |
| | | double sumMoneyByUid(Long Uid); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.PayInfo;
|
| | |
|
| | | public interface PayInfoMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(PayInfo record);
|
| | |
|
| | | int insertSelective(PayInfo record);
|
| | |
|
| | | PayInfo selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(PayInfo record);
|
| | |
|
| | | int updateByPrimaryKey(PayInfo record);
|
| | | |
| | | List<PayInfo> getListbyExtractId(Long eId);
|
| | | |
| | | double sumMoneyByUid(Long Uid);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.recommend.RecommendBannerV2; |
| | | |
| | | public interface RecommendBannerV2Mapper extends BaseMapper<RecommendBannerV2>{ |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.recommend.RecommendBannerV2;
|
| | |
|
| | | public interface RecommendBannerV2Mapper extends BaseMapper<RecommendBannerV2>{
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.SMSHistory; |
| | | |
| | | public interface SMSHistoryMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(SMSHistory record); |
| | | |
| | | int insertSelective(SMSHistory record); |
| | | |
| | | SMSHistory selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(SMSHistory record); |
| | | |
| | | int updateByPrimaryKey(SMSHistory record); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.SMSHistory;
|
| | |
|
| | | public interface SMSHistoryMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(SMSHistory record);
|
| | |
|
| | | int insertSelective(SMSHistory record);
|
| | |
|
| | | SMSHistory selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(SMSHistory record);
|
| | |
|
| | | int updateByPrimaryKey(SMSHistory record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | |
| | | public interface ScanHistoryMapper { |
| | | |
| | | long countUserScanHistory(Long userId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | |
|
| | | public interface ScanHistoryMapper {
|
| | |
|
| | | long countUserScanHistory(Long userId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.xcx.StrategyPicture; |
| | | |
| | | public interface StrategyPictureMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(StrategyPicture record); |
| | | |
| | | int insertSelective(StrategyPicture record); |
| | | |
| | | StrategyPicture selectByPrimaryKey(Long id); |
| | | |
| | | List<StrategyPicture> selectStrategyPictureList(); |
| | | |
| | | int updateByPrimaryKeySelective(StrategyPicture record); |
| | | |
| | | int updateByPrimaryKey(StrategyPicture record); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.xcx.StrategyPicture;
|
| | |
|
| | | public interface StrategyPictureMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(StrategyPicture record);
|
| | |
|
| | | int insertSelective(StrategyPicture record);
|
| | |
|
| | | StrategyPicture selectByPrimaryKey(Long id);
|
| | |
|
| | | List<StrategyPicture> selectStrategyPictureList();
|
| | |
|
| | | int updateByPrimaryKeySelective(StrategyPicture record);
|
| | |
|
| | | int updateByPrimaryKey(StrategyPicture record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2; |
| | | |
| | | public interface SuperRecommendBannerV2Mapper extends BaseMapper<SuperRecommendBannerV2> { |
| | | |
| | | List<SuperRecommendBannerV2> listBySystemId(@Param("systemId") Long systemId); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2;
|
| | |
|
| | | public interface SuperRecommendBannerV2Mapper extends BaseMapper<SuperRecommendBannerV2> {
|
| | | |
| | | List<SuperRecommendBannerV2> listBySystemId(@Param("systemId") Long systemId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.system.SystemConfig; |
| | | |
| | | public interface SystemConfigMapper extends BaseMapper<SystemConfig>{ |
| | | |
| | | SystemConfig getByKey(@Param("key") String key); |
| | | |
| | | |
| | | SystemConfig getByKeyAndSystemId(@Param("key") String key, @Param("systemId") Long systemId); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.system.SystemConfig;
|
| | |
|
| | | public interface SystemConfigMapper extends BaseMapper<SystemConfig>{
|
| | | |
| | | SystemConfig getByKey(@Param("key") String key);
|
| | | |
| | | |
| | | SystemConfig getByKeyAndSystemId(@Param("key") String key, @Param("systemId") Long systemId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.system.SystemCoupon; |
| | | |
| | | public interface SystemCouponMapper extends BaseMapper<SystemCoupon> { |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 根据类型查询且启用券 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<SystemCoupon> getCouponListByType(@Param("list")List<String> list); |
| | | |
| | | /** |
| | | * 根据类型查询 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | SystemCoupon getCouponByType(@Param("type") String type); |
| | | |
| | | /** |
| | | * 根据类型/比例查询 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | SystemCoupon getCouponByTypeAndPercent(@Param("type") String type, @Param("percent") BigDecimal percent); |
| | | |
| | | } |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.system.SystemCoupon;
|
| | |
|
| | | public interface SystemCouponMapper extends BaseMapper<SystemCoupon> {
|
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 根据类型查询且启用券
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<SystemCoupon> getCouponListByType(@Param("list")List<String> list);
|
| | | |
| | | /**
|
| | | * 根据类型查询
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | SystemCoupon getCouponByType(@Param("type") String type);
|
| | | |
| | | /**
|
| | | * 根据类型/比例查询
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | SystemCoupon getCouponByTypeAndPercent(@Param("type") String type, @Param("percent") BigDecimal percent);
|
| | | |
| | | }
|
| | |
|
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.clazz.TaoBaoClass; |
| | | |
| | | public interface TaoBaoClassMapper extends BaseMapper<TaoBaoClass>{ |
| | | |
| | | |
| | | List<TaoBaoClass> listBySystemCid(@Param("start") long start, @Param("count") int count, |
| | | @Param("systemCid") Long systemCid); |
| | | |
| | | |
| | | List<TaoBaoClass> listBySystemSubCid(@Param("start") long start, @Param("count") int count, |
| | | @Param("systemCid") Long systemCid); |
| | | |
| | | /** |
| | | * 根据淘宝分类查询 |
| | | * @param categoryId |
| | | * @return |
| | | */ |
| | | TaoBaoClass getByCategoryId(@Param("categoryId") Integer categoryId); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.clazz.TaoBaoClass;
|
| | |
|
| | | public interface TaoBaoClassMapper extends BaseMapper<TaoBaoClass>{
|
| | |
|
| | | |
| | | List<TaoBaoClass> listBySystemCid(@Param("start") long start, @Param("count") int count,
|
| | | @Param("systemCid") Long systemCid);
|
| | | |
| | | |
| | | List<TaoBaoClass> listBySystemSubCid(@Param("start") long start, @Param("count") int count,
|
| | | @Param("systemCid") Long systemCid);
|
| | | |
| | | /**
|
| | | * 根据淘宝分类查询
|
| | | * @param categoryId
|
| | | * @return
|
| | | */
|
| | | TaoBaoClass getByCategoryId(@Param("categoryId") Integer categoryId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation; |
| | | |
| | | public interface TaoBaoClassRelationMapper extends BaseMapper<TaoBaoClassRelation> { |
| | | |
| | | List<TaoBaoClassRelation> listByTaoBaoCid(Long taobaoCid); |
| | | |
| | | /** |
| | | * 根据淘宝分类id查询系统分类 |
| | | * @param taobaoCid |
| | | * @return |
| | | */ |
| | | Long getClassIdByTaoBaoCid(Long taobaoCid); |
| | | |
| | | /** |
| | | * 根据分类id查询 |
| | | * |
| | | * @param taobaoCid |
| | | * @return |
| | | */ |
| | | TaoBaoClassRelation getByLocalCid(Long localCid); |
| | | |
| | | /** |
| | | * |
| | | * @param localCid |
| | | * @param classId |
| | | */ |
| | | void deleteRelationByLocalCid(Long localCid); |
| | | |
| | | /** |
| | | * 根据分类ID删除 |
| | | * |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | int deleteByCid(Long cid); |
| | | |
| | | /** |
| | | * 根据子分类ID做删除 |
| | | * |
| | | * @param subId |
| | | * @return |
| | | */ |
| | | int deleteBySubId(Long subId); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation;
|
| | |
|
| | | public interface TaoBaoClassRelationMapper extends BaseMapper<TaoBaoClassRelation> {
|
| | |
|
| | | List<TaoBaoClassRelation> listByTaoBaoCid(Long taobaoCid);
|
| | |
|
| | | /**
|
| | | * 根据淘宝分类id查询系统分类
|
| | | * @param taobaoCid
|
| | | * @return
|
| | | */
|
| | | Long getClassIdByTaoBaoCid(Long taobaoCid);
|
| | | |
| | | /**
|
| | | * 根据分类id查询
|
| | | * |
| | | * @param taobaoCid
|
| | | * @return
|
| | | */
|
| | | TaoBaoClassRelation getByLocalCid(Long localCid);
|
| | |
|
| | | /**
|
| | | * |
| | | * @param localCid
|
| | | * @param classId
|
| | | */
|
| | | void deleteRelationByLocalCid(Long localCid);
|
| | |
|
| | | /**
|
| | | * 根据分类ID删除
|
| | | * |
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | int deleteByCid(Long cid);
|
| | |
|
| | | /**
|
| | | * 根据子分类ID做删除
|
| | | * |
| | | * @param subId
|
| | | * @return
|
| | | */
|
| | | int deleteBySubId(Long subId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserConnectHistory; |
| | | |
| | | public interface UserConnectHistoryMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserConnectHistory record); |
| | | |
| | | int insertSelective(UserConnectHistory record); |
| | | |
| | | UserConnectHistory selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserConnectHistory record); |
| | | |
| | | int updateByPrimaryKey(UserConnectHistory record); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserConnectHistory;
|
| | |
|
| | | public interface UserConnectHistoryMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserConnectHistory record);
|
| | |
|
| | | int insertSelective(UserConnectHistory record);
|
| | |
|
| | | UserConnectHistory selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserConnectHistory record);
|
| | |
|
| | | int updateByPrimaryKey(UserConnectHistory record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserRankings; |
| | | |
| | | public interface UserRankingsMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserRankings record); |
| | | |
| | | int insertSelective(UserRankings record); |
| | | |
| | | UserRankings selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserRankings record); |
| | | |
| | | int updateByPrimaryKey(UserRankings record); |
| | | |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<UserRankings> list); |
| | | |
| | | |
| | | /** |
| | | * 批量选择更新 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int updateBatchSelective(List<UserRankings> list); |
| | | |
| | | |
| | | List<UserRankings> queryAll(); |
| | | |
| | | /** |
| | | * 清空自购榜状态以及金额 |
| | | */ |
| | | void updateClearTradeState(); |
| | | |
| | | // 根据名称查询 |
| | | List<UserRankings> selectByNickName(String nickName); |
| | | |
| | | // 根据展示ID查询 |
| | | List<UserRankings> selectByShowId(String showId); |
| | | |
| | | |
| | | // 查询列表 |
| | | List<UserRankings> query(@Param("start") long start, @Param("count") int count, @Param("key") String key, |
| | | @Param("tradeState") Integer tradeState, @Param("shareState") Integer shareState, @Param("sort") Integer sort); |
| | | |
| | | // 查询列表统计 |
| | | long queryCount(@Param("key") String key, @Param("tradeState") Integer tradeState, @Param("shareState") Integer shareState); |
| | | |
| | | // 奖金榜 随机id查询 |
| | | public List<UserRankings> listQueryByIds(List<Long> list); |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserRankings;
|
| | |
|
| | | public interface UserRankingsMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserRankings record);
|
| | |
|
| | | int insertSelective(UserRankings record);
|
| | |
|
| | | UserRankings selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserRankings record);
|
| | |
|
| | | int updateByPrimaryKey(UserRankings record);
|
| | | |
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<UserRankings> list);
|
| | | |
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<UserRankings> list);
|
| | | |
| | | |
| | | List<UserRankings> queryAll();
|
| | | |
| | | /**
|
| | | * 清空自购榜状态以及金额
|
| | | */
|
| | | void updateClearTradeState();
|
| | | |
| | | // 根据名称查询
|
| | | List<UserRankings> selectByNickName(String nickName);
|
| | | |
| | | // 根据展示ID查询
|
| | | List<UserRankings> selectByShowId(String showId);
|
| | | |
| | | |
| | | // 查询列表
|
| | | List<UserRankings> query(@Param("start") long start, @Param("count") int count, @Param("key") String key,
|
| | | @Param("tradeState") Integer tradeState, @Param("shareState") Integer shareState, @Param("sort") Integer sort);
|
| | | |
| | | // 查询列表统计
|
| | | long queryCount(@Param("key") String key, @Param("tradeState") Integer tradeState, @Param("shareState") Integer shareState);
|
| | | |
| | | // 奖金榜 随机id查询
|
| | | public List<UserRankings> listQueryByIds(List<Long> list);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsHistory; |
| | | |
| | | public interface UserShareGoodsHistoryMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserShareGoodsHistory record); |
| | | |
| | | int insertSelective(UserShareGoodsHistory record); |
| | | |
| | | UserShareGoodsHistory selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserShareGoodsHistory record); |
| | | |
| | | int updateByPrimaryKey(UserShareGoodsHistory record); |
| | | |
| | | UserShareGoodsHistory selectByUidAndAuctionId(@Param("uid")Long uid,@Param("auctionId")Long auctionId); |
| | | |
| | | |
| | | long countUserShares(Long userId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsHistory;
|
| | |
|
| | | public interface UserShareGoodsHistoryMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserShareGoodsHistory record);
|
| | |
|
| | | int insertSelective(UserShareGoodsHistory record);
|
| | |
|
| | | UserShareGoodsHistory selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserShareGoodsHistory record);
|
| | |
|
| | | int updateByPrimaryKey(UserShareGoodsHistory record);
|
| | | |
| | | UserShareGoodsHistory selectByUidAndAuctionId(@Param("uid")Long uid,@Param("auctionId")Long auctionId);
|
| | |
|
| | | |
| | | long countUserShares(Long userId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.activity.ActivityRuleUser; |
| | | |
| | | public interface ActivityRuleUserMapper extends BaseMapper<ActivityRuleUser> { |
| | | |
| | | /** |
| | | * 根据用户ID与规则码查询 |
| | | * |
| | | * @param userId |
| | | * @param ruleCode |
| | | * @return |
| | | */ |
| | | ActivityRuleUser selectByUserIdAndRuleCode(@Param("userId") Long userId, @Param("ruleCode") int ruleCode); |
| | | |
| | | /** |
| | | * 根据角色获取列表 |
| | | * |
| | | * @param ruleCode |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<ActivityRuleUser> listByRuleCode(@Param("ruleCode")Integer ruleCode,@Param("start") int start,@Param("count") int count); |
| | | |
| | | /** |
| | | * 根据 |
| | | * @param ruleCode |
| | | * @return |
| | | */ |
| | | long countByRuleCode(Integer ruleCode); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.activity.ActivityRuleUser;
|
| | |
|
| | | public interface ActivityRuleUserMapper extends BaseMapper<ActivityRuleUser> {
|
| | |
|
| | | /**
|
| | | * 根据用户ID与规则码查询
|
| | | * |
| | | * @param userId
|
| | | * @param ruleCode
|
| | | * @return
|
| | | */
|
| | | ActivityRuleUser selectByUserIdAndRuleCode(@Param("userId") Long userId, @Param("ruleCode") int ruleCode);
|
| | |
|
| | | /**
|
| | | * 根据角色获取列表
|
| | | * |
| | | * @param ruleCode
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<ActivityRuleUser> listByRuleCode(@Param("ruleCode")Integer ruleCode,@Param("start") int start,@Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据
|
| | | * @param ruleCode
|
| | | * @return
|
| | | */
|
| | | long countByRuleCode(Integer ruleCode);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.activity.ActivityUser; |
| | | |
| | | public interface ActivityUserMapper extends BaseMapper<ActivityUser>{ |
| | | |
| | | |
| | | List<ActivityUser> selectList(); |
| | | |
| | | /** |
| | | * 随机抽取 |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<ActivityUser> listRand(@Param("count") int count); |
| | | |
| | | /** |
| | | * 根据名称检索 |
| | | * @param name |
| | | * @return |
| | | */ |
| | | ActivityUser selectByName(String name); |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.activity.ActivityUser;
|
| | |
|
| | | public interface ActivityUserMapper extends BaseMapper<ActivityUser>{
|
| | |
|
| | |
|
| | | List<ActivityUser> selectList();
|
| | | |
| | | /**
|
| | | * 随机抽取
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<ActivityUser> listRand(@Param("count") int count);
|
| | | |
| | | /**
|
| | | * 根据名称检索
|
| | | * @param name
|
| | | * @return
|
| | | */
|
| | | ActivityUser selectByName(String name);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityImg; |
| | | |
| | | public interface RecommendActivityImgMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int batchDeleteByActivityid(long[] ids); |
| | | |
| | | int insert(RecommendActivityImg record); |
| | | |
| | | int insertSelective(RecommendActivityImg record); |
| | | |
| | | RecommendActivityImg selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(RecommendActivityImg record); |
| | | |
| | | int updateByPrimaryKey(RecommendActivityImg record); |
| | | |
| | | List<String> getImgByActivityId(Long activityId); |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityImg;
|
| | |
|
| | | public interface RecommendActivityImgMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | | |
| | | int batchDeleteByActivityid(long[] ids);
|
| | |
|
| | | int insert(RecommendActivityImg record);
|
| | |
|
| | | int insertSelective(RecommendActivityImg record);
|
| | |
|
| | | RecommendActivityImg selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(RecommendActivityImg record);
|
| | |
|
| | | int updateByPrimaryKey(RecommendActivityImg record);
|
| | |
|
| | | List<String> getImgByActivityId(Long activityId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo; |
| | | |
| | | public interface RecommendActivityInviteInfoMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(RecommendActivityInviteInfo record); |
| | | |
| | | int insertSelective(RecommendActivityInviteInfo record); |
| | | |
| | | RecommendActivityInviteInfo selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(RecommendActivityInviteInfo record); |
| | | |
| | | int updateByPrimaryKey(RecommendActivityInviteInfo record); |
| | | |
| | | // 通过活动ID获取邀请信息 |
| | | RecommendActivityInviteInfo selectByActivityId(Long activityId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo;
|
| | |
|
| | | public interface RecommendActivityInviteInfoMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(RecommendActivityInviteInfo record);
|
| | |
|
| | | int insertSelective(RecommendActivityInviteInfo record);
|
| | |
|
| | | RecommendActivityInviteInfo selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(RecommendActivityInviteInfo record);
|
| | |
|
| | | int updateByPrimaryKey(RecommendActivityInviteInfo record);
|
| | |
|
| | | // 通过活动ID获取邀请信息
|
| | | RecommendActivityInviteInfo selectByActivityId(Long activityId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivity; |
| | | |
| | | public interface RecommendActivityMapper extends BaseMapper<RecommendActivity> { |
| | | |
| | | int batchDeleteByPrimaryKey(long[] ids); |
| | | |
| | | List<RecommendActivity> getRecommendActivityList(@Param("start") long start, @Param("count") int count); |
| | | |
| | | long getRecommendActivityCount(@Param("title") String title); |
| | | |
| | | long getRecommendActivityEffectiveCount(); |
| | | |
| | | List<RecommendActivity> getRecommendActivityListByType(@Param("type") int type, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | long getRecommendActivityCountByType(@Param("type") int type); |
| | | |
| | | List<RecommendActivity> queryRecommendActivityList(@Param("title") String title, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | int addShareCount(@Param("id") Long id, @Param("count") int count); |
| | | |
| | | /** |
| | | * 查询待发布的动态 |
| | | * @return |
| | | */ |
| | | List<RecommendActivity> getNeedPublish(); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivity;
|
| | |
|
| | | public interface RecommendActivityMapper extends BaseMapper<RecommendActivity> {
|
| | |
|
| | | int batchDeleteByPrimaryKey(long[] ids);
|
| | |
|
| | | List<RecommendActivity> getRecommendActivityList(@Param("start") long start, @Param("count") int count);
|
| | |
|
| | | long getRecommendActivityCount(@Param("title") String title);
|
| | | |
| | | long getRecommendActivityEffectiveCount();
|
| | |
|
| | | List<RecommendActivity> getRecommendActivityListByType(@Param("type") int type, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | long getRecommendActivityCountByType(@Param("type") int type);
|
| | |
|
| | | List<RecommendActivity> queryRecommendActivityList(@Param("title") String title, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | int addShareCount(@Param("id") Long id, @Param("count") int count);
|
| | | |
| | | /**
|
| | | * 查询待发布的动态
|
| | | * @return
|
| | | */
|
| | | List<RecommendActivity> getNeedPublish();
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.activity; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods; |
| | | |
| | | public interface RecommendActivityTaoBaoGoodsMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int batchDeleteByActivityid(long[] ids); |
| | | |
| | | int insert(RecommendActivityTaoBaoGoods record); |
| | | |
| | | int insertSelective(RecommendActivityTaoBaoGoods record); |
| | | |
| | | RecommendActivityTaoBaoGoods selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(RecommendActivityTaoBaoGoods record); |
| | | |
| | | int updateByPrimaryKey(RecommendActivityTaoBaoGoods record); |
| | | |
| | | int updateStateByAuctionId(@Param("auctionId") Long auctionId, @Param("state") int state); |
| | | |
| | | |
| | | List<RecommendActivityTaoBaoGoods> selectByActivityId(Long activityId); |
| | | |
| | | List<RecommendActivityTaoBaoGoods> selectByAuctionId(Long auctionId); |
| | | |
| | | List<RecommendActivityTaoBaoGoods> selectList(@Param("start") Long start, @Param("count") int count); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.activity;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods;
|
| | |
|
| | | public interface RecommendActivityTaoBaoGoodsMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int batchDeleteByActivityid(long[] ids);
|
| | |
|
| | | int insert(RecommendActivityTaoBaoGoods record);
|
| | |
|
| | | int insertSelective(RecommendActivityTaoBaoGoods record);
|
| | |
|
| | | RecommendActivityTaoBaoGoods selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(RecommendActivityTaoBaoGoods record);
|
| | |
|
| | | int updateByPrimaryKey(RecommendActivityTaoBaoGoods record);
|
| | |
|
| | | int updateStateByAuctionId(@Param("auctionId") Long auctionId, @Param("state") int state);
|
| | |
|
| | |
|
| | | List<RecommendActivityTaoBaoGoods> selectByActivityId(Long activityId);
|
| | | |
| | | List<RecommendActivityTaoBaoGoods> selectByAuctionId(Long auctionId);
|
| | |
|
| | | List<RecommendActivityTaoBaoGoods> selectList(@Param("start") Long start, @Param("count") int count);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.brand; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.brand.BrandClass; |
| | | |
| | | public interface BrandClassMapper extends BaseMapper<BrandClass>{ |
| | | |
| | | /** |
| | | * 查询品牌分类 |
| | | * @return |
| | | */ |
| | | List<BrandClass> listEffective(); |
| | | |
| | | /** |
| | | * 排序 |
| | | * @return |
| | | */ |
| | | int getMaxOrder(); |
| | | |
| | | /** |
| | | * 获取相邻序号 |
| | | * @param position |
| | | * @param type |
| | | * @return |
| | | */ |
| | | BrandClass getByAdjoinOrder(@Param("order") Integer order, @Param("type") Integer type); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<BrandClass> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, |
| | | @Param("state") Integer state); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.brand;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.brand.BrandClass;
|
| | |
|
| | | public interface BrandClassMapper extends BaseMapper<BrandClass>{
|
| | | |
| | | /**
|
| | | * 查询品牌分类
|
| | | * @return
|
| | | */
|
| | | List<BrandClass> listEffective();
|
| | | |
| | | /**
|
| | | * 排序
|
| | | * @return
|
| | | */
|
| | | int getMaxOrder();
|
| | | |
| | | /**
|
| | | * 获取相邻序号
|
| | | * @param position
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | BrandClass getByAdjoinOrder(@Param("order") Integer order, @Param("type") Integer type);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 根据主键批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 查询列表
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<BrandClass> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key,
|
| | | @Param("state") Integer state);
|
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.brand; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.brand.BrandClassShop; |
| | | |
| | | public interface BrandClassShopMapper extends BaseMapper<BrandClassShop>{ |
| | | |
| | | |
| | | /** |
| | | * 根据分类id批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByClassId(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 查询有效 |
| | | * @param start |
| | | * @param count |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | List<BrandClassShop> listEffective(@Param("cid") Long cid); |
| | | |
| | | long countEffective(@Param("cid") Long cid); |
| | | |
| | | |
| | | List<BrandClassShop> getExistByShopIds(List<Long> list); |
| | | |
| | | /** |
| | | * 根据店铺id |
| | | * @param cid |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | BrandClassShop getByShopId(@Param("shopId") Long shopId); |
| | | |
| | | /** |
| | | * 根据店铺id、分类id查询 |
| | | * @param cid |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | BrandClassShop getByShopIdAndCid(@Param("cid") Long cid, @Param("shopId") Long shopId); |
| | | |
| | | /** |
| | | * 根据分类查询排序 |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | int getMaxOrder(@Param("cid") Long cid); |
| | | |
| | | /** |
| | | * 排序交换 |
| | | * @param order |
| | | * @param type |
| | | * @return |
| | | */ |
| | | BrandClassShop getByAdjoinOrder(@Param("cid") Long cid, @Param("order") Integer order, @Param("type") Integer type); |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public List<BrandClassShop> listQuery(@Param("start") long start,@Param("count") int count, |
| | | @Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state); |
| | | |
| | | public long countQuery(@Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.brand;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.brand.BrandClassShop;
|
| | |
|
| | | public interface BrandClassShopMapper extends BaseMapper<BrandClassShop>{
|
| | | |
| | | |
| | | /**
|
| | | * 根据分类id批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByClassId(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 查询有效
|
| | | * @param start
|
| | | * @param count
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | List<BrandClassShop> listEffective(@Param("cid") Long cid);
|
| | | |
| | | long countEffective(@Param("cid") Long cid);
|
| | | |
| | | |
| | | List<BrandClassShop> getExistByShopIds(List<Long> list);
|
| | | |
| | | /**
|
| | | * 根据店铺id
|
| | | * @param cid
|
| | | * @param shopId
|
| | | * @return
|
| | | */
|
| | | BrandClassShop getByShopId(@Param("shopId") Long shopId);
|
| | | |
| | | /**
|
| | | * 根据店铺id、分类id查询
|
| | | * @param cid
|
| | | * @param shopId
|
| | | * @return
|
| | | */
|
| | | BrandClassShop getByShopIdAndCid(@Param("cid") Long cid, @Param("shopId") Long shopId);
|
| | | |
| | | /**
|
| | | * 根据分类查询排序
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | int getMaxOrder(@Param("cid") Long cid);
|
| | | |
| | | /**
|
| | | * 排序交换
|
| | | * @param order
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | BrandClassShop getByAdjoinOrder(@Param("cid") Long cid, @Param("order") Integer order, @Param("type") Integer type);
|
| | | |
| | | /**
|
| | | * 查询列表
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | public List<BrandClassShop> listQuery(@Param("start") long start,@Param("count") int count,
|
| | | @Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state);
|
| | |
|
| | | public long countQuery(@Param("key")String key, @Param("cid") Long cid,@Param("state") Integer state);
|
| | | |
| | | |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | long countValidByCidToApp(@Param("cid") Long cid); |
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.brand; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.brand.BrandInfoRecord; |
| | | |
| | | public interface BrandInfoRecordMapper extends BaseMapper<BrandInfoRecord> { |
| | | |
| | | /** |
| | | * 将状态更新为删除状态 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | void updateState(@Param("brandId") Long brandId, @Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | |
| | | /** |
| | | * 查询记录 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | BrandInfoRecord getRecord(@Param("brandId") Long brandId, @Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | /** |
| | | * 查询历史记录 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<BrandInfoRecord> listRecord(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | long countRecord(@Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.brand;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.brand.BrandInfoRecord;
|
| | |
|
| | | public interface BrandInfoRecordMapper extends BaseMapper<BrandInfoRecord> {
|
| | |
|
| | | /**
|
| | | * 将状态更新为删除状态
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | void updateState(@Param("brandId") Long brandId, @Param("uid") Long uid, @Param("device") String device);
|
| | | |
| | | |
| | | /**
|
| | | * 查询记录
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | BrandInfoRecord getRecord(@Param("brandId") Long brandId, @Param("uid") Long uid, @Param("device") String device);
|
| | | |
| | | /**
|
| | | * 查询历史记录
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<BrandInfoRecord> listRecord(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("device") String device);
|
| | | |
| | | long countRecord(@Param("uid") Long uid, @Param("device") String device);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.brand; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.brand.TaoBaoShopHistory; |
| | | |
| | | public interface TaoBaoShopHistoryMapper extends BaseMapper<TaoBaoShopHistory> { |
| | | |
| | | |
| | | /** |
| | | * 根据用户id删除 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | void updateByUid(@Param("shopId") Long shopId, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据删除 |
| | | * @param sid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | void updateByDevice(@Param("shopId") Long shopId, @Param("device") String device); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | TaoBaoShopHistory getByUid(@Param("shopId") Long shopId, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据设备 |
| | | * @param sid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | TaoBaoShopHistory getByDevice(@Param("shopId") Long shopId, @Param("device") String device); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<TaoBaoShopHistory> listByUid(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid); |
| | | |
| | | long countByUid(@Param("uid") Long uid); |
| | | |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<TaoBaoShopHistory> listByDevice(@Param("start") long start, @Param("count") int count, @Param("device") String device); |
| | | |
| | | long countByDevice(@Param("device") String device); |
| | | |
| | | /** |
| | | * 统计店铺点击数量 |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | long countByShopId(@Param("shopId") Long shopId); |
| | | package com.yeshi.fanli.dao.mybatis.brand;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.brand.TaoBaoShopHistory;
|
| | |
|
| | | public interface TaoBaoShopHistoryMapper extends BaseMapper<TaoBaoShopHistory> {
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户id删除
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | void updateByUid(@Param("shopId") Long shopId, @Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 根据删除
|
| | | * @param sid
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | void updateByDevice(@Param("shopId") Long shopId, @Param("device") String device);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 根据用户id查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | TaoBaoShopHistory getByUid(@Param("shopId") Long shopId, @Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 根据设备
|
| | | * @param sid
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | TaoBaoShopHistory getByDevice(@Param("shopId") Long shopId, @Param("device") String device);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 根据用户id查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoShopHistory> listByUid(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid);
|
| | | |
| | | long countByUid(@Param("uid") Long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户id查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoShopHistory> listByDevice(@Param("start") long start, @Param("count") int count, @Param("device") String device);
|
| | | |
| | | long countByDevice(@Param("device") String device);
|
| | | |
| | | /**
|
| | | * 统计店铺点击数量
|
| | | * @param shopId
|
| | | * @return
|
| | | */
|
| | | long countByShopId(@Param("shopId") Long shopId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.clazz; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabelMap; |
| | | |
| | | public interface GoodsSubClassLabelMapMapper extends BaseMapper<GoodsSubClassLabelMap> { |
| | | |
| | | /** |
| | | * 根据二级分类与标签ID检索 |
| | | * |
| | | * @param labelId |
| | | * @param subClassId |
| | | * @return |
| | | */ |
| | | GoodsSubClassLabelMap selectByLabelIdAndSubClassId(@Param("labelId") Long labelId, |
| | | @Param("subClassId") Long subClassId); |
| | | |
| | | /** |
| | | * 根据标签ID检索 |
| | | * |
| | | * @param labelId |
| | | * @return |
| | | */ |
| | | List<GoodsSubClassLabelMap> listMapByLabelId(@Param("labelId") Long labelId); |
| | | |
| | | /** |
| | | * 根据子分类查询 |
| | | * @param subClassId |
| | | * @return |
| | | */ |
| | | GoodsSubClassLabelMap selectBySubClassId(Long subClassId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.clazz;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabelMap;
|
| | |
|
| | | public interface GoodsSubClassLabelMapMapper extends BaseMapper<GoodsSubClassLabelMap> {
|
| | |
|
| | | /**
|
| | | * 根据二级分类与标签ID检索
|
| | | * |
| | | * @param labelId
|
| | | * @param subClassId
|
| | | * @return
|
| | | */
|
| | | GoodsSubClassLabelMap selectByLabelIdAndSubClassId(@Param("labelId") Long labelId,
|
| | | @Param("subClassId") Long subClassId);
|
| | |
|
| | | /**
|
| | | * 根据标签ID检索
|
| | | * |
| | | * @param labelId
|
| | | * @return
|
| | | */
|
| | | List<GoodsSubClassLabelMap> listMapByLabelId(@Param("labelId") Long labelId);
|
| | | |
| | | /**
|
| | | * 根据子分类查询
|
| | | * @param subClassId
|
| | | * @return
|
| | | */
|
| | | GoodsSubClassLabelMap selectBySubClassId(Long subClassId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.clazz; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabel; |
| | | import com.yeshi.fanli.vo.goods.GoodsSubClassLabelVO; |
| | | |
| | | public interface GoodsSubClassLabelMapper extends BaseMapper<GoodsSubClassLabel> { |
| | | |
| | | /** |
| | | * 根据名称与主分类ID获取二级分类标签 |
| | | * |
| | | * @param name |
| | | * @param classId |
| | | * @return |
| | | */ |
| | | GoodsSubClassLabel selectByClassIdAndName(@Param("name")String name,@Param("classId") Long classId); |
| | | |
| | | /** |
| | | * 根据分类ID检索 |
| | | * @param classId |
| | | * @return |
| | | */ |
| | | List<GoodsSubClassLabel> listByClassId(@Param("classId") Long classId); |
| | | |
| | | |
| | | /** |
| | | * 查询二级分类、标签 |
| | | * @param classId |
| | | * @return |
| | | */ |
| | | List<GoodsSubClassLabelVO> listSubMapByClassId(@Param("classId") Long classId,@Param("month")Integer month); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.clazz;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.clazz.GoodsSubClassLabel;
|
| | | import com.yeshi.fanli.vo.goods.GoodsSubClassLabelVO;
|
| | |
|
| | | public interface GoodsSubClassLabelMapper extends BaseMapper<GoodsSubClassLabel> {
|
| | |
|
| | | /**
|
| | | * 根据名称与主分类ID获取二级分类标签
|
| | | * |
| | | * @param name
|
| | | * @param classId
|
| | | * @return
|
| | | */
|
| | | GoodsSubClassLabel selectByClassIdAndName(@Param("name")String name,@Param("classId") Long classId);
|
| | | |
| | | /**
|
| | | * 根据分类ID检索
|
| | | * @param classId
|
| | | * @return
|
| | | */
|
| | | List<GoodsSubClassLabel> listByClassId(@Param("classId") Long classId);
|
| | | |
| | | |
| | | /**
|
| | | * 查询二级分类、标签
|
| | | * @param classId
|
| | | * @return
|
| | | */
|
| | | List<GoodsSubClassLabelVO> listSubMapByClassId(@Param("classId") Long classId,@Param("month")Integer month);
|
| | | |
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.common; |
| | | |
| | | import com.yeshi.fanli.entity.common.DataMonitor; |
| | | |
| | | public interface DataMonitorMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(DataMonitor record); |
| | | |
| | | int insertSelective(DataMonitor record); |
| | | |
| | | DataMonitor selectByPrimaryKey(Long id); |
| | | |
| | | DataMonitor selectByKey(String key); |
| | | |
| | | int updateByPrimaryKeySelective(DataMonitor record); |
| | | |
| | | int updateByPrimaryKey(DataMonitor record); |
| | | package com.yeshi.fanli.dao.mybatis.common;
|
| | |
|
| | | import com.yeshi.fanli.entity.common.DataMonitor;
|
| | |
|
| | | public interface DataMonitorMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(DataMonitor record);
|
| | |
|
| | | int insertSelective(DataMonitor record);
|
| | |
|
| | | DataMonitor selectByPrimaryKey(Long id);
|
| | | |
| | | DataMonitor selectByKey(String key);
|
| | |
|
| | | int updateByPrimaryKeySelective(DataMonitor record);
|
| | |
|
| | | int updateByPrimaryKey(DataMonitor record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.common; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.common.JumpDetail; |
| | | |
| | | public interface JumpDetailMapper extends BaseMapper<JumpDetail> { |
| | | |
| | | /** |
| | | * 根据名字搜索 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | List<JumpDetail> listSearchByName(@Param("name") String name, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据名字的搜索结果获取数量 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | long countSearchByName(@Param("name") String name); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.common;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.common.JumpDetail;
|
| | |
|
| | | public interface JumpDetailMapper extends BaseMapper<JumpDetail> {
|
| | |
|
| | | /**
|
| | | * 根据名字搜索
|
| | | * |
| | | * @param name
|
| | | * @return
|
| | | */
|
| | | List<JumpDetail> listSearchByName(@Param("name") String name, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据名字的搜索结果获取数量
|
| | | * |
| | | * @param name
|
| | | * @return
|
| | | */
|
| | | long countSearchByName(@Param("name") String name);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.common; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.common.JumpDetailV2; |
| | | |
| | | public interface JumpDetailV2Mapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(JumpDetailV2 record); |
| | | |
| | | int insertSelective(JumpDetailV2 record); |
| | | |
| | | JumpDetailV2 selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(JumpDetailV2 record); |
| | | |
| | | int updateByPrimaryKey(JumpDetailV2 record); |
| | | |
| | | /** |
| | | * 根据类型取值 |
| | | * |
| | | * @param type |
| | | * @return |
| | | */ |
| | | List<JumpDetailV2> listByType(String type); |
| | | |
| | | /** |
| | | * 所有方式 |
| | | * |
| | | * @return |
| | | */ |
| | | List<JumpDetailV2> listJump(); |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<JumpDetailV2> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key); |
| | | |
| | | long countListQuery(@Param("key") String key); |
| | | |
| | | /** |
| | | * 根据Android版本获取最近的跳转值 |
| | | * @param type |
| | | * @param version |
| | | * @return |
| | | */ |
| | | JumpDetailV2 selectAndroidByTypeAndVersion(@Param("type")String type, @Param("version")int version); |
| | | |
| | | /** |
| | | * 根据IOS版本获取最近的跳转值 |
| | | * @param type |
| | | * @param version |
| | | * @return |
| | | */ |
| | | JumpDetailV2 selectIOSByTypeAndVersion(@Param("type")String type, @Param("version")int version); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.common;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.common.JumpDetailV2;
|
| | |
|
| | | public interface JumpDetailV2Mapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(JumpDetailV2 record);
|
| | |
|
| | | int insertSelective(JumpDetailV2 record);
|
| | |
|
| | | JumpDetailV2 selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(JumpDetailV2 record);
|
| | |
|
| | | int updateByPrimaryKey(JumpDetailV2 record);
|
| | |
|
| | | /**
|
| | | * 根据类型取值
|
| | | * |
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | List<JumpDetailV2> listByType(String type);
|
| | |
|
| | | /**
|
| | | * 所有方式
|
| | | * |
| | | * @return
|
| | | */
|
| | | List<JumpDetailV2> listJump();
|
| | |
|
| | | /**
|
| | | * 根据主键批量删除
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | |
|
| | | /**
|
| | | * 后端列表查询
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<JumpDetailV2> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key);
|
| | |
|
| | | long countListQuery(@Param("key") String key);
|
| | |
|
| | | /**
|
| | | * 根据Android版本获取最近的跳转值
|
| | | * @param type
|
| | | * @param version
|
| | | * @return
|
| | | */
|
| | | JumpDetailV2 selectAndroidByTypeAndVersion(@Param("type")String type, @Param("version")int version);
|
| | | |
| | | /**
|
| | | * 根据IOS版本获取最近的跳转值
|
| | | * @param type
|
| | | * @param version
|
| | | * @return
|
| | | */
|
| | | JumpDetailV2 selectIOSByTypeAndVersion(@Param("type")String type, @Param("version")int version);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.customerservice; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.customerservice.CustomerServiceCommonQuestion; |
| | | |
| | | public interface CustomerServiceCommonQuestionMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | int insert(CustomerServiceCommonQuestion record); |
| | | |
| | | int insertSelective(CustomerServiceCommonQuestion record); |
| | | |
| | | CustomerServiceCommonQuestion selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 按KEY值模糊检索 |
| | | * |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<CustomerServiceCommonQuestion> selectByKey(@Param("key")String key); |
| | | |
| | | /** |
| | | * 检索所有数据 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<CustomerServiceCommonQuestion> selectOrderByUpdateTime(@Param("start") long start, @Param("count") int count); |
| | | |
| | | long selectCount(); |
| | | |
| | | int updateByPrimaryKeySelective(CustomerServiceCommonQuestion record); |
| | | |
| | | int updateByPrimaryKey(CustomerServiceCommonQuestion record); |
| | | |
| | | List<String> selectKeys(); |
| | | |
| | | /** |
| | | * 后端查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param type |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<CustomerServiceCommonQuestion> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key")String key, @Param("type")String type, |
| | | @Param("state") Integer state, @Param("sort") Integer sort); |
| | | /** |
| | | * 统计 |
| | | * @param key |
| | | * @param type |
| | | * @param state |
| | | * @return |
| | | */ |
| | | long countQuery(@Param("key")String key, @Param("type")String type, @Param("state") Integer state); |
| | | package com.yeshi.fanli.dao.mybatis.customerservice;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.customerservice.CustomerServiceCommonQuestion;
|
| | |
|
| | | public interface CustomerServiceCommonQuestionMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | int insert(CustomerServiceCommonQuestion record);
|
| | |
|
| | | int insertSelective(CustomerServiceCommonQuestion record);
|
| | |
|
| | | CustomerServiceCommonQuestion selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 按KEY值模糊检索
|
| | | * |
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<CustomerServiceCommonQuestion> selectByKey(@Param("key")String key);
|
| | |
|
| | | /**
|
| | | * 检索所有数据
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<CustomerServiceCommonQuestion> selectOrderByUpdateTime(@Param("start") long start, @Param("count") int count);
|
| | |
|
| | | long selectCount();
|
| | |
|
| | | int updateByPrimaryKeySelective(CustomerServiceCommonQuestion record);
|
| | |
|
| | | int updateByPrimaryKey(CustomerServiceCommonQuestion record);
|
| | | |
| | | List<String> selectKeys();
|
| | | |
| | | /**
|
| | | * 后端查询列表
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param type
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<CustomerServiceCommonQuestion> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key")String key, @Param("type")String type,
|
| | | @Param("state") Integer state, @Param("sort") Integer sort);
|
| | | /**
|
| | | * 统计
|
| | | * @param key
|
| | | * @param type
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | long countQuery(@Param("key")String key, @Param("type")String type, @Param("state") Integer state);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.customerservice; |
| | | |
| | | import com.yeshi.fanli.entity.customerservice.CustomerServiceHistory; |
| | | |
| | | public interface CustomerServiceHistoryMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(CustomerServiceHistory record); |
| | | |
| | | int insertSelective(CustomerServiceHistory record); |
| | | |
| | | CustomerServiceHistory selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(CustomerServiceHistory record); |
| | | |
| | | int updateByPrimaryKey(CustomerServiceHistory record); |
| | | package com.yeshi.fanli.dao.mybatis.customerservice;
|
| | |
|
| | | import com.yeshi.fanli.entity.customerservice.CustomerServiceHistory;
|
| | |
|
| | | public interface CustomerServiceHistoryMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(CustomerServiceHistory record);
|
| | |
|
| | | int insertSelective(CustomerServiceHistory record);
|
| | |
|
| | | CustomerServiceHistory selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(CustomerServiceHistory record);
|
| | |
|
| | | int updateByPrimaryKey(CustomerServiceHistory record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.customerservice; |
| | | |
| | | import com.yeshi.fanli.entity.customerservice.CustomerServiceWXXCXHistory; |
| | | |
| | | public interface CustomerServiceWXXCXHistoryMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(CustomerServiceWXXCXHistory record); |
| | | |
| | | int insertSelective(CustomerServiceWXXCXHistory record); |
| | | |
| | | CustomerServiceWXXCXHistory selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(CustomerServiceWXXCXHistory record); |
| | | |
| | | int updateByPrimaryKey(CustomerServiceWXXCXHistory record); |
| | | package com.yeshi.fanli.dao.mybatis.customerservice;
|
| | |
|
| | | import com.yeshi.fanli.entity.customerservice.CustomerServiceWXXCXHistory;
|
| | |
|
| | | public interface CustomerServiceWXXCXHistoryMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(CustomerServiceWXXCXHistory record);
|
| | |
|
| | | int insertSelective(CustomerServiceWXXCXHistory record);
|
| | |
|
| | | CustomerServiceWXXCXHistory selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(CustomerServiceWXXCXHistory record);
|
| | |
|
| | | int updateByPrimaryKey(CustomerServiceWXXCXHistory record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.elme; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.elme.ElmeOrder; |
| | | |
| | | public interface ElmeOrderMapper extends BaseMapper<ElmeOrder> { |
| | | |
| | | /** |
| | | * 根据订单号查询 |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | ElmeOrder selectByOrderId(String orderId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.elme;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.elme.ElmeOrder;
|
| | |
|
| | | public interface ElmeOrderMapper extends BaseMapper<ElmeOrder> {
|
| | |
|
| | | /**
|
| | | * 根据订单号查询
|
| | | * @param orderId
|
| | | * @return
|
| | | */
|
| | | ElmeOrder selectByOrderId(String orderId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.goods.CollectionGoodsV2; |
| | | |
| | | public interface CollectionGoodsV2Mapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(CollectionGoodsV2 record); |
| | | |
| | | int insertSelective(CollectionGoodsV2 record); |
| | | |
| | | CollectionGoodsV2 selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(CollectionGoodsV2 record); |
| | | |
| | | int updateByPrimaryKey(CollectionGoodsV2 record); |
| | | |
| | | /** |
| | | * 根据用户ID和商品ID获取收藏记录 |
| | | * |
| | | * @param uid |
| | | * @param commonGoodsId |
| | | * @return |
| | | */ |
| | | CollectionGoodsV2 selectByUidAndCommonGoodsId(@Param("uid") Long uid, @Param("commonGoodsId") Long commonGoodsId); |
| | | |
| | | /** |
| | | * 根据用户ID获取收藏记录,按照收藏时间倒叙 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<CollectionGoodsV2> selectByUidOrderByCreateTimeDesc(@Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count, @Param("source")Integer source); |
| | | |
| | | /** |
| | | * 获取收藏的数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long selectCountByUid(@Param("uid") Long uid, @Param("source")Integer source); |
| | | |
| | | |
| | | /** |
| | | * 根据用户ID,商品ID,商品类型查询商品 |
| | | * |
| | | * @param id |
| | | * @param goodsType |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | CollectionGoodsV2 selectByUidAndGoodsId(@Param("uid") Long uid, @Param("goodsId") Long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 根据用户ID,商品ID,商品类型查询商品 |
| | | * |
| | | * @param id |
| | | * @param goodsType |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | CollectionGoodsV2 selectByUidAndGoodsType(@Param("uid") Long uid, @Param("goodsId") Long goodsId, |
| | | @Param("goodsType") Integer goodsType); |
| | | |
| | | /** |
| | | * 根据UID删除收藏 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | int deleteByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 用户id/收藏简版商品id |
| | | * @param uid |
| | | * @param commonId |
| | | * @return |
| | | */ |
| | | List<CollectionGoodsV2> getByUidAndCommonId(@Param("uid") Long uid, @Param("commonId") Long commonId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.goods.CollectionGoodsV2;
|
| | |
|
| | | public interface CollectionGoodsV2Mapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(CollectionGoodsV2 record);
|
| | |
|
| | | int insertSelective(CollectionGoodsV2 record);
|
| | |
|
| | | CollectionGoodsV2 selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(CollectionGoodsV2 record);
|
| | |
|
| | | int updateByPrimaryKey(CollectionGoodsV2 record);
|
| | |
|
| | | /**
|
| | | * 根据用户ID和商品ID获取收藏记录
|
| | | * |
| | | * @param uid
|
| | | * @param commonGoodsId
|
| | | * @return
|
| | | */
|
| | | CollectionGoodsV2 selectByUidAndCommonGoodsId(@Param("uid") Long uid, @Param("commonGoodsId") Long commonGoodsId);
|
| | |
|
| | | /**
|
| | | * 根据用户ID获取收藏记录,按照收藏时间倒叙
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<CollectionGoodsV2> selectByUidOrderByCreateTimeDesc(@Param("uid") Long uid, @Param("start") long start,
|
| | | @Param("count") int count, @Param("source")Integer source);
|
| | |
|
| | | /**
|
| | | * 获取收藏的数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long selectCountByUid(@Param("uid") Long uid, @Param("source")Integer source);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据用户ID,商品ID,商品类型查询商品
|
| | | * |
| | | * @param id
|
| | | * @param goodsType
|
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | CollectionGoodsV2 selectByUidAndGoodsId(@Param("uid") Long uid, @Param("goodsId") Long goodsId);
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户ID,商品ID,商品类型查询商品
|
| | | * |
| | | * @param id
|
| | | * @param goodsType
|
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | CollectionGoodsV2 selectByUidAndGoodsType(@Param("uid") Long uid, @Param("goodsId") Long goodsId,
|
| | | @Param("goodsType") Integer goodsType);
|
| | |
|
| | | /**
|
| | | * 根据UID删除收藏
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | int deleteByUid(@Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 用户id/收藏简版商品id
|
| | | * @param uid
|
| | | * @param commonId
|
| | | * @return
|
| | | */
|
| | | List<CollectionGoodsV2> getByUidAndCommonId(@Param("uid") Long uid, @Param("commonId") Long commonId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.goods.CommonGoods; |
| | | |
| | | public interface CommonGoodsMapper extends BaseMapper<CommonGoods> { |
| | | |
| | | /** |
| | | * 根据商品ID查询 |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @return |
| | | */ |
| | | CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") Integer goodsType); |
| | | |
| | | |
| | | /** |
| | | * 根据店铺id查询 最新5个 |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | List<CommonGoods> listBySellerId(@Param("sellerId") Long sellerId, @Param("goodsType") Integer goodsType); |
| | | |
| | | /** |
| | | * 统计店铺商品有券数量 |
| | | * @param sellerId |
| | | * @return |
| | | */ |
| | | long countBySellerIdAndHasCoupon(@Param("sellerId") Long sellerId, @Param("goodsType") Integer goodsType); |
| | | |
| | | |
| | | /** |
| | | * 批量商品id查询商品信息 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<CommonGoods> getByListGoodsId(@Param("list") List<Long> list, @Param("goodsType") Integer goodsType); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.goods.CommonGoods;
|
| | |
|
| | | public interface CommonGoodsMapper extends BaseMapper<CommonGoods> {
|
| | |
|
| | | /**
|
| | | * 根据商品ID查询
|
| | | * @param goodsId
|
| | | * @param goodsType
|
| | | * @return
|
| | | */
|
| | | CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") Integer goodsType);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据店铺id查询 最新5个
|
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | List<CommonGoods> listBySellerId(@Param("sellerId") Long sellerId, @Param("goodsType") Integer goodsType);
|
| | | |
| | | /**
|
| | | * 统计店铺商品有券数量
|
| | | * @param sellerId
|
| | | * @return
|
| | | */
|
| | | long countBySellerIdAndHasCoupon(@Param("sellerId") Long sellerId, @Param("goodsType") Integer goodsType);
|
| | | |
| | | |
| | | /**
|
| | | * 批量商品id查询商品信息
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<CommonGoods> getByListGoodsId(@Param("list") List<Long> list, @Param("goodsType") Integer goodsType);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.recommend.RecommendSpecial; |
| | | |
| | | public interface RecommendSpecialMapper extends BaseMapper<RecommendSpecial>{ |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.recommend.RecommendSpecial;
|
| | |
|
| | | public interface RecommendSpecialMapper extends BaseMapper<RecommendSpecial>{
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.goods.RecommendUserGoodsMap; |
| | | |
| | | public interface RecommendUserGoodsMapMapper extends BaseMapper<RecommendUserGoodsMap> { |
| | | |
| | | List<RecommendUserGoodsMap> listByUidAndCommonGoodsId(@Param("uid") Long uid, |
| | | @Param("commonGoodsId") Long commonGoodsId); |
| | | |
| | | Long countByUidAndCommonGoodsId(@Param("uid") Long uid, @Param("commonGoodsId") Long commonGoodsId); |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.goods.RecommendUserGoodsMap;
|
| | |
|
| | | public interface RecommendUserGoodsMapMapper extends BaseMapper<RecommendUserGoodsMap> {
|
| | |
|
| | | List<RecommendUserGoodsMap> listByUidAndCommonGoodsId(@Param("uid") Long uid,
|
| | | @Param("commonGoodsId") Long commonGoodsId);
|
| | |
|
| | | Long countByUidAndCommonGoodsId(@Param("uid") Long uid, @Param("commonGoodsId") Long commonGoodsId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.goods.RecommendUserGoods; |
| | | |
| | | public interface RecommendUserGoodsMapper extends BaseMapper<RecommendUserGoods> { |
| | | |
| | | /** |
| | | * 获取用户的推荐列表 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param size |
| | | * @return |
| | | */ |
| | | List<RecommendUserGoods> listRecommendGoods(@Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 用户推荐的数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countRecommendGoods(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 获取最近的推荐 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | RecommendUserGoods getLatestRecommendUserGoods(Long uid); |
| | | |
| | | |
| | | /** |
| | | * 根据设备号获取最近的推荐 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | RecommendUserGoods getLatestRecommendUserGoodsByDevice(String device); |
| | | |
| | | |
| | | /** |
| | | * 根据设备号获取用户的推荐列表 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param size |
| | | * @return |
| | | */ |
| | | List<RecommendUserGoods> listRecommendGoodsByDevice(@Param("device")String device, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 用户推荐的数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countRecommendGoodsByDevice(@Param("device")String device); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.goods.RecommendUserGoods;
|
| | |
|
| | | public interface RecommendUserGoodsMapper extends BaseMapper<RecommendUserGoods> {
|
| | |
|
| | | /**
|
| | | * 获取用户的推荐列表
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param size
|
| | | * @return
|
| | | */
|
| | | List<RecommendUserGoods> listRecommendGoods(@Param("uid") Long uid, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 用户推荐的数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long countRecommendGoods(@Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 获取最近的推荐
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | RecommendUserGoods getLatestRecommendUserGoods(Long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 根据设备号获取最近的推荐
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | RecommendUserGoods getLatestRecommendUserGoodsByDevice(String device);
|
| | | |
| | | |
| | | /**
|
| | | * 根据设备号获取用户的推荐列表
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param size
|
| | | * @return
|
| | | */
|
| | | List<RecommendUserGoods> listRecommendGoodsByDevice(@Param("device")String device, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | | |
| | | /**
|
| | | * 用户推荐的数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long countRecommendGoodsByDevice(@Param("device")String device);
|
| | |
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.goods.ScanHistoryV2; |
| | | |
| | | public interface ScanHistoryV2Mapper extends BaseMapper<ScanHistoryV2> { |
| | | |
| | | /** |
| | | * 根据UID或者设备号获取浏览记录 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> selectByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device, |
| | | @Param("start") long start, @Param("count") int count, @Param("source")Integer source); |
| | | |
| | | /** |
| | | * 根据UID或者设备号获取浏览记录条数 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | Long selectCountByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device, @Param("source")Integer source); |
| | | |
| | | /** |
| | | * 根据设备或用户ID删除 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> listDeviceOrUid(@Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | /** |
| | | * 根据设备或用户ID与商品信息检索 |
| | | * |
| | | * @param uid |
| | | * @param device |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> selectByDeviceOrUidAndGoodsIdAndGoodsType(@Param("uid") Long uid, |
| | | @Param("device") String device, @Param("goodsId") long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 根据简版商品id查询 |
| | | * @param uid |
| | | * @param device |
| | | * @param commonId |
| | | * @return |
| | | */ |
| | | List<ScanHistoryV2> getByCommonGoodsId(@Param("uid") Long uid, @Param("device") String device, @Param("commonId")Long commonId); |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.goods.ScanHistoryV2;
|
| | |
|
| | | public interface ScanHistoryV2Mapper extends BaseMapper<ScanHistoryV2> {
|
| | |
|
| | | /**
|
| | | * 根据UID或者设备号获取浏览记录
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<ScanHistoryV2> selectByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device,
|
| | | @Param("start") long start, @Param("count") int count, @Param("source")Integer source);
|
| | |
|
| | | /**
|
| | | * 根据UID或者设备号获取浏览记录条数
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | Long selectCountByDeviceOrUid(@Param("uid") Long uid, @Param("device") String device, @Param("source")Integer source);
|
| | |
|
| | | /**
|
| | | * 根据设备或用户ID删除
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | List<ScanHistoryV2> listDeviceOrUid(@Param("uid") Long uid, @Param("device") String device);
|
| | |
|
| | | /**
|
| | | * 根据设备或用户ID与商品信息检索
|
| | | * |
| | | * @param uid
|
| | | * @param device
|
| | | * @param goodsId
|
| | | * @param goodsType
|
| | | * @return
|
| | | */
|
| | | List<ScanHistoryV2> selectByDeviceOrUidAndGoodsIdAndGoodsType(@Param("uid") Long uid,
|
| | | @Param("device") String device, @Param("goodsId") long goodsId);
|
| | |
|
| | | |
| | | /**
|
| | | * 根据简版商品id查询
|
| | | * @param uid
|
| | | * @param device
|
| | | * @param commonId
|
| | | * @return
|
| | | */
|
| | | List<ScanHistoryV2> getByCommonGoodsId(@Param("uid") Long uid, @Param("device") String device, @Param("commonId")Long commonId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.goods.ShareGoodsTextTemplate; |
| | | |
| | | public interface ShareGoodsTextTemplateMapper extends BaseMapper<ShareGoodsTextTemplate> { |
| | | |
| | | /** |
| | | * 根据用户查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | ShareGoodsTextTemplate selectByUid(Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.goods.ShareGoodsTextTemplate;
|
| | |
|
| | | public interface ShareGoodsTextTemplateMapper extends BaseMapper<ShareGoodsTextTemplate> {
|
| | | |
| | | /**
|
| | | * 根据用户查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | ShareGoodsTextTemplate selectByUid(Long uid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.su.search.SuperHotSearch; |
| | | |
| | | public interface SuperHotSearchMapper extends BaseMapper<SuperHotSearch>{ |
| | | |
| | | /** |
| | | * 查询根据系统id |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param systemId |
| | | * @return |
| | | */ |
| | | List<SuperHotSearch> listBySystemId(@Param("systemId")Long systemId, @Param("useType")Integer useType); |
| | | |
| | | |
| | | /** |
| | | * 查询搜索 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param systemId |
| | | * @return |
| | | */ |
| | | List<SuperHotSearch> listByHotSearchListID(@Param("list")List<Long> list); |
| | | |
| | | /** |
| | | * 查询根据系统id 和 热门词id |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param systemId |
| | | * @return |
| | | */ |
| | | List<SuperHotSearch> listBySystemIdAndHotSearchId(@Param("hid")Long hid, @Param("systemId")Long systemId); |
| | | |
| | | |
| | | /** |
| | | * 根据id +系统id删除 |
| | | * @param systemId |
| | | * @param hid |
| | | */ |
| | | void deleteBySystemIdAndHotSearchId(@Param("hid")Long hid, @Param("systemId")Long systemId); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.su.search.SuperHotSearch;
|
| | |
|
| | | public interface SuperHotSearchMapper extends BaseMapper<SuperHotSearch>{
|
| | |
|
| | | /**
|
| | | * 查询根据系统id
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param systemId
|
| | | * @return
|
| | | */
|
| | | List<SuperHotSearch> listBySystemId(@Param("systemId")Long systemId, @Param("useType")Integer useType);
|
| | | |
| | | |
| | | /**
|
| | | * 查询搜索
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param systemId
|
| | | * @return
|
| | | */
|
| | | List<SuperHotSearch> listByHotSearchListID(@Param("list")List<Long> list);
|
| | | |
| | | /**
|
| | | * 查询根据系统id 和 热门词id
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param systemId
|
| | | * @return
|
| | | */
|
| | | List<SuperHotSearch> listBySystemIdAndHotSearchId(@Param("hid")Long hid, @Param("systemId")Long systemId);
|
| | | |
| | | |
| | | /**
|
| | | * 根据id +系统id删除
|
| | | * @param systemId
|
| | | * @param hid
|
| | | */
|
| | | void deleteBySystemIdAndHotSearchId(@Param("hid")Long hid, @Param("systemId")Long systemId);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendSpecial; |
| | | |
| | | public interface SuperRecommendSpecialMapper extends BaseMapper<SuperRecommendSpecial> { |
| | | |
| | | List<SuperRecommendSpecial> listBySystemId(@Param("systemId") Long systemId); |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendSpecial;
|
| | |
|
| | | public interface SuperRecommendSpecialMapper extends BaseMapper<SuperRecommendSpecial> {
|
| | | |
| | | List<SuperRecommendSpecial> listBySystemId(@Param("systemId") Long systemId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.help; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.help.AppPageNotification; |
| | | |
| | | public interface AppPageNotificationMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(AppPageNotification record); |
| | | |
| | | int insertSelective(AppPageNotification record); |
| | | |
| | | AppPageNotification selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 通过类型获取通知 |
| | | * |
| | | * @param type |
| | | * @return |
| | | */ |
| | | AppPageNotification selectByType(String type); |
| | | |
| | | int updateByPrimaryKeySelective(AppPageNotification record); |
| | | |
| | | int updateByPrimaryKey(AppPageNotification record); |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @return |
| | | */ |
| | | List<AppPageNotification> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("show") Integer show, @Param("canClose") Integer canClose); |
| | | |
| | | long countQuery(@Param("key") String key,@Param("show") Integer show, @Param("canClose") Integer canClose); |
| | | package com.yeshi.fanli.dao.mybatis.help;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.help.AppPageNotification;
|
| | |
|
| | | public interface AppPageNotificationMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(AppPageNotification record);
|
| | |
|
| | | int insertSelective(AppPageNotification record);
|
| | |
|
| | | AppPageNotification selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 通过类型获取通知
|
| | | * |
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | AppPageNotification selectByType(String type);
|
| | |
|
| | | int updateByPrimaryKeySelective(AppPageNotification record);
|
| | |
|
| | | int updateByPrimaryKey(AppPageNotification record);
|
| | | |
| | | /**
|
| | | * 根据主键批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 后端列表查询
|
| | | * @return
|
| | | */
|
| | | List<AppPageNotification> listQuery(@Param("start") long start, @Param("count") int count,
|
| | | @Param("key") String key, @Param("show") Integer show, @Param("canClose") Integer canClose);
|
| | | |
| | | long countQuery(@Param("key") String key,@Param("show") Integer show, @Param("canClose") Integer canClose);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.help; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.help.HelpClass; |
| | | |
| | | public interface HelpClassMapper extends BaseMapper<HelpClass>{ |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteByPrimaryKeyBatch(List<Long> list); |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<HelpClass> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("state") Integer state); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state); |
| | | |
| | | |
| | | /** |
| | | * 获取最大的排序值 |
| | | * @return |
| | | */ |
| | | int getMaxOrder(); |
| | | |
| | | /** |
| | | * 查询交换排序对象 |
| | | * @param type |
| | | * @param sort 排序值 |
| | | * @return |
| | | */ |
| | | HelpClass getChangeOrder(@Param("type") Integer type, @Param("sort") Integer sort); |
| | | |
| | | |
| | | /** |
| | | * 根据状态查询 |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<HelpClass> getClassByState(@Param("state") Integer state); |
| | | |
| | | /** |
| | | * 查询所有分类 提供筛选 |
| | | * @return |
| | | */ |
| | | List<HelpClass> getProvidedClass(); |
| | | package com.yeshi.fanli.dao.mybatis.help;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.help.HelpClass;
|
| | |
|
| | | public interface HelpClassMapper extends BaseMapper<HelpClass>{
|
| | | |
| | | /**
|
| | | * 根据主键批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteByPrimaryKeyBatch(List<Long> list);
|
| | | |
| | | /**
|
| | | * 后端列表查询
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<HelpClass> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | |
| | | /**
|
| | | * 获取最大的排序值
|
| | | * @return
|
| | | */
|
| | | int getMaxOrder();
|
| | | |
| | | /**
|
| | | * 查询交换排序对象
|
| | | * @param type |
| | | * @param sort 排序值
|
| | | * @return
|
| | | */
|
| | | HelpClass getChangeOrder(@Param("type") Integer type, @Param("sort") Integer sort);
|
| | | |
| | | |
| | | /**
|
| | | * 根据状态查询
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<HelpClass> getClassByState(@Param("state") Integer state);
|
| | | |
| | | /**
|
| | | * 查询所有分类 提供筛选
|
| | | * @return
|
| | | */
|
| | | List<HelpClass> getProvidedClass();
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.HomeNavbar; |
| | | |
| | | public interface HomeNavbarMapper extends BaseMapper<HomeNavbar>{ |
| | | |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 默认最大的排序值 |
| | | * @param card |
| | | * @return |
| | | */ |
| | | int getDefaultMaxOrder(); |
| | | |
| | | |
| | | /** |
| | | * 默认最大的排序值 |
| | | * @param card |
| | | * @return |
| | | */ |
| | | int getManMaxOrder(); |
| | | |
| | | |
| | | /** |
| | | * 默认最大的排序值 |
| | | * @param card |
| | | * @return |
| | | */ |
| | | int getWomanMaxOrder(); |
| | | |
| | | /** |
| | | * 查询交换排序对象 |
| | | * @param type |
| | | * @param order 排序值 |
| | | * @return |
| | | */ |
| | | HomeNavbar getDefaultChangeOrder(@Param("type") Integer type, @Param("order") Integer order); |
| | | |
| | | |
| | | /** |
| | | * 查询交换排序对象 |
| | | * @param type |
| | | * @param order 排序值 |
| | | * @return |
| | | */ |
| | | HomeNavbar getManChangeOrder(@Param("type") Integer type, @Param("order") Integer order); |
| | | |
| | | |
| | | /** |
| | | * 查询交换排序对象 |
| | | * @param type |
| | | * @param order 排序值 |
| | | * @return |
| | | */ |
| | | HomeNavbar getWomanChangeOrder(@Param("type") Integer type, @Param("order") Integer order); |
| | | |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<HomeNavbar> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, @Param("sex") Integer sex); |
| | | |
| | | long countListQuery(@Param("key") String key, @Param("sex") Integer sex); |
| | | |
| | | /** |
| | | * 查询有效导航栏 |
| | | * @return |
| | | */ |
| | | List<HomeNavbar> listQueryEffective(); |
| | | |
| | | |
| | | /** |
| | | * 默认导航栏 |
| | | * @return |
| | | */ |
| | | List<HomeNavbar> listQueryDefaultNavbar(@Param("sex") Integer sex); |
| | | |
| | | |
| | | /** |
| | | * 固定导航栏 |
| | | * @return |
| | | */ |
| | | List<HomeNavbar> listQueryFixedNavbar(); |
| | | |
| | | |
| | | /** |
| | | * 根据分类查询有效导航栏 |
| | | * @param classId |
| | | * @return |
| | | */ |
| | | HomeNavbar getEffectiveByClassId(@Param("classId") Long classId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.HomeNavbar;
|
| | |
|
| | | public interface HomeNavbarMapper extends BaseMapper<HomeNavbar>{
|
| | |
|
| | | |
| | | /**
|
| | | * 根据主键批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 默认最大的排序值
|
| | | * @param card
|
| | | * @return
|
| | | */
|
| | | int getDefaultMaxOrder();
|
| | | |
| | |
|
| | | /**
|
| | | * 默认最大的排序值
|
| | | * @param card
|
| | | * @return
|
| | | */
|
| | | int getManMaxOrder();
|
| | | |
| | |
|
| | | /**
|
| | | * 默认最大的排序值
|
| | | * @param card
|
| | | * @return
|
| | | */
|
| | | int getWomanMaxOrder();
|
| | | |
| | | /**
|
| | | * 查询交换排序对象
|
| | | * @param type |
| | | * @param order 排序值
|
| | | * @return
|
| | | */
|
| | | HomeNavbar getDefaultChangeOrder(@Param("type") Integer type, @Param("order") Integer order);
|
| | | |
| | | |
| | | /**
|
| | | * 查询交换排序对象
|
| | | * @param type |
| | | * @param order 排序值
|
| | | * @return
|
| | | */
|
| | | HomeNavbar getManChangeOrder(@Param("type") Integer type, @Param("order") Integer order);
|
| | | |
| | | |
| | | /**
|
| | | * 查询交换排序对象
|
| | | * @param type |
| | | * @param order 排序值
|
| | | * @return
|
| | | */
|
| | | HomeNavbar getWomanChangeOrder(@Param("type") Integer type, @Param("order") Integer order);
|
| | | |
| | | |
| | | /**
|
| | | * 后端列表查询
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<HomeNavbar> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, @Param("sex") Integer sex);
|
| | | |
| | | long countListQuery(@Param("key") String key, @Param("sex") Integer sex);
|
| | | |
| | | /**
|
| | | * 查询有效导航栏
|
| | | * @return
|
| | | */
|
| | | List<HomeNavbar> listQueryEffective();
|
| | | |
| | | |
| | | /**
|
| | | * 默认导航栏
|
| | | * @return
|
| | | */
|
| | | List<HomeNavbar> listQueryDefaultNavbar(@Param("sex") Integer sex);
|
| | | |
| | | |
| | | /**
|
| | | * 固定导航栏
|
| | | * @return
|
| | | */
|
| | | List<HomeNavbar> listQueryFixedNavbar();
|
| | | |
| | | |
| | | /**
|
| | | * 根据分类查询有效导航栏
|
| | | * @param classId
|
| | | * @return
|
| | | */
|
| | | HomeNavbar getEffectiveByClassId(@Param("classId") Long classId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.HomeNavbarUser; |
| | | |
| | | public interface HomeNavbarUserMapper extends BaseMapper<HomeNavbarUser> { |
| | | |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | */ |
| | | void insertBatch (List<HomeNavbarUser> list); |
| | | |
| | | /** |
| | | * 批量更新- 目前只更新排序 |
| | | * @param list |
| | | */ |
| | | void updateSelectiveBatch (List<HomeNavbarUser> list); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteByPrimaryKeyBatch(List<Long> list); |
| | | |
| | | /** |
| | | * 删除用户自定义 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | void deleteByUid(@Param("uid")Long uid); |
| | | |
| | | |
| | | /** |
| | | * 删除设备自定义 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | void deleteByDevice(@Param("device")String device); |
| | | |
| | | |
| | | /** |
| | | * 查询自定义有效的导航栏 |
| | | */ |
| | | List<HomeNavbarUser> listEffectiveNavbars(@Param("uid")Long uid, @Param("device")String device); |
| | | |
| | | |
| | | /** |
| | | * 查询自定义导航栏 |
| | | */ |
| | | List<HomeNavbarUser> listMyNavbars(@Param("uid")Long uid, @Param("device")String device); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.HomeNavbarUser;
|
| | |
|
| | | public interface HomeNavbarUserMapper extends BaseMapper<HomeNavbarUser> {
|
| | | |
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | */
|
| | | void insertBatch (List<HomeNavbarUser> list);
|
| | | |
| | | /**
|
| | | * 批量更新- 目前只更新排序
|
| | | * @param list
|
| | | */
|
| | | void updateSelectiveBatch (List<HomeNavbarUser> list);
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteByPrimaryKeyBatch(List<Long> list);
|
| | | |
| | | /**
|
| | | * 删除用户自定义
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | void deleteByUid(@Param("uid")Long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 删除设备自定义
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | void deleteByDevice(@Param("device")String device);
|
| | | |
| | | |
| | | /**
|
| | | * 查询自定义有效的导航栏
|
| | | */
|
| | | List<HomeNavbarUser> listEffectiveNavbars(@Param("uid")Long uid, @Param("device")String device);
|
| | | |
| | | |
| | | /**
|
| | | * 查询自定义导航栏
|
| | | */
|
| | | List<HomeNavbarUser> listMyNavbars(@Param("uid")Long uid, @Param("device")String device);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.recommend.RecommendBanner; |
| | | |
| | | public interface RecommendBannerMapper extends BaseMapper<RecommendBanner> { |
| | | |
| | | /** |
| | | * 按照OrderBy排序 |
| | | * |
| | | * @return |
| | | */ |
| | | List<RecommendBanner> listAllOrderByOrderby(); |
| | | |
| | | List<RecommendBanner> listSearchBy(); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.recommend.RecommendBanner;
|
| | |
|
| | | public interface RecommendBannerMapper extends BaseMapper<RecommendBanner> {
|
| | |
|
| | | /**
|
| | | * 按照OrderBy排序
|
| | | * |
| | | * @return
|
| | | */
|
| | | List<RecommendBanner> listAllOrderByOrderby();
|
| | | |
| | | List<RecommendBanner> listSearchBy();
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialCard; |
| | | |
| | | public interface SpecialCardMapper extends BaseMapper<SpecialCard>{ |
| | | |
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | |
| | | List<SpecialCard> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key); |
| | | |
| | | long countlistQuery(@Param("key") String key); |
| | | |
| | | |
| | | String getbottomPicture(@Param("placeKey") String placeKey); |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialCard;
|
| | |
|
| | | public interface SpecialCardMapper extends BaseMapper<SpecialCard>{
|
| | |
|
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | |
| | | List<SpecialCard> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key);
|
| | | |
| | | long countlistQuery(@Param("key") String key);
|
| | | |
| | | |
| | | String getbottomPicture(@Param("placeKey") String placeKey);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialLabelMap; |
| | | |
| | | public interface SpecialLabelMapMapper extends BaseMapper<SpecialLabelMap> { |
| | | |
| | | /** |
| | | * 删除此专题所有标签 |
| | | * @param list |
| | | */ |
| | | void deleteBySpecialIds(@Param("list")List<Long> list); |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialLabelMap;
|
| | |
|
| | | public interface SpecialLabelMapMapper extends BaseMapper<SpecialLabelMap> {
|
| | | |
| | | /**
|
| | | * 删除此专题所有标签
|
| | | * @param list
|
| | | */
|
| | | void deleteBySpecialIds(@Param("list")List<Long> list);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialLabel; |
| | | |
| | | public interface SpecialLabelMapper extends BaseMapper<SpecialLabel> { |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list 主键id |
| | | * @return |
| | | */ |
| | | int deleteByPrimaryKeyBatch(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 查询列表-后台 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<SpecialLabel> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, @Param("state")Integer state); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("state")Integer state); |
| | | |
| | | |
| | | /** |
| | | * 查询专题标题 |
| | | * @param specialId |
| | | * @return |
| | | */ |
| | | List<SpecialLabel> getLabelsBySpecialId(@Param("specialId")Long specialId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialLabel;
|
| | |
|
| | | public interface SpecialLabelMapper extends BaseMapper<SpecialLabel> {
|
| | |
|
| | | /**
|
| | | * 批量删除
|
| | | * @param list 主键id
|
| | | * @return
|
| | | */
|
| | | int deleteByPrimaryKeyBatch(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 查询列表-后台
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<SpecialLabel> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, @Param("state")Integer state);
|
| | | |
| | | long countQuery(@Param("key") String key, @Param("state")Integer state);
|
| | | |
| | | |
| | | /**
|
| | | * 查询专题标题
|
| | | * @param specialId
|
| | | * @return
|
| | | */
|
| | | List<SpecialLabel> getLabelsBySpecialId(@Param("specialId")Long specialId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialPlace; |
| | | |
| | | public interface SpecialPlaceMapper extends BaseMapper<SpecialPlace> { |
| | | |
| | | /** |
| | | * 获取所有有效 |
| | | * @return |
| | | */ |
| | | List<SpecialPlace> getAll(); |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteByPrimaryKeyList(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<SpecialPlace> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key); |
| | | |
| | | long countQuery(@Param("key") String key); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialPlace;
|
| | |
|
| | | public interface SpecialPlaceMapper extends BaseMapper<SpecialPlace> {
|
| | | |
| | | /**
|
| | | * 获取所有有效
|
| | | * @return
|
| | | */
|
| | | List<SpecialPlace> getAll();
|
| | | |
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteByPrimaryKeyList(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 后端列表查询
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<SpecialPlace> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key);
|
| | | |
| | | long countQuery(@Param("key") String key);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperHomeNavbar; |
| | | |
| | | public interface SuperHomeNavbarMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(SuperHomeNavbar record); |
| | | |
| | | int insertSelective(SuperHomeNavbar record); |
| | | |
| | | SuperHomeNavbar selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(SuperHomeNavbar record); |
| | | |
| | | int updateByPrimaryKey(SuperHomeNavbar record); |
| | | |
| | | /** |
| | | * 根据系统id获取导航 |
| | | * @param systemId 系统id |
| | | * @return |
| | | */ |
| | | List<SuperHomeNavbar> listBySystem(@Param("systemId") Long systemId); |
| | | |
| | | |
| | | /** |
| | | * 根据导航栏id 批量查询 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<SuperHomeNavbar> listByNavbarIds(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据导航栏id 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByNavbarIds(List<Long> list); |
| | | |
| | | /** |
| | | * 根据系统id+导航id查询 |
| | | * @param systemId 系统id |
| | | * @return |
| | | */ |
| | | List<SuperHomeNavbar> querybyNavbarId(@Param("navbarId") Long navbarId,@Param("systemId") Long systemId); |
| | | |
| | | /** |
| | | * 根据系统id+导航id 删除 |
| | | * @param systemId 系统id |
| | | * @return |
| | | */ |
| | | int deletebyNavbarId(@Param("navbarId") Long navbarId,@Param("systemId") Long systemId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperHomeNavbar;
|
| | |
|
| | | public interface SuperHomeNavbarMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(SuperHomeNavbar record);
|
| | |
|
| | | int insertSelective(SuperHomeNavbar record);
|
| | |
|
| | | SuperHomeNavbar selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(SuperHomeNavbar record);
|
| | |
|
| | | int updateByPrimaryKey(SuperHomeNavbar record);
|
| | | |
| | | /**
|
| | | * 根据系统id获取导航
|
| | | * @param systemId 系统id
|
| | | * @return
|
| | | */
|
| | | List<SuperHomeNavbar> listBySystem(@Param("systemId") Long systemId);
|
| | | |
| | | |
| | | /**
|
| | | * 根据导航栏id 批量查询
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<SuperHomeNavbar> listByNavbarIds(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据导航栏id 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByNavbarIds(List<Long> list);
|
| | | |
| | | /**
|
| | | * 根据系统id+导航id查询
|
| | | * @param systemId 系统id
|
| | | * @return
|
| | | */
|
| | | List<SuperHomeNavbar> querybyNavbarId(@Param("navbarId") Long navbarId,@Param("systemId") Long systemId);
|
| | | |
| | | /**
|
| | | * 根据系统id+导航id 删除
|
| | | * @param systemId 系统id
|
| | | * @return
|
| | | */
|
| | | int deletebyNavbarId(@Param("navbarId") Long navbarId,@Param("systemId") Long systemId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBanner; |
| | | |
| | | public interface SuperRecommendBannerMapper extends BaseMapper<SuperRecommendBanner> { |
| | | |
| | | /** |
| | | * 根据系统ID获取Banner |
| | | * |
| | | * @param systemId |
| | | * @return |
| | | */ |
| | | List<SuperRecommendBanner> listBySystem(Long systemId); |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBanner;
|
| | |
|
| | | public interface SuperRecommendBannerMapper extends BaseMapper<SuperRecommendBanner> {
|
| | |
|
| | | /**
|
| | | * 根据系统ID获取Banner
|
| | | * |
| | | * @param systemId
|
| | | * @return
|
| | | */
|
| | | List<SuperRecommendBanner> listBySystem(Long systemId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperSpecialCard; |
| | | |
| | | public interface SuperSpecialCardMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(SuperSpecialCard record); |
| | | |
| | | int insertSelective(SuperSpecialCard record); |
| | | |
| | | SuperSpecialCard selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(SuperSpecialCard record); |
| | | |
| | | int updateByPrimaryKey(SuperSpecialCard record); |
| | | |
| | | List<SuperSpecialCard> listByCardIDs(List<Long> list); |
| | | |
| | | int deleteBatchByCardId(List<Long> list); |
| | | |
| | | void deletebyCardIdAndSystemId(@Param("cardId") Long cardId, @Param("systemId") Long systemId); |
| | | |
| | | List<SuperSpecialCard> querybyCardIdAndSystemId(@Param("cardId") Long cardId, @Param("systemId") Long systemId); |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperSpecialCard;
|
| | |
|
| | | public interface SuperSpecialCardMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(SuperSpecialCard record);
|
| | |
|
| | | int insertSelective(SuperSpecialCard record);
|
| | |
|
| | | SuperSpecialCard selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(SuperSpecialCard record);
|
| | |
|
| | | int updateByPrimaryKey(SuperSpecialCard record);
|
| | | |
| | | List<SuperSpecialCard> listByCardIDs(List<Long> list);
|
| | | |
| | | int deleteBatchByCardId(List<Long> list);
|
| | | |
| | | void deletebyCardIdAndSystemId(@Param("cardId") Long cardId, @Param("systemId") Long systemId);
|
| | | |
| | | List<SuperSpecialCard> querybyCardIdAndSystemId(@Param("cardId") Long cardId, @Param("systemId") Long systemId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperSpecial; |
| | | |
| | | public interface SuperSpecialMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(SuperSpecial record); |
| | | |
| | | int insertSelective(SuperSpecial record); |
| | | |
| | | SuperSpecial selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(SuperSpecial record); |
| | | |
| | | int updateByPrimaryKey(SuperSpecial record); |
| | | |
| | | /** |
| | | * 根据系统id、标识 获取品牌模块 |
| | | * @param systemId 系统id |
| | | * @param card 品牌唯一标识 |
| | | * @return |
| | | */ |
| | | List<SuperSpecial> listBySystemAndCard(@Param("systemId") Long systemId, @Param("card") String card); |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperSpecial;
|
| | |
|
| | | public interface SuperSpecialMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(SuperSpecial record);
|
| | |
|
| | | int insertSelective(SuperSpecial record);
|
| | |
|
| | | SuperSpecial selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(SuperSpecial record);
|
| | |
|
| | | int updateByPrimaryKey(SuperSpecial record);
|
| | | |
| | | /**
|
| | | * 根据系统id、标识 获取品牌模块
|
| | | * @param systemId 系统id
|
| | | * @param card 品牌唯一标识
|
| | | * @return
|
| | | */
|
| | | List<SuperSpecial> listBySystemAndCard(@Param("systemId") Long systemId, @Param("card") String card);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.homemodule.SwiperBanner; |
| | | |
| | | public interface SwiperBannerMapper extends BaseMapper<SwiperBanner>{ |
| | | |
| | | List<SwiperBanner> query(@Param("start") long start, @Param("count") int count, @Param("key") String key, |
| | | @Param("sort") Integer sort); |
| | | |
| | | long countQuery(@Param("key") String key); |
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 查询有效专题 |
| | | * @return |
| | | */ |
| | | List<SwiperBanner> getEffectiveOption(); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SwiperBanner;
|
| | |
|
| | | public interface SwiperBannerMapper extends BaseMapper<SwiperBanner>{
|
| | |
|
| | | List<SwiperBanner> query(@Param("start") long start, @Param("count") int count, @Param("key") String key,
|
| | | @Param("sort") Integer sort);
|
| | | |
| | | long countQuery(@Param("key") String key);
|
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 查询有效专题
|
| | | * @return
|
| | | */
|
| | | List<SwiperBanner> getEffectiveOption();
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture; |
| | | |
| | | public interface SwiperPictureMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(SwiperPicture record); |
| | | |
| | | int insertSelective(SwiperPicture record); |
| | | |
| | | SwiperPicture selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(SwiperPicture record); |
| | | |
| | | int updateByPrimaryKey(SwiperPicture record); |
| | | |
| | | List<SwiperPicture> queryByBannerID(@Param("start") long start, @Param("count") int count, |
| | | @Param("bannerId") Long bannerId); |
| | | |
| | | long countQueryByBannerID(@Param("bannerId") Long bannerId); |
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | int deleteBatchByBannerID(List<Long> list); |
| | | |
| | | List<SwiperPicture> queryByListPrimaryKey(List<Long> list); |
| | | |
| | | List<SwiperPicture> queryByListBannerID(List<Long> list); |
| | | |
| | | List<SwiperPicture> getOrderByBannerID(@Param("bannerId") Long bannerId, @Param("type") Integer type, |
| | | @Param("order") Integer order); |
| | | |
| | | int getMaxOrderByBannerID(@Param("bannerId") Long bannerId); |
| | | |
| | | |
| | | /** |
| | | * 根据 唯一标识查询 |
| | | * @param card 唯一标识 |
| | | * @return |
| | | */ |
| | | List<SwiperPicture> getByBannerCard(@Param("card") String card); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据 唯一标识查询 |
| | | * @param card 唯一标识 |
| | | * @return |
| | | */ |
| | | List<SwiperPicture> getByBannerId(@Param("bannerId") Long bannerId); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.homemodule;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture;
|
| | |
|
| | | public interface SwiperPictureMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(SwiperPicture record);
|
| | |
|
| | | int insertSelective(SwiperPicture record);
|
| | |
|
| | | SwiperPicture selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(SwiperPicture record);
|
| | |
|
| | | int updateByPrimaryKey(SwiperPicture record);
|
| | | |
| | | List<SwiperPicture> queryByBannerID(@Param("start") long start, @Param("count") int count,
|
| | | @Param("bannerId") Long bannerId);
|
| | | |
| | | long countQueryByBannerID(@Param("bannerId") Long bannerId);
|
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | int deleteBatchByBannerID(List<Long> list);
|
| | | |
| | | List<SwiperPicture> queryByListPrimaryKey(List<Long> list);
|
| | | |
| | | List<SwiperPicture> queryByListBannerID(List<Long> list);
|
| | | |
| | | List<SwiperPicture> getOrderByBannerID(@Param("bannerId") Long bannerId, @Param("type") Integer type,
|
| | | @Param("order") Integer order);
|
| | | |
| | | int getMaxOrderByBannerID(@Param("bannerId") Long bannerId);
|
| | | |
| | | |
| | | /**
|
| | | * 根据 唯一标识查询
|
| | | * @param card 唯一标识
|
| | | * @return
|
| | | */
|
| | | List<SwiperPicture> getByBannerCard(@Param("card") String card);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 根据 唯一标识查询
|
| | | * @param card 唯一标识
|
| | | * @return
|
| | | */
|
| | | List<SwiperPicture> getByBannerId(@Param("bannerId") Long bannerId);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.integral; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.integral.CodePublishRecord; |
| | | |
| | | public interface CodePublishRecordMapper extends BaseMapper<CodePublishRecord> { |
| | | |
| | | /** |
| | | * 查询近3天发布记录 |
| | | * @return |
| | | */ |
| | | List<CodePublishRecord> listValid(@Param("start") long start, @Param("count") int count, @Param("validTime")long validTime); |
| | | |
| | | |
| | | long countValid(@Param("validTime") long validTime); |
| | | |
| | | |
| | | long countValidRecord(@Param("uid") long uid, @Param("validTime") long validTime); |
| | | package com.yeshi.fanli.dao.mybatis.integral;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.integral.CodePublishRecord;
|
| | |
|
| | | public interface CodePublishRecordMapper extends BaseMapper<CodePublishRecord> {
|
| | | |
| | | /**
|
| | | * 查询近3天发布记录
|
| | | * @return
|
| | | */
|
| | | List<CodePublishRecord> listValid(@Param("start") long start, @Param("count") int count, @Param("validTime")long validTime);
|
| | | |
| | | |
| | | long countValid(@Param("validTime") long validTime);
|
| | | |
| | | |
| | | long countValidRecord(@Param("uid") long uid, @Param("validTime") long validTime);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.integral; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.integral.IntegralDetail; |
| | | import com.yeshi.fanli.vo.integral.IntegralMonthVO; |
| | | |
| | | public interface IntegralDetailMapper extends BaseMapper<IntegralDetail> { |
| | | |
| | | /** |
| | | * 根据唯一值查询明细 |
| | | * @param uniqueKey |
| | | * @return |
| | | */ |
| | | IntegralDetail getDetailByUniqueKey(@Param("uniqueKey")String uniqueKey); |
| | | |
| | | /** |
| | | * 获取用户总共有多少记录数据 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long selectCountByUid(@Param("uid") Long uid, @Param("type")Integer type); |
| | | |
| | | /** |
| | | * 按用户ID和最大时间检索月份的数量 |
| | | * |
| | | * @param uid |
| | | * @param maxDate |
| | | * @return |
| | | */ |
| | | int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate, @Param("type")Integer type); |
| | | |
| | | |
| | | /** |
| | | * 按最大的创建时间和用户ID检索数量 |
| | | * |
| | | * @param uid |
| | | * @param date |
| | | * @return |
| | | */ |
| | | Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, @Param("type")Integer type); |
| | | |
| | | |
| | | /** |
| | | * 按最大的创建时间和用户ID检索列表 |
| | | * |
| | | * @param uid |
| | | * @param date |
| | | * @return |
| | | */ |
| | | List<IntegralDetail> selectByMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, @Param("count") int count, @Param("type")Integer type); |
| | | |
| | | |
| | | /** |
| | | * 通过用户ID和返回的最大时间的详情ID来获取下一页的数据 |
| | | * |
| | | * @param uid |
| | | * @param id |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<IntegralDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id, @Param("count") int count, @Param("type")Integer type); |
| | | |
| | | |
| | | /** |
| | | * 统计某个月份的收入与支出 |
| | | * |
| | | * @param uid |
| | | * @param dateFormat |
| | | * @return |
| | | */ |
| | | List<IntegralMonthVO> selectMonthMoneyByUid(@Param("uid") Long uid, @Param("dateFormat") List<String> dateFormat); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.integral;
|
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.integral.IntegralDetail;
|
| | | import com.yeshi.fanli.vo.integral.IntegralMonthVO;
|
| | |
|
| | | public interface IntegralDetailMapper extends BaseMapper<IntegralDetail> {
|
| | |
|
| | | /**
|
| | | * 根据唯一值查询明细
|
| | | * @param uniqueKey
|
| | | * @return
|
| | | */
|
| | | IntegralDetail getDetailByUniqueKey(@Param("uniqueKey")String uniqueKey);
|
| | | |
| | | /**
|
| | | * 获取用户总共有多少记录数据
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long selectCountByUid(@Param("uid") Long uid, @Param("type")Integer type);
|
| | | |
| | | /**
|
| | | * 按用户ID和最大时间检索月份的数量
|
| | | * |
| | | * @param uid
|
| | | * @param maxDate
|
| | | * @return
|
| | | */
|
| | | int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate, @Param("type")Integer type);
|
| | | |
| | | |
| | | /**
|
| | | * 按最大的创建时间和用户ID检索数量
|
| | | * |
| | | * @param uid
|
| | | * @param date
|
| | | * @return
|
| | | */
|
| | | Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, @Param("type")Integer type);
|
| | | |
| | | |
| | | /**
|
| | | * 按最大的创建时间和用户ID检索列表
|
| | | * |
| | | * @param uid
|
| | | * @param date
|
| | | * @return
|
| | | */
|
| | | List<IntegralDetail> selectByMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, @Param("count") int count, @Param("type")Integer type);
|
| | | |
| | | |
| | | /**
|
| | | * 通过用户ID和返回的最大时间的详情ID来获取下一页的数据
|
| | | * |
| | | * @param uid
|
| | | * @param id
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<IntegralDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id, @Param("count") int count, @Param("type")Integer type);
|
| | | |
| | | |
| | | /**
|
| | | * 统计某个月份的收入与支出
|
| | | * |
| | | * @param uid
|
| | | * @param dateFormat
|
| | | * @return
|
| | | */
|
| | | List<IntegralMonthVO> selectMonthMoneyByUid(@Param("uid") Long uid, @Param("dateFormat") List<String> dateFormat);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.integral; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.integral.IntegralExchange; |
| | | |
| | | public interface IntegralExchangeMapper extends BaseMapper<IntegralExchange> { |
| | | |
| | | /** |
| | | * 查询有效兑换 |
| | | */ |
| | | List<IntegralExchange> listValid(@Param("start") long start, @Param("count") int count); |
| | | |
| | | Long countValid(); |
| | | |
| | | |
| | | /** |
| | | * 根据类型查询有效兑换 |
| | | * @param type |
| | | * @return |
| | | */ |
| | | IntegralExchange getValidByType(@Param("type") String type); |
| | | package com.yeshi.fanli.dao.mybatis.integral;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.integral.IntegralExchange;
|
| | |
|
| | | public interface IntegralExchangeMapper extends BaseMapper<IntegralExchange> {
|
| | | |
| | | /**
|
| | | * 查询有效兑换
|
| | | */
|
| | | List<IntegralExchange> listValid(@Param("start") long start, @Param("count") int count);
|
| | | |
| | | Long countValid();
|
| | | |
| | | |
| | | /**
|
| | | * 根据类型查询有效兑换
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | IntegralExchange getValidByType(@Param("type") String type);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.integral; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.integral.IntegralExchangeRecord; |
| | | |
| | | public interface IntegralExchangeRecordMapper extends BaseMapper<IntegralExchangeRecord> { |
| | | |
| | | |
| | | /** |
| | | * 统计今日兑换情况 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | long countRecordByUid(@Param("exchangeId") Long exchangeId, @Param("uid") Long uid, @Param("today") Integer today); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.integral;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.integral.IntegralExchangeRecord;
|
| | |
|
| | | public interface IntegralExchangeRecordMapper extends BaseMapper<IntegralExchangeRecord> {
|
| | | |
| | |
|
| | | /**
|
| | | * 统计今日兑换情况
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | long countRecordByUid(@Param("exchangeId") Long exchangeId, @Param("uid") Long uid, @Param("today") Integer today);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.integral; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.integral.IntegralTaskClass; |
| | | import com.yeshi.fanli.vo.integral.IntegralTaskClassVO; |
| | | |
| | | public interface IntegralTaskClassMapper extends BaseMapper<IntegralTaskClass> { |
| | | |
| | | /** |
| | | * 获取有效任务 |
| | | * @return |
| | | */ |
| | | List<IntegralTaskClassVO> getIntegralTaskClassVO(@Param("start")long start, @Param("count")int count); |
| | | |
| | | Long countTaskClass(); |
| | | |
| | | /** |
| | | * 根据唯一值查询 |
| | | * @param uniqueKey |
| | | * @return |
| | | */ |
| | | IntegralTaskClass getByUniqueKey(@Param("uniqueKey") String uniqueKey); |
| | | package com.yeshi.fanli.dao.mybatis.integral;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.integral.IntegralTaskClass;
|
| | | import com.yeshi.fanli.vo.integral.IntegralTaskClassVO;
|
| | |
|
| | | public interface IntegralTaskClassMapper extends BaseMapper<IntegralTaskClass> {
|
| | | |
| | | /**
|
| | | * 获取有效任务
|
| | | * @return
|
| | | */
|
| | | List<IntegralTaskClassVO> getIntegralTaskClassVO(@Param("start")long start, @Param("count")int count);
|
| | | |
| | | Long countTaskClass();
|
| | | |
| | | /**
|
| | | * 根据唯一值查询
|
| | | * @param uniqueKey
|
| | | * @return
|
| | | */
|
| | | IntegralTaskClass getByUniqueKey(@Param("uniqueKey") String uniqueKey);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.integral; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.integral.IntegralTask; |
| | | |
| | | public interface IntegralTaskMapper extends BaseMapper<IntegralTask> { |
| | | |
| | | /** |
| | | * 查询任务 |
| | | * @param cid |
| | | * @param uniqueKey |
| | | * @return |
| | | */ |
| | | List<IntegralTask> listByCid(@Param("cid")Long cid); |
| | | |
| | | /** |
| | | * 查询任务 |
| | | * @param cid |
| | | * @param uniqueKey |
| | | * @return |
| | | */ |
| | | IntegralTask getByCidAndUniqueKey(@Param("cid")Long cid, @Param("uniqueKey")String uniqueKey); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.integral;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.integral.IntegralTask;
|
| | |
|
| | | public interface IntegralTaskMapper extends BaseMapper<IntegralTask> {
|
| | | |
| | | /**
|
| | | * 查询任务
|
| | | * @param cid
|
| | | * @param uniqueKey
|
| | | * @return
|
| | | */
|
| | | List<IntegralTask> listByCid(@Param("cid")Long cid);
|
| | |
|
| | | /**
|
| | | * 查询任务
|
| | | * @param cid
|
| | | * @param uniqueKey
|
| | | * @return
|
| | | */
|
| | | IntegralTask getByCidAndUniqueKey(@Param("cid")Long cid, @Param("uniqueKey")String uniqueKey);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.integral; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.integral.IntegralTaskRank; |
| | | |
| | | public interface IntegralTaskRankMapper extends BaseMapper<IntegralTaskRank> { |
| | | |
| | | /** |
| | | * 查询任务等级奖励 |
| | | * @param tsakId |
| | | * @param rankId |
| | | * @return |
| | | */ |
| | | IntegralTaskRank getByTsakIdAndRankId(@Param("tsakId")Long tsakId,@Param("rankId") Long rankId); |
| | | package com.yeshi.fanli.dao.mybatis.integral;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.integral.IntegralTaskRank;
|
| | |
|
| | | public interface IntegralTaskRankMapper extends BaseMapper<IntegralTaskRank> {
|
| | | |
| | | /**
|
| | | * 查询任务等级奖励
|
| | | * @param tsakId
|
| | | * @param rankId
|
| | | * @return
|
| | | */
|
| | | IntegralTaskRank getByTsakIdAndRankId(@Param("tsakId")Long tsakId,@Param("rankId") Long rankId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.jd; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.jd.JDGoodsClass; |
| | | |
| | | public interface JDGoodsClassMapper extends BaseMapper<JDGoodsClass> { |
| | | |
| | | |
| | | /** |
| | | * 删除小于当前时间分类 |
| | | * @param level |
| | | * @param date |
| | | */ |
| | | void deleteByDate(@Param("level")Integer level, @Param("date")String date); |
| | | |
| | | |
| | | /** |
| | | * 查询各级分类 |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | List<JDGoodsClass> getByLevel(@Param("level")Integer level); |
| | | |
| | | |
| | | /** |
| | | * 查询下级分类 |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | List<JDGoodsClass> getByPid(@Param("pid")Integer pid); |
| | | |
| | | |
| | | /** |
| | | * 查询最新分类 |
| | | * @param level |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | JDGoodsClass getByCid(@Param("level")Integer level, @Param("cid")Integer cid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.jd;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.jd.JDGoodsClass;
|
| | |
|
| | | public interface JDGoodsClassMapper extends BaseMapper<JDGoodsClass> {
|
| | | |
| | | |
| | | /**
|
| | | * 删除小于当前时间分类
|
| | | * @param level
|
| | | * @param date
|
| | | */
|
| | | void deleteByDate(@Param("level")Integer level, @Param("date")String date);
|
| | | |
| | | |
| | | /**
|
| | | * 查询各级分类
|
| | | * @param pid
|
| | | * @return
|
| | | */
|
| | | List<JDGoodsClass> getByLevel(@Param("level")Integer level);
|
| | | |
| | | |
| | | /**
|
| | | * 查询下级分类
|
| | | * @param pid
|
| | | * @return
|
| | | */
|
| | | List<JDGoodsClass> getByPid(@Param("pid")Integer pid);
|
| | | |
| | | |
| | | /**
|
| | | * 查询最新分类
|
| | | * @param level
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | JDGoodsClass getByCid(@Param("level")Integer level, @Param("cid")Integer cid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.jd; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.dto.ChartTDO; |
| | | import com.yeshi.fanli.entity.jd.JDOrderItem; |
| | | |
| | | public interface JDOrderItemMapper extends BaseMapper<JDOrderItem> { |
| | | |
| | | /** |
| | | * 根据交易ID查询 |
| | | * |
| | | * @param tradeId |
| | | * @return |
| | | */ |
| | | JDOrderItem selectByTradeId(String tradeId); |
| | | |
| | | /** |
| | | * 根据订单号查询 |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | List<JDOrderItem> listByOrderId(Long orderId); |
| | | |
| | | /** |
| | | * 统计所有订单 |
| | | * |
| | | * @param channel |
| | | * @return |
| | | */ |
| | | List<ChartTDO> countOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year, |
| | | @Param("startTime") String startTime, @Param("endTime") String endTime); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.jd;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.dto.ChartTDO;
|
| | | import com.yeshi.fanli.entity.jd.JDOrderItem;
|
| | |
|
| | | public interface JDOrderItemMapper extends BaseMapper<JDOrderItem> {
|
| | |
|
| | | /**
|
| | | * 根据交易ID查询
|
| | | * |
| | | * @param tradeId
|
| | | * @return
|
| | | */
|
| | | JDOrderItem selectByTradeId(String tradeId);
|
| | |
|
| | | /**
|
| | | * 根据订单号查询
|
| | | * |
| | | * @param orderId
|
| | | * @return
|
| | | */
|
| | | List<JDOrderItem> listByOrderId(Long orderId);
|
| | |
|
| | | /**
|
| | | * 统计所有订单
|
| | | * |
| | | * @param channel
|
| | | * @return
|
| | | */
|
| | | List<ChartTDO> countOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year,
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.jd; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.jd.JDOrder; |
| | | |
| | | public interface JDOrderMapper extends BaseMapper<JDOrder> { |
| | | |
| | | /** |
| | | * 根据订单号检索 |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | JDOrder selectByOrderId(Long orderId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.jd;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.jd.JDOrder;
|
| | |
|
| | | public interface JDOrderMapper extends BaseMapper<JDOrder> {
|
| | |
|
| | | /**
|
| | | * 根据订单号检索
|
| | | * |
| | | * @param orderId
|
| | | * @return
|
| | | */
|
| | | JDOrder selectByOrderId(Long orderId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.lable.BoutiqueAutoRule; |
| | | import com.yeshi.fanli.entity.bus.lable.Label; |
| | | |
| | | public interface BoutiqueAutoRuleMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(BoutiqueAutoRule record); |
| | | |
| | | int insertSelective(BoutiqueAutoRule record); |
| | | |
| | | BoutiqueAutoRule selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(BoutiqueAutoRule record); |
| | | |
| | | int updateByPrimaryKey(BoutiqueAutoRule record); |
| | | |
| | | |
| | | /** |
| | | * 查询规则 |
| | | */ |
| | | List<BoutiqueAutoRule> query(@Param("start") long start, @Param("count") int count, |
| | | @Param("source") Integer source, @Param("key") String key, |
| | | @Param("state") Integer state, @Param("sort") Integer sort); |
| | | |
| | | long queryCount(@Param("source") Integer source, @Param("key") String key, @Param("state") Integer state); |
| | | |
| | | |
| | | /** |
| | | * 查询所有启用任务 |
| | | * @return |
| | | */ |
| | | List<BoutiqueAutoRule> queryStart(); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.lable.BoutiqueAutoRule;
|
| | | import com.yeshi.fanli.entity.bus.lable.Label;
|
| | |
|
| | | public interface BoutiqueAutoRuleMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(BoutiqueAutoRule record);
|
| | |
|
| | | int insertSelective(BoutiqueAutoRule record);
|
| | |
|
| | | BoutiqueAutoRule selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(BoutiqueAutoRule record);
|
| | |
|
| | | int updateByPrimaryKey(BoutiqueAutoRule record);
|
| | | |
| | | |
| | | /**
|
| | | * 查询规则
|
| | | */
|
| | | List<BoutiqueAutoRule> query(@Param("start") long start, @Param("count") int count, |
| | | @Param("source") Integer source, @Param("key") String key, |
| | | @Param("state") Integer state, @Param("sort") Integer sort);
|
| | | |
| | | long queryCount(@Param("source") Integer source, @Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | |
| | | /**
|
| | | * 查询所有启用任务
|
| | | * @return
|
| | | */
|
| | | List<BoutiqueAutoRule> queryStart();
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.lable.LabelClass; |
| | | |
| | | public interface LabelClassMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(LabelClass record); |
| | | |
| | | int insertSelective(LabelClass record); |
| | | |
| | | LabelClass selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(LabelClass record); |
| | | |
| | | int updateByPrimaryKey(LabelClass record); |
| | | |
| | | /** |
| | | * 根据分类id、标签id获取关系 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> getByClassIdAndLabelId(@Param("classId") Long classId, @Param("labId") Long labId); |
| | | |
| | | |
| | | /** |
| | | * 查询一级类对应标签 -- 全部 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> getByClassId(@Param("classId") Long record); |
| | | |
| | | /** |
| | | * 查询一级类对应标签 -- 分页 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> queryByClassId(@Param("start") int start, @Param("count") int count, @Param("classId") Long record); |
| | | |
| | | int getCountQueryByClassId(@Param("classId") Long record); |
| | | |
| | | |
| | | /** |
| | | * 查询子类对应标签 -- 全部 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> getBySubClassId(@Param("subClassId") Long record); |
| | | |
| | | /** |
| | | * 查询子类对应标签 -- 分页 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelClass> queryBySubClassId(@Param("start") int start, @Param("count") int count, @Param("subClassId") Long record); |
| | | |
| | | int getCountQueryBySubClassId(@Param("subClassId") Long record); |
| | | |
| | | /** |
| | | * 根据一级类别ID删除 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | int deleteByClassId(Long classId); |
| | | |
| | | /** |
| | | * 根据子类别ID删除 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | int deleteBySubClassId(Long subClassId); |
| | | |
| | | /** |
| | | * 根据标签ID删除 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | int deleteByLabId(Long labID); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.lable.LabelClass;
|
| | |
|
| | | public interface LabelClassMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(LabelClass record);
|
| | |
|
| | | int insertSelective(LabelClass record);
|
| | |
|
| | | LabelClass selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(LabelClass record);
|
| | |
|
| | | int updateByPrimaryKey(LabelClass record);
|
| | | |
| | | /**
|
| | | * 根据分类id、标签id获取关系
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> getByClassIdAndLabelId(@Param("classId") Long classId, @Param("labId") Long labId);
|
| | | |
| | | |
| | | /**
|
| | | * 查询一级类对应标签 -- 全部
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> getByClassId(@Param("classId") Long record);
|
| | | |
| | | /**
|
| | | * 查询一级类对应标签 -- 分页
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> queryByClassId(@Param("start") int start, @Param("count") int count, @Param("classId") Long record);
|
| | | |
| | | int getCountQueryByClassId(@Param("classId") Long record);
|
| | | |
| | | |
| | | /**
|
| | | * 查询子类对应标签 -- 全部
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> getBySubClassId(@Param("subClassId") Long record);
|
| | | |
| | | /**
|
| | | * 查询子类对应标签 -- 分页
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelClass> queryBySubClassId(@Param("start") int start, @Param("count") int count, @Param("subClassId") Long record);
|
| | | |
| | | int getCountQueryBySubClassId(@Param("subClassId") Long record);
|
| | | |
| | | /**
|
| | | * 根据一级类别ID删除
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | int deleteByClassId(Long classId);
|
| | | |
| | | /**
|
| | | * 根据子类别ID删除
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | int deleteBySubClassId(Long subClassId);
|
| | | |
| | | /**
|
| | | * 根据标签ID删除
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | int deleteByLabId(Long labID);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.lable.LabelGoods; |
| | | |
| | | |
| | | |
| | | public interface LabelGoodsMapper extends BaseMapper<LabelGoods>{ |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<LabelGoods> list); |
| | | |
| | | /** |
| | | * 判断是否已贴过标签 |
| | | * @param title |
| | | * @param startTime |
| | | * @return |
| | | */ |
| | | Long getRelationNum( @Param("labelId") Long labelId); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(long[] ids); |
| | | |
| | | |
| | | /** |
| | | * 删除商品多个标签 |
| | | */ |
| | | void deleteByAuctionIdAndLabIDs(@Param("auctionId")Long auctionId, @Param("list") List<Long> list); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | int deleteBatchByPK(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 判断是否已贴过标签 |
| | | * @param title |
| | | * @param startTime |
| | | * @return |
| | | */ |
| | | Long isExistence(@Param("goodsId") Long goodsId, @Param("labelId") Long labelId); |
| | | |
| | | /** |
| | | * 查询商品当前是否包含 9k9类目 |
| | | * @param title |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<LabelGoods> listQuery9k9Class(@Param("gid") Long title, @Param("list") List<Long> list); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询商品对应标签 |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | int getCountByGoodsId(@Param("goodsId") Long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 查询商品对应标签 -- 分页 |
| | | * @param record |
| | | * @return |
| | | */ |
| | | List<LabelGoods> queryByGoodsId(@Param("start") int start, @Param("count") int count, @Param("goodsId") Long record); |
| | | |
| | | int getCountQueryByGoodsId(@Param("goodsId") Long record); |
| | | |
| | | |
| | | /** |
| | | * 根据商品id删除标签 |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | int deleteByGoodsId(Long goodsId); |
| | | |
| | | |
| | | int deleteBatchByGoodsId(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据标签id批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | int deleteByLabId(Long labId); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | |
| | | int deleteByGoodsIdAndLabId(Long goodsId, Long labId); |
| | | |
| | | |
| | | /** |
| | | * 查询所有数据+条件 |
| | | * @param start |
| | | * @param count |
| | | * @param goodsId |
| | | * @param labIds |
| | | * @return |
| | | */ |
| | | List<LabelGoods> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("labIds") List<Long> labIds); |
| | | |
| | | long countQuery(@Param("labIds") List<Long> labIds); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.lable.LabelGoods;
|
| | |
|
| | | |
| | |
|
| | | public interface LabelGoodsMapper extends BaseMapper<LabelGoods>{
|
| | |
|
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<LabelGoods> list);
|
| | | |
| | | /**
|
| | | * 判断是否已贴过标签
|
| | | * @param title
|
| | | * @param startTime
|
| | | * @return
|
| | | */
|
| | | Long getRelationNum( @Param("labelId") Long labelId);
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param ids
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(long[] ids);
|
| | | |
| | | |
| | | /**
|
| | | * 删除商品多个标签
|
| | | */
|
| | | void deleteByAuctionIdAndLabIDs(@Param("auctionId")Long auctionId, @Param("list") List<Long> list);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param ids
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPK(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 判断是否已贴过标签
|
| | | * @param title
|
| | | * @param startTime
|
| | | * @return
|
| | | */
|
| | | Long isExistence(@Param("goodsId") Long goodsId, @Param("labelId") Long labelId);
|
| | | |
| | | /**
|
| | | * 查询商品当前是否包含 9k9类目
|
| | | * @param title
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<LabelGoods> listQuery9k9Class(@Param("gid") Long title, @Param("list") List<Long> list);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 查询商品对应标签
|
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | int getCountByGoodsId(@Param("goodsId") Long goodsId);
|
| | | |
| | | |
| | | /**
|
| | | * 查询商品对应标签 -- 分页
|
| | | * @param record
|
| | | * @return
|
| | | */
|
| | | List<LabelGoods> queryByGoodsId(@Param("start") int start, @Param("count") int count, @Param("goodsId") Long record);
|
| | | |
| | | int getCountQueryByGoodsId(@Param("goodsId") Long record);
|
| | | |
| | | |
| | | /**
|
| | | * 根据商品id删除标签
|
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | int deleteByGoodsId(Long goodsId);
|
| | | |
| | | |
| | | int deleteBatchByGoodsId(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据标签id批量删除
|
| | | * @param ids
|
| | | * @return
|
| | | */
|
| | | int deleteByLabId(Long labId);
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param ids
|
| | | * @return
|
| | | */
|
| | | |
| | | int deleteByGoodsIdAndLabId(Long goodsId, Long labId);
|
| | | |
| | | |
| | | /**
|
| | | * 查询所有数据+条件
|
| | | * @param start
|
| | | * @param count
|
| | | * @param goodsId
|
| | | * @param labIds
|
| | | * @return
|
| | | */
|
| | | List<LabelGoods> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("labIds") List<Long> labIds);
|
| | | |
| | | long countQuery(@Param("labIds") List<Long> labIds);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import com.yeshi.fanli.entity.bus.lable.MergeClass; |
| | | |
| | | public interface MergeClassMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(MergeClass record); |
| | | |
| | | int insertSelective(MergeClass record); |
| | | |
| | | MergeClass selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(MergeClass record); |
| | | |
| | | int updateByPrimaryKey(MergeClass record); |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.lable.MergeClass;
|
| | |
|
| | | public interface MergeClassMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(MergeClass record);
|
| | |
|
| | | int insertSelective(MergeClass record);
|
| | |
|
| | | MergeClass selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(MergeClass record);
|
| | |
|
| | | int updateByPrimaryKey(MergeClass record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.lable.QualityFactory; |
| | | import com.yeshi.fanli.vo.quality.QualityFactoryVO; |
| | | |
| | | public interface QualityFactoryMapper extends BaseMapper<QualityFactory>{ |
| | | |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<QualityFactory> list); |
| | | |
| | | /** |
| | | * 批量选择更新 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int updateBatchSelective(List<QualityFactory> list); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据商品id 批量删除 |
| | | * @param list |
| | | */ |
| | | void deleteBatchByGoodsId(List<Long> list); |
| | | |
| | | /** |
| | | * 统计总行数 |
| | | * |
| | | * @return |
| | | */ |
| | | Long countTotalRows(@Param("days") Integer days); |
| | | |
| | | List<QualityFactory> queryByGoodsId(@Param("goodsId") Long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 根据商品id查询 |
| | | * @param auctionId |
| | | * @return |
| | | */ |
| | | QualityFactory getByAuctionId(@Param("auctionId") Long auctionId); |
| | | |
| | | |
| | | /** |
| | | * 根据多个商品id 查询对应的商品信息 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQueryGoodsByGoodsId(List<Long> list); |
| | | |
| | | Long queryCountByGoodsId(@Param("goodsId") Long goodsId); |
| | | |
| | | List<QualityFactory> listQueryByAuctionId(List<Long> list); |
| | | |
| | | // 精选库查询 -- 查询所有 |
| | | List<QualityFactory> queryAll(@Param("start") long start, @Param("count") int count, @Param("days") Integer days); |
| | | |
| | | // 精选库查询 |
| | | List<QualityFactory> query(QualityFactoryVO qualityFactoryVO); |
| | | |
| | | long queryCount(QualityFactoryVO qualityFactoryVO); |
| | | |
| | | /** |
| | | * 统计商品数量 |
| | | * |
| | | * @return |
| | | */ |
| | | Map<String, Object> getCountAll(); |
| | | |
| | | /** |
| | | * 根据商品id移除精选库 |
| | | * |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | int deleteByGoodsId(Long goodsId); |
| | | |
| | | /** |
| | | * 查询精选商品数据应用前端 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param classId |
| | | * @param labId |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key, |
| | | @Param("systemCid") Long systemCid, @Param("labId") Long labId, @Param("cids") String cids, |
| | | @Param("hasQuan") Integer hasQuan);// 分类id、标签id |
| | | |
| | | /** |
| | | * 对应查询精选商品数据应用前端统计 |
| | | */ |
| | | long countQuery(@Param("key") String key, @Param("systemCid") Long systemCid, @Param("labId") Long labId, |
| | | @Param("cids") String cids, @Param("hasQuan") Integer hasQuan); |
| | | |
| | | /** |
| | | * 根据关键词 搜索商品标题和标签 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param systemCid |
| | | * @param key |
| | | * @param list |
| | | * @param sort |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQueryByKeyAndlabIDs(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("list") List<Long> list, @Param("sort") Integer sort, |
| | | @Param("systemCid") Long systemCid, @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType, |
| | | @Param("biz30day") Integer biz30day, |
| | | // 在售价范围 |
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice); |
| | | |
| | | long countQueryKeyAndlabIDs(@Param("key") String key, @Param("list") List<Long> list, Long systemCid, |
| | | @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType, @Param("biz30day") Integer biz30day, |
| | | // 在售价范围 |
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice); |
| | | |
| | | /** |
| | | * 根据类目id删除商品 |
| | | * |
| | | * @param doTime |
| | | * @param gcids |
| | | * @return |
| | | */ |
| | | int removeStorageGoods(String doTime, Long gcids); |
| | | |
| | | |
| | | /** |
| | | * 子类查询 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param classId |
| | | * @param labId |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQueryByKey(@Param("start") long start, @Param("count") int count, @Param("key") String key, |
| | | @Param("sort") Integer sort, @Param("systemCid") Long systemCid, @Param("hasQuan") Integer hasQuan, |
| | | @Param("userType") Integer userType, @Param("biz30day") Integer biz30day, |
| | | // 在售价范围 |
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice); |
| | | |
| | | /** |
| | | * 子类查询 |
| | | */ |
| | | long countQueryByKey(@Param("key") String key, @Param("systemCid") Long systemCid, |
| | | @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType, @Param("biz30day") Integer biz30day, |
| | | // 在售价范围 |
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice); |
| | | |
| | | /** |
| | | * 券面额数据查询 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param systemCid |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQueryByCouponAmount(@Param("start") long start, @Param("count") int count, |
| | | @Param("startAmount") Integer startAmount, @Param("endAmount") Integer endAmount, |
| | | @Param("startPropor") Integer startPropor); |
| | | |
| | | long countQueryByCouponAmount(@Param("startAmount") Integer startAmount, @Param("endAmount") Integer endAmount, |
| | | @Param("startPropor") Integer startPropor); |
| | | |
| | | /** |
| | | * 限时抢购商品 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param periodtime |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQueryByFlashSale(@Param("start") long start, @Param("count") int count); |
| | | |
| | | long countQueryByFlashSale(); |
| | | |
| | | /** |
| | | * 限时秒杀 随机3个商品 |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listFlashSaleRandGoods(); |
| | | |
| | | /** |
| | | * 返利金额数据查询 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param systemCid |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listQueryByRebateAmount(@Param("start") long start, @Param("count") int count, |
| | | @Param("proportion") String proportion, @Param("startAmount") Integer startAmount, |
| | | @Param("endAmount") Integer endAmount, @Param("tkRate") double tkRate); |
| | | |
| | | long countQueryByRebateAmount(@Param("proportion") String proportion, @Param("startAmount") Integer startAmount, |
| | | @Param("endAmount") Integer endAmount, @Param("tkRate") double tkRate); |
| | | |
| | | /** |
| | | * 返利金额数据查询 - 首页下方数据 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param systemCid |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listRecommendToIndex(@Param("start") long start, @Param("count") int count, |
| | | @Param("proportion") Double proportion, @Param("commision") Integer commision, |
| | | @Param("couponAmount") Integer couponAmount, @Param("tkRate") double tkRate, |
| | | @Param("couponRatio") Double couponRatio); |
| | | |
| | | long countRecommendToIndex(@Param("proportion") Double proportion, @Param("commision") Integer commision, |
| | | @Param("couponAmount") Integer couponAmount, @Param("tkRate") double tkRate, |
| | | @Param("couponRatio") Double couponRatio); |
| | | |
| | | /** |
| | | * 根据时间 获取dateTime时间之前创建的商品信息 |
| | | * |
| | | * @param systemCid |
| | | * 系统分类id |
| | | * @param dateTime |
| | | * 筛选时间 |
| | | * @param goodsSource |
| | | * 商品来源 |
| | | * @return |
| | | */ |
| | | List<Long> getAuctionIdbyClassId(@Param("systemCid") Long systemCid, @Param("goodsSource") Integer goodsSource, |
| | | @Param("beforeTime") String beforeTime); |
| | | |
| | | /** |
| | | * 更新权重 |
| | | * |
| | | * @param weight |
| | | * @param time |
| | | * @return |
| | | */ |
| | | void updateWeight(@Param("weight") Integer weight, @Param("time") Integer time); |
| | | |
| | | // 查询优惠券-当日 |
| | | List<QualityFactory> queryToCouponColumn(@Param("start") long start, @Param("count") int count); |
| | | |
| | | long countQueryToCouponColumn(); |
| | | |
| | | /** |
| | | * 搜索-推荐商品 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * 关键词 |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listRecommendBykey(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType, |
| | | @Param("startprice") Double startprice, @Param("endprice") Double endprice, |
| | | @Param("startTkRate") Double startTkRate, @Param("endTkRate") Double endTkRate, |
| | | @Param("sort") Integer sort); |
| | | |
| | | long countRecommendBykey(@Param("key") String key, @Param("hasQuan") Integer hasQuan, |
| | | @Param("userType") Integer userType, @Param("startprice") Double startprice, |
| | | @Param("endprice") Double endprice, @Param("startTkRate") Double startTkRate, |
| | | @Param("endTkRate") Double endTkRate); |
| | | |
| | | List<QualityFactory> listQueryBylabIDs(@Param("start") long start, @Param("count") int count, |
| | | @Param("list") List<Long> list, @Param("gid") Long gid, @Param("systemCid") Long systemCid); |
| | | |
| | | /** |
| | | * 按最低销量倒叙排列 |
| | | * |
| | | * @param salesCount |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listByMinSalesCountOrderByCreateTimeDesc(@Param("salesCount") int salesCount, |
| | | @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 按最低销量倒叙排列 |
| | | * |
| | | * @param salesCount |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listFreeGoods(@Param("start") long start, @Param("count") int count); |
| | | |
| | | long countFreeGoods(); |
| | | |
| | | |
| | | /** |
| | | * 根据店铺信息获取商品 |
| | | * @param start |
| | | * @param count |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<QualityFactory> listByShopId(@Param("start") long start, @Param("count") int count, |
| | | @Param("shopId") Long shopId); |
| | | |
| | | long countByShopId(@Param("shopId") Long shopId); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 9k9类 |
| | | * |
| | | */ |
| | | List<QualityFactory> get9k9ClassGoods(@Param("start") long start, @Param("count") int count, |
| | | @Param("biz30day") Integer biz30day, @Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice, |
| | | @Param("cids") String cids); |
| | | |
| | | long count9k9ClassGoods(@Param("biz30day") Integer biz30day, @Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice |
| | | ,@Param("cids") String cids); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 今日必抢 - 9k9 |
| | | * |
| | | */ |
| | | List<QualityFactory> listQueryEverydayRob(@Param("start") long start, @Param("count") int count, |
| | | @Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice); |
| | | |
| | | long countQueryEverydayRob(@Param("zkPrice") BigDecimal zkPrice, |
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice); |
| | | |
| | | |
| | | } |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.lable.QualityFactory;
|
| | | import com.yeshi.fanli.vo.quality.QualityFactoryVO;
|
| | |
|
| | | public interface QualityFactoryMapper extends BaseMapper<QualityFactory>{
|
| | |
|
| | |
|
| | | /**
|
| | | * 批量插入
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<QualityFactory> list);
|
| | |
|
| | | /**
|
| | | * 批量选择更新
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<QualityFactory> list);
|
| | |
|
| | | /**
|
| | | * 批量删除
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据商品id 批量删除
|
| | | * @param list
|
| | | */
|
| | | void deleteBatchByGoodsId(List<Long> list);
|
| | |
|
| | | /**
|
| | | * 统计总行数
|
| | | * |
| | | * @return
|
| | | */
|
| | | Long countTotalRows(@Param("days") Integer days);
|
| | |
|
| | | List<QualityFactory> queryByGoodsId(@Param("goodsId") Long goodsId);
|
| | | |
| | | |
| | | /**
|
| | | * 根据商品id查询
|
| | | * @param auctionId
|
| | | * @return
|
| | | */
|
| | | QualityFactory getByAuctionId(@Param("auctionId") Long auctionId);
|
| | | |
| | |
|
| | | /**
|
| | | * 根据多个商品id 查询对应的商品信息
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listQueryGoodsByGoodsId(List<Long> list);
|
| | |
|
| | | Long queryCountByGoodsId(@Param("goodsId") Long goodsId);
|
| | |
|
| | | List<QualityFactory> listQueryByAuctionId(List<Long> list);
|
| | |
|
| | | // 精选库查询 -- 查询所有
|
| | | List<QualityFactory> queryAll(@Param("start") long start, @Param("count") int count, @Param("days") Integer days);
|
| | |
|
| | | // 精选库查询
|
| | | List<QualityFactory> query(QualityFactoryVO qualityFactoryVO);
|
| | |
|
| | | long queryCount(QualityFactoryVO qualityFactoryVO);
|
| | |
|
| | | /**
|
| | | * 统计商品数量
|
| | | * |
| | | * @return
|
| | | */
|
| | | Map<String, Object> getCountAll();
|
| | |
|
| | | /**
|
| | | * 根据商品id移除精选库
|
| | | * |
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | int deleteByGoodsId(Long goodsId);
|
| | |
|
| | | /**
|
| | | * 查询精选商品数据应用前端
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param classId
|
| | | * @param labId
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key,
|
| | | @Param("systemCid") Long systemCid, @Param("labId") Long labId, @Param("cids") String cids,
|
| | | @Param("hasQuan") Integer hasQuan);// 分类id、标签id
|
| | |
|
| | | /**
|
| | | * 对应查询精选商品数据应用前端统计
|
| | | */
|
| | | long countQuery(@Param("key") String key, @Param("systemCid") Long systemCid, @Param("labId") Long labId,
|
| | | @Param("cids") String cids, @Param("hasQuan") Integer hasQuan);
|
| | |
|
| | | /**
|
| | | * 根据关键词 搜索商品标题和标签
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param systemCid
|
| | | * @param key
|
| | | * @param list
|
| | | * @param sort
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listQueryByKeyAndlabIDs(@Param("start") long start, @Param("count") int count,
|
| | | @Param("key") String key, @Param("list") List<Long> list, @Param("sort") Integer sort,
|
| | | @Param("systemCid") Long systemCid, @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType,
|
| | | @Param("biz30day") Integer biz30day,
|
| | | // 在售价范围
|
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice);
|
| | |
|
| | | long countQueryKeyAndlabIDs(@Param("key") String key, @Param("list") List<Long> list, Long systemCid,
|
| | | @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType, @Param("biz30day") Integer biz30day,
|
| | | // 在售价范围
|
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice);
|
| | |
|
| | | /**
|
| | | * 根据类目id删除商品
|
| | | * |
| | | * @param doTime
|
| | | * @param gcids
|
| | | * @return
|
| | | */
|
| | | int removeStorageGoods(String doTime, Long gcids);
|
| | |
|
| | | |
| | | /**
|
| | | * 子类查询
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param classId
|
| | | * @param labId
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listQueryByKey(@Param("start") long start, @Param("count") int count, @Param("key") String key,
|
| | | @Param("sort") Integer sort, @Param("systemCid") Long systemCid, @Param("hasQuan") Integer hasQuan,
|
| | | @Param("userType") Integer userType, @Param("biz30day") Integer biz30day,
|
| | | // 在售价范围
|
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice);
|
| | |
|
| | | /**
|
| | | * 子类查询
|
| | | */
|
| | | long countQueryByKey(@Param("key") String key, @Param("systemCid") Long systemCid,
|
| | | @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType, @Param("biz30day") Integer biz30day,
|
| | | // 在售价范围
|
| | | @Param("startprice") Integer startprice, @Param("endprice") Integer endprice);
|
| | |
|
| | | /**
|
| | | * 券面额数据查询
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param systemCid
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listQueryByCouponAmount(@Param("start") long start, @Param("count") int count,
|
| | | @Param("startAmount") Integer startAmount, @Param("endAmount") Integer endAmount,
|
| | | @Param("startPropor") Integer startPropor);
|
| | |
|
| | | long countQueryByCouponAmount(@Param("startAmount") Integer startAmount, @Param("endAmount") Integer endAmount,
|
| | | @Param("startPropor") Integer startPropor);
|
| | |
|
| | | /**
|
| | | * 限时抢购商品
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param periodtime
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listQueryByFlashSale(@Param("start") long start, @Param("count") int count);
|
| | |
|
| | | long countQueryByFlashSale();
|
| | |
|
| | | /**
|
| | | * 限时秒杀 随机3个商品
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listFlashSaleRandGoods();
|
| | | |
| | | /**
|
| | | * 返利金额数据查询
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param systemCid
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listQueryByRebateAmount(@Param("start") long start, @Param("count") int count,
|
| | | @Param("proportion") String proportion, @Param("startAmount") Integer startAmount,
|
| | | @Param("endAmount") Integer endAmount, @Param("tkRate") double tkRate);
|
| | |
|
| | | long countQueryByRebateAmount(@Param("proportion") String proportion, @Param("startAmount") Integer startAmount,
|
| | | @Param("endAmount") Integer endAmount, @Param("tkRate") double tkRate);
|
| | |
|
| | | /**
|
| | | * 返利金额数据查询 - 首页下方数据
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param systemCid
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listRecommendToIndex(@Param("start") long start, @Param("count") int count,
|
| | | @Param("proportion") Double proportion, @Param("commision") Integer commision,
|
| | | @Param("couponAmount") Integer couponAmount, @Param("tkRate") double tkRate,
|
| | | @Param("couponRatio") Double couponRatio);
|
| | |
|
| | | long countRecommendToIndex(@Param("proportion") Double proportion, @Param("commision") Integer commision,
|
| | | @Param("couponAmount") Integer couponAmount, @Param("tkRate") double tkRate,
|
| | | @Param("couponRatio") Double couponRatio);
|
| | |
|
| | | /**
|
| | | * 根据时间 获取dateTime时间之前创建的商品信息
|
| | | * |
| | | * @param systemCid
|
| | | * 系统分类id
|
| | | * @param dateTime
|
| | | * 筛选时间
|
| | | * @param goodsSource
|
| | | * 商品来源
|
| | | * @return
|
| | | */
|
| | | List<Long> getAuctionIdbyClassId(@Param("systemCid") Long systemCid, @Param("goodsSource") Integer goodsSource,
|
| | | @Param("beforeTime") String beforeTime);
|
| | |
|
| | | /**
|
| | | * 更新权重
|
| | | * |
| | | * @param weight
|
| | | * @param time
|
| | | * @return
|
| | | */
|
| | | void updateWeight(@Param("weight") Integer weight, @Param("time") Integer time);
|
| | |
|
| | | // 查询优惠券-当日
|
| | | List<QualityFactory> queryToCouponColumn(@Param("start") long start, @Param("count") int count);
|
| | |
|
| | | long countQueryToCouponColumn();
|
| | |
|
| | | /**
|
| | | * 搜索-推荐商品
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * 关键词
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listRecommendBykey(@Param("start") long start, @Param("count") int count,
|
| | | @Param("key") String key, @Param("hasQuan") Integer hasQuan, @Param("userType") Integer userType,
|
| | | @Param("startprice") Double startprice, @Param("endprice") Double endprice,
|
| | | @Param("startTkRate") Double startTkRate, @Param("endTkRate") Double endTkRate,
|
| | | @Param("sort") Integer sort);
|
| | |
|
| | | long countRecommendBykey(@Param("key") String key, @Param("hasQuan") Integer hasQuan,
|
| | | @Param("userType") Integer userType, @Param("startprice") Double startprice,
|
| | | @Param("endprice") Double endprice, @Param("startTkRate") Double startTkRate,
|
| | | @Param("endTkRate") Double endTkRate);
|
| | |
|
| | | List<QualityFactory> listQueryBylabIDs(@Param("start") long start, @Param("count") int count,
|
| | | @Param("list") List<Long> list, @Param("gid") Long gid, @Param("systemCid") Long systemCid);
|
| | |
|
| | | /**
|
| | | * 按最低销量倒叙排列
|
| | | * |
| | | * @param salesCount
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listByMinSalesCountOrderByCreateTimeDesc(@Param("salesCount") int salesCount,
|
| | | @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 按最低销量倒叙排列
|
| | | * |
| | | * @param salesCount
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listFreeGoods(@Param("start") long start, @Param("count") int count);
|
| | | |
| | | long countFreeGoods();
|
| | |
|
| | | |
| | | /**
|
| | | * 根据店铺信息获取商品
|
| | | * @param start
|
| | | * @param count
|
| | | * @param shopId
|
| | | * @return
|
| | | */
|
| | | List<QualityFactory> listByShopId(@Param("start") long start, @Param("count") int count, |
| | | @Param("shopId") Long shopId);
|
| | | |
| | | long countByShopId(@Param("shopId") Long shopId);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 9k9类
|
| | | * |
| | | */
|
| | | List<QualityFactory> get9k9ClassGoods(@Param("start") long start, @Param("count") int count,
|
| | | @Param("biz30day") Integer biz30day, @Param("zkPrice") BigDecimal zkPrice,
|
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice,
|
| | | @Param("cids") String cids);
|
| | |
|
| | | long count9k9ClassGoods(@Param("biz30day") Integer biz30day, @Param("zkPrice") BigDecimal zkPrice,
|
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice
|
| | | ,@Param("cids") String cids);
|
| | |
|
| | | |
| | | |
| | | /**
|
| | | * 今日必抢 - 9k9
|
| | | * |
| | | */
|
| | | List<QualityFactory> listQueryEverydayRob(@Param("start") long start, @Param("count") int count,
|
| | | @Param("zkPrice") BigDecimal zkPrice,
|
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice);
|
| | | |
| | | long countQueryEverydayRob(@Param("zkPrice") BigDecimal zkPrice,
|
| | | @Param("minQuanPrice") BigDecimal minQuanPrice, @Param("maxQuanPrice") BigDecimal maxQuanPrice);
|
| | |
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.dao.mybatis.lable; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.lable.QualityFlashSale; |
| | | |
| | | public interface QualityFlashSaleMapper extends BaseMapper<QualityFlashSale>{ |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<QualityFlashSale> list); |
| | | |
| | | |
| | | /** |
| | | * 批量选择更新 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int updateBatchSelective(List<QualityFlashSale> list); |
| | | |
| | | /** |
| | | * 根据精选id删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | int deleteByGoodsId(Long qid); |
| | | |
| | | /** |
| | | * 根据精选id 批量删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | int deleteBatchByQualityID(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据精选id查询 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<QualityFlashSale> listQueryByQualityID(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 超过一定时间的抢购商品---待需删除 |
| | | * @param start |
| | | * @param count |
| | | * @param hour |
| | | * @return |
| | | */ |
| | | List<Long> queryNeedRemove(@Param("start") long start, @Param("count") int count, @Param("hour") int hour); |
| | | |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.lable;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.lable.QualityFlashSale;
|
| | |
|
| | | public interface QualityFlashSaleMapper extends BaseMapper<QualityFlashSale>{
|
| | |
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | |
|
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<QualityFlashSale> list);
|
| | | |
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<QualityFlashSale> list);
|
| | | |
| | | /**
|
| | | * 根据精选id删除
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | int deleteByGoodsId(Long qid);
|
| | | |
| | | /**
|
| | | * 根据精选id 批量删除
|
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByQualityID(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据精选id查询
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<QualityFlashSale> listQueryByQualityID(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 超过一定时间的抢购商品---待需删除
|
| | | * @param start
|
| | | * @param count
|
| | | * @param hour
|
| | | * @return
|
| | | */
|
| | | List<Long> queryNeedRemove(@Param("start") long start, @Param("count") int count, @Param("hour") int hour);
|
| | | |
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.money; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.money.AccountDetailHongBaoMap; |
| | | |
| | | public interface AccountDetailHongBaoMapMapper extends BaseMapper<AccountDetailHongBaoMap> { |
| | | |
| | | /** |
| | | * 根据HongBaoId获取对象 |
| | | * |
| | | * @param hongBaoId |
| | | * @return |
| | | */ |
| | | AccountDetailHongBaoMap selectByHongBaoId(Long hongBaoId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.money;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.money.AccountDetailHongBaoMap;
|
| | |
|
| | | public interface AccountDetailHongBaoMapMapper extends BaseMapper<AccountDetailHongBaoMap> {
|
| | |
|
| | | /**
|
| | | * 根据HongBaoId获取对象
|
| | | * |
| | | * @param hongBaoId
|
| | | * @return
|
| | | */
|
| | | AccountDetailHongBaoMap selectByHongBaoId(Long hongBaoId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.money; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.money.ExtractCheckCompensate; |
| | | |
| | | public interface ExtractCheckCompensateMapper extends BaseMapper<ExtractCheckCompensate> { |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.money;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.money.ExtractCheckCompensate;
|
| | |
|
| | | public interface ExtractCheckCompensateMapper extends BaseMapper<ExtractCheckCompensate> {
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.money; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.money.UserBalance; |
| | | |
| | | public interface UserBalanceMapper extends BaseMapper<UserBalance> { |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | UserBalance getByUid(Long uid); |
| | | package com.yeshi.fanli.dao.mybatis.money;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.money.UserBalance;
|
| | |
|
| | | public interface UserBalanceMapper extends BaseMapper<UserBalance> {
|
| | | |
| | | /**
|
| | | * 根据用户id查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | UserBalance getByUid(Long uid);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.money; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt; |
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt.UserMoneyDebtTypeEnum; |
| | | |
| | | public interface UserMoneyDebtMapper extends BaseMapper<UserMoneyDebt> { |
| | | |
| | | /** |
| | | * 根据用户ID与sourceId查询记录 |
| | | * |
| | | * @param uid |
| | | * @param sourceId |
| | | * @return |
| | | */ |
| | | UserMoneyDebt selectByUidAndTypeAndSourceId(@Param("uid") Long uid, @Param("type") UserMoneyDebtTypeEnum type, |
| | | @Param("sourceId") Long sourceId); |
| | | |
| | | UserMoneyDebt selectByTypeAndSourceId(@Param("type") UserMoneyDebtTypeEnum type, @Param("sourceId") Long sourceId); |
| | | |
| | | /** |
| | | * 查询欠债 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<UserMoneyDebt> listByUidWithHasLeftMoney(@Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.money;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt;
|
| | | import com.yeshi.fanli.entity.money.UserMoneyDebt.UserMoneyDebtTypeEnum;
|
| | |
|
| | | public interface UserMoneyDebtMapper extends BaseMapper<UserMoneyDebt> {
|
| | |
|
| | | /**
|
| | | * 根据用户ID与sourceId查询记录
|
| | | * |
| | | * @param uid
|
| | | * @param sourceId
|
| | | * @return
|
| | | */
|
| | | UserMoneyDebt selectByUidAndTypeAndSourceId(@Param("uid") Long uid, @Param("type") UserMoneyDebtTypeEnum type,
|
| | | @Param("sourceId") Long sourceId);
|
| | |
|
| | | UserMoneyDebt selectByTypeAndSourceId(@Param("type") UserMoneyDebtTypeEnum type, @Param("sourceId") Long sourceId);
|
| | |
|
| | | /**
|
| | | * 查询欠债
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<UserMoneyDebt> listByUidWithHasLeftMoney(@Param("uid") Long uid, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.money; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.money.UserMoneyDebtReturnHistory; |
| | | |
| | | public interface UserMoneyDebtReturnHistoryMapper extends BaseMapper<UserMoneyDebtReturnHistory> { |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.money;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.money.UserMoneyDebtReturnHistory;
|
| | |
|
| | | public interface UserMoneyDebtReturnHistoryMapper extends BaseMapper<UserMoneyDebtReturnHistory> {
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.money; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.money.UserMoneyDetail; |
| | | import com.yeshi.fanli.entity.money.UserMoneyDetail.UserMoneyDetailTypeEnum; |
| | | import com.yeshi.fanli.vo.money.UserMonthMoneyVO; |
| | | |
| | | public interface UserMoneyDetailMapper extends BaseMapper<UserMoneyDetail> { |
| | | /** |
| | | * 通过用户ID和返回的最大时间的详情ID来获取下一页的数据 |
| | | * |
| | | * @param uid |
| | | * @param id |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<UserMoneyDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 获取用户总共有多少记录数据 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long selectCountByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 按最大的创建时间和用户ID检索列表 |
| | | * |
| | | * @param uid |
| | | * @param date |
| | | * @return |
| | | */ |
| | | List<UserMoneyDetail> selectByMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 按最大的创建时间和用户ID检索数量 |
| | | * |
| | | * @param uid |
| | | * @param date |
| | | * @return |
| | | */ |
| | | Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date); |
| | | |
| | | /** |
| | | * 按用户ID和最大时间检索月份的数量 |
| | | * |
| | | * @param uid |
| | | * @param maxDate |
| | | * @return |
| | | */ |
| | | int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate); |
| | | |
| | | /** |
| | | * 统计某个月份的收入与支出 |
| | | * |
| | | * @param uid |
| | | * @param dateFormat |
| | | * @return |
| | | */ |
| | | List<UserMonthMoneyVO> selectMonthMoneyByUid(@Param("uid") Long uid, @Param("dateFormat") List<String> dateFormat); |
| | | |
| | | /** |
| | | * 根据用户ID获取资金明细(老版) |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | |
| | | List<UserMoneyDetail> selectByUidWithState(@Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | Long selectCountByUidWithState(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 统计某个用户某段时间内产生的明细之和 |
| | | * |
| | | * @param uid |
| | | * @param typeList |
| | | * @param minDate |
| | | * @param maxDate |
| | | * @return |
| | | */ |
| | | BigDecimal getTotalMoneyByTypeAndUidWithDate(@Param("uid") Long uid, @Param("typeList") List<String> typeList, |
| | | @Param("minDate") Date minDate, @Param("maxDate") Date maxDate); |
| | | |
| | | /** |
| | | * 根据类型,用户ID,唯一标识查询 |
| | | * @param type |
| | | * @param uid |
| | | * @param sourceIdentifyId |
| | | * @return |
| | | */ |
| | | UserMoneyDetail selectByTypeAndUidAndIdentifyCode(@Param("type") UserMoneyDetailTypeEnum type, |
| | | @Param("uid") Long uid, @Param("sourceIdentifyId") Long sourceIdentifyId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.money;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.money.UserMoneyDetail;
|
| | | import com.yeshi.fanli.entity.money.UserMoneyDetail.UserMoneyDetailTypeEnum;
|
| | | import com.yeshi.fanli.vo.money.UserMonthMoneyVO;
|
| | |
|
| | | public interface UserMoneyDetailMapper extends BaseMapper<UserMoneyDetail> {
|
| | | /**
|
| | | * 通过用户ID和返回的最大时间的详情ID来获取下一页的数据
|
| | | * |
| | | * @param uid
|
| | | * @param id
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<UserMoneyDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id,
|
| | | @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 获取用户总共有多少记录数据
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long selectCountByUid(@Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 按最大的创建时间和用户ID检索列表
|
| | | * |
| | | * @param uid
|
| | | * @param date
|
| | | * @return
|
| | | */
|
| | | List<UserMoneyDetail> selectByMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date,
|
| | | @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 按最大的创建时间和用户ID检索数量
|
| | | * |
| | | * @param uid
|
| | | * @param date
|
| | | * @return
|
| | | */
|
| | | Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date);
|
| | |
|
| | | /**
|
| | | * 按用户ID和最大时间检索月份的数量
|
| | | * |
| | | * @param uid
|
| | | * @param maxDate
|
| | | * @return
|
| | | */
|
| | | int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate);
|
| | |
|
| | | /**
|
| | | * 统计某个月份的收入与支出
|
| | | * |
| | | * @param uid
|
| | | * @param dateFormat
|
| | | * @return
|
| | | */
|
| | | List<UserMonthMoneyVO> selectMonthMoneyByUid(@Param("uid") Long uid, @Param("dateFormat") List<String> dateFormat);
|
| | |
|
| | | /**
|
| | | * 根据用户ID获取资金明细(老版)
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | |
|
| | | List<UserMoneyDetail> selectByUidWithState(@Param("uid") Long uid, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | Long selectCountByUidWithState(@Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 统计某个用户某段时间内产生的明细之和
|
| | | * |
| | | * @param uid
|
| | | * @param typeList
|
| | | * @param minDate
|
| | | * @param maxDate
|
| | | * @return
|
| | | */
|
| | | BigDecimal getTotalMoneyByTypeAndUidWithDate(@Param("uid") Long uid, @Param("typeList") List<String> typeList,
|
| | | @Param("minDate") Date minDate, @Param("maxDate") Date maxDate);
|
| | |
|
| | | /**
|
| | | * 根据类型,用户ID,唯一标识查询
|
| | | * @param type
|
| | | * @param uid
|
| | | * @param sourceIdentifyId
|
| | | * @return
|
| | | */
|
| | | UserMoneyDetail selectByTypeAndUidAndIdentifyCode(@Param("type") UserMoneyDetailTypeEnum type,
|
| | | @Param("uid") Long uid, @Param("sourceIdentifyId") Long sourceIdentifyId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.monitor; |
| | | |
| | | import com.yeshi.fanli.entity.monitor.ClientAPIMonitor; |
| | | |
| | | public interface ClientAPIMonitorMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ClientAPIMonitor record); |
| | | |
| | | int insertSelective(ClientAPIMonitor record); |
| | | |
| | | ClientAPIMonitor selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ClientAPIMonitor record); |
| | | |
| | | int updateByPrimaryKey(ClientAPIMonitor record); |
| | | package com.yeshi.fanli.dao.mybatis.monitor;
|
| | |
|
| | | import com.yeshi.fanli.entity.monitor.ClientAPIMonitor;
|
| | |
|
| | | public interface ClientAPIMonitorMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(ClientAPIMonitor record);
|
| | |
|
| | | int insertSelective(ClientAPIMonitor record);
|
| | |
|
| | | ClientAPIMonitor selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(ClientAPIMonitor record);
|
| | |
|
| | | int updateByPrimaryKey(ClientAPIMonitor record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.MsgAccountDetail; |
| | | |
| | | public interface MsgAccountDetailMapper extends BaseMapper<MsgAccountDetail> { |
| | | |
| | | /** |
| | | * 根据用户查询消息,根据更新时间倒叙 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<MsgAccountDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据用户查询数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 设置消息已读时 |
| | | * |
| | | * @param uid |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgAccountDetail;
|
| | |
|
| | | public interface MsgAccountDetailMapper extends BaseMapper<MsgAccountDetail> {
|
| | |
|
| | | /**
|
| | | * 根据用户查询消息,根据更新时间倒叙
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<MsgAccountDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据用户查询数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long countByUid(@Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 设置消息已读时
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | void setMsgReadByUid(Long uid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.MsgDeviceReadState; |
| | | |
| | | public interface MsgDeviceReadStateMapper extends BaseMapper<MsgDeviceReadState> { |
| | | |
| | | /** |
| | | * 根据设备,设备类型,消息类型获取 |
| | | * |
| | | * @param device |
| | | * @param platform |
| | | * @param type |
| | | * @return |
| | | */ |
| | | MsgDeviceReadState selectByDeviceAndPlatformAndType(@Param("device") String device, @Param("platform") int platform, |
| | | @Param("type") String type); |
| | | |
| | | MsgDeviceReadState selectByDeviceAndPlatformAndTypeForUpdate(@Param("device") String device, @Param("platform") int platform, |
| | | @Param("type") String type); |
| | | |
| | | /** |
| | | * 设置所有消息已读 |
| | | * |
| | | * @param device |
| | | * @param platform |
| | | */ |
| | | void setAllMsgRead(@Param("device") String device, @Param("platform") int platform); |
| | | |
| | | /** |
| | | * 获取所有设备的消息列表 |
| | | * |
| | | * @param device |
| | | * @param platform |
| | | * @return |
| | | */ |
| | | List<MsgDeviceReadState> listByDeviceAndPlatform(@Param("device") String device, @Param("platform") int platform); |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgDeviceReadState;
|
| | |
|
| | | public interface MsgDeviceReadStateMapper extends BaseMapper<MsgDeviceReadState> {
|
| | |
|
| | | /**
|
| | | * 根据设备,设备类型,消息类型获取
|
| | | * |
| | | * @param device
|
| | | * @param platform
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | MsgDeviceReadState selectByDeviceAndPlatformAndType(@Param("device") String device, @Param("platform") int platform,
|
| | | @Param("type") String type);
|
| | | |
| | | MsgDeviceReadState selectByDeviceAndPlatformAndTypeForUpdate(@Param("device") String device, @Param("platform") int platform,
|
| | | @Param("type") String type);
|
| | |
|
| | | /**
|
| | | * 设置所有消息已读
|
| | | * |
| | | * @param device
|
| | | * @param platform
|
| | | */
|
| | | void setAllMsgRead(@Param("device") String device, @Param("platform") int platform);
|
| | |
|
| | | /**
|
| | | * 获取所有设备的消息列表
|
| | | * |
| | | * @param device
|
| | | * @param platform
|
| | | * @return
|
| | | */
|
| | | List<MsgDeviceReadState> listByDeviceAndPlatform(@Param("device") String device, @Param("platform") int platform);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.MsgInviteDetail; |
| | | |
| | | public interface MsgInviteDetailMapper extends BaseMapper<MsgInviteDetail> { |
| | | |
| | | /** |
| | | * 根据邀请ID获取数据 |
| | | * |
| | | * @param threeSaleId |
| | | * @return |
| | | */ |
| | | MsgInviteDetail selectByThreeSaleId(Long threeSaleId); |
| | | |
| | | /** |
| | | * 根据用户查询消息,根据更新时间倒叙 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<MsgInviteDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据用户查询数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 设置消息已读时 |
| | | * |
| | | * @param uid |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | |
| | | /** |
| | | * 根据邀请关系ID删除 |
| | | * |
| | | * @param threeSaleId |
| | | * @return |
| | | */ |
| | | int deleteByThreeSaleId(Long threeSaleId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgInviteDetail;
|
| | |
|
| | | public interface MsgInviteDetailMapper extends BaseMapper<MsgInviteDetail> {
|
| | |
|
| | | /**
|
| | | * 根据邀请ID获取数据
|
| | | * |
| | | * @param threeSaleId
|
| | | * @return
|
| | | */
|
| | | MsgInviteDetail selectByThreeSaleId(Long threeSaleId);
|
| | |
|
| | | /**
|
| | | * 根据用户查询消息,根据更新时间倒叙
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<MsgInviteDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据用户查询数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long countByUid(@Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 设置消息已读时
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | void setMsgReadByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 根据邀请关系ID删除
|
| | | * |
| | | * @param threeSaleId
|
| | | * @return
|
| | | */
|
| | | int deleteByThreeSaleId(Long threeSaleId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.MsgOrderDetail; |
| | | |
| | | public interface MsgOrderDetailMapper extends BaseMapper<MsgOrderDetail> { |
| | | |
| | | MsgOrderDetail selectByUidAndOrderId(@Param("uid") Long uid, @Param("orderId") String orderId); |
| | | |
| | | List<MsgOrderDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | List<MsgOrderDetail> listByOrderId(@Param("orderId") String orderId); |
| | | |
| | | Long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 设置消息已读时 |
| | | * |
| | | * @param uid |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgOrderDetail;
|
| | |
|
| | | public interface MsgOrderDetailMapper extends BaseMapper<MsgOrderDetail> {
|
| | |
|
| | | MsgOrderDetail selectByUidAndOrderId(@Param("uid") Long uid, @Param("orderId") String orderId);
|
| | |
|
| | | List<MsgOrderDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
|
| | | |
| | | List<MsgOrderDetail> listByOrderId(@Param("orderId") String orderId);
|
| | |
|
| | | Long countByUid(@Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 设置消息已读时
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | void setMsgReadByUid(Long uid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail; |
| | | |
| | | public interface MsgOtherDetailMapper extends BaseMapper<MsgOtherDetail> { |
| | | |
| | | /** |
| | | * 通过用户ID查询列表 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<MsgOtherDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 查询用户的消息数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 设置消息已读 |
| | | * |
| | | * @param uid |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgOtherDetail;
|
| | |
|
| | | public interface MsgOtherDetailMapper extends BaseMapper<MsgOtherDetail> {
|
| | |
|
| | | /**
|
| | | * 通过用户ID查询列表
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<MsgOtherDetail> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 查询用户的消息数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countByUid(@Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 设置消息已读
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | void setMsgReadByUid(Long uid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.system.SystemZnx; |
| | | |
| | | public interface SystemZnxMapper extends BaseMapper<SystemZnx>{ |
| | | |
| | | List<SystemZnx> listbyCreateTime(@Param("createTime")long createTime); |
| | | |
| | | |
| | | List<SystemZnx> listbyUidAndCreateTime(@Param("uid")long uid, @Param("createTime")long createTime); |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.system.SystemZnx;
|
| | |
|
| | | public interface SystemZnxMapper extends BaseMapper<SystemZnx>{
|
| | | |
| | | List<SystemZnx> listbyCreateTime(@Param("createTime")long createTime);
|
| | | |
| | | |
| | | List<SystemZnx> listbyUidAndCreateTime(@Param("uid")long uid, @Param("createTime")long createTime);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum; |
| | | |
| | | public interface UserMsgUnReadNumMapper extends BaseMapper<UserMsgUnReadNum> { |
| | | |
| | | UserMsgUnReadNum selectByUid(Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.UserMsgUnReadNum;
|
| | |
|
| | | public interface UserMsgUnReadNumMapper extends BaseMapper<UserMsgUnReadNum> {
|
| | |
|
| | | UserMsgUnReadNum selectByUid(Long uid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.beust.jcommander.Parameter; |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.msg.UserSystemMsg; |
| | | |
| | | public interface UserSystemMsgMapper extends BaseMapper<UserSystemMsg> { |
| | | |
| | | /** |
| | | * 用户系统消息列表 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<UserSystemMsg> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 用户系统消息数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据系统站内信的ID获取消息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | UserSystemMsg selectBySystemZNXId(@Param("id")Long id,@Param("uid") long uid); |
| | | |
| | | /** |
| | | * 获取最近一条消息 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | UserSystemMsg selectLatestUserSystemMsg(@Param("uid")Long uid); |
| | | |
| | | /** |
| | | * 设置消息已读时 |
| | | * |
| | | * @param uid |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | package com.yeshi.fanli.dao.mybatis.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.beust.jcommander.Parameter;
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.msg.UserSystemMsg;
|
| | |
|
| | | public interface UserSystemMsgMapper extends BaseMapper<UserSystemMsg> {
|
| | |
|
| | | /**
|
| | | * 用户系统消息列表
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<UserSystemMsg> listByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 用户系统消息数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long countByUid(@Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 根据系统站内信的ID获取消息
|
| | | * |
| | | * @param id
|
| | | * @return
|
| | | */
|
| | | UserSystemMsg selectBySystemZNXId(@Param("id")Long id,@Param("uid") long uid);
|
| | |
|
| | | /**
|
| | | * 获取最近一条消息
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | UserSystemMsg selectLatestUserSystemMsg(@Param("uid")Long uid);
|
| | | |
| | | /**
|
| | | * 设置消息已读时
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | void setMsgReadByUid(Long uid);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.order; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.order.CommonOrder; |
| | | import com.yeshi.fanli.entity.order.CommonOrderGoods; |
| | | |
| | | public interface CommonOrderGoodsMapper extends BaseMapper<CommonOrderGoods> { |
| | | |
| | | /** |
| | | * 根据订单号、订单类型查询商品 |
| | | * |
| | | * @param list |
| | | * 订单对象 |
| | | * @return |
| | | */ |
| | | List<CommonOrderGoods> listByOrderNoAndType(List<CommonOrder> list); |
| | | |
| | | /** |
| | | * 根据商品ID与商品类型查询商品 |
| | | * |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @return |
| | | */ |
| | | List<CommonOrderGoods> listByGoodsIdAndGoodsType(@Param("goodsId") String goodsId, |
| | | @Param("goodsType") int goodsType); |
| | | |
| | | /** |
| | | * 没有标题的列表 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<CommonOrderGoods> listNoTitle(@Param("start") long start, @Param("count") int count); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.order;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.order.CommonOrder;
|
| | | import com.yeshi.fanli.entity.order.CommonOrderGoods;
|
| | |
|
| | | public interface CommonOrderGoodsMapper extends BaseMapper<CommonOrderGoods> {
|
| | |
|
| | | /**
|
| | | * 根据订单号、订单类型查询商品
|
| | | * |
| | | * @param list
|
| | | * 订单对象
|
| | | * @return
|
| | | */
|
| | | List<CommonOrderGoods> listByOrderNoAndType(List<CommonOrder> list);
|
| | |
|
| | | /**
|
| | | * 根据商品ID与商品类型查询商品
|
| | | * |
| | | * @param goodsId
|
| | | * @param goodsType
|
| | | * @return
|
| | | */
|
| | | List<CommonOrderGoods> listByGoodsIdAndGoodsType(@Param("goodsId") String goodsId,
|
| | | @Param("goodsType") int goodsType);
|
| | |
|
| | | /**
|
| | | * 没有标题的列表
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<CommonOrderGoods> listNoTitle(@Param("start") long start, @Param("count") int count);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.order; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.order.CommonOrderTradeIdMap; |
| | | |
| | | public interface CommonOrderTradeIdMapMapper extends BaseMapper<CommonOrderTradeIdMap> { |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.order;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.order.CommonOrderTradeIdMap;
|
| | |
|
| | | public interface CommonOrderTradeIdMapMapper extends BaseMapper<CommonOrderTradeIdMap> {
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.order; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.Order; |
| | | |
| | | public interface OrderMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(Order record); |
| | | |
| | | int insertSelective(Order record); |
| | | |
| | | Order selectByPrimaryKey(Long id); |
| | | |
| | | /** |
| | | * 根据订单号和订单类型查找订单 |
| | | * |
| | | * @param orderId |
| | | * @param orderType |
| | | * @return |
| | | */ |
| | | Order selectOrderByOrderIdAndOrderType(@Param("orderId") String orderId, @Param("orderType") int orderType); |
| | | |
| | | List<Order> selectByUid(Long uid); |
| | | |
| | | int updateByPrimaryKeySelective(Order record); |
| | | |
| | | int updateByPrimaryKey(Order record); |
| | | |
| | | /** |
| | | * 通过用户ID订单类型和备注查询列表 |
| | | * |
| | | * @return |
| | | */ |
| | | List<Order> listByUidAndOrderTypeAndBeiZhu(@Param("uid") Long uid, @Param("orderType") int orderType, |
| | | @Param("beiZhu") String beiZhu); |
| | | package com.yeshi.fanli.dao.mybatis.order;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.Order;
|
| | |
|
| | | public interface OrderMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(Order record);
|
| | |
|
| | | int insertSelective(Order record);
|
| | |
|
| | | Order selectByPrimaryKey(Long id);
|
| | |
|
| | | /**
|
| | | * 根据订单号和订单类型查找订单
|
| | | * |
| | | * @param orderId
|
| | | * @param orderType
|
| | | * @return
|
| | | */
|
| | | Order selectOrderByOrderIdAndOrderType(@Param("orderId") String orderId, @Param("orderType") int orderType);
|
| | |
|
| | | List<Order> selectByUid(Long uid);
|
| | |
|
| | | int updateByPrimaryKeySelective(Order record);
|
| | |
|
| | | int updateByPrimaryKey(Order record);
|
| | |
|
| | | /**
|
| | | * 通过用户ID订单类型和备注查询列表
|
| | | * |
| | | * @return
|
| | | */
|
| | | List<Order> listByUidAndOrderTypeAndBeiZhu(@Param("uid") Long uid, @Param("orderType") int orderType,
|
| | | @Param("beiZhu") String beiZhu);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.order; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.order.OrderRepairHistory; |
| | | |
| | | public interface OrderRepairHistoryMapper extends BaseMapper<OrderRepairHistory> { |
| | | |
| | | /** |
| | | * 根据用户ID检索 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<OrderRepairHistory> listByUid(Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.order;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.order.OrderRepairHistory;
|
| | |
|
| | | public interface OrderRepairHistoryMapper extends BaseMapper<OrderRepairHistory> {
|
| | |
|
| | | /**
|
| | | * 根据用户ID检索
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<OrderRepairHistory> listByUid(Long uid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.order; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.order.ShareGoodsActivityOrder; |
| | | |
| | | public interface ShareGoodsActivityOrderMapper extends BaseMapper<ShareGoodsActivityOrder> { |
| | | |
| | | /** |
| | | * 计算分享活动的订单数 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long countShareGoodsActivityOrderByUid(Long uid); |
| | | |
| | | /** |
| | | * 查询分享活动(根据订单号与用户ID) |
| | | * |
| | | * @param uid |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | List<ShareGoodsActivityOrder> listByOrderIdAndUid(@Param("uid") Long uid, @Param("orderId") String orderId); |
| | | |
| | | |
| | | /** |
| | | * 根据用户查询 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<ShareGoodsActivityOrder> listByUid(@Param("uid") Long uid); |
| | | package com.yeshi.fanli.dao.mybatis.order;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.order.ShareGoodsActivityOrder;
|
| | |
|
| | | public interface ShareGoodsActivityOrderMapper extends BaseMapper<ShareGoodsActivityOrder> {
|
| | |
|
| | | /**
|
| | | * 计算分享活动的订单数
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countShareGoodsActivityOrderByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 查询分享活动(根据订单号与用户ID)
|
| | | * |
| | | * @param uid
|
| | | * @param orderId
|
| | | * @return
|
| | | */
|
| | | List<ShareGoodsActivityOrder> listByOrderIdAndUid(@Param("uid") Long uid, @Param("orderId") String orderId);
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户查询
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<ShareGoodsActivityOrder> listByUid(@Param("uid") Long uid);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.pdd; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.dto.ChartTDO; |
| | | import com.yeshi.fanli.entity.pdd.PDDOrder; |
| | | |
| | | public interface PDDOrderMapper extends BaseMapper<PDDOrder> { |
| | | |
| | | /** |
| | | * 根据订单SN查询订单 |
| | | * |
| | | * @param orderSn |
| | | * @return |
| | | */ |
| | | PDDOrder selectByOrderSN(String orderSn); |
| | | |
| | | /** |
| | | * 数量统计 |
| | | * |
| | | * @param dateType |
| | | * @param year |
| | | * @param startTime |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | List<ChartTDO> countOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year, |
| | | @Param("startTime") String startTime, @Param("endTime") String endTime); |
| | | |
| | | /** |
| | | * 根据状态查询数据 |
| | | * |
| | | * @param status |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | List<PDDOrder> listByStatus(@Param("status") Integer status, @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据状态查询数量 |
| | | * |
| | | * @param status |
| | | * @return |
| | | */ |
| | | Long countByStatus(@Param("status") Integer status); |
| | | package com.yeshi.fanli.dao.mybatis.pdd;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.dto.ChartTDO;
|
| | | import com.yeshi.fanli.entity.pdd.PDDOrder;
|
| | |
|
| | | public interface PDDOrderMapper extends BaseMapper<PDDOrder> {
|
| | |
|
| | | /**
|
| | | * 根据订单SN查询订单
|
| | | * |
| | | * @param orderSn
|
| | | * @return
|
| | | */
|
| | | PDDOrder selectByOrderSN(String orderSn);
|
| | |
|
| | | /**
|
| | | * 数量统计
|
| | | * |
| | | * @param dateType
|
| | | * @param year
|
| | | * @param startTime
|
| | | * @param endTime
|
| | | * @return
|
| | | */
|
| | | List<ChartTDO> countOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year,
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime);
|
| | |
|
| | | /**
|
| | | * 根据状态查询数据
|
| | | * |
| | | * @param status
|
| | | * @param page
|
| | | * @param pageSize
|
| | | * @return
|
| | | */
|
| | | List<PDDOrder> listByStatus(@Param("status") Integer status, @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据状态查询数量
|
| | | * |
| | | * @param status
|
| | | * @return
|
| | | */
|
| | | Long countByStatus(@Param("status") Integer status);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.push.DeviceActive; |
| | | |
| | | public interface DeviceActiveMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(DeviceActive record); |
| | | |
| | | int insertSelective(DeviceActive record); |
| | | |
| | | DeviceActive selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(DeviceActive record); |
| | | |
| | | int updateByPrimaryKey(DeviceActive record); |
| | | |
| | | DeviceActive selectByDeviceAndPlatform(@Param("device") String device, @Param("platform") int platform); |
| | | |
| | | DeviceActive selectFirstByDeviceAndPlatform(@Param("device") String device, @Param("platform") int platform); |
| | | |
| | | DeviceActive selectByDeviceToeknMd5AndPlatform(@Param("deviceTokenMd5") String deviceTokenMd5, |
| | | @Param("platform") int platform); |
| | | |
| | | DeviceActive selectFirst(String device); |
| | | |
| | | DeviceActive selectFirstByImei(String imei); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.DeviceActive;
|
| | |
|
| | | public interface DeviceActiveMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(DeviceActive record);
|
| | |
|
| | | int insertSelective(DeviceActive record);
|
| | |
|
| | | DeviceActive selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(DeviceActive record);
|
| | |
|
| | | int updateByPrimaryKey(DeviceActive record);
|
| | |
|
| | | DeviceActive selectByDeviceAndPlatform(@Param("device") String device, @Param("platform") int platform);
|
| | | |
| | | DeviceActive selectFirstByDeviceAndPlatform(@Param("device") String device, @Param("platform") int platform);
|
| | |
|
| | | DeviceActive selectByDeviceToeknMd5AndPlatform(@Param("deviceTokenMd5") String deviceTokenMd5,
|
| | | @Param("platform") int platform);
|
| | | |
| | | DeviceActive selectFirst(String device);
|
| | | |
| | | DeviceActive selectFirstByImei(String imei);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.push.DeviceTokenHW; |
| | | |
| | | public interface DeviceTokenHWMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(DeviceTokenHW record); |
| | | |
| | | int insertSelective(DeviceTokenHW record); |
| | | |
| | | DeviceTokenHW selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(DeviceTokenHW record); |
| | | |
| | | int updateByPrimaryKey(DeviceTokenHW record); |
| | | |
| | | List<DeviceTokenHW> selectByDeviceAndUid(@Param("device") String device, @Param("uid") Long uid); |
| | | |
| | | List<DeviceTokenHW> selectList(@Param("start") long start, @Param("count") int count, |
| | | @Param("versionList") List<Integer> versionList); |
| | | |
| | | List<DeviceTokenHW> selectByUid(@Param("uid") Long uid, @Param("versionList") List<Integer> versionList); |
| | | |
| | | Long selectCount(@Param("versionList") List<Integer> versionList); |
| | | |
| | | List<DeviceTokenHW> selectByDevice(String device); |
| | | |
| | | List<DeviceTokenHW> selectByDeviceForUpdate(String device); |
| | | |
| | | int bindUidByDevice(@Param("uid") Long uid, @Param("device") String device); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.DeviceTokenHW;
|
| | |
|
| | | public interface DeviceTokenHWMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(DeviceTokenHW record);
|
| | |
|
| | | int insertSelective(DeviceTokenHW record);
|
| | |
|
| | | DeviceTokenHW selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(DeviceTokenHW record);
|
| | |
|
| | | int updateByPrimaryKey(DeviceTokenHW record);
|
| | |
|
| | | List<DeviceTokenHW> selectByDeviceAndUid(@Param("device") String device, @Param("uid") Long uid);
|
| | |
|
| | | List<DeviceTokenHW> selectList(@Param("start") long start, @Param("count") int count,
|
| | | @Param("versionList") List<Integer> versionList);
|
| | |
|
| | | List<DeviceTokenHW> selectByUid(@Param("uid") Long uid, @Param("versionList") List<Integer> versionList);
|
| | |
|
| | | Long selectCount(@Param("versionList") List<Integer> versionList);
|
| | |
|
| | | List<DeviceTokenHW> selectByDevice(String device);
|
| | | |
| | | List<DeviceTokenHW> selectByDeviceForUpdate(String device);
|
| | |
|
| | | int bindUidByDevice(@Param("uid") Long uid, @Param("device") String device);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.push.DeviceTokenIOS; |
| | | |
| | | public interface DeviceTokenIOSMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(DeviceTokenIOS record); |
| | | |
| | | int insertSelective(DeviceTokenIOS record); |
| | | |
| | | DeviceTokenIOS selectByPrimaryKey(Long id); |
| | | |
| | | DeviceTokenIOS selectByDevice(String device); |
| | | |
| | | DeviceTokenIOS selectByDeviceForUpdate(String device); |
| | | |
| | | DeviceTokenIOS selectByDeviceToken(String deviceToken); |
| | | |
| | | List<DeviceTokenIOS> selectByUid( @Param("uid")Long uid, @Param("list")List<Integer> list); |
| | | |
| | | List<DeviceTokenIOS> selectList(@Param("start")Long start,@Param("count")int count, @Param("list")List<Integer> list); |
| | | |
| | | long selectCount(); |
| | | |
| | | int updateByPrimaryKeySelective(DeviceTokenIOS record); |
| | | |
| | | int updateByPrimaryKey(DeviceTokenIOS record); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.DeviceTokenIOS;
|
| | |
|
| | | public interface DeviceTokenIOSMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(DeviceTokenIOS record);
|
| | |
|
| | | int insertSelective(DeviceTokenIOS record);
|
| | |
|
| | | DeviceTokenIOS selectByPrimaryKey(Long id);
|
| | |
|
| | | DeviceTokenIOS selectByDevice(String device);
|
| | | |
| | | DeviceTokenIOS selectByDeviceForUpdate(String device);
|
| | | |
| | | DeviceTokenIOS selectByDeviceToken(String deviceToken);
|
| | | |
| | | List<DeviceTokenIOS> selectByUid( @Param("uid")Long uid, @Param("list")List<Integer> list);
|
| | | |
| | | List<DeviceTokenIOS> selectList(@Param("start")Long start,@Param("count")int count, @Param("list")List<Integer> list);
|
| | | |
| | | long selectCount();
|
| | | |
| | | int updateByPrimaryKeySelective(DeviceTokenIOS record);
|
| | |
|
| | | int updateByPrimaryKey(DeviceTokenIOS record);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.push.DeviceTokenOPPO; |
| | | |
| | | public interface DeviceTokenOPPOMapper extends BaseMapper<DeviceTokenOPPO> { |
| | | |
| | | /** |
| | | * 根据设备激活ID查询 |
| | | * |
| | | * @param deviceActiveId |
| | | * @return |
| | | */ |
| | | DeviceTokenOPPO selectByDeviceActiveId(Long deviceActiveId); |
| | | |
| | | /** |
| | | * 设备数量 |
| | | * |
| | | * @return |
| | | */ |
| | | long countDeviceToken(@Param("versionList")List<Integer> versionList); |
| | | |
| | | /** |
| | | * 设备列表 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<DeviceTokenOPPO> listDeviceToken(@Param("start") long start, @Param("count") int count, |
| | | @Param("versionList") List<Integer> versionList); |
| | | |
| | | /** |
| | | * 根据用户ID查询 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<DeviceTokenOPPO> listByUid(@Param("uid")Long uid,@Param("versionList") List<Integer> verisonList); |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.push.DeviceTokenOPPO;
|
| | |
|
| | | public interface DeviceTokenOPPOMapper extends BaseMapper<DeviceTokenOPPO> {
|
| | |
|
| | | /**
|
| | | * 根据设备激活ID查询
|
| | | * |
| | | * @param deviceActiveId
|
| | | * @return
|
| | | */
|
| | | DeviceTokenOPPO selectByDeviceActiveId(Long deviceActiveId);
|
| | |
|
| | | /**
|
| | | * 设备数量
|
| | | * |
| | | * @return
|
| | | */
|
| | | long countDeviceToken(@Param("versionList")List<Integer> versionList);
|
| | |
|
| | | /**
|
| | | * 设备列表
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<DeviceTokenOPPO> listDeviceToken(@Param("start") long start, @Param("count") int count,
|
| | | @Param("versionList") List<Integer> versionList);
|
| | |
|
| | | /**
|
| | | * 根据用户ID查询
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<DeviceTokenOPPO> listByUid(@Param("uid")Long uid,@Param("versionList") List<Integer> verisonList);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.push.DeviceTokenVIVO; |
| | | |
| | | public interface DeviceTokenVIVOMapper extends BaseMapper<DeviceTokenVIVO> { |
| | | |
| | | /** |
| | | * 根据设备激活ID查询 |
| | | * |
| | | * @param deviceActiveId |
| | | * @return |
| | | */ |
| | | DeviceTokenVIVO selectByDeviceActiveId(Long deviceActiveId); |
| | | |
| | | /** |
| | | * 设备数量 |
| | | * |
| | | * @return |
| | | */ |
| | | long countDeviceToken(@Param("versionList") List<Integer> versionList); |
| | | |
| | | /** |
| | | * 设备列表 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<DeviceTokenVIVO> listDeviceToken(@Param("start") long start, @Param("count") int count, |
| | | @Param("versionList") List<Integer> versionList); |
| | | |
| | | /** |
| | | * 根据用户ID查询 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<DeviceTokenVIVO> listByUid(@Param("uid") Long uid, @Param("versionList") List<Integer> verisonList); |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.push.DeviceTokenVIVO;
|
| | |
|
| | | public interface DeviceTokenVIVOMapper extends BaseMapper<DeviceTokenVIVO> {
|
| | |
|
| | | /**
|
| | | * 根据设备激活ID查询
|
| | | * |
| | | * @param deviceActiveId
|
| | | * @return
|
| | | */
|
| | | DeviceTokenVIVO selectByDeviceActiveId(Long deviceActiveId);
|
| | |
|
| | | /**
|
| | | * 设备数量
|
| | | * |
| | | * @return
|
| | | */
|
| | | long countDeviceToken(@Param("versionList") List<Integer> versionList);
|
| | |
|
| | | /**
|
| | | * 设备列表
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<DeviceTokenVIVO> listDeviceToken(@Param("start") long start, @Param("count") int count,
|
| | | @Param("versionList") List<Integer> versionList);
|
| | |
|
| | | /**
|
| | | * 根据用户ID查询
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<DeviceTokenVIVO> listByUid(@Param("uid") Long uid, @Param("versionList") List<Integer> verisonList);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.push.PushCoupon; |
| | | |
| | | public interface PushCouponMapper extends BaseMapper<PushCoupon> { |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<PushCoupon> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("state") Integer state); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state); |
| | | |
| | | |
| | | /** |
| | | * 有效活动 |
| | | * @return |
| | | */ |
| | | List<PushCoupon> listQueryEffective(); |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.push.PushCoupon;
|
| | |
|
| | | public interface PushCouponMapper extends BaseMapper<PushCoupon> {
|
| | |
|
| | | /**
|
| | | * 后端列表查询
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<PushCoupon> listQuery(@Param("start") long start, @Param("count") int count,
|
| | | @Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | |
| | | /**
|
| | | * 有效活动
|
| | | * @return
|
| | | */
|
| | | List<PushCoupon> listQueryEffective();
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.push.PushCouponRecord; |
| | | |
| | | public interface PushCouponRecordMapper extends BaseMapper<PushCouponRecord>{ |
| | | |
| | | /** |
| | | * 统计推送领取券数量 |
| | | * @param pushId |
| | | * @return |
| | | */ |
| | | long countByPushId(@Param("pushId") Long pushId); |
| | | |
| | | /** |
| | | * 查询用户的领取券记录 |
| | | * @param pushId |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<PushCouponRecord> listByUid(@Param("uid") Long uid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.push.PushCouponRecord;
|
| | |
|
| | | public interface PushCouponRecordMapper extends BaseMapper<PushCouponRecord>{
|
| | | |
| | | /**
|
| | | * 统计推送领取券数量
|
| | | * @param pushId
|
| | | * @return
|
| | | */
|
| | | long countByPushId(@Param("pushId") Long pushId);
|
| | | |
| | | /**
|
| | | * 查询用户的领取券记录
|
| | | * @param pushId
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<PushCouponRecord> listByUid(@Param("uid") Long uid);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.push.PushGoodsGroup; |
| | | |
| | | public interface PushGoodsGroupMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(PushGoodsGroup record); |
| | | |
| | | int insertSelective(PushGoodsGroup record); |
| | | |
| | | PushGoodsGroup selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(PushGoodsGroup record); |
| | | |
| | | int updateByPrimaryKey(PushGoodsGroup record); |
| | | |
| | | /** |
| | | * 根据推送id统计 |
| | | * @param pushId |
| | | * @return |
| | | */ |
| | | long countByPushId(Long pushId); |
| | | |
| | | /** |
| | | * 根据推送id删除商品 |
| | | * @param pushId |
| | | * @return |
| | | */ |
| | | int deleteByPushId(Long pushId); |
| | | |
| | | |
| | | /** |
| | | * 根据推送id查询商品 |
| | | * @param pushId |
| | | * @return |
| | | */ |
| | | List<PushGoodsGroup> selectByPushId(Long pushId); |
| | | |
| | | /** |
| | | * 根据推送id查询商品所有信息 |
| | | * @param pushId |
| | | * @return |
| | | */ |
| | | List<PushGoodsGroup> getAllInfoByPushId(Long pushId); |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<PushGoodsGroup> list); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 批量删除 根据推送id |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPushId(List<Long> list); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.PushGoodsGroup;
|
| | |
|
| | | public interface PushGoodsGroupMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(PushGoodsGroup record);
|
| | |
|
| | | int insertSelective(PushGoodsGroup record);
|
| | |
|
| | | PushGoodsGroup selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(PushGoodsGroup record);
|
| | |
|
| | | int updateByPrimaryKey(PushGoodsGroup record);
|
| | |
|
| | | /**
|
| | | * 根据推送id统计
|
| | | * @param pushId
|
| | | * @return
|
| | | */
|
| | | long countByPushId(Long pushId);
|
| | | |
| | | /**
|
| | | * 根据推送id删除商品
|
| | | * @param pushId
|
| | | * @return
|
| | | */
|
| | | int deleteByPushId(Long pushId);
|
| | | |
| | | |
| | | /**
|
| | | * 根据推送id查询商品
|
| | | * @param pushId
|
| | | * @return
|
| | | */
|
| | | List<PushGoodsGroup> selectByPushId(Long pushId);
|
| | | |
| | | /**
|
| | | * 根据推送id查询商品所有信息
|
| | | * @param pushId
|
| | | * @return
|
| | | */
|
| | | List<PushGoodsGroup> getAllInfoByPushId(Long pushId);
|
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<PushGoodsGroup> list);
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 批量删除 根据推送id
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPushId(List<Long> list);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.push.PushGoods; |
| | | |
| | | public interface PushGoodsMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(PushGoods record); |
| | | |
| | | int insertSelective(PushGoods record); |
| | | |
| | | PushGoods selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(PushGoods record); |
| | | |
| | | int updateByPrimaryKey(PushGoods record); |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 后端列表查询 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<PushGoods> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("state") Integer state); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state); |
| | | |
| | | |
| | | /** |
| | | * 获取历史推送商品信息 |
| | | * @param start |
| | | * @param count |
| | | * @param pushTime |
| | | * @return |
| | | */ |
| | | List<PushGoods> listHistoryByPushTime(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("pushTime") Date pushTime); |
| | | |
| | | /** |
| | | * 统计历史推送商品信息 |
| | | * @param start |
| | | * @param count |
| | | * @param pushTime |
| | | * @return |
| | | */ |
| | | long countHistoryByPushTime(@Param("uid") Long uid, @Param("pushTime") Date pushTime); |
| | | |
| | | /** |
| | | * 查询已推送记录 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<PushGoods> listByPushState(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 需要执行推送的任务 |
| | | * @return |
| | | */ |
| | | List<PushGoods> listTask(); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.PushGoods;
|
| | |
|
| | | public interface PushGoodsMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(PushGoods record);
|
| | |
|
| | | int insertSelective(PushGoods record);
|
| | |
|
| | | PushGoods selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(PushGoods record);
|
| | |
|
| | | int updateByPrimaryKey(PushGoods record);
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 后端列表查询
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<PushGoods> listQuery(@Param("start") long start, @Param("count") int count,
|
| | | @Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | long countQuery(@Param("key") String key, @Param("state") Integer state);
|
| | | |
| | | |
| | | /**
|
| | | * 获取历史推送商品信息
|
| | | * @param start
|
| | | * @param count
|
| | | * @param pushTime
|
| | | * @return
|
| | | */
|
| | | List<PushGoods> listHistoryByPushTime(@Param("start") long start, @Param("count") int count,
|
| | | @Param("uid") Long uid, @Param("pushTime") Date pushTime);
|
| | | |
| | | /**
|
| | | * 统计历史推送商品信息
|
| | | * @param start
|
| | | * @param count
|
| | | * @param pushTime
|
| | | * @return
|
| | | */
|
| | | long countHistoryByPushTime(@Param("uid") Long uid, @Param("pushTime") Date pushTime);
|
| | | |
| | | /**
|
| | | * 查询已推送记录
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<PushGoods> listByPushState(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 需要执行推送的任务
|
| | | * @return
|
| | | */
|
| | | List<PushGoods> listTask();
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.push.PushGoodsRecord; |
| | | |
| | | public interface PushGoodsRecordMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(PushGoodsRecord record); |
| | | |
| | | int insertSelective(PushGoodsRecord record); |
| | | |
| | | PushGoodsRecord selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(PushGoodsRecord record); |
| | | |
| | | int updateByPrimaryKey(PushGoodsRecord record); |
| | | |
| | | /** |
| | | * 根据推送id 设备id 查询 |
| | | * @param pushId |
| | | * @param deviceId |
| | | * @return |
| | | */ |
| | | List<PushGoodsRecord> listByPushIdAndDeviceId( @Param("pushId")Long pushId, @Param("deviceId") Long deviceId); |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.PushGoodsRecord;
|
| | |
|
| | | public interface PushGoodsRecordMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(PushGoodsRecord record);
|
| | |
|
| | | int insertSelective(PushGoodsRecord record);
|
| | |
|
| | | PushGoodsRecord selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(PushGoodsRecord record);
|
| | |
|
| | | int updateByPrimaryKey(PushGoodsRecord record);
|
| | | |
| | | /**
|
| | | * 根据推送id 设备id 查询
|
| | | * @param pushId
|
| | | * @param deviceId
|
| | | * @return
|
| | | */
|
| | | List<PushGoodsRecord> listByPushIdAndDeviceId( @Param("pushId")Long pushId, @Param("deviceId") Long deviceId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.push.PushInfo; |
| | | |
| | | public interface PushInfoMapper extends BaseMapper<PushInfo> { |
| | | |
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 后端查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param key |
| | | * @param keyType |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<PushInfo> listQuery(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key, @Param("keyType") Integer keyType, @Param("state") Integer state |
| | | , @Param("type")String type); |
| | | |
| | | long countQuery(@Param("key") String key, @Param("keyType") Integer keyType, |
| | | @Param("state") Integer state, @Param("type")String type); |
| | | |
| | | /** |
| | | * 需要执行推送的任务 |
| | | * @return |
| | | */ |
| | | List<PushInfo> listTask(); |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.push.PushInfo;
|
| | |
|
| | | public interface PushInfoMapper extends BaseMapper<PushInfo> {
|
| | | |
| | | |
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 后端查询列表
|
| | | * @param start
|
| | | * @param count
|
| | | * @param key
|
| | | * @param keyType
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<PushInfo> listQuery(@Param("start") long start, @Param("count") int count,
|
| | | @Param("key") String key, @Param("keyType") Integer keyType, @Param("state") Integer state
|
| | | , @Param("type")String type);
|
| | | |
| | | long countQuery(@Param("key") String key, @Param("keyType") Integer keyType,
|
| | | @Param("state") Integer state, @Param("type")String type);
|
| | | |
| | | /**
|
| | | * 需要执行推送的任务
|
| | | * @return
|
| | | */
|
| | | List<PushInfo> listTask();
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import com.yeshi.fanli.entity.push.PushQueueRecord; |
| | | |
| | | public interface PushQueueRecordMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(PushQueueRecord record); |
| | | |
| | | int insertSelective(PushQueueRecord record); |
| | | |
| | | PushQueueRecord selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(PushQueueRecord record); |
| | | |
| | | int updateByPrimaryKey(PushQueueRecord record); |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import com.yeshi.fanli.entity.push.PushQueueRecord;
|
| | |
|
| | | public interface PushQueueRecordMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(PushQueueRecord record);
|
| | |
|
| | | int insertSelective(PushQueueRecord record);
|
| | |
|
| | | PushQueueRecord selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(PushQueueRecord record);
|
| | |
|
| | | int updateByPrimaryKey(PushQueueRecord record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.xinge.PushRecord; |
| | | |
| | | public interface PushRecordMapper extends BaseMapper<PushRecord>{ |
| | | |
| | | List<PushRecord> listQuery(@Param("start")long start, @Param("count") int count, @Param("key") String key, |
| | | @Param("type") Integer type); |
| | | |
| | | Long countQuery(@Param("key") String key, @Param("type") Integer type); |
| | | |
| | | |
| | | PushRecord getByAndroidPushId(@Param("pushId") String pushId); |
| | | |
| | | |
| | | PushRecord getByIosPushId(@Param("pushId") String pushId); |
| | | package com.yeshi.fanli.dao.mybatis.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.xinge.PushRecord;
|
| | |
|
| | | public interface PushRecordMapper extends BaseMapper<PushRecord>{
|
| | | |
| | | List<PushRecord> listQuery(@Param("start")long start, @Param("count") int count, @Param("key") String key,
|
| | | @Param("type") Integer type);
|
| | |
|
| | | Long countQuery(@Param("key") String key, @Param("type") Integer type);
|
| | | |
| | | |
| | | PushRecord getByAndroidPushId(@Param("pushId") String pushId);
|
| | | |
| | | |
| | | PushRecord getByIosPushId(@Param("pushId") String pushId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.share; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.taobao.PidUser; |
| | | |
| | | public interface PidUserMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(PidUser record); |
| | | |
| | | int insertSelective(PidUser record); |
| | | |
| | | PidUser selectByPrimaryKey(Long id); |
| | | |
| | | PidUser selectByUidAndType(@Param("uid") Long uid,@Param("type") int type); |
| | | |
| | | PidUser selectLatestByUidAndType(@Param("uid") Long uid,@Param("type") int type); |
| | | |
| | | PidUser selectByPid(String pid); |
| | | |
| | | int updateByPrimaryKeySelective(PidUser record); |
| | | |
| | | int updateByPrimaryKey(PidUser record); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.share;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.taobao.PidUser;
|
| | |
|
| | | public interface PidUserMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(PidUser record);
|
| | |
|
| | | int insertSelective(PidUser record);
|
| | |
|
| | | PidUser selectByPrimaryKey(Long id);
|
| | | |
| | | PidUser selectByUidAndType(@Param("uid") Long uid,@Param("type") int type);
|
| | | |
| | | PidUser selectLatestByUidAndType(@Param("uid") Long uid,@Param("type") int type);
|
| | | |
| | | PidUser selectByPid(String pid);
|
| | |
|
| | | int updateByPrimaryKeySelective(PidUser record);
|
| | |
|
| | | int updateByPrimaryKey(PidUser record);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.share; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsRecord; |
| | | |
| | | public interface UserShareGoodsRecordMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserShareGoodsRecord record); |
| | | |
| | | int insertSelective(UserShareGoodsRecord record); |
| | | |
| | | UserShareGoodsRecord selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserShareGoodsRecord record); |
| | | |
| | | int updateByPrimaryKey(UserShareGoodsRecord record); |
| | | |
| | | /** |
| | | * 查询用户对应的分享记录 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserShareGoodsRecord> listQueryByUid(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("source") String source); |
| | | |
| | | long countQueryByUid(@Param("uid") Long uid, @Param("source") String source); |
| | | |
| | | /** |
| | | * 统计记录 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<UserShareGoodsRecord> listCountRecord(@Param("list") List<Long> list); |
| | | |
| | | /** |
| | | * 统计今日浏览记录 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<UserShareGoodsRecord> listCountTodayBrowse(@Param("list") List<Long> list); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.share;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsRecord;
|
| | |
|
| | | public interface UserShareGoodsRecordMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserShareGoodsRecord record);
|
| | |
|
| | | int insertSelective(UserShareGoodsRecord record);
|
| | |
|
| | | UserShareGoodsRecord selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserShareGoodsRecord record);
|
| | |
|
| | | int updateByPrimaryKey(UserShareGoodsRecord record);
|
| | |
|
| | | /**
|
| | | * 查询用户对应的分享记录
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserShareGoodsRecord> listQueryByUid(@Param("start") long start, @Param("count") int count,
|
| | | @Param("uid") Long uid, @Param("source") String source);
|
| | |
|
| | | long countQueryByUid(@Param("uid") Long uid, @Param("source") String source);
|
| | |
|
| | | /**
|
| | | * 统计记录
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<UserShareGoodsRecord> listCountRecord(@Param("list") List<Long> list);
|
| | |
|
| | | /**
|
| | | * 统计今日浏览记录
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<UserShareGoodsRecord> listCountTodayBrowse(@Param("list") List<Long> list);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TBPid; |
| | | |
| | | public interface TBPidMapper extends BaseMapper<TBPid> { |
| | | |
| | | TBPid selectAvailablePid(String likeStr); |
| | | |
| | | Long count(); |
| | | |
| | | List<TBPid> listByTypeAndUse(@Param("use")boolean use,@Param("start")long start,@Param("count")int count); |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TBPid;
|
| | |
|
| | | public interface TBPidMapper extends BaseMapper<TBPid> {
|
| | | |
| | | TBPid selectAvailablePid(String likeStr);
|
| | | |
| | | Long count();
|
| | | |
| | | List<TBPid> listByTypeAndUse(@Param("use")boolean use,@Param("start")long start,@Param("count")int count);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoBuyRelationMap; |
| | | |
| | | public interface TaoBaoBuyRelationMapMapper extends BaseMapper<TaoBaoBuyRelationMap> { |
| | | /** |
| | | * 获取有效的渠道ID |
| | | * |
| | | * @param uid |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<String> listValidRelaionId(@Param("uid")Long uid,@Param("count") int count); |
| | | |
| | | /** |
| | | * 通过渠道ID查询 |
| | | * |
| | | * @param relationId |
| | | * @return |
| | | */ |
| | | TaoBaoBuyRelationMap selectByRelationId(String relationId); |
| | | |
| | | /** |
| | | * 根据用户id查询 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | TaoBaoBuyRelationMap selectByUid(Long uid); |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoBuyRelationMap;
|
| | |
|
| | | public interface TaoBaoBuyRelationMapMapper extends BaseMapper<TaoBaoBuyRelationMap> {
|
| | | /**
|
| | | * 获取有效的渠道ID
|
| | | * |
| | | * @param uid
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<String> listValidRelaionId(@Param("uid")Long uid,@Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 通过渠道ID查询
|
| | | * |
| | | * @param relationId
|
| | | * @return
|
| | | */
|
| | | TaoBaoBuyRelationMap selectByRelationId(String relationId);
|
| | |
|
| | | /**
|
| | | * 根据用户id查询
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | TaoBaoBuyRelationMap selectByUid(Long uid);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoCoupon; |
| | | |
| | | public interface TaoBaoCouponMapper extends BaseMapper<TaoBaoCoupon>{ |
| | | |
| | | void deleteBeforeCouponInfo(Long id); |
| | | |
| | | |
| | | List<TaoBaoCoupon> getTaoBaoCouponList(@Param("start") long start, @Param("count") int count, @Param("key") String key); |
| | | |
| | | int getCount(@Param("key")String key); |
| | | |
| | | |
| | | |
| | | List<TaoBaoCoupon> getTaoBaoCouponListBykeys(@Param("start") long start, @Param("count") int count, @Param("list")List<String> list); |
| | | |
| | | |
| | | |
| | | int countTaoBaoCouponListBykeys(@Param("list")List<String> list); |
| | | |
| | | |
| | | TaoBaoCoupon getTaoBaoCouponByActionId(@Param("auctionId") String auctionId); |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoCoupon;
|
| | |
|
| | | public interface TaoBaoCouponMapper extends BaseMapper<TaoBaoCoupon>{
|
| | | |
| | | void deleteBeforeCouponInfo(Long id);
|
| | | |
| | | |
| | | List<TaoBaoCoupon> getTaoBaoCouponList(@Param("start") long start, @Param("count") int count, @Param("key") String key);
|
| | | |
| | | int getCount(@Param("key")String key);
|
| | | |
| | | |
| | | |
| | | List<TaoBaoCoupon> getTaoBaoCouponListBykeys(@Param("start") long start, @Param("count") int count, @Param("list")List<String> list);
|
| | | |
| | | |
| | | |
| | | int countTaoBaoCouponListBykeys(@Param("list")List<String> list);
|
| | | |
| | | |
| | | TaoBaoCoupon getTaoBaoCouponByActionId(@Param("auctionId") String auctionId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief; |
| | | |
| | | public interface TaoBaoGoodsBriefMapper extends BaseMapper<TaoBaoGoodsBrief>{ |
| | | |
| | | |
| | | int deleteByAuctionId(Long auctionId); |
| | | |
| | | /* |
| | | * 根据商品id 批量删除 |
| | | * @param list |
| | | */ |
| | | void deleteBatchByGoodsId(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据auctionId 查询商品信息 |
| | | * |
| | | * @param auctionId |
| | | * @return |
| | | */ |
| | | List<TaoBaoGoodsBrief> queryByAuctionId(@Param("auctionId") Long auctionId); |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<TaoBaoGoodsBrief> list); |
| | | |
| | | /** |
| | | * 根据多个auctionId 查询对应的商品信息 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<TaoBaoGoodsBrief> queryGoodsByAuctionId(List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据多个auctionId是否已存在 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<Long> listExistById(List<Long> list); |
| | | |
| | | /** |
| | | * 批量更新 |
| | | * |
| | | * @param list |
| | | */ |
| | | void updateBatchSelective(@Param("list") List<TaoBaoGoodsBrief> list); |
| | | |
| | | /** |
| | | * 获取创建时间在某个时间点之前的商品 |
| | | * |
| | | * @param maxTime |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<TaoBaoGoodsBrief> queryGoodsByMaxCreateTime(@Param("maxTime") Date maxTime, @Param("start") int start, |
| | | @Param("count") int count); |
| | | |
| | | List<TaoBaoGoodsBrief> queryGoodsByMaxUpdateTime(@Param("maxTime") Date maxTime, @Param("start") int start, |
| | | @Param("count") int count); |
| | | |
| | | List<Long> queryCanDeleteGoods(@Param("maxTime") Date maxTime,@Param("start")int start,@Param("count")int count); |
| | | |
| | | Long queryCanDeleteGoodsCount(@Param("maxTime") Date maxTime); |
| | | |
| | | |
| | | /** |
| | | * 根据店铺信息获取商品 |
| | | * @param start |
| | | * @param count |
| | | * @param shopId |
| | | * @return |
| | | */ |
| | | List<TaoBaoGoodsBrief> listByShopId(@Param("start") long start, @Param("count") int count, |
| | | @Param("shopId") Long shopId); |
| | | |
| | | long countByShopId(@Param("shopId") Long shopId); |
| | | |
| | | |
| | | /** |
| | | * 长时间未更新的商品 |
| | | */ |
| | | List<Long> listNeedUpdateGoodsId(@Param("start") long start, @Param("count") int count, @Param("hour") int hour); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | |
|
| | | public interface TaoBaoGoodsBriefMapper extends BaseMapper<TaoBaoGoodsBrief>{
|
| | |
|
| | |
|
| | | int deleteByAuctionId(Long auctionId);
|
| | |
|
| | | /*
|
| | | * 根据商品id 批量删除
|
| | | * @param list
|
| | | */
|
| | | void deleteBatchByGoodsId(List<Long> list);
|
| | | |
| | |
|
| | | /**
|
| | | * 根据auctionId 查询商品信息
|
| | | * |
| | | * @param auctionId
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoGoodsBrief> queryByAuctionId(@Param("auctionId") Long auctionId);
|
| | |
|
| | | /**
|
| | | * 批量插入
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<TaoBaoGoodsBrief> list);
|
| | |
|
| | | /**
|
| | | * 根据多个auctionId 查询对应的商品信息
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoGoodsBrief> queryGoodsByAuctionId(List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据多个auctionId是否已存在
|
| | | * |
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<Long> listExistById(List<Long> list);
|
| | |
|
| | | /**
|
| | | * 批量更新
|
| | | * |
| | | * @param list
|
| | | */
|
| | | void updateBatchSelective(@Param("list") List<TaoBaoGoodsBrief> list);
|
| | |
|
| | | /**
|
| | | * 获取创建时间在某个时间点之前的商品
|
| | | * |
| | | * @param maxTime
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoGoodsBrief> queryGoodsByMaxCreateTime(@Param("maxTime") Date maxTime, @Param("start") int start,
|
| | | @Param("count") int count);
|
| | | |
| | | List<TaoBaoGoodsBrief> queryGoodsByMaxUpdateTime(@Param("maxTime") Date maxTime, @Param("start") int start,
|
| | | @Param("count") int count);
|
| | | |
| | | List<Long> queryCanDeleteGoods(@Param("maxTime") Date maxTime,@Param("start")int start,@Param("count")int count);
|
| | | |
| | | Long queryCanDeleteGoodsCount(@Param("maxTime") Date maxTime);
|
| | | |
| | | |
| | | /**
|
| | | * 根据店铺信息获取商品
|
| | | * @param start
|
| | | * @param count
|
| | | * @param shopId
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoGoodsBrief> listByShopId(@Param("start") long start, @Param("count") int count, |
| | | @Param("shopId") Long shopId);
|
| | | |
| | | long countByShopId(@Param("shopId") Long shopId);
|
| | | |
| | | |
| | | /**
|
| | | * 长时间未更新的商品 |
| | | */
|
| | | List<Long> listNeedUpdateGoodsId(@Param("start") long start, @Param("count") int count, @Param("hour") int hour);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoLink; |
| | | |
| | | public interface TaoBaoLinkMapper extends BaseMapper<TaoBaoLink>{ |
| | | |
| | | TaoBaoLink getTaoBaoLink(@Param("auctionId") Long auctionId, @Param("systemId") Long systemId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoLink;
|
| | |
|
| | | public interface TaoBaoLinkMapper extends BaseMapper<TaoBaoLink>{
|
| | | |
| | | TaoBaoLink getTaoBaoLink(@Param("auctionId") Long auctionId, @Param("systemId") Long systemId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoOrderTradeMap; |
| | | |
| | | public interface TaoBaoOrderTradeMapMapper extends BaseMapper<TaoBaoOrderTradeMap> { |
| | | |
| | | /** |
| | | * 根据交易ID查询 |
| | | * |
| | | * @param tradeId |
| | | * @return |
| | | */ |
| | | TaoBaoOrderTradeMap selectByTradeId(String tradeId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoOrderTradeMap;
|
| | |
|
| | | public interface TaoBaoOrderTradeMapMapper extends BaseMapper<TaoBaoOrderTradeMap> {
|
| | |
|
| | | /**
|
| | | * 根据交易ID查询
|
| | | * |
| | | * @param tradeId
|
| | | * @return
|
| | | */
|
| | | TaoBaoOrderTradeMap selectByTradeId(String tradeId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoPunishOrder; |
| | | |
| | | public interface TaoBaoPunishOrderMapper extends BaseMapper<TaoBaoPunishOrder> { |
| | | |
| | | /** |
| | | * 根据交易ID查询 |
| | | * @param tradeId |
| | | * @return |
| | | */ |
| | | TaoBaoPunishOrder selectByTradeId(String tradeId); |
| | | |
| | | /** |
| | | * 根据父交易ID查询数量 |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | long countByParentTradeId(String orderId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoPunishOrder;
|
| | |
|
| | | public interface TaoBaoPunishOrderMapper extends BaseMapper<TaoBaoPunishOrder> {
|
| | | |
| | | /**
|
| | | * 根据交易ID查询
|
| | | * @param tradeId
|
| | | * @return
|
| | | */
|
| | | TaoBaoPunishOrder selectByTradeId(String tradeId);
|
| | | |
| | | /**
|
| | | * 根据父交易ID查询数量
|
| | | * @param orderId
|
| | | * @return
|
| | | */
|
| | | long countByParentTradeId(String orderId);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoShop; |
| | | import com.yeshi.fanli.vo.brand.TaoBaoShopVO; |
| | | |
| | | public interface TaoBaoShopMapper extends BaseMapper<TaoBaoShop> { |
| | | |
| | | /** |
| | | * 根据分类查询店铺信息、同时返回商品 |
| | | * @param start |
| | | * @param count |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | List<TaoBaoShopVO> listBrandShopinfo(@Param("start") long start, @Param("count") int count, @Param("cid") Long cid); |
| | | |
| | | /** |
| | | * 统计:分类统并商品数量大于3 |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | long countBrandShopinfo(@Param("cid") Long cid); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据店铺搜索关键词查找 |
| | | * @param key |
| | | * @return |
| | | */ |
| | | List<TaoBaoShopVO> getShopByKey(@Param("key") String key); |
| | | |
| | | } |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoShop;
|
| | | import com.yeshi.fanli.vo.brand.TaoBaoShopVO;
|
| | |
|
| | | public interface TaoBaoShopMapper extends BaseMapper<TaoBaoShop> {
|
| | | |
| | | /**
|
| | | * 根据分类查询店铺信息、同时返回商品
|
| | | * @param start
|
| | | * @param count
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoShopVO> listBrandShopinfo(@Param("start") long start, @Param("count") int count, @Param("cid") Long cid);
|
| | | |
| | | /**
|
| | | * 统计:分类统并商品数量大于3
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | long countBrandShopinfo(@Param("cid") Long cid);
|
| | |
|
| | |
|
| | |
|
| | | /**
|
| | | * 根据店铺搜索关键词查找
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoShopVO> getShopByKey(@Param("key") String key);
|
| | | |
| | | }
|
| | |
|
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoToken; |
| | | |
| | | public interface TaoBaoTokenMapper extends BaseMapper<TaoBaoToken> { |
| | | |
| | | /** |
| | | * 根据商品ID查询淘口令 |
| | | * |
| | | * @param auctionId |
| | | * @return |
| | | */ |
| | | TaoBaoToken selectByAuctionId(@Param("auctionId") Long auctionId,@Param("pid") String pid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoToken;
|
| | |
|
| | | public interface TaoBaoTokenMapper extends BaseMapper<TaoBaoToken> {
|
| | |
|
| | | /**
|
| | | * 根据商品ID查询淘口令
|
| | | * |
| | | * @param auctionId
|
| | | * @return
|
| | | */
|
| | | TaoBaoToken selectByAuctionId(@Param("auctionId") Long auctionId,@Param("pid") String pid);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoUnionAuthRecord; |
| | | |
| | | public interface TaoBaoUnionAuthRecordMapper extends BaseMapper<TaoBaoUnionAuthRecord>{ |
| | | |
| | | String getTaoBaoUserNick(@Param("uid") Long uid); |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoUnionAuthRecord;
|
| | |
|
| | | public interface TaoBaoUnionAuthRecordMapper extends BaseMapper<TaoBaoUnionAuthRecord>{
|
| | |
|
| | | String getTaoBaoUserNick(@Param("uid") Long uid);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig; |
| | | |
| | | public interface TaoBaoUnionConfigMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(TaoBaoUnionConfig record); |
| | | |
| | | int insertSelective(TaoBaoUnionConfig record); |
| | | |
| | | TaoBaoUnionConfig selectByPrimaryKey(Long id); |
| | | |
| | | List<TaoBaoUnionConfig> selectByType(int type); |
| | | |
| | | TaoBaoUnionConfig selectByAppId(String appId); |
| | | |
| | | int updateByPrimaryKeySelective(TaoBaoUnionConfig record); |
| | | |
| | | int updateByPrimaryKey(TaoBaoUnionConfig record); |
| | | //根据appkey查询 |
| | | TaoBaoUnionConfig selectByAppKey(String appKey); |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig;
|
| | |
|
| | | public interface TaoBaoUnionConfigMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(TaoBaoUnionConfig record);
|
| | |
|
| | | int insertSelective(TaoBaoUnionConfig record);
|
| | |
|
| | | TaoBaoUnionConfig selectByPrimaryKey(Long id);
|
| | |
|
| | | List<TaoBaoUnionConfig> selectByType(int type);
|
| | |
|
| | | TaoBaoUnionConfig selectByAppId(String appId);
|
| | |
|
| | | int updateByPrimaryKeySelective(TaoBaoUnionConfig record);
|
| | |
|
| | | int updateByPrimaryKey(TaoBaoUnionConfig record);
|
| | | //根据appkey查询
|
| | | TaoBaoUnionConfig selectByAppKey(String appKey);
|
| | | |
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanDrawBack; |
| | | |
| | | public interface TaoBaoWeiQuanDrawBackMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(TaoBaoWeiQuanDrawBack record); |
| | | |
| | | int insertSelective(TaoBaoWeiQuanDrawBack record); |
| | | |
| | | TaoBaoWeiQuanDrawBack selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(TaoBaoWeiQuanDrawBack record); |
| | | |
| | | int updateByPrimaryKey(TaoBaoWeiQuanDrawBack record); |
| | | |
| | | /** |
| | | * 通过订单号和红包ID获取维权退款数据 |
| | | * |
| | | * @param orderItemId |
| | | * @param hongBaoId |
| | | * @return |
| | | */ |
| | | TaoBaoWeiQuanDrawBack selectByOrderItemIdAndUid(@Param("orderItemId") String orderItemId, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据子订单号查询 |
| | | * |
| | | * @param orderItemId |
| | | * @return |
| | | */ |
| | | List<TaoBaoWeiQuanDrawBack> selectByOrderItemId(String orderItemId); |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanDrawBack;
|
| | |
|
| | | public interface TaoBaoWeiQuanDrawBackMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(TaoBaoWeiQuanDrawBack record);
|
| | |
|
| | | int insertSelective(TaoBaoWeiQuanDrawBack record);
|
| | |
|
| | | TaoBaoWeiQuanDrawBack selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(TaoBaoWeiQuanDrawBack record);
|
| | |
|
| | | int updateByPrimaryKey(TaoBaoWeiQuanDrawBack record);
|
| | |
|
| | | /**
|
| | | * 通过订单号和红包ID获取维权退款数据
|
| | | * |
| | | * @param orderItemId
|
| | | * @param hongBaoId
|
| | | * @return
|
| | | */
|
| | | TaoBaoWeiQuanDrawBack selectByOrderItemIdAndUid(@Param("orderItemId") String orderItemId, @Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 根据子订单号查询
|
| | | * |
| | | * @param orderItemId
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoWeiQuanDrawBack> selectByOrderItemId(String orderItemId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dto.ChartTDO; |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanOrder; |
| | | |
| | | public interface TaoBaoWeiQuanOrderMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(TaoBaoWeiQuanOrder record); |
| | | |
| | | int insertSelective(TaoBaoWeiQuanOrder record); |
| | | |
| | | TaoBaoWeiQuanOrder selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(TaoBaoWeiQuanOrder record); |
| | | |
| | | int updateByPrimaryKey(TaoBaoWeiQuanOrder record); |
| | | |
| | | // 按订单号和子订单号查询 |
| | | TaoBaoWeiQuanOrder selectByOrderIdAndOrderItemId(@Param("orderId") String orderId, |
| | | @Param("orderItemId") String orderItemId); |
| | | |
| | | TaoBaoWeiQuanOrder selectByOrderItemId(String orderItemId); |
| | | |
| | | // 按订单号和维权状态查询 |
| | | List<TaoBaoWeiQuanOrder> selectListByOrderIdAndState(@Param("orderId") String orderId, |
| | | @Param("state") String state); |
| | | |
| | | /** |
| | | * 统计总金额 |
| | | * |
| | | * @param dateType |
| | | * @param years |
| | | * @param startTime |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | List<ChartTDO> countWeiQaunOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year, |
| | | @Param("startTime") String startTime, @Param("endTime") String endTime); |
| | | |
| | | /** |
| | | * 统计总个数 |
| | | * |
| | | * @param dateType |
| | | * @param years |
| | | * @param startTime |
| | | * @param endTime |
| | | * @return |
| | | */ |
| | | List<ChartTDO> countWeiQaunOrderMoney(@Param("dateType") Integer dateType, @Param("year") String year, |
| | | @Param("startTime") String startTime, @Param("endTime") String endTime); |
| | | |
| | | /** |
| | | * 根据状态检索 |
| | | * |
| | | * @param state |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<TaoBaoWeiQuanOrder> listByState(@Param("state") String state, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据状态统计数量 |
| | | * |
| | | * @param state |
| | | * @return |
| | | */ |
| | | long countByState(@Param("state") String state); |
| | | |
| | | |
| | | /** |
| | | * 根据订单号检索 |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | List<TaoBaoWeiQuanOrder> listByOrderId(String orderId); |
| | | |
| | | /** |
| | | * 根据子订单号检索 |
| | | * @param tradeId |
| | | * @return |
| | | */ |
| | | TaoBaoWeiQuanOrder selectByOrderItem(String tradeId); |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dto.ChartTDO;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanOrder;
|
| | |
|
| | | public interface TaoBaoWeiQuanOrderMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(TaoBaoWeiQuanOrder record);
|
| | |
|
| | | int insertSelective(TaoBaoWeiQuanOrder record);
|
| | |
|
| | | TaoBaoWeiQuanOrder selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(TaoBaoWeiQuanOrder record);
|
| | |
|
| | | int updateByPrimaryKey(TaoBaoWeiQuanOrder record);
|
| | |
|
| | | // 按订单号和子订单号查询
|
| | | TaoBaoWeiQuanOrder selectByOrderIdAndOrderItemId(@Param("orderId") String orderId,
|
| | | @Param("orderItemId") String orderItemId);
|
| | |
|
| | | TaoBaoWeiQuanOrder selectByOrderItemId(String orderItemId);
|
| | |
|
| | | // 按订单号和维权状态查询
|
| | | List<TaoBaoWeiQuanOrder> selectListByOrderIdAndState(@Param("orderId") String orderId,
|
| | | @Param("state") String state);
|
| | |
|
| | | /**
|
| | | * 统计总金额
|
| | | * |
| | | * @param dateType
|
| | | * @param years
|
| | | * @param startTime
|
| | | * @param endTime
|
| | | * @return
|
| | | */
|
| | | List<ChartTDO> countWeiQaunOrderNumber(@Param("dateType") Integer dateType, @Param("year") String year,
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime);
|
| | |
|
| | | /**
|
| | | * 统计总个数
|
| | | * |
| | | * @param dateType
|
| | | * @param years
|
| | | * @param startTime
|
| | | * @param endTime
|
| | | * @return
|
| | | */
|
| | | List<ChartTDO> countWeiQaunOrderMoney(@Param("dateType") Integer dateType, @Param("year") String year,
|
| | | @Param("startTime") String startTime, @Param("endTime") String endTime);
|
| | |
|
| | | /**
|
| | | * 根据状态检索
|
| | | * |
| | | * @param state
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoWeiQuanOrder> listByState(@Param("state") String state, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据状态统计数量
|
| | | * |
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | long countByState(@Param("state") String state);
|
| | | |
| | | |
| | | /**
|
| | | * 根据订单号检索
|
| | | * @param orderId
|
| | | * @return
|
| | | */
|
| | | List<TaoBaoWeiQuanOrder> listByOrderId(String orderId);
|
| | | |
| | | /**
|
| | | * 根据子订单号检索
|
| | | * @param tradeId
|
| | | * @return
|
| | | */
|
| | | TaoBaoWeiQuanOrder selectByOrderItem(String tradeId);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.taobao.TaobaoMeterial; |
| | | |
| | | public interface TaobaoMeterialMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(TaobaoMeterial record); |
| | | |
| | | int insertSelective(TaobaoMeterial record); |
| | | |
| | | TaobaoMeterial selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(TaobaoMeterial record); |
| | | |
| | | int updateByPrimaryKey(TaobaoMeterial record); |
| | | |
| | | // 根据类目名称查询 |
| | | List<TaobaoMeterial> selectByClassNameAndSuperName(@Param("className")String className , @Param("superName")String superName); |
| | | |
| | | // 根据类目名称查询 |
| | | List<TaobaoMeterial> selectBySuperName(@Param("superName")String superName); |
| | | package com.yeshi.fanli.dao.mybatis.taobao;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.taobao.TaobaoMeterial;
|
| | |
|
| | | public interface TaobaoMeterialMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(TaobaoMeterial record);
|
| | |
|
| | | int insertSelective(TaobaoMeterial record);
|
| | |
|
| | | TaobaoMeterial selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(TaobaoMeterial record);
|
| | |
|
| | | int updateByPrimaryKey(TaobaoMeterial record);
|
| | | |
| | | // 根据类目名称查询
|
| | | List<TaobaoMeterial> selectByClassNameAndSuperName(@Param("className")String className , @Param("superName")String superName);
|
| | | |
| | | // 根据类目名称查询
|
| | | List<TaobaoMeterial> selectBySuperName(@Param("superName")String superName);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.taobao.dataoke; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.taobao.dataoke.DaTaoKeDetail; |
| | | |
| | | public interface DaTaoKeDetailMapper extends BaseMapper<DaTaoKeDetail> { |
| | | |
| | | /** |
| | | * 根据ID批量删除 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | int deleteByIdList(@Param("ids") List<Long> ids); |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * |
| | | * @param detailList |
| | | * @return |
| | | */ |
| | | int insertByBatch(@Param("detailList") List<DaTaoKeDetail> detailList); |
| | | |
| | | /** |
| | | * 通过最小更新时间做删除 |
| | | * |
| | | * @return |
| | | */ |
| | | int deleteByMinUpdateTime(Long minTime); |
| | | |
| | | /** |
| | | * 根据商品ID列表查询 |
| | | * |
| | | * @param goodsIdList |
| | | * @return |
| | | */ |
| | | List<DaTaoKeDetail> listByGoodsIds(@Param("goodsIdList") List<Long> goodsIdList); |
| | | |
| | | /** |
| | | * 根据主键ID查询 |
| | | * |
| | | * @param idList |
| | | * @return |
| | | */ |
| | | List<DaTaoKeDetail> listByIds(@Param("idList") List<Long> idList); |
| | | |
| | | /** |
| | | * 取出最新的id |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | List<DaTaoKeDetail> getGoodsNotInList(@Param("cid") Long cid, @Param("list") List<Long> list, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据标题查询 |
| | | * |
| | | * @param dtitle |
| | | * @return |
| | | */ |
| | | List<DaTaoKeDetail> listByDtitle(String dtitle); |
| | | |
| | | /** |
| | | * 根据标题与分类搜索列表 |
| | | * |
| | | * @param title |
| | | * @param cid |
| | | * @param start |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<DaTaoKeDetail> listSearchByTitleWithCid(@Param("title") String key, @Param("cid") Long cid, |
| | | @Param("start") long start, @Param("count") int count); |
| | | |
| | | /** |
| | | * 根据标题与分类获取搜索列表数量 |
| | | * |
| | | * @param title |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | Long countSearchByTitleWithCid(@Param("title") String key, @Param("cid") Long cid); |
| | | |
| | | /** |
| | | * 根据店铺id查询 |
| | | * |
| | | * @param start |
| | | * @param count |
| | | * @param sellerId |
| | | * @return |
| | | */ |
| | | public List<DaTaoKeDetail> listBySellerId(@Param("start") long start, @Param("count") int count, |
| | | @Param("sellerId") Long sellerId); |
| | | |
| | | List<DaTaoKeDetail> listByCidAndMaxMinPrice(@Param("cid") Integer cid, @Param("maxPrice") BigDecimal maxPrice, |
| | | @Param("minPrice") BigDecimal minPrice, @Param("start") long start, @Param("count") int count); |
| | | |
| | | Long countByCidAndMaxMinPrice(@Param("cid") Integer cid, @Param("maxPrice") BigDecimal maxPrice, |
| | | @Param("minPrice") BigDecimal minPrice); |
| | | package com.yeshi.fanli.dao.mybatis.taobao.dataoke;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.taobao.dataoke.DaTaoKeDetail;
|
| | |
|
| | | public interface DaTaoKeDetailMapper extends BaseMapper<DaTaoKeDetail> {
|
| | |
|
| | | /**
|
| | | * 根据ID批量删除
|
| | | * |
| | | * @param ids
|
| | | * @return
|
| | | */
|
| | | int deleteByIdList(@Param("ids") List<Long> ids);
|
| | |
|
| | | /**
|
| | | * 批量插入
|
| | | * |
| | | * @param detailList
|
| | | * @return
|
| | | */
|
| | | int insertByBatch(@Param("detailList") List<DaTaoKeDetail> detailList);
|
| | |
|
| | | /**
|
| | | * 通过最小更新时间做删除
|
| | | * |
| | | * @return
|
| | | */
|
| | | int deleteByMinUpdateTime(Long minTime);
|
| | |
|
| | | /**
|
| | | * 根据商品ID列表查询
|
| | | * |
| | | * @param goodsIdList
|
| | | * @return
|
| | | */
|
| | | List<DaTaoKeDetail> listByGoodsIds(@Param("goodsIdList") List<Long> goodsIdList);
|
| | |
|
| | | /**
|
| | | * 根据主键ID查询
|
| | | * |
| | | * @param idList
|
| | | * @return
|
| | | */
|
| | | List<DaTaoKeDetail> listByIds(@Param("idList") List<Long> idList);
|
| | |
|
| | | /**
|
| | | * 取出最新的id
|
| | | * |
| | | * @param ids
|
| | | * @return
|
| | | */
|
| | | List<DaTaoKeDetail> getGoodsNotInList(@Param("cid") Long cid, @Param("list") List<Long> list,
|
| | | @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据标题查询
|
| | | * |
| | | * @param dtitle
|
| | | * @return
|
| | | */
|
| | | List<DaTaoKeDetail> listByDtitle(String dtitle);
|
| | |
|
| | | /**
|
| | | * 根据标题与分类搜索列表
|
| | | * |
| | | * @param title
|
| | | * @param cid
|
| | | * @param start
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<DaTaoKeDetail> listSearchByTitleWithCid(@Param("title") String key, @Param("cid") Long cid,
|
| | | @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 根据标题与分类获取搜索列表数量
|
| | | * |
| | | * @param title
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | Long countSearchByTitleWithCid(@Param("title") String key, @Param("cid") Long cid);
|
| | |
|
| | | /**
|
| | | * 根据店铺id查询
|
| | | * |
| | | * @param start
|
| | | * @param count
|
| | | * @param sellerId
|
| | | * @return
|
| | | */
|
| | | public List<DaTaoKeDetail> listBySellerId(@Param("start") long start, @Param("count") int count,
|
| | | @Param("sellerId") Long sellerId);
|
| | |
|
| | | List<DaTaoKeDetail> listByCidAndMaxMinPrice(@Param("cid") Integer cid, @Param("maxPrice") BigDecimal maxPrice,
|
| | | @Param("minPrice") BigDecimal minPrice, @Param("start") long start, @Param("count") int count);
|
| | |
|
| | | Long countByCidAndMaxMinPrice(@Param("cid") Integer cid, @Param("maxPrice") BigDecimal maxPrice,
|
| | | @Param("minPrice") BigDecimal minPrice);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.tlj; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.tlj.ConfigTaoLiJin; |
| | | |
| | | public interface ConfigTaoLiJinMapper extends BaseMapper<ConfigTaoLiJin> { |
| | | |
| | | /** |
| | | * 根据key值查询 |
| | | * @param key |
| | | * @return |
| | | */ |
| | | ConfigTaoLiJin getByKey(@Param("key") String key,@Param("startTime")Date startTime); |
| | | package com.yeshi.fanli.dao.mybatis.tlj;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.tlj.ConfigTaoLiJin;
|
| | |
|
| | | public interface ConfigTaoLiJinMapper extends BaseMapper<ConfigTaoLiJin> {
|
| | | |
| | | /**
|
| | | * 根据key值查询
|
| | | * @param key
|
| | | * @return
|
| | | */
|
| | | ConfigTaoLiJin getByKey(@Param("key") String key,@Param("startTime")Date startTime);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.tlj; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinDetail; |
| | | import com.yeshi.fanli.vo.tlj.TaoLiJinMonthVO; |
| | | |
| | | public interface UserTaoLiJinDetailMapper extends BaseMapper<UserTaoLiJinDetail> { |
| | | |
| | | |
| | | /** |
| | | * 统计条数 |
| | | * @param uid |
| | | * @param dateType 1今日 、2昨日、3本月、4上月 |
| | | * @return |
| | | */ |
| | | long countDetail(@Param("uid")long uid); |
| | | |
| | | |
| | | /** |
| | | * 根据日期类型统计消耗金额 |
| | | * @param uid |
| | | * @param dateType 1今日 、2昨日、3本月、4上月 |
| | | * @return |
| | | */ |
| | | BigDecimal countUseMoneyByDate(@Param("uid")long uid, @Param("dateType")int dateType); |
| | | |
| | | /** |
| | | * 按最大的创建时间和用户ID检索列表 |
| | | * |
| | | * @param uid |
| | | * @param date |
| | | * @return |
| | | */ |
| | | List<UserTaoLiJinDetail> selectByMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, @Param("count") int count); |
| | | |
| | | |
| | | /** |
| | | * 通过用户ID和返回的最大时间的详情ID来获取下一页的数据 |
| | | * |
| | | * @param uid |
| | | * @param id |
| | | * @param count |
| | | * @return |
| | | */ |
| | | List<UserTaoLiJinDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id, @Param("count") int count); |
| | | |
| | | |
| | | /** |
| | | * 统计某个月份的收入与支出 |
| | | * |
| | | * @param uid |
| | | * @param dateFormat |
| | | * @return |
| | | */ |
| | | List<TaoLiJinMonthVO> selectMonthMoneyByUid(@Param("uid") Long uid, @Param("dateFormat") List<String> dateFormat); |
| | | |
| | | |
| | | /** |
| | | * 获取用户总共有多少记录数据 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long selectCountByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 按用户ID和最大时间检索月份的数量 |
| | | * |
| | | * @param uid |
| | | * @param maxDate |
| | | * @return |
| | | */ |
| | | int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate); |
| | | |
| | | |
| | | /** |
| | | * 按最大的创建时间和用户ID检索数量 |
| | | * |
| | | * @param uid |
| | | * @param date |
| | | * @return |
| | | */ |
| | | Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.tlj;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinDetail;
|
| | | import com.yeshi.fanli.vo.tlj.TaoLiJinMonthVO;
|
| | |
|
| | | public interface UserTaoLiJinDetailMapper extends BaseMapper<UserTaoLiJinDetail> {
|
| | | |
| | | |
| | | /**
|
| | | * 统计条数
|
| | | * @param uid
|
| | | * @param dateType 1今日 、2昨日、3本月、4上月
|
| | | * @return
|
| | | */
|
| | | long countDetail(@Param("uid")long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 根据日期类型统计消耗金额
|
| | | * @param uid
|
| | | * @param dateType 1今日 、2昨日、3本月、4上月
|
| | | * @return
|
| | | */
|
| | | BigDecimal countUseMoneyByDate(@Param("uid")long uid, @Param("dateType")int dateType);
|
| | | |
| | | /**
|
| | | * 按最大的创建时间和用户ID检索列表
|
| | | * |
| | | * @param uid
|
| | | * @param date
|
| | | * @return
|
| | | */
|
| | | List<UserTaoLiJinDetail> selectByMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date, @Param("count") int count);
|
| | | |
| | | |
| | | /**
|
| | | * 通过用户ID和返回的最大时间的详情ID来获取下一页的数据
|
| | | * |
| | | * @param uid
|
| | | * @param id
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | List<UserTaoLiJinDetail> selectByUidWithIndexId(@Param("uid") Long uid, @Param("id") Long id, @Param("count") int count);
|
| | | |
| | | |
| | | /**
|
| | | * 统计某个月份的收入与支出
|
| | | * |
| | | * @param uid
|
| | | * @param dateFormat
|
| | | * @return
|
| | | */
|
| | | List<TaoLiJinMonthVO> selectMonthMoneyByUid(@Param("uid") Long uid, @Param("dateFormat") List<String> dateFormat);
|
| | | |
| | | |
| | | /**
|
| | | * 获取用户总共有多少记录数据
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long selectCountByUid(@Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 按用户ID和最大时间检索月份的数量
|
| | | * |
| | | * @param uid
|
| | | * @param maxDate
|
| | | * @return
|
| | | */
|
| | | int selectMonthCountByUid(@Param("uid") Long uid, @Param("date") Date maxDate);
|
| | | |
| | | |
| | | /**
|
| | | * 按最大的创建时间和用户ID检索数量
|
| | | * |
| | | * @param uid
|
| | | * @param date
|
| | | * @return
|
| | | */
|
| | | Long selectCountByUidAndMaxCreateTime(@Param("uid") Long uid, @Param("date") Date date);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.tlj; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinGiveRecord; |
| | | |
| | | public interface UserTaoLiJinGiveRecordMapper extends BaseMapper<UserTaoLiJinGiveRecord> { |
| | | |
| | | /** |
| | | * 查询超期的赠送记录 |
| | | * @return |
| | | */ |
| | | List<UserTaoLiJinGiveRecord> overdueList(@Param("count") int count); |
| | | package com.yeshi.fanli.dao.mybatis.tlj;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinGiveRecord;
|
| | |
|
| | | public interface UserTaoLiJinGiveRecordMapper extends BaseMapper<UserTaoLiJinGiveRecord> {
|
| | | |
| | | /**
|
| | | * 查询超期的赠送记录
|
| | | * @return
|
| | | */
|
| | | List<UserTaoLiJinGiveRecord> overdueList(@Param("count") int count);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.tlj; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinRecord; |
| | | import com.yeshi.fanli.vo.user.UserTaoLiJinRecordVO; |
| | | |
| | | public interface UserTaoLiJinRecordMapper extends BaseMapper<UserTaoLiJinRecord> { |
| | | |
| | | /** |
| | | * 查询分享记录 |
| | | * @return |
| | | */ |
| | | List<UserTaoLiJinRecordVO> getRecordByUid(@Param("start")long start,@Param("count")int count, @Param("uid")long uid); |
| | | |
| | | |
| | | long countRecordByUid(@Param("uid")Long uid); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 统计分析记录条数 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long countShareRecordByUid(@Param("uid")Long uid); |
| | | |
| | | /** |
| | | * 今日创建分享红包个数 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long countTodayNum(@Param("uid")Long uid); |
| | | |
| | | /** |
| | | * 查询用户分享 |
| | | * @param uid |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | BigDecimal getShareHongBaoByUidAndGoodsId(@Param("uid")Long uid, @Param("goodsId")Long goodsId); |
| | | |
| | | /** |
| | | * 根据淘礼金id查询 |
| | | * @param rightsId |
| | | * @return |
| | | */ |
| | | UserTaoLiJinRecord getByRightsId(@Param("rightsId")String rightsId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.tlj;
|
| | |
|
| | | import java.math.BigDecimal;
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinRecord;
|
| | | import com.yeshi.fanli.vo.user.UserTaoLiJinRecordVO;
|
| | |
|
| | | public interface UserTaoLiJinRecordMapper extends BaseMapper<UserTaoLiJinRecord> {
|
| | | |
| | | /**
|
| | | * 查询分享记录
|
| | | * @return
|
| | | */
|
| | | List<UserTaoLiJinRecordVO> getRecordByUid(@Param("start")long start,@Param("count")int count, @Param("uid")long uid);
|
| | | |
| | | |
| | | long countRecordByUid(@Param("uid")Long uid);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 统计分析记录条数
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countShareRecordByUid(@Param("uid")Long uid);
|
| | | |
| | | /**
|
| | | * 今日创建分享红包个数
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | long countTodayNum(@Param("uid")Long uid);
|
| | | |
| | | /**
|
| | | * 查询用户分享
|
| | | * @param uid
|
| | | * @param goodsId
|
| | | * @return
|
| | | */
|
| | | BigDecimal getShareHongBaoByUidAndGoodsId(@Param("uid")Long uid, @Param("goodsId")Long goodsId);
|
| | | |
| | | /**
|
| | | * 根据淘礼金id查询
|
| | | * @param rightsId
|
| | | * @return
|
| | | */
|
| | | UserTaoLiJinRecord getByRightsId(@Param("rightsId")String rightsId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.tlj; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinReport; |
| | | |
| | | public interface UserTaoLiJinReportMapper extends BaseMapper<UserTaoLiJinReport> { |
| | | |
| | | int deleteByPrimaryKey(String id); |
| | | |
| | | UserTaoLiJinReport selectByPrimaryKeyStr(String id); |
| | | |
| | | |
| | | /** |
| | | * 查询更新的报告 |
| | | * @return |
| | | */ |
| | | List<UserTaoLiJinReport> needUpdateReport(); |
| | | |
| | | /** |
| | | * 退回未领取的淘礼金 |
| | | * @return |
| | | */ |
| | | List<UserTaoLiJinReport> refundNotWin(); |
| | | package com.yeshi.fanli.dao.mybatis.tlj;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.tlj.UserTaoLiJinReport;
|
| | |
|
| | | public interface UserTaoLiJinReportMapper extends BaseMapper<UserTaoLiJinReport> {
|
| | | |
| | | int deleteByPrimaryKey(String id);
|
| | |
|
| | | UserTaoLiJinReport selectByPrimaryKeyStr(String id);
|
| | |
|
| | | |
| | | /**
|
| | | * 查询更新的报告
|
| | | * @return
|
| | | */
|
| | | List<UserTaoLiJinReport> needUpdateReport();
|
| | | |
| | | /**
|
| | | * 退回未领取的淘礼金
|
| | | * @return
|
| | | */
|
| | | List<UserTaoLiJinReport> refundNotWin();
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.DeviceLotteryRecord; |
| | | |
| | | public interface DeviceLotteryRecordMapper extends BaseMapper<DeviceLotteryRecord> { |
| | | |
| | | /** |
| | | * 根据 平台、设备 查询抽奖记录 |
| | | * @param platform |
| | | * @param device |
| | | * @return |
| | | */ |
| | | List<DeviceLotteryRecord> listByPlatformAndDevice(@Param("platform")int platform, @Param("device")String device); |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.DeviceLotteryRecord;
|
| | |
|
| | | public interface DeviceLotteryRecordMapper extends BaseMapper<DeviceLotteryRecord> {
|
| | |
|
| | | /**
|
| | | * 根据 平台、设备 查询抽奖记录
|
| | | * @param platform
|
| | | * @param device
|
| | | * @return
|
| | | */
|
| | | List<DeviceLotteryRecord> listByPlatformAndDevice(@Param("platform")int platform, @Param("device")String device);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode; |
| | | import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode.ForbiddenUserIdentifyCodeTypeEnum; |
| | | |
| | | public interface ForbiddenUserIdentifyCodeMapper extends BaseMapper<ForbiddenUserIdentifyCode> { |
| | | |
| | | /** |
| | | * 通过类型与唯一标识获取 |
| | | * |
| | | * @param type |
| | | * @param identifyCode |
| | | * @return |
| | | */ |
| | | List<ForbiddenUserIdentifyCode> listByTypeAndIdentifyCode(@Param("type") ForbiddenUserIdentifyCodeTypeEnum type, |
| | | @Param("identifyCode") String identifyCode); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode;
|
| | | import com.yeshi.fanli.entity.bus.user.ForbiddenUserIdentifyCode.ForbiddenUserIdentifyCodeTypeEnum;
|
| | |
|
| | | public interface ForbiddenUserIdentifyCodeMapper extends BaseMapper<ForbiddenUserIdentifyCode> {
|
| | |
|
| | | /**
|
| | | * 通过类型与唯一标识获取
|
| | | * |
| | | * @param type
|
| | | * @param identifyCode
|
| | | * @return
|
| | | */
|
| | | List<ForbiddenUserIdentifyCode> listByTypeAndIdentifyCode(@Param("type") ForbiddenUserIdentifyCodeTypeEnum type,
|
| | | @Param("identifyCode") String identifyCode);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.recommend.MaskKey; |
| | | |
| | | public interface MaskKeyMapper extends BaseMapper<MaskKey> { |
| | | |
| | | /** |
| | | * 验证内容是否存在敏感词汇 |
| | | * @param content |
| | | * @return |
| | | */ |
| | | int examineContent(@Param("content") String content); |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.recommend.MaskKey;
|
| | |
|
| | | public interface MaskKeyMapper extends BaseMapper<MaskKey> {
|
| | | |
| | | /**
|
| | | * 验证内容是否存在敏感词汇
|
| | | * @param content
|
| | | * @return
|
| | | */
|
| | | int examineContent(@Param("content") String content);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.ShamUser; |
| | | |
| | | public interface ShamUserMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(ShamUser record); |
| | | |
| | | int insertSelective(ShamUser record); |
| | | |
| | | ShamUser selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(ShamUser record); |
| | | |
| | | int updateByPrimaryKey(ShamUser record); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<ShamUser> list); |
| | | |
| | | |
| | | /** |
| | | * 批量选择更新 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int updateBatchSelective(List<ShamUser> list); |
| | | |
| | | |
| | | /** |
| | | * 根据条件查询标签 |
| | | * @return |
| | | */ |
| | | List<ShamUser> listShamUserByKey(@Param("start") long start, @Param("count") int count, @Param("key") String key); |
| | | |
| | | long countShamUserByKey(@Param("key") String key); |
| | | |
| | | |
| | | List<ShamUser> listByDistinctPicUrl(@Param("start")long start, @Param("count")int count); |
| | | |
| | | // 随机取出数据 |
| | | List<ShamUser> listRand(@Param("count") int count); |
| | | |
| | | /** |
| | | * 检出所有 |
| | | * @return |
| | | */ |
| | | List<ShamUser> listAll(); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.ShamUser;
|
| | |
|
| | | public interface ShamUserMapper {
|
| | | |
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(ShamUser record);
|
| | |
|
| | | int insertSelective(ShamUser record);
|
| | |
|
| | | ShamUser selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(ShamUser record);
|
| | |
|
| | | int updateByPrimaryKey(ShamUser record);
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<ShamUser> list);
|
| | | |
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<ShamUser> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据条件查询标签
|
| | | * @return
|
| | | */
|
| | | List<ShamUser> listShamUserByKey(@Param("start") long start, @Param("count") int count, @Param("key") String key);
|
| | | |
| | | long countShamUserByKey(@Param("key") String key);
|
| | | |
| | | |
| | | List<ShamUser> listByDistinctPicUrl(@Param("start")long start, @Param("count")int count);
|
| | | |
| | | // 随机取出数据
|
| | | List<ShamUser> listRand(@Param("count") int count);
|
| | | |
| | | /**
|
| | | * 检出所有
|
| | | * @return
|
| | | */
|
| | | List<ShamUser> listAll();
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.invite.SpreadImg; |
| | | |
| | | public interface SpreadImgMapper extends BaseMapper<SpreadImg> { |
| | | /** |
| | | * 获取所有推广图 |
| | | * |
| | | * @return |
| | | */ |
| | | List<SpreadImg> listAll(); |
| | | |
| | | |
| | | List<SpreadImg> listQuery(@Param("start") long start, @Param("count") int count, @Param("url") String url); |
| | | |
| | | |
| | | long countQuery(@Param("url") String url); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.invite.SpreadImg;
|
| | |
|
| | | public interface SpreadImgMapper extends BaseMapper<SpreadImg> {
|
| | | /**
|
| | | * 获取所有推广图
|
| | | * |
| | | * @return
|
| | | */
|
| | | List<SpreadImg> listAll();
|
| | | |
| | | |
| | | List<SpreadImg> listQuery(@Param("start") long start, @Param("count") int count, @Param("url") String url);
|
| | | |
| | | |
| | | long countQuery(@Param("url") String url);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserAccountBindingHistory; |
| | | |
| | | public interface UserAccountBindingHistoryMapper extends BaseMapper<UserAccountBindingHistory> { |
| | | |
| | | /** |
| | | * 获取最近一次的绑定记录 |
| | | * |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | UserAccountBindingHistory selectLatestByTypeAndUid(@Param("uid") Long uid, @Param("type") int type); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserAccountBindingHistory;
|
| | |
|
| | | public interface UserAccountBindingHistoryMapper extends BaseMapper<UserAccountBindingHistory> {
|
| | |
|
| | | /**
|
| | | * 获取最近一次的绑定记录
|
| | | * |
| | | * @param uid
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | UserAccountBindingHistory selectLatestByTypeAndUid(@Param("uid") Long uid, @Param("type") int type);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserActiveLog; |
| | | |
| | | public interface UserActiveLogMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserActiveLog record); |
| | | |
| | | int insertSelective(UserActiveLog record); |
| | | |
| | | UserActiveLog selectByPrimaryKey(Long id); |
| | | |
| | | UserActiveLog selectLatestByUid(Long uid); |
| | | |
| | | UserActiveLog selectFirstActiveInfo(Long uid); |
| | | |
| | | int updateByPrimaryKeySelective(UserActiveLog record); |
| | | |
| | | int updateByPrimaryKey(UserActiveLog record); |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserActiveLog;
|
| | |
|
| | | public interface UserActiveLogMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserActiveLog record);
|
| | |
|
| | | int insertSelective(UserActiveLog record);
|
| | |
|
| | | UserActiveLog selectByPrimaryKey(Long id);
|
| | |
|
| | | UserActiveLog selectLatestByUid(Long uid);
|
| | |
|
| | | UserActiveLog selectFirstActiveInfo(Long uid);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserActiveLog record);
|
| | |
|
| | | int updateByPrimaryKey(UserActiveLog record);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserComplaint; |
| | | |
| | | public interface UserComplaintMapper extends BaseMapper<UserComplaint>{ |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserComplaint;
|
| | |
|
| | | public interface UserComplaintMapper extends BaseMapper<UserComplaint>{
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserCustomSettings; |
| | | |
| | | public interface UserCustomSettingsMapper extends BaseMapper<UserCustomSettings> { |
| | | |
| | | /** |
| | | * 获取我的所有自定义设置 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserCustomSettings> getSettingsByUid(Long uid); |
| | | |
| | | /** |
| | | * 获取设置信息 |
| | | * |
| | | * @param uid |
| | | * 用户id |
| | | * @param type |
| | | * 类型 |
| | | * @return |
| | | */ |
| | | UserCustomSettings getSettingsByUidAndType(@Param("uid") Long uid, @Param("type") String type); |
| | | |
| | | List<Long> getUserID(@Param("type") String type); |
| | | |
| | | /** |
| | | * 通过用户ID,类型,状态检索 |
| | | * |
| | | * @param uidList |
| | | * @param type |
| | | * @param state |
| | | * @return |
| | | */ |
| | | List<UserCustomSettings> listByUidListAndTypeAndState(@Param("uidList") List<Long> uidList, |
| | | @Param("type") String type, @Param("state") Integer state); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserCustomSettings;
|
| | |
|
| | | public interface UserCustomSettingsMapper extends BaseMapper<UserCustomSettings> {
|
| | |
|
| | | /**
|
| | | * 获取我的所有自定义设置
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserCustomSettings> getSettingsByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 获取设置信息
|
| | | * |
| | | * @param uid
|
| | | * 用户id
|
| | | * @param type
|
| | | * 类型
|
| | | * @return
|
| | | */
|
| | | UserCustomSettings getSettingsByUidAndType(@Param("uid") Long uid, @Param("type") String type);
|
| | |
|
| | | List<Long> getUserID(@Param("type") String type);
|
| | |
|
| | | /**
|
| | | * 通过用户ID,类型,状态检索
|
| | | * |
| | | * @param uidList
|
| | | * @param type
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | List<UserCustomSettings> listByUidListAndTypeAndState(@Param("uidList") List<Long> uidList,
|
| | | @Param("type") String type, @Param("state") Integer state);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo; |
| | | |
| | | public interface UserExtraTaoBaoInfoMapper extends BaseMapper<UserExtraTaoBaoInfo> { |
| | | |
| | | /** |
| | | * 根据用户ID查询对象 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | UserExtraTaoBaoInfo selectByUid(Long uid); |
| | | |
| | | /** |
| | | * 根据淘宝UID查询 |
| | | * |
| | | * @param taoBaoUid |
| | | * @return |
| | | */ |
| | | UserExtraTaoBaoInfo selectByTaoBaoUid(String taoBaoUid); |
| | | |
| | | /** |
| | | * 清除用户ID |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | int clearUid(Long uid); |
| | | |
| | | /** |
| | | * 通过渠道ID查询 |
| | | * |
| | | * @param relationId |
| | | * @return |
| | | */ |
| | | UserExtraTaoBaoInfo selectByRelationIdWithUidNotNull(String relationId); |
| | | |
| | | /** |
| | | * 通过会员运营ID查询 |
| | | * |
| | | * @param specialId |
| | | * @return |
| | | */ |
| | | UserExtraTaoBaoInfo selectBySpecialIdWithUidNotNull(String specialId); |
| | | |
| | | /** |
| | | * 统计正在使用的该淘宝的用户 |
| | | */ |
| | | List<UserExtraTaoBaoInfo> listByTaoBaoUid(String taoBaoUid); |
| | | |
| | | |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserExtraTaoBaoInfo;
|
| | |
|
| | | public interface UserExtraTaoBaoInfoMapper extends BaseMapper<UserExtraTaoBaoInfo> {
|
| | |
|
| | | /**
|
| | | * 根据用户ID查询对象
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | UserExtraTaoBaoInfo selectByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 根据淘宝UID查询
|
| | | * |
| | | * @param taoBaoUid
|
| | | * @return
|
| | | */
|
| | | UserExtraTaoBaoInfo selectByTaoBaoUid(String taoBaoUid);
|
| | |
|
| | | /**
|
| | | * 清除用户ID
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | int clearUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 通过渠道ID查询
|
| | | * |
| | | * @param relationId
|
| | | * @return
|
| | | */
|
| | | UserExtraTaoBaoInfo selectByRelationIdWithUidNotNull(String relationId);
|
| | |
|
| | | /**
|
| | | * 通过会员运营ID查询
|
| | | * |
| | | * @param specialId
|
| | | * @return
|
| | | */
|
| | | UserExtraTaoBaoInfo selectBySpecialIdWithUidNotNull(String specialId);
|
| | | |
| | | /**
|
| | | * 统计正在使用的该淘宝的用户
|
| | | */
|
| | | List<UserExtraTaoBaoInfo> listByTaoBaoUid(String taoBaoUid);
|
| | | |
| | | |
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserGoodsStorage; |
| | | |
| | | public interface UserGoodsStorageMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserGoodsStorage record); |
| | | |
| | | int insertSelective(UserGoodsStorage record); |
| | | |
| | | UserGoodsStorage selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserGoodsStorage record); |
| | | |
| | | int updateByPrimaryKey(UserGoodsStorage record); |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 批量选择更新 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int updateBatchSelective(List<UserGoodsStorage> list); |
| | | |
| | | /** |
| | | * 查询用户对应的选品库 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserGoodsStorage> listQueryByUid(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("gooodsType") Integer gooodsType); |
| | | |
| | | long countQueryByUid(@Param("uid") Long uid, @Param("gooodsType") Integer gooodsType); |
| | | |
| | | /** |
| | | * 根据用户id、 简版商品 id(CommonGoods.id) |
| | | * @param uid 用户id |
| | | * @param cid 商品id(CommonGoods.id) |
| | | * @return |
| | | */ |
| | | UserGoodsStorage getByUidAndCid(@Param("uid") Long uid, @Param("cid") Long cid); |
| | | |
| | | |
| | | /** |
| | | * 根据主键 、uid 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByUidAndPrimaryKey(@Param("uid") Long uid, @Param("list") List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据用户id、淘宝商品 id |
| | | * @param uid 用户id |
| | | * @param auctionId 淘宝商品 id |
| | | * @return |
| | | */ |
| | | UserGoodsStorage getByUidAndAuctionId(@Param("uid") Long uid, @Param("auctionId") Long auctionId, @Param("gooodsType") Integer gooodsType); |
| | | |
| | | |
| | | /** |
| | | * 根据多个主键获取商品 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<UserGoodsStorage> listQueryByIds(List<Long> list); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserGoodsStorage;
|
| | |
|
| | | public interface UserGoodsStorageMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserGoodsStorage record);
|
| | |
|
| | | int insertSelective(UserGoodsStorage record);
|
| | |
|
| | | UserGoodsStorage selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserGoodsStorage record);
|
| | |
|
| | | int updateByPrimaryKey(UserGoodsStorage record);
|
| | | |
| | | /**
|
| | | * 根据主键批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<UserGoodsStorage> list);
|
| | | |
| | | /**
|
| | | * 查询用户对应的选品库
|
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserGoodsStorage> listQueryByUid(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("gooodsType") Integer gooodsType);
|
| | | |
| | | long countQueryByUid(@Param("uid") Long uid, @Param("gooodsType") Integer gooodsType);
|
| | | |
| | | /**
|
| | | * 根据用户id、 简版商品 id(CommonGoods.id)
|
| | | * @param uid 用户id
|
| | | * @param cid 商品id(CommonGoods.id)
|
| | | * @return
|
| | | */
|
| | | UserGoodsStorage getByUidAndCid(@Param("uid") Long uid, @Param("cid") Long cid);
|
| | | |
| | | |
| | | /**
|
| | | * 根据主键 、uid 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByUidAndPrimaryKey(@Param("uid") Long uid, @Param("list") List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户id、淘宝商品 id
|
| | | * @param uid 用户id
|
| | | * @param auctionId 淘宝商品 id
|
| | | * @return
|
| | | */
|
| | | UserGoodsStorage getByUidAndAuctionId(@Param("uid") Long uid, @Param("auctionId") Long auctionId, @Param("gooodsType") Integer gooodsType);
|
| | | |
| | | |
| | | /**
|
| | | * 根据多个主键获取商品
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<UserGoodsStorage> listQueryByIds(List<Long> list);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserInfoDeleteRecord; |
| | | |
| | | public interface UserInfoDeleteRecordMapper extends BaseMapper<UserInfoDeleteRecord> { |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfoDeleteRecord;
|
| | |
|
| | | public interface UserInfoDeleteRecordMapper extends BaseMapper<UserInfoDeleteRecord> {
|
| | |
|
| | | } |
| | |
| | | * @param days
|
| | | */
|
| | | void updateAutoExtract(@Param("days")Integer days);
|
| | | |
| | | |
| | | /**
|
| | | * 根据邀请码查询
|
| | | * @param inviteCode
|
| | | * @return
|
| | | */
|
| | | UserInfoExtra selectByInviteCode(String inviteCode);
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserInfoModifyRecord; |
| | | |
| | | public interface UserInfoModifyRecordMapper extends BaseMapper<UserInfoModifyRecord> { |
| | | |
| | | /** |
| | | * 统计修改次数 |
| | | * |
| | | * @param uid |
| | | * @param type |
| | | * 可为空则查询所有类型 |
| | | * @return |
| | | */ |
| | | long countByUid(@Param("uid") Long uid, @Param("type") String type); |
| | | |
| | | /** |
| | | * 根据修改类型与用户ID查询最近一次的修改记录 |
| | | * |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | UserInfoModifyRecord selectLatestByUidAndType(@Param("uid") Long uid, @Param("type") String type); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfoModifyRecord;
|
| | |
|
| | | public interface UserInfoModifyRecordMapper extends BaseMapper<UserInfoModifyRecord> {
|
| | |
|
| | | /**
|
| | | * 统计修改次数
|
| | | * |
| | | * @param uid
|
| | | * @param type
|
| | | * 可为空则查询所有类型
|
| | | * @return
|
| | | */
|
| | | long countByUid(@Param("uid") Long uid, @Param("type") String type);
|
| | |
|
| | | /**
|
| | | * 根据修改类型与用户ID查询最近一次的修改记录
|
| | | * |
| | | * @param uid
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | UserInfoModifyRecord selectLatestByUidAndType(@Param("uid") Long uid, @Param("type") String type);
|
| | |
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserInviteRecord; |
| | | |
| | | public interface UserInviteRecordMapper extends BaseMapper<UserInviteRecord>{ |
| | | |
| | | /** |
| | | * 获取邀请记录 |
| | | * @param inviterId 邀请人id |
| | | * @param wxUnionId 微信id |
| | | * @return |
| | | */ |
| | | UserInviteRecord getByInviterIdAndUnionid(@Param("inviterId")Long inviterId, @Param("wxUnionId")String wxUnionId); |
| | | |
| | | |
| | | /** |
| | | * 获取最新 inviterId 邀请人id |
| | | * @param wxUnionId 微信id |
| | | * @return |
| | | */ |
| | | Long getNewestInviterId(@Param("wxUnionId")String wxUnionId); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserInviteRecord;
|
| | |
|
| | | public interface UserInviteRecordMapper extends BaseMapper<UserInviteRecord>{
|
| | | |
| | | /**
|
| | | * 获取邀请记录
|
| | | * @param inviterId 邀请人id
|
| | | * @param wxUnionId 微信id
|
| | | * @return
|
| | | */
|
| | | UserInviteRecord getByInviterIdAndUnionid(@Param("inviterId")Long inviterId, @Param("wxUnionId")String wxUnionId);
|
| | | |
| | | |
| | | /**
|
| | | * 获取最新 inviterId 邀请人id
|
| | | * @param wxUnionId 微信id
|
| | | * @return
|
| | | */
|
| | | Long getNewestInviterId(@Param("wxUnionId")String wxUnionId);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserLotteryRecord; |
| | | |
| | | public interface UserLotteryRecordMapper extends BaseMapper<UserLotteryRecord>{ |
| | | |
| | | /** |
| | | * 根据用户、抽奖类型查询记录 |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | UserLotteryRecord getByTypeAndUid(@Param("uid")Long uid, @Param("type")String type); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserLotteryRecord;
|
| | |
|
| | | public interface UserLotteryRecordMapper extends BaseMapper<UserLotteryRecord>{
|
| | |
|
| | | /**
|
| | | * 根据用户、抽奖类型查询记录
|
| | | * @param uid
|
| | | * @param type
|
| | | * @return
|
| | | */
|
| | | UserLotteryRecord getByTypeAndUid(@Param("uid")Long uid, @Param("type")String type);
|
| | | |
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserRank; |
| | | |
| | | public interface UserRankMapper extends BaseMapper<UserRank> { |
| | | |
| | | List<UserRank> getAllRank(); |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserRank;
|
| | |
|
| | | public interface UserRankMapper extends BaseMapper<UserRank> {
|
| | | |
| | | List<UserRank> getAllRank();
|
| | | } |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.UserRankRecord; |
| | | |
| | | public interface UserRankRecordMapper extends BaseMapper<UserRankRecord> { |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.UserRankRecord;
|
| | |
|
| | | public interface UserRankRecordMapper extends BaseMapper<UserRankRecord> {
|
| | | |
| | | } |
New file |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user.vip; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.vip.UserVIPInfo; |
| | | |
| | | public interface UserVIPInfoMapper extends BaseMapper<UserVIPInfo> { |
| | | |
| | | |
| | | /** |
| | | * 主键查询(加锁) |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | UserVIPInfo selectByPrimaryKeyForUpdate(Long uid); |
| | | |
| | | /** |
| | | * 批量查询 |
| | | * @param uidList |
| | | * @return |
| | | */ |
| | | List<UserVIPInfo> listByUids(@Param("uidList") List<Long> uidList); |
| | | |
| | | } |
| | |
| | | @Transient
|
| | | private String taoBaoUid;// 淘宝的用户ID
|
| | |
|
| | | //是否为VIP
|
| | | @Transient
|
| | | @Expose
|
| | | private boolean vip;
|
| | | |
| | | |
| | | public boolean isVip() {
|
| | | return vip;
|
| | | }
|
| | |
|
| | | public void setVip(boolean vip) {
|
| | | this.vip = vip;
|
| | | }
|
| | |
|
| | | public String getTaoBaoUid() {
|
| | | return taoBaoUid;
|
| | | }
|
| | |
| | |
|
| | | /**
|
| | | * 用户附加信息
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Table("yeshi_ec_user_info_extra")
|
| | | public class UserInfoExtra {
|
| | |
|
| | | public static int INVITE_CODE_SATTE_VALID_NO_UPDATE = 1;// 正常-未修改过
|
| | | public static int INVITE_CODE_SATTE_VALID_UPDATED = 2;// 不正常-未修改过
|
| | |
|
| | | @Column(name = "uie_id")
|
| | | private Long id;
|
| | |
| | | @Expose
|
| | | @Column(name = "uie_uid")
|
| | | private UserInfo userInfo;
|
| | | |
| | |
|
| | | // 等级id
|
| | | @Expose
|
| | | @Column(name = "uie_rank_id")
|
| | |
| | | // 等级来源:返利、分享、邀请
|
| | | @Column(name = "uie_rank_source")
|
| | | private Integer rankSource;
|
| | | |
| | |
|
| | | // 等级判断订单数量
|
| | | @Column(name = "uie_rank_order_num")
|
| | | private Integer rankOrderNum;
|
| | | |
| | |
|
| | | // 等级更新时间
|
| | | @Expose
|
| | | @Column(name = "uie_rank_update_time")
|
| | | private Date rankUpdateTime;
|
| | | |
| | |
|
| | | // 邀请码
|
| | | @Column(name = "uie_invite_code")
|
| | | private String inviteCode;
|
| | |
| | | // 是否同步导航栏
|
| | | @Column(name = "uie_synch_navbar")
|
| | | private Boolean synchNavbar;
|
| | | |
| | |
|
| | | // 首次登录时间
|
| | | @Column(name = "uie_first_login_time")
|
| | | private Date firstLoginTime;
|
| | | |
| | | // 性别: 1-女 2-男
|
| | |
|
| | | // 性别: 1-女 2-男
|
| | | @Column(name = "uie_sex")
|
| | | private Integer sex;
|
| | | |
| | |
|
| | | // 微信号
|
| | | @Column(name = "uie_weixin")
|
| | | private String weiXin;
|
| | |
| | | // 金币数量
|
| | | @Column(name = "uie_gold_coin")
|
| | | private Integer goldCoin;
|
| | | |
| | | //是否微信自動提現
|
| | |
|
| | | // 是否微信自動提現
|
| | | @Column(name = "uie_auto_extract")
|
| | | private Boolean autoExtract;
|
| | | |
| | | //微信自动提现关闭日期
|
| | |
|
| | | // 微信自动提现关闭日期
|
| | | @Column(name = "uie_close_time_extract")
|
| | | private Date closeTimeExtract;
|
| | | |
| | | private Date closeTimeExtract;
|
| | |
|
| | | // 用户标识
|
| | | @Column(name = "uie_mark")
|
| | | private String mark;
|
| | | |
| | | private String mark;
|
| | |
|
| | | // 用户最近活跃时间
|
| | | @Column(name = "uie_active_time")
|
| | | private Date activeTime;
|
| | | |
| | | private Date activeTime;
|
| | |
|
| | | // 邀请码状态
|
| | | @Column(name = "uie_invite_code_state")
|
| | | private Integer inviteCodeState;// 0-无效 1-未修改有效 2-修改有效
|
| | |
|
| | | // 创建时间
|
| | | @Column(name = "uie_create_time")
|
| | | private Date createTime;
|
| | |
| | | // 更新时间
|
| | | @Column(name = "uie_update_time")
|
| | | private Date updateTime;
|
| | | |
| | |
|
| | | public Long getId() {
|
| | | return id;
|
| | |
| | | public void setGoldCoin(Integer goldCoin) {
|
| | | this.goldCoin = goldCoin;
|
| | | }
|
| | | |
| | |
|
| | | public Boolean getAutoExtract() {
|
| | | return autoExtract;
|
| | |
| | | public void setActiveTime(Date activeTime) {
|
| | | this.activeTime = activeTime;
|
| | | }
|
| | | |
| | |
|
| | | public Integer getInviteCodeState() {
|
| | | return inviteCodeState;
|
| | | }
|
| | |
|
| | | public void setInviteCodeState(Integer inviteCodeState) {
|
| | | this.inviteCodeState = inviteCodeState;
|
| | | }
|
| | |
|
| | | }
|
New file |
| | |
| | | package com.yeshi.fanli.entity.bus.user.vip;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | import org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.mybatis.Table;
|
| | |
|
| | | /**
|
| | | * 用户VIP
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Table("yeshi_ec_user_vip_info")
|
| | | public class UserVIPInfo {
|
| | | public final static int STATE_INVALID = 0;// 无效
|
| | | public final static int STATE_SUCCESS = 2;// 成功
|
| | | public final static int STATE_VERIFING = 1;// 正在审核
|
| | |
|
| | | @Column(name = "uvi_uid")
|
| | | private Long id;
|
| | | @Column(name = "uvi_state")
|
| | | private Integer state;
|
| | | @Column(name = "uvi_apply_time")
|
| | | private Date applyTime;
|
| | | @Column(name = "uvi_success_time")
|
| | | private Date successTime;
|
| | | @Column(name = "uvi_beizhu")
|
| | | private String beiZhu;
|
| | | @Column(name = "uvi_create_time")
|
| | | private Date createTime;
|
| | | @Column(name = "uvi_update_time")
|
| | | private Date updateTime;
|
| | |
|
| | | public Long getId() {
|
| | | return id;
|
| | | }
|
| | |
|
| | | public void setId(Long id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | | public Integer getState() {
|
| | | return state;
|
| | | }
|
| | |
|
| | | public void setState(Integer state) {
|
| | | this.state = state;
|
| | | }
|
| | |
|
| | | public Date getApplyTime() {
|
| | | return applyTime;
|
| | | }
|
| | |
|
| | | public void setApplyTime(Date applyTime) {
|
| | | this.applyTime = applyTime;
|
| | | }
|
| | |
|
| | | public Date getSuccessTime() {
|
| | | return successTime;
|
| | | }
|
| | |
|
| | | public void setSuccessTime(Date successTime) {
|
| | | this.successTime = successTime;
|
| | | }
|
| | |
|
| | | public String getBeiZhu() {
|
| | | return beiZhu;
|
| | | }
|
| | |
|
| | | public void setBeiZhu(String beiZhu) {
|
| | | this.beiZhu = beiZhu;
|
| | | }
|
| | |
|
| | | public Date getCreateTime() {
|
| | | return createTime;
|
| | | }
|
| | |
|
| | | public void setCreateTime(Date createTime) {
|
| | | this.createTime = createTime;
|
| | | }
|
| | |
|
| | | public Date getUpdateTime() {
|
| | | return updateTime;
|
| | | }
|
| | |
|
| | | public void setUpdateTime(Date updateTime) {
|
| | | this.updateTime = updateTime;
|
| | | }
|
| | | }
|
| | |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public class JDGoods implements Serializable{
|
| | | public class JDGoods implements Serializable {
|
| | | /**
|
| | | *
|
| | | */
|
| | | private static final long serialVersionUID = 1L; |
| | | private static final long serialVersionUID = 1L;
|
| | | private JDCategoryInfo categoryInfo;// 类目信息
|
| | | private Long comments;// 评论数
|
| | | private JDCommissionInfo commissionInfo;// 佣金信息
|
| | | private JDCouponInfo couponInfo;// 优惠券信息,返回内容为空说明该SKU无可用优惠券
|
| | | private List<JDCouponInfo> couponInfoList;// 优惠券信息,返回内容为空说明该SKU无可用优惠券
|
| | | private BigDecimal goodCommentsShare;// 商品好评率
|
| | | private List<String> imageList;// 图片信息
|
| | | private Long inOrderCount30Days;// 30天引单数量
|
| | |
| | | private JDPingouInfo pinGouInfo;// 拼购信息
|
| | | private Long totalCount;// 有效商品总数量
|
| | | private Integer isFreeShipping; // 是否包邮(1:是,0:否,2:自营商品遵从主站包邮规则)
|
| | | |
| | | private BigDecimal commissionPlus;// 佣金比例 : 京东plus会员 |
| | | |
| | |
|
| | | private BigDecimal commissionPlus;// 佣金比例 : 京东plus会员
|
| | |
|
| | | public JDCategoryInfo getCategoryInfo() {
|
| | | return categoryInfo;
|
| | | }
|
| | |
| | | this.commissionInfo = commissionInfo;
|
| | | }
|
| | |
|
| | | public JDCouponInfo getCouponInfo() {
|
| | | return couponInfo;
|
| | | public List<JDCouponInfo> getCouponInfoList() {
|
| | | return couponInfoList;
|
| | | }
|
| | |
|
| | | public void setCouponInfo(JDCouponInfo couponInfo) {
|
| | | this.couponInfo = couponInfo;
|
| | | public void setCouponInfoList(List<JDCouponInfo> couponInfoList) {
|
| | | this.couponInfoList = couponInfoList;
|
| | | }
|
| | |
|
| | | public BigDecimal getGoodCommentsShare() {
|
| | |
| | | package com.yeshi.fanli.exception.tlj; |
| | | |
| | | public class UserTaoLiJinOriginException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public UserTaoLiJinOriginException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public UserTaoLiJinOriginException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.tlj;
|
| | |
|
| | | public class UserTaoLiJinOriginException extends Exception {
|
| | | /**
|
| | | * |
| | | */
|
| | | private static final long serialVersionUID = 1L;
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | public UserTaoLiJinOriginException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | }
|
| | |
|
| | | public UserTaoLiJinOriginException() {
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | package com.yeshi.fanli.exception.tlj; |
| | | |
| | | public class UserTaoLiJinRecordException extends Exception { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | private int code; |
| | | private String msg; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public String getMsg() { |
| | | return msg; |
| | | } |
| | | |
| | | public UserTaoLiJinRecordException(int code, String msg) { |
| | | this.code = code; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public UserTaoLiJinRecordException() { |
| | | } |
| | | |
| | | @Override |
| | | public String getMessage() { |
| | | return this.msg; |
| | | } |
| | | |
| | | } |
| | | package com.yeshi.fanli.exception.tlj;
|
| | |
|
| | | public class UserTaoLiJinRecordException extends Exception {
|
| | | /**
|
| | | * |
| | | */
|
| | | private static final long serialVersionUID = 1L;
|
| | | private int code;
|
| | | private String msg;
|
| | |
|
| | | public int getCode() {
|
| | | return code;
|
| | | }
|
| | |
|
| | | public String getMsg() {
|
| | | return msg;
|
| | | }
|
| | |
|
| | | public UserTaoLiJinRecordException(int code, String msg) {
|
| | | this.code = code;
|
| | | this.msg = msg;
|
| | | }
|
| | |
|
| | | public UserTaoLiJinRecordException() {
|
| | | }
|
| | |
|
| | | @Override
|
| | | public String getMessage() {
|
| | | return this.msg;
|
| | | }
|
| | |
|
| | | }
|
New file |
| | |
| | | package com.yeshi.fanli.exception.user.vip;
|
| | |
|
| | | import com.yeshi.fanli.exception.BaseException;
|
| | |
|
| | | /**
|
| | | * 用户VIP信息异常
|
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public class UserVIPInfoException extends BaseException {
|
| | |
|
| | |
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | public UserVIPInfoException(int code, String msg) {
|
| | | super(code, msg);
|
| | | }
|
| | |
|
| | | public UserVIPInfoException() {
|
| | | super();
|
| | | }
|
| | | }
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.AccountMessageMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.user.AccountMessage"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="title" property="title" jdbcType="VARCHAR" /> |
| | | <result column="content" property="content" jdbcType="VARCHAR" /> |
| | | <result column="createTime" property="createTime" jdbcType="BIGINT" /> |
| | | <result column="isOpen" property="isOpen" jdbcType="BOOLEAN" /> |
| | | <result column="system_msg_id" property="systemMsgId" jdbcType="BIGINT" /> |
| | | <!-- <association property="userInfo" column="uid" resultMap="com.yeshi.fanli.entity.dao.mybatis.UserInfoMapper.BaseResultMap"/> --> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,uid,title,content,createTime,isOpen,system_msg_id</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_account_message where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="listByUidOrderByIdDesc" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_account_message where uid = #{uid,jdbcType=BIGINT} order |
| | | by id desc limit #{start},#{count} |
| | | </select> |
| | | |
| | | <select id="countByUidAndOpen" resultType="java.lang.Long"> |
| | | select |
| | | count(id) |
| | | from yeshi_ec_account_message where uid = #{uid,jdbcType=BIGINT} |
| | | <if test="open!=null"> |
| | | <if test="open==true"> |
| | | and isOpen=1 |
| | | </if> |
| | | <if test="open==false"> |
| | | and isOpen=0 |
| | | </if> |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_account_message where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_account_message |
| | | (id,uid,title,content,createTime,isOpen,system_msg_id) values |
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{createTime,jdbcType=BIGINT},#{isOpen,jdbcType=BOOLEAN},#{systemMsgId,jdbcType=BIGINT}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_account_message |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="userInfo != null">uid,</if> |
| | | <if test="title != null">title,</if> |
| | | <if test="content != null">content,</if> |
| | | <if test="createTime != null">createTime,</if> |
| | | <if test="isOpen != null">isOpen,</if> |
| | | <if test="systemMsgId != null">system_msg_id,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if> |
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if> |
| | | <if test="content != null">#{content,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=BIGINT},</if> |
| | | <if test="isOpen != null">#{isOpen,jdbcType=BOOLEAN},</if> |
| | | <if test="systemMsgId != null">#{systemMsgId,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage">update |
| | | yeshi_ec_account_message set uid = |
| | | #{userInfo.id,jdbcType=BIGINT},title = |
| | | #{title,jdbcType=VARCHAR},content = |
| | | #{content,jdbcType=VARCHAR},createTime = |
| | | #{createTime,jdbcType=BIGINT},isOpen = |
| | | #{isOpen,jdbcType=BOOLEAN},system_msg_id = |
| | | #{systemMsgId,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage"> |
| | | update yeshi_ec_account_message |
| | | <set> |
| | | <if test="userInfo != null">uid=#{userInfo.id,jdbcType=BIGINT},</if> |
| | | <if test="title != null">title=#{title,jdbcType=VARCHAR},</if> |
| | | <if test="content != null">content=#{content,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">createTime=#{createTime,jdbcType=BIGINT},</if> |
| | | <if test="isOpen != null">isOpen=#{isOpen,jdbcType=BOOLEAN},</if> |
| | | <if test="systemMsgId != null">system_msg_id=#{systemMsgId,jdbcType=BIGINT},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.AccountMessageMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.user.AccountMessage">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="title" property="title" jdbcType="VARCHAR" />
|
| | | <result column="content" property="content" jdbcType="VARCHAR" />
|
| | | <result column="createTime" property="createTime" jdbcType="BIGINT" />
|
| | | <result column="isOpen" property="isOpen" jdbcType="BOOLEAN" />
|
| | | <result column="system_msg_id" property="systemMsgId" jdbcType="BIGINT" />
|
| | | <!-- <association property="userInfo" column="uid" resultMap="com.yeshi.fanli.entity.dao.mybatis.UserInfoMapper.BaseResultMap"/> -->
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,uid,title,content,createTime,isOpen,system_msg_id</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_account_message where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="listByUidOrderByIdDesc" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_account_message where uid = #{uid,jdbcType=BIGINT} order
|
| | | by id desc limit #{start},#{count}
|
| | | </select>
|
| | |
|
| | | <select id="countByUidAndOpen" resultType="java.lang.Long">
|
| | | select
|
| | | count(id)
|
| | | from yeshi_ec_account_message where uid = #{uid,jdbcType=BIGINT}
|
| | | <if test="open!=null">
|
| | | <if test="open==true">
|
| | | and isOpen=1
|
| | | </if>
|
| | | <if test="open==false">
|
| | | and isOpen=0
|
| | | </if>
|
| | | </if>
|
| | | </select>
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_account_message where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_account_message
|
| | | (id,uid,title,content,createTime,isOpen,system_msg_id) values
|
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{createTime,jdbcType=BIGINT},#{isOpen,jdbcType=BOOLEAN},#{systemMsgId,jdbcType=BIGINT})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_account_message
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="userInfo != null">uid,</if>
|
| | | <if test="title != null">title,</if>
|
| | | <if test="content != null">content,</if>
|
| | | <if test="createTime != null">createTime,</if>
|
| | | <if test="isOpen != null">isOpen,</if>
|
| | | <if test="systemMsgId != null">system_msg_id,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if>
|
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="content != null">#{content,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=BIGINT},</if>
|
| | | <if test="isOpen != null">#{isOpen,jdbcType=BOOLEAN},</if>
|
| | | <if test="systemMsgId != null">#{systemMsgId,jdbcType=BIGINT},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage">update
|
| | | yeshi_ec_account_message set uid =
|
| | | #{userInfo.id,jdbcType=BIGINT},title =
|
| | | #{title,jdbcType=VARCHAR},content =
|
| | | #{content,jdbcType=VARCHAR},createTime =
|
| | | #{createTime,jdbcType=BIGINT},isOpen =
|
| | | #{isOpen,jdbcType=BOOLEAN},system_msg_id =
|
| | | #{systemMsgId,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.AccountMessage">
|
| | | update yeshi_ec_account_message
|
| | | <set>
|
| | | <if test="userInfo != null">uid=#{userInfo.id,jdbcType=BIGINT},</if>
|
| | | <if test="title != null">title=#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="content != null">content=#{content,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">createTime=#{createTime,jdbcType=BIGINT},</if>
|
| | | <if test="isOpen != null">isOpen=#{isOpen,jdbcType=BOOLEAN},</if>
|
| | | <if test="systemMsgId != null">system_msg_id=#{systemMsgId,jdbcType=BIGINT},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.AdminUserMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.common.AdminUser"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="account" property="account" jdbcType="VARCHAR" /> |
| | | <result column="pwd" property="pwd" jdbcType="VARCHAR" /> |
| | | <result column="createtime" property="createtime" jdbcType="VARCHAR" /> |
| | | <result column="authority" property="authority" jdbcType="INTEGER" /> |
| | | <result column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="email" property="email" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,`name`,`account`,`pwd`,createtime,authority,`email`</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_adminuser where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_adminuser where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.common.AdminUser" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_adminuser |
| | | (id,`name`,`account`,`pwd`,createtime,authority,`email`) values |
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{account,jdbcType=VARCHAR}, |
| | | #{pwd,jdbcType=VARCHAR},#{createtime,jdbcType=VARCHAR},#{authority,jdbcType=INTEGER},#{email,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.common.AdminUser" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_adminuser |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">`name`,</if> |
| | | <if test="account != null">`account`,</if> |
| | | <if test="pwd != null">`pwd`,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | <if test="authority != null">authority,</if> |
| | | <if test="email != null">`email`,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="account != null">#{account,jdbcType=VARCHAR},</if> |
| | | <if test="pwd != null">#{pwd,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=VARCHAR},</if> |
| | | <if test="authority != null">#{authority,jdbcType=INTEGER},</if> |
| | | <if test="email != null">#{email,jdbcType=VARCHAR}</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.common.AdminUser">update |
| | | yeshi_ec_adminuser set `name` = #{name,jdbcType=VARCHAR},`account` = |
| | | #{account,jdbcType=VARCHAR}, `pwd` = #{pwd,jdbcType=VARCHAR},createtime |
| | | = #{createtime,jdbcType=VARCHAR}, authority = |
| | | #{authority,jdbcType=INTEGER} ,`email` =#{email,jdbcType=VARCHAR} where |
| | | id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.common.AdminUser"> |
| | | update yeshi_ec_adminuser |
| | | <set> |
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="account != null">`account`=#{account,jdbcType=VARCHAR},</if> |
| | | <if test="pwd != null">`pwd`=#{pwd,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=VARCHAR},</if> |
| | | <if test="authority != null">authority=#{authority,jdbcType=INTEGER},</if> |
| | | <if test="id !=null">id =#{id,jdbcType=BIGINT},</if> |
| | | <if test="email !=null">`email` =#{email,jdbcType=VARCHAR},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="getByAccountAndPwd" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_adminuser u |
| | | WHERE u.`account` = #{account} AND u.`pwd`= #{pwd} |
| | | LIMIT 1 |
| | | </select> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.AdminUserMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.common.AdminUser">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="name" property="name" jdbcType="VARCHAR" />
|
| | | <result column="account" property="account" jdbcType="VARCHAR" />
|
| | | <result column="pwd" property="pwd" jdbcType="VARCHAR" />
|
| | | <result column="createtime" property="createtime" jdbcType="VARCHAR" />
|
| | | <result column="authority" property="authority" jdbcType="INTEGER" />
|
| | | <result column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="email" property="email" jdbcType="VARCHAR" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,`name`,`account`,`pwd`,createtime,authority,`email`</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_adminuser where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_adminuser where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.common.AdminUser"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_adminuser
|
| | | (id,`name`,`account`,`pwd`,createtime,authority,`email`) values
|
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{account,jdbcType=VARCHAR},
|
| | | #{pwd,jdbcType=VARCHAR},#{createtime,jdbcType=VARCHAR},#{authority,jdbcType=INTEGER},#{email,jdbcType=VARCHAR})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.common.AdminUser"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_adminuser
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="name != null">`name`,</if>
|
| | | <if test="account != null">`account`,</if>
|
| | | <if test="pwd != null">`pwd`,</if>
|
| | | <if test="createtime != null">createtime,</if>
|
| | | <if test="authority != null">authority,</if>
|
| | | <if test="email != null">`email`,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="account != null">#{account,jdbcType=VARCHAR},</if>
|
| | | <if test="pwd != null">#{pwd,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=VARCHAR},</if>
|
| | | <if test="authority != null">#{authority,jdbcType=INTEGER},</if>
|
| | | <if test="email != null">#{email,jdbcType=VARCHAR}</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.common.AdminUser">update
|
| | | yeshi_ec_adminuser set `name` = #{name,jdbcType=VARCHAR},`account` =
|
| | | #{account,jdbcType=VARCHAR}, `pwd` = #{pwd,jdbcType=VARCHAR},createtime
|
| | | = #{createtime,jdbcType=VARCHAR}, authority =
|
| | | #{authority,jdbcType=INTEGER} ,`email` =#{email,jdbcType=VARCHAR} where
|
| | | id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.common.AdminUser">
|
| | | update yeshi_ec_adminuser
|
| | | <set>
|
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="account != null">`account`=#{account,jdbcType=VARCHAR},</if>
|
| | | <if test="pwd != null">`pwd`=#{pwd,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=VARCHAR},</if>
|
| | | <if test="authority != null">authority=#{authority,jdbcType=INTEGER},</if>
|
| | | <if test="id !=null">id =#{id,jdbcType=BIGINT},</if>
|
| | | <if test="email !=null">`email` =#{email,jdbcType=VARCHAR},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="getByAccountAndPwd" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_adminuser u |
| | | WHERE u.`account` = #{account} AND u.`pwd`= #{pwd}
|
| | | LIMIT 1
|
| | | </select>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper |
| | | namespace="com.yeshi.fanli.dao.mybatis.AlipayAccountValidNormalHistoryMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory"> |
| | | <id column="avnh_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="avnh_uid" property="uid" jdbcType="BIGINT" /> |
| | | <result column="avnh_account" property="account" jdbcType="VARCHAR" /> |
| | | <result column="avnh_name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="avnh_state" property="state" jdbcType="INTEGER" /> |
| | | <result column="avnh_createtime" property="createTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">avnh_id,avnh_uid,avnh_account,avnh_name,avnh_state,avnh_createtime |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_alipayaccount_valid_normal_history where avnh_id = |
| | | #{id,jdbcType=BIGINT} order by avnh_createtime desc limit 1 |
| | | </select> |
| | | |
| | | |
| | | <select id="selectLatestByUid" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_alipayaccount_valid_normal_history where avnh_uid = |
| | | #{0} order by avnh_createtime desc limit 1 for update |
| | | </select> |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_alipayaccount_valid_normal_history where avnh_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" |
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_alipayaccount_valid_normal_history |
| | | (avnh_id,avnh_uid,avnh_account,avnh_name,avnh_state,avnh_createtime) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{uid,jdbcType=BIGINT},#{account,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{state,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_alipayaccount_valid_normal_history |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">avnh_id,</if> |
| | | <if test="uid != null">avnh_uid,</if> |
| | | <if test="account != null">avnh_account,</if> |
| | | <if test="name != null">avnh_name,</if> |
| | | <if test="state != null">avnh_state,</if> |
| | | <if test="createTime != null">avnh_createtime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="uid != null">#{uid,jdbcType=BIGINT},</if> |
| | | <if test="account != null">#{account,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory">update yeshi_ec_alipayaccount_valid_normal_history set |
| | | avnh_uid = #{uid,jdbcType=BIGINT},avnh_account = |
| | | #{account,jdbcType=VARCHAR},avnh_name = |
| | | #{name,jdbcType=VARCHAR},avnh_state = |
| | | #{state,jdbcType=INTEGER},avnh_createtime = |
| | | #{createTime,jdbcType=TIMESTAMP} where avnh_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory"> |
| | | update yeshi_ec_alipayaccount_valid_normal_history |
| | | <set> |
| | | <if test="uid != null">avnh_uid=#{uid,jdbcType=BIGINT},</if> |
| | | <if test="account != null">avnh_account=#{account,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">avnh_name=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">avnh_state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">avnh_createtime=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where avnh_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper
|
| | | namespace="com.yeshi.fanli.dao.mybatis.AlipayAccountValidNormalHistoryMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory">
|
| | | <id column="avnh_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="avnh_uid" property="uid" jdbcType="BIGINT" />
|
| | | <result column="avnh_account" property="account" jdbcType="VARCHAR" />
|
| | | <result column="avnh_name" property="name" jdbcType="VARCHAR" />
|
| | | <result column="avnh_state" property="state" jdbcType="INTEGER" />
|
| | | <result column="avnh_createtime" property="createTime"
|
| | | jdbcType="TIMESTAMP" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">avnh_id,avnh_uid,avnh_account,avnh_name,avnh_state,avnh_createtime
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_alipayaccount_valid_normal_history where avnh_id =
|
| | | #{id,jdbcType=BIGINT} order by avnh_createtime desc limit 1
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectLatestByUid" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_alipayaccount_valid_normal_history where avnh_uid =
|
| | | #{0} order by avnh_createtime desc limit 1 for update
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_alipayaccount_valid_normal_history where avnh_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert"
|
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_alipayaccount_valid_normal_history
|
| | | (avnh_id,avnh_uid,avnh_account,avnh_name,avnh_state,avnh_createtime)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{uid,jdbcType=BIGINT},#{account,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{state,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_alipayaccount_valid_normal_history
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">avnh_id,</if>
|
| | | <if test="uid != null">avnh_uid,</if>
|
| | | <if test="account != null">avnh_account,</if>
|
| | | <if test="name != null">avnh_name,</if>
|
| | | <if test="state != null">avnh_state,</if>
|
| | | <if test="createTime != null">avnh_createtime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="uid != null">#{uid,jdbcType=BIGINT},</if>
|
| | | <if test="account != null">#{account,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey"
|
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory">update yeshi_ec_alipayaccount_valid_normal_history set
|
| | | avnh_uid = #{uid,jdbcType=BIGINT},avnh_account =
|
| | | #{account,jdbcType=VARCHAR},avnh_name =
|
| | | #{name,jdbcType=VARCHAR},avnh_state =
|
| | | #{state,jdbcType=INTEGER},avnh_createtime =
|
| | | #{createTime,jdbcType=TIMESTAMP} where avnh_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.user.AlipayAccountValidNormalHistory">
|
| | | update yeshi_ec_alipayaccount_valid_normal_history
|
| | | <set>
|
| | | <if test="uid != null">avnh_uid=#{uid,jdbcType=BIGINT},</if>
|
| | | <if test="account != null">avnh_account=#{account,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">avnh_name=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="state != null">avnh_state=#{state,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">avnh_createtime=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where avnh_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.AppVersionInfoMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.AppVersionInfo"> |
| | | <id column="avcm_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="avcm_platform" property="platform" jdbcType="VARCHAR" /> |
| | | <result column="avcm_version" property="version" jdbcType="VARCHAR" /> |
| | | <result column="avcm_version_code" property="versionCode" |
| | | jdbcType="INTEGER" /> |
| | | <result column="avcm_createtime" property="createTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <result column="avcm_updatetime" property="updateTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByPlatform" resultMap="BaseResultMap" |
| | | parameterType="java.lang.String"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{0} |
| | | </select> |
| | | |
| | | <select id="selectByPlatformAndVersion" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and avcm_version=#{version} |
| | | </select> |
| | | |
| | | <select id="selectByPlatformAndVersionCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and avcm_version_code=#{versionCode} |
| | | </select> |
| | | |
| | | <select id="listByPlatformAndMinVersionCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and avcm_version_code>=#{minVersionCode} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="listByPlatformAndMaxVersionCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_app_version_code_map where avcm_platform = |
| | | #{platform} |
| | | and #{maxVersionCode}> avcm_version_code |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_app_version_code_map where avcm_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.AppVersionInfo" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_app_version_code_map |
| | | (avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{platform,jdbcType=VARCHAR},#{version,jdbcType=VARCHAR},#{versionCode,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_app_version_code_map |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">avcm_id,</if> |
| | | <if test="platform != null">avcm_platform,</if> |
| | | <if test="version != null">avcm_version,</if> |
| | | <if test="versionCode != null">avcm_version_code,</if> |
| | | <if test="createTime != null">avcm_createtime,</if> |
| | | <if test="updateTime != null">avcm_updatetime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="platform != null">#{platform,jdbcType=VARCHAR},</if> |
| | | <if test="version != null">#{version,jdbcType=VARCHAR},</if> |
| | | <if test="versionCode != null">#{versionCode,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.AppVersionInfo">update |
| | | yeshi_ec_app_version_code_map set avcm_platform = |
| | | #{platform,jdbcType=VARCHAR},avcm_version = |
| | | #{version,jdbcType=VARCHAR},avcm_version_code = |
| | | #{versionCode,jdbcType=INTEGER},avcm_createtime = |
| | | #{createTime,jdbcType=TIMESTAMP},avcm_updatetime = |
| | | #{updateTime,jdbcType=TIMESTAMP} where avcm_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo"> |
| | | update yeshi_ec_app_version_code_map |
| | | <set> |
| | | <if test="platform != null">avcm_platform=#{platform,jdbcType=VARCHAR},</if> |
| | | <if test="version != null">avcm_version=#{version,jdbcType=VARCHAR},</if> |
| | | <if test="versionCode != null">avcm_version_code=#{versionCode,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">avcm_createtime=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">avcm_updatetime=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where avcm_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.AppVersionInfoMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.AppVersionInfo">
|
| | | <id column="avcm_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="avcm_platform" property="platform" jdbcType="VARCHAR" />
|
| | | <result column="avcm_version" property="version" jdbcType="VARCHAR" />
|
| | | <result column="avcm_version_code" property="versionCode"
|
| | | jdbcType="INTEGER" />
|
| | | <result column="avcm_createtime" property="createTime"
|
| | | jdbcType="TIMESTAMP" />
|
| | | <result column="avcm_updatetime" property="updateTime"
|
| | | jdbcType="TIMESTAMP" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectByPlatform" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.String">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{0}
|
| | | </select>
|
| | |
|
| | | <select id="selectByPlatformAndVersion" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and avcm_version=#{version}
|
| | | </select>
|
| | |
|
| | | <select id="selectByPlatformAndVersionCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and avcm_version_code=#{versionCode}
|
| | | </select>
|
| | |
|
| | | <select id="listByPlatformAndMinVersionCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and avcm_version_code>=#{minVersionCode}
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | | <select id="listByPlatformAndMaxVersionCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_app_version_code_map where avcm_platform =
|
| | | #{platform}
|
| | | and #{maxVersionCode}> avcm_version_code
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_app_version_code_map where avcm_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.AppVersionInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_app_version_code_map
|
| | | (avcm_id,avcm_platform,avcm_version,avcm_version_code,avcm_createtime,avcm_updatetime)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{platform,jdbcType=VARCHAR},#{version,jdbcType=VARCHAR},#{versionCode,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_app_version_code_map
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">avcm_id,</if>
|
| | | <if test="platform != null">avcm_platform,</if>
|
| | | <if test="version != null">avcm_version,</if>
|
| | | <if test="versionCode != null">avcm_version_code,</if>
|
| | | <if test="createTime != null">avcm_createtime,</if>
|
| | | <if test="updateTime != null">avcm_updatetime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="platform != null">#{platform,jdbcType=VARCHAR},</if>
|
| | | <if test="version != null">#{version,jdbcType=VARCHAR},</if>
|
| | | <if test="versionCode != null">#{versionCode,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.AppVersionInfo">update
|
| | | yeshi_ec_app_version_code_map set avcm_platform =
|
| | | #{platform,jdbcType=VARCHAR},avcm_version =
|
| | | #{version,jdbcType=VARCHAR},avcm_version_code =
|
| | | #{versionCode,jdbcType=INTEGER},avcm_createtime =
|
| | | #{createTime,jdbcType=TIMESTAMP},avcm_updatetime =
|
| | | #{updateTime,jdbcType=TIMESTAMP} where avcm_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.AppVersionInfo">
|
| | | update yeshi_ec_app_version_code_map
|
| | | <set>
|
| | | <if test="platform != null">avcm_platform=#{platform,jdbcType=VARCHAR},</if>
|
| | | <if test="version != null">avcm_version=#{version,jdbcType=VARCHAR},</if>
|
| | | <if test="versionCode != null">avcm_version_code=#{versionCode,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">avcm_createtime=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">avcm_updatetime=#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where avcm_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.BindingAccountMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.user.BindingAccount"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="account" property="account" jdbcType="VARCHAR" /> |
| | | <result column="type" property="type" jdbcType="INTEGER" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <association property="userInfo" column="uid" |
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> |
| | | <id column="uid" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,uid,account,type,name</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_binding_account where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByUid" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_binding_account where uid = #{0} |
| | | </select> |
| | | |
| | | <select id="selectByUidAndType" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_binding_account where uid = #{uid} and `type`=#{type} |
| | | limit 1 |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByAccount" resultMap="BaseResultMap" |
| | | parameterType="java.lang.String"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_binding_account where `account`=#{0} |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_binding_account where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_binding_account (id,uid,account,type,name) values |
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{account,jdbcType=VARCHAR},#{type,jdbcType=INTEGER},#{name,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_binding_account |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="userInfo != null">uid,</if> |
| | | <if test="account != null">account,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="name != null">name,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if> |
| | | <if test="account != null">#{account,jdbcType=VARCHAR},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount">update |
| | | yeshi_ec_binding_account set uid = |
| | | #{userInfo.id,jdbcType=BIGINT},account = |
| | | #{account,jdbcType=VARCHAR},type = #{type,jdbcType=INTEGER},name = |
| | | #{name,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount"> |
| | | update yeshi_ec_binding_account |
| | | <set> |
| | | <if test="userInfo != null">uid=#{userInfo.id,jdbcType=BIGINT},</if> |
| | | <if test="account != null">account=#{account,jdbcType=VARCHAR},</if> |
| | | <if test="type != null">type=#{type,jdbcType=INTEGER},</if> |
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.BindingAccountMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.user.BindingAccount">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="account" property="account" jdbcType="VARCHAR" />
|
| | | <result column="type" property="type" jdbcType="INTEGER" />
|
| | | <result column="name" property="name" jdbcType="VARCHAR" />
|
| | | <association property="userInfo" column="uid"
|
| | | javaType="com.yeshi.fanli.entity.bus.user.UserInfo">
|
| | | <id column="uid" property="id" jdbcType="BIGINT" />
|
| | | </association>
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,uid,account,type,name</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_binding_account where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectByUid" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_binding_account where uid = #{0}
|
| | | </select>
|
| | |
|
| | | <select id="selectByUidAndType" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_binding_account where uid = #{uid} and `type`=#{type}
|
| | | limit 1
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectByAccount" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.String">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_binding_account where `account`=#{0}
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_binding_account where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_binding_account (id,uid,account,type,name) values
|
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{account,jdbcType=VARCHAR},#{type,jdbcType=INTEGER},#{name,jdbcType=VARCHAR})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_binding_account
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="userInfo != null">uid,</if>
|
| | | <if test="account != null">account,</if>
|
| | | <if test="type != null">type,</if>
|
| | | <if test="name != null">name,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if>
|
| | | <if test="account != null">#{account,jdbcType=VARCHAR},</if>
|
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount">update
|
| | | yeshi_ec_binding_account set uid =
|
| | | #{userInfo.id,jdbcType=BIGINT},account =
|
| | | #{account,jdbcType=VARCHAR},type = #{type,jdbcType=INTEGER},name =
|
| | | #{name,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.BindingAccount">
|
| | | update yeshi_ec_binding_account
|
| | | <set>
|
| | | <if test="userInfo != null">uid=#{userInfo.id,jdbcType=BIGINT},</if>
|
| | | <if test="account != null">account=#{account,jdbcType=VARCHAR},</if>
|
| | | <if test="type != null">type=#{type,jdbcType=INTEGER},</if>
|
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.BusinessSystemMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.BusinessSystem"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="platform" property="platform" jdbcType="INTEGER" /> |
| | | <result column="createtime" property="createtime" jdbcType="BIGINT" /> |
| | | <result column="beizhu" property="beizhu" jdbcType="VARCHAR" /> |
| | | <result column="package_name" property="packageName" jdbcType="VARCHAR" /> |
| | | <result column="appid" property="appid" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,name,platform,createtime,beizhu,package_name,appid</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_system where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="listAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_system |
| | | </select> |
| | | |
| | | |
| | | <select id="listByPlatformAndPackage" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_system where platform=#{platform} and |
| | | package_name=#{packageName} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_system where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.BusinessSystem" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_system |
| | | (id,name,platform,createtime,beizhu,package_name,appid) values |
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{platform,jdbcType=INTEGER},#{createtime,jdbcType=BIGINT},#{beizhu,jdbcType=VARCHAR},#{packageName,jdbcType=VARCHAR},#{appid,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.BusinessSystem" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_system |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="platform != null">platform,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | <if test="beizhu != null">beizhu,</if> |
| | | <if test="packageName != null">package_name,</if> |
| | | <if test="appid != null">appid,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="platform != null">#{platform,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=BIGINT},</if> |
| | | <if test="beizhu != null">#{beizhu,jdbcType=VARCHAR},</if> |
| | | <if test="packageName != null">#{packageName,jdbcType=VARCHAR},</if> |
| | | <if test="appid != null">#{appid,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.BusinessSystem">update |
| | | yeshi_ec_system set name = #{name,jdbcType=VARCHAR},platform = |
| | | #{platform,jdbcType=INTEGER},createtime = |
| | | #{createtime,jdbcType=BIGINT},beizhu = |
| | | #{beizhu,jdbcType=VARCHAR},package_name = |
| | | #{packageName,jdbcType=VARCHAR},appid = #{appid,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.BusinessSystem"> |
| | | update yeshi_ec_system |
| | | <set> |
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="platform != null">platform=#{platform,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=BIGINT},</if> |
| | | <if test="beizhu != null">beizhu=#{beizhu,jdbcType=VARCHAR},</if> |
| | | <if test="packageName != null">package_name=#{packageName,jdbcType=VARCHAR},</if> |
| | | <if test="appid != null">appid=#{appid,jdbcType=VARCHAR},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.BusinessSystemMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.BusinessSystem">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="name" property="name" jdbcType="VARCHAR" />
|
| | | <result column="platform" property="platform" jdbcType="INTEGER" />
|
| | | <result column="createtime" property="createtime" jdbcType="BIGINT" />
|
| | | <result column="beizhu" property="beizhu" jdbcType="VARCHAR" />
|
| | | <result column="package_name" property="packageName" jdbcType="VARCHAR" />
|
| | | <result column="appid" property="appid" jdbcType="VARCHAR" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,name,platform,createtime,beizhu,package_name,appid</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_system where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="listAll" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_system
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="listByPlatformAndPackage" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_system where platform=#{platform} and
|
| | | package_name=#{packageName}
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_system where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.BusinessSystem"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_system
|
| | | (id,name,platform,createtime,beizhu,package_name,appid) values
|
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{platform,jdbcType=INTEGER},#{createtime,jdbcType=BIGINT},#{beizhu,jdbcType=VARCHAR},#{packageName,jdbcType=VARCHAR},#{appid,jdbcType=VARCHAR})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.BusinessSystem"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_system
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="name != null">name,</if>
|
| | | <if test="platform != null">platform,</if>
|
| | | <if test="createtime != null">createtime,</if>
|
| | | <if test="beizhu != null">beizhu,</if>
|
| | | <if test="packageName != null">package_name,</if>
|
| | | <if test="appid != null">appid,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="platform != null">#{platform,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=BIGINT},</if>
|
| | | <if test="beizhu != null">#{beizhu,jdbcType=VARCHAR},</if>
|
| | | <if test="packageName != null">#{packageName,jdbcType=VARCHAR},</if>
|
| | | <if test="appid != null">#{appid,jdbcType=VARCHAR},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.BusinessSystem">update
|
| | | yeshi_ec_system set name = #{name,jdbcType=VARCHAR},platform =
|
| | | #{platform,jdbcType=INTEGER},createtime =
|
| | | #{createtime,jdbcType=BIGINT},beizhu =
|
| | | #{beizhu,jdbcType=VARCHAR},package_name =
|
| | | #{packageName,jdbcType=VARCHAR},appid = #{appid,jdbcType=VARCHAR}
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.BusinessSystem">
|
| | | update yeshi_ec_system
|
| | | <set>
|
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="platform != null">platform=#{platform,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=BIGINT},</if>
|
| | | <if test="beizhu != null">beizhu=#{beizhu,jdbcType=VARCHAR},</if>
|
| | | <if test="packageName != null">package_name=#{packageName,jdbcType=VARCHAR},</if>
|
| | | <if test="appid != null">appid=#{appid,jdbcType=VARCHAR},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ConfigMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.common.Config"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="`key`" property="key" jdbcType="VARCHAR" /> |
| | | <result column="`value`" property="value" jdbcType="VARCHAR" /> |
| | | <result column="`name`" property="name" jdbcType="VARCHAR" /> |
| | | <result column="beizhu" property="beizhu" jdbcType="VARCHAR" /> |
| | | <result column="createtime" property="createtime" jdbcType="VARCHAR" /> |
| | | <result column="min_android_version" property="minAndroidVersionCode" |
| | | jdbcType="INTEGER" /> |
| | | <result column="min_ios_version" property="minIosVersionCode" |
| | | jdbcType="INTEGER" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">`id`,`key`,`value`,`name`,beizhu,createtime,min_android_version,min_ios_version |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_config where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectByKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.String"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_config where `key` = #{0} limit 1 |
| | | </select> |
| | | <select id="listAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_config |
| | | </select> |
| | | <select id="listSearchByName" resultMap="BaseResultMap" |
| | | parameterType="java.lang.String"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_config where `name` like '%${key}%' limit |
| | | #{start},#{count} |
| | | </select> |
| | | <select id="countSearchByName" resultType="java.lang.Long" |
| | | parameterType="java.lang.String">select count(*) from yeshi_ec_config where `name` like |
| | | '%${key}%'</select> |
| | | |
| | | <select id="listByKey" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_config where `key`=#{key} |
| | | <if test="minAndroidVersion!=null"> |
| | | and #{minAndroidVersion} >= min_android_version |
| | | order by min_android_version desc |
| | | </if> |
| | | <if test="minIosVersion!=null"> |
| | | and #{minIosVersion} >= min_ios_version |
| | | order by min_ios_version desc |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_config where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.common.Config" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_config |
| | | (id,key,value,name,beizhu,createtime,min_android_version,min_ios_version) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{value,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{beizhu,jdbcType=VARCHAR},#{createtime,jdbcType=VARCHAR},#{minAndroidVersionCode,jdbcType=INTEGER},#{minIosVersionCode,jdbcType=INTEGER}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.common.Config" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_config |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="key != null">`key`,</if> |
| | | <if test="value != null">`value`,</if> |
| | | <if test="name != null">`name`,</if> |
| | | <if test="beizhu != null">beizhu,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | <if test="minAndroidVersionCode != null">min_android_version,</if> |
| | | <if test="minIosVersionCode != null">min_ios_version,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="beizhu != null">#{beizhu,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=VARCHAR},</if> |
| | | <if test="minAndroidVersionCode != null">#{minAndroidVersionCode,jdbcType=INTEGER},</if> |
| | | <if test="minIosVersionCode != null">#{minIosVersionCode,jdbcType=INTEGER}</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.common.Config">update |
| | | yeshi_ec_config set `key` = #{key,jdbcType=VARCHAR},`value` = |
| | | #{value,jdbcType=VARCHAR},`name` = #{name,jdbcType=VARCHAR},beizhu = |
| | | #{beizhu,jdbcType=VARCHAR},createtime = #{createtime,jdbcType=VARCHAR} |
| | | ,min_android_version =#{minAndroidVersionCode,jdbcType=INTEGER} |
| | | ,min_ios_version =#{minIosVersionCode,jdbcType=INTEGER} where id = |
| | | #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.common.Config"> |
| | | update yeshi_ec_config |
| | | <set> |
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">`value`=#{value,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="beizhu != null">beizhu=#{beizhu,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=VARCHAR},</if> |
| | | <if test="minAndroidVersionCode !=null">min_android_version |
| | | =#{minAndroidVersionCode,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="minIosVersionCode !=null">min_ios_version =#{minIosVersionCode,jdbcType=INTEGER}, |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ConfigMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.common.Config">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="`key`" property="key" jdbcType="VARCHAR" />
|
| | | <result column="`value`" property="value" jdbcType="VARCHAR" />
|
| | | <result column="`name`" property="name" jdbcType="VARCHAR" />
|
| | | <result column="beizhu" property="beizhu" jdbcType="VARCHAR" />
|
| | | <result column="createtime" property="createtime" jdbcType="VARCHAR" />
|
| | | <result column="min_android_version" property="minAndroidVersionCode"
|
| | | jdbcType="INTEGER" />
|
| | | <result column="min_ios_version" property="minIosVersionCode"
|
| | | jdbcType="INTEGER" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">`id`,`key`,`value`,`name`,beizhu,createtime,min_android_version,min_ios_version
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_config where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <select id="selectByKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.String">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_config where `key` = #{0} limit 1
|
| | | </select>
|
| | | <select id="listAll" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_config
|
| | | </select>
|
| | | <select id="listSearchByName" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.String">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_config where `name` like '%${key}%' limit
|
| | | #{start},#{count}
|
| | | </select>
|
| | | <select id="countSearchByName" resultType="java.lang.Long"
|
| | | parameterType="java.lang.String">select count(*) from yeshi_ec_config where `name` like
|
| | | '%${key}%'</select>
|
| | |
|
| | | <select id="listByKey" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_config where `key`=#{key}
|
| | | <if test="minAndroidVersion!=null">
|
| | | and #{minAndroidVersion} >= min_android_version
|
| | | order by min_android_version desc
|
| | | </if>
|
| | | <if test="minIosVersion!=null">
|
| | | and #{minIosVersion} >= min_ios_version
|
| | | order by min_ios_version desc
|
| | | </if>
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_config where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.common.Config"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_config
|
| | | (id,key,value,name,beizhu,createtime,min_android_version,min_ios_version)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{value,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{beizhu,jdbcType=VARCHAR},#{createtime,jdbcType=VARCHAR},#{minAndroidVersionCode,jdbcType=INTEGER},#{minIosVersionCode,jdbcType=INTEGER})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.common.Config"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_config
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="key != null">`key`,</if>
|
| | | <if test="value != null">`value`,</if>
|
| | | <if test="name != null">`name`,</if>
|
| | | <if test="beizhu != null">beizhu,</if>
|
| | | <if test="createtime != null">createtime,</if>
|
| | | <if test="minAndroidVersionCode != null">min_android_version,</if>
|
| | | <if test="minIosVersionCode != null">min_ios_version,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="beizhu != null">#{beizhu,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=VARCHAR},</if>
|
| | | <if test="minAndroidVersionCode != null">#{minAndroidVersionCode,jdbcType=INTEGER},</if>
|
| | | <if test="minIosVersionCode != null">#{minIosVersionCode,jdbcType=INTEGER}</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.common.Config">update
|
| | | yeshi_ec_config set `key` = #{key,jdbcType=VARCHAR},`value` =
|
| | | #{value,jdbcType=VARCHAR},`name` = #{name,jdbcType=VARCHAR},beizhu =
|
| | | #{beizhu,jdbcType=VARCHAR},createtime = #{createtime,jdbcType=VARCHAR}
|
| | | ,min_android_version =#{minAndroidVersionCode,jdbcType=INTEGER}
|
| | | ,min_ios_version =#{minIosVersionCode,jdbcType=INTEGER} where id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.common.Config">
|
| | | update yeshi_ec_config
|
| | | <set>
|
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">`value`=#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="beizhu != null">beizhu=#{beizhu,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=VARCHAR},</if>
|
| | | <if test="minAndroidVersionCode !=null">min_android_version
|
| | | =#{minAndroidVersionCode,jdbcType=INTEGER},
|
| | | </if>
|
| | | <if test="minIosVersionCode !=null">min_ios_version =#{minIosVersionCode,jdbcType=INTEGER},
|
| | | </if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.CustomerContentMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.CustomerContent"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="cn_id" property="cnId" jdbcType="BIGINT"/> |
| | | <result column="title" property="title" jdbcType="VARCHAR"/> |
| | | <result column="content" property="content" jdbcType="VARCHAR"/> |
| | | <result column="createTime" property="createTime" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,cn_id,title,content,createTime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_customer_content where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_customer_content where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.CustomerContent" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_content (id,cn_id,title,content,createTime) values (#{id,jdbcType=BIGINT},#{cnId,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.CustomerContent" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_content |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="cnId != null">cn_id,</if> |
| | | <if test="title != null">title,</if> |
| | | <if test="content != null">content,</if> |
| | | <if test="createTime != null">createTime,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="cnId != null">#{cnId,jdbcType=BIGINT},</if> |
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if> |
| | | <if test="content != null">#{content,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.CustomerContent">update yeshi_ec_customer_content set cn_id = #{cnId,jdbcType=BIGINT},title = #{title,jdbcType=VARCHAR},content = #{content,jdbcType=VARCHAR},createTime = #{createTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.CustomerContent">update yeshi_ec_customer_content |
| | | <set> |
| | | <if test="cnId != null">cn_id=#{cnId,jdbcType=BIGINT},</if> |
| | | <if test="title != null">title=#{title,jdbcType=VARCHAR},</if> |
| | | <if test="content != null">content=#{content,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">createTime=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </set> where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listByCnidAndTitle" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_customer_content t |
| | | WHERE t.`cn_id` = #{cnid} AND t.`title` LIKE '%${key}%' |
| | | ORDER BY t.`createTime` ASC |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | | <select id="contactCustomerService" resultMap="BaseResultMap"> |
| | | <!-- 查询联系客服信息 --> |
| | | SELECT yecc.`content` FROM `yeshi_ec_customer_content` yecc |
| | | WHERE yecc.`title` = #{title} |
| | | </select> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.CustomerContentMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.CustomerContent">
|
| | | <id column="id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="cn_id" property="cnId" jdbcType="BIGINT"/>
|
| | | <result column="title" property="title" jdbcType="VARCHAR"/>
|
| | | <result column="content" property="content" jdbcType="VARCHAR"/>
|
| | | <result column="createTime" property="createTime" jdbcType="TIMESTAMP"/>
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,cn_id,title,content,createTime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_customer_content where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_customer_content where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.CustomerContent" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_content (id,cn_id,title,content,createTime) values (#{id,jdbcType=BIGINT},#{cnId,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.CustomerContent" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_content
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="cnId != null">cn_id,</if>
|
| | | <if test="title != null">title,</if>
|
| | | <if test="content != null">content,</if>
|
| | | <if test="createTime != null">createTime,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="cnId != null">#{cnId,jdbcType=BIGINT},</if>
|
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="content != null">#{content,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.CustomerContent">update yeshi_ec_customer_content set cn_id = #{cnId,jdbcType=BIGINT},title = #{title,jdbcType=VARCHAR},content = #{content,jdbcType=VARCHAR},createTime = #{createTime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.CustomerContent">update yeshi_ec_customer_content
|
| | | <set>
|
| | | <if test="cnId != null">cn_id=#{cnId,jdbcType=BIGINT},</if>
|
| | | <if test="title != null">title=#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="content != null">content=#{content,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">createTime=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </set> where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="listByCnidAndTitle" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_customer_content t |
| | | WHERE t.`cn_id` = #{cnid} AND t.`title` LIKE '%${key}%'
|
| | | ORDER BY t.`createTime` ASC
|
| | | LIMIT #{start},#{count}
|
| | | </select>
|
| | | |
| | | <select id="contactCustomerService" resultMap="BaseResultMap">
|
| | | <!-- 查询联系客服信息 -->
|
| | | SELECT yecc.`content` FROM `yeshi_ec_customer_content` yecc |
| | | WHERE yecc.`title` = #{title}
|
| | | </select>
|
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.CustomerNameMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.CustomerName"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="name" property="name" jdbcType="VARCHAR"/> |
| | | <result column="createTime" property="createTime" jdbcType="TIMESTAMP"/> |
| | | <result column="type" property="type" jdbcType="INTEGER"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,`name`,createTime,`type`</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_customer_name where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_customer_name where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.CustomerName" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_name (id,`name`,createTime,`type`) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{type,jdbcType=INTEGER})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.CustomerName" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_name |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">`name`,</if> |
| | | <if test="createTime != null">createTime,</if> |
| | | <if test="type != null">`type`,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.CustomerName">update yeshi_ec_customer_name set `name` = #{name,jdbcType=VARCHAR},createTime = #{createTime,jdbcType=TIMESTAMP},`type` = #{type,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.CustomerName">update yeshi_ec_customer_name |
| | | <set> |
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">createTime=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="type != null">`type`=#{type,jdbcType=INTEGER},</if> |
| | | </set> where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listByTypeAndName" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_customer_name cn |
| | | WHERE cn.`type` = #{type} AND cn.`name` LIKE '%${key}%' |
| | | ORDER BY cn.`createtime` ASC |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.CustomerNameMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.CustomerName">
|
| | | <id column="id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="name" property="name" jdbcType="VARCHAR"/>
|
| | | <result column="createTime" property="createTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="type" property="type" jdbcType="INTEGER"/>
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,`name`,createTime,`type`</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_customer_name where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_customer_name where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.CustomerName" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_name (id,`name`,createTime,`type`) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{type,jdbcType=INTEGER})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.CustomerName" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_customer_name
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="name != null">`name`,</if>
|
| | | <if test="createTime != null">createTime,</if>
|
| | | <if test="type != null">`type`,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.CustomerName">update yeshi_ec_customer_name set `name` = #{name,jdbcType=VARCHAR},createTime = #{createTime,jdbcType=TIMESTAMP},`type` = #{type,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.CustomerName">update yeshi_ec_customer_name
|
| | | <set>
|
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">createTime=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="type != null">`type`=#{type,jdbcType=INTEGER},</if>
|
| | | </set> where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="listByTypeAndName" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_customer_name cn
|
| | | WHERE cn.`type` = #{type} AND cn.`name` LIKE '%${key}%'
|
| | | ORDER BY cn.`createtime` ASC
|
| | | LIMIT #{start},#{count}
|
| | | </select>
|
| | | |
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ExtractRecordMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.ExtractRecord"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="count" property="count" jdbcType="INTEGER" /> |
| | | <result column="money" property="money" jdbcType="DECIMAL" /> |
| | | <result column="createTime" property="createTime" jdbcType="BIGINT" /> |
| | | <!-- <result column="uid" property="userInfo"/> --> |
| | | <!-- <association property="userInfo" column="uid" resultMap="com.yeshi.fanli.entity.dao.mybatis.UserInfoMapper.BaseResultMap"/> --> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,uid,count,money,createTime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_extract_record where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectByUid" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_extract_record where uid = #{0} |
| | | </select> |
| | | <select id="selectByUidAndToday" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_extract_record er where er.uid = #{0} <![CDATA[ |
| | | ANd FROM_UNIXTIME(er.createTime/1000) >= CURDATE() |
| | | ]]> |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_extract_record where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | <delete id="deleteAll">delete from |
| | | yeshi_ec_extract_record |
| | | </delete> |
| | | |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_extract_record (id,uid,count,money,createTime,id) values |
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{count,jdbcType=INTEGER},#{money,jdbcType=DECIMAL},#{createTime,jdbcType=BIGINT},#{id,jdbcType=BIGINT}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_extract_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="userInfo != null">uid,</if> |
| | | <if test="count != null">count,</if> |
| | | <if test="money != null">money,</if> |
| | | <if test="createTime != null">createTime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if> |
| | | <if test="count != null">#{count,jdbcType=INTEGER},</if> |
| | | <if test="money != null">#{money,jdbcType=DECIMAL},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=BIGINT}</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord">update |
| | | yeshi_ec_extract_record set uid = #{userInfo.id,jdbcType=BIGINT},count |
| | | = #{count,jdbcType=INTEGER},money = #{money,jdbcType=DECIMAL} |
| | | ,createTime =#{createTime,jdbcType=BIGINT} where id = |
| | | #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord"> |
| | | update yeshi_ec_extract_record |
| | | <set> |
| | | <if test="userInfo != null">uid=#{userInfo.id,jdbcType=BIGINT},</if> |
| | | <if test="count != null">count=#{count,jdbcType=INTEGER},</if> |
| | | <if test="money != null">money=#{money,jdbcType=DECIMAL},</if> |
| | | <if test="createTime !=null">createTime =#{createTime,jdbcType=BIGINT},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ExtractRecordMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.ExtractRecord">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="count" property="count" jdbcType="INTEGER" />
|
| | | <result column="money" property="money" jdbcType="DECIMAL" />
|
| | | <result column="createTime" property="createTime" jdbcType="BIGINT" />
|
| | | <!-- <result column="uid" property="userInfo"/> -->
|
| | | <!-- <association property="userInfo" column="uid" resultMap="com.yeshi.fanli.entity.dao.mybatis.UserInfoMapper.BaseResultMap"/> -->
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,uid,count,money,createTime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_extract_record where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <select id="selectByUid" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_extract_record where uid = #{0}
|
| | | </select>
|
| | | <select id="selectByUidAndToday" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_extract_record er where er.uid = #{0} <![CDATA[
|
| | | ANd FROM_UNIXTIME(er.createTime/1000) >= CURDATE()
|
| | | ]]>
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_extract_record where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | |
|
| | | <delete id="deleteAll">delete from
|
| | | yeshi_ec_extract_record
|
| | | </delete>
|
| | |
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_extract_record (id,uid,count,money,createTime,id) values
|
| | | (#{id,jdbcType=BIGINT},#{userInfo.id,jdbcType=BIGINT},#{count,jdbcType=INTEGER},#{money,jdbcType=DECIMAL},#{createTime,jdbcType=BIGINT},#{id,jdbcType=BIGINT})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_extract_record
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="userInfo != null">uid,</if>
|
| | | <if test="count != null">count,</if>
|
| | | <if test="money != null">money,</if>
|
| | | <if test="createTime != null">createTime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="userInfo != null">#{userInfo.id,jdbcType=BIGINT},</if>
|
| | | <if test="count != null">#{count,jdbcType=INTEGER},</if>
|
| | | <if test="money != null">#{money,jdbcType=DECIMAL},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=BIGINT}</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord">update
|
| | | yeshi_ec_extract_record set uid = #{userInfo.id,jdbcType=BIGINT},count
|
| | | = #{count,jdbcType=INTEGER},money = #{money,jdbcType=DECIMAL}
|
| | | ,createTime =#{createTime,jdbcType=BIGINT} where id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractRecord">
|
| | | update yeshi_ec_extract_record
|
| | | <set>
|
| | | <if test="userInfo != null">uid=#{userInfo.id,jdbcType=BIGINT},</if>
|
| | | <if test="count != null">count=#{count,jdbcType=INTEGER},</if>
|
| | | <if test="money != null">money=#{money,jdbcType=DECIMAL},</if>
|
| | | <if test="createTime !=null">createTime =#{createTime,jdbcType=BIGINT},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ExtractWeiXinRecordMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord"> |
| | | <id column="aer_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="aer_uid" property="uid" jdbcType="BIGINT"/> |
| | | <result column="aer_open_id" property="openId" jdbcType="VARCHAR"/> |
| | | <result column="aer_union_id" property="unionId" jdbcType="VARCHAR"/> |
| | | <result column="aer_money" property="money" jdbcType="DECIMAL"/> |
| | | <result column="aer_billno" property="billno" jdbcType="VARCHAR"/> |
| | | <result column="aer_detailno" property="detailno" jdbcType="VARCHAR"/> |
| | | <result column="aer_status" property="status" jdbcType="VARCHAR"/> |
| | | <result column="aer_send_time" property="sendTime" jdbcType="TIMESTAMP"/> |
| | | <result column="aer_rcv_time" property="rcvTime" jdbcType="TIMESTAMP"/> |
| | | <result column="aer_send_type" property="sendType" jdbcType="VARCHAR"/> |
| | | <result column="aer_hb_type" property="hbType" jdbcType="VARCHAR"/> |
| | | <result column="aer_total_num" property="totalNum" jdbcType="INTEGER"/> |
| | | <result column="aer_type" property="type" jdbcType="INTEGER"/> |
| | | <result column="aer_create_time" property="createTime" jdbcType="TIMESTAMP"/> |
| | | <result column="aer_update_time" property="updateTime" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">aer_id,aer_uid,aer_open_id,aer_union_id,aer_money,aer_billno,aer_detailno,aer_status,aer_send_time,aer_rcv_time,aer_send_type,aer_hb_type,aer_total_num,aer_type,aer_create_time,aer_update_time</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_extract_weixin_record where aer_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_extract_weixin_record where aer_id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_extract_weixin_record (aer_id,aer_uid,aer_open_id,aer_union_id,aer_money,aer_billno,aer_detailno,aer_status,aer_send_time,aer_rcv_time,aer_send_type,aer_hb_type,aer_total_num,aer_type,aer_create_time,aer_update_time) values (#{id,jdbcType=BIGINT},#{uid,jdbcType=BIGINT},#{openId,jdbcType=VARCHAR},#{unionId,jdbcType=VARCHAR},#{money,jdbcType=DECIMAL},#{billno,jdbcType=VARCHAR},#{detailno,jdbcType=VARCHAR},#{status,jdbcType=VARCHAR},#{sendTime,jdbcType=TIMESTAMP},#{rcvTime,jdbcType=TIMESTAMP},#{sendType,jdbcType=VARCHAR},#{hbType,jdbcType=VARCHAR},#{totalNum,jdbcType=INTEGER},#{type,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_extract_weixin_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">aer_id,</if> |
| | | <if test="uid != null">aer_uid,</if> |
| | | <if test="openId != null">aer_open_id,</if> |
| | | <if test="unionId != null">aer_union_id,</if> |
| | | <if test="money != null">aer_money,</if> |
| | | <if test="billno != null">aer_billno,</if> |
| | | <if test="detailno != null">aer_detailno,</if> |
| | | <if test="status != null">aer_status,</if> |
| | | <if test="sendTime != null">aer_send_time,</if> |
| | | <if test="rcvTime != null">aer_rcv_time,</if> |
| | | <if test="sendType != null">aer_send_type,</if> |
| | | <if test="hbType != null">aer_hb_type,</if> |
| | | <if test="totalNum != null">aer_total_num,</if> |
| | | <if test="type != null">aer_type,</if> |
| | | <if test="createTime != null">aer_create_time,</if> |
| | | <if test="updateTime != null">aer_update_time,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="uid != null">#{uid,jdbcType=BIGINT},</if> |
| | | <if test="openId != null">#{openId,jdbcType=VARCHAR},</if> |
| | | <if test="unionId != null">#{unionId,jdbcType=VARCHAR},</if> |
| | | <if test="money != null">#{money,jdbcType=DECIMAL},</if> |
| | | <if test="billno != null">#{billno,jdbcType=VARCHAR},</if> |
| | | <if test="detailno != null">#{detailno,jdbcType=VARCHAR},</if> |
| | | <if test="status != null">#{status,jdbcType=VARCHAR},</if> |
| | | <if test="sendTime != null">#{sendTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="rcvTime != null">#{rcvTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="sendType != null">#{sendType,jdbcType=VARCHAR},</if> |
| | | <if test="hbType != null">#{hbType,jdbcType=VARCHAR},</if> |
| | | <if test="totalNum != null">#{totalNum,jdbcType=INTEGER},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord">update yeshi_ec_extract_weixin_record set aer_uid = #{uid,jdbcType=BIGINT},aer_open_id = #{openId,jdbcType=VARCHAR},aer_union_id = #{unionId,jdbcType=VARCHAR},aer_money = #{money,jdbcType=DECIMAL},aer_billno = #{billno,jdbcType=VARCHAR},aer_detailno = #{detailno,jdbcType=VARCHAR},aer_status = #{status,jdbcType=VARCHAR},aer_send_time = #{sendTime,jdbcType=TIMESTAMP},aer_rcv_time = #{rcvTime,jdbcType=TIMESTAMP},aer_send_type = #{sendType,jdbcType=VARCHAR},aer_hb_type = #{hbType,jdbcType=VARCHAR},aer_total_num = #{totalNum,jdbcType=INTEGER},aer_type = #{type,jdbcType=INTEGER},aer_create_time = #{createTime,jdbcType=TIMESTAMP},aer_update_time = #{updateTime,jdbcType=TIMESTAMP} where aer_id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord">update yeshi_ec_extract_weixin_record |
| | | <set> |
| | | <if test="uid != null">aer_uid=#{uid,jdbcType=BIGINT},</if> |
| | | <if test="openId != null">aer_open_id=#{openId,jdbcType=VARCHAR},</if> |
| | | <if test="unionId != null">aer_union_id=#{unionId,jdbcType=VARCHAR},</if> |
| | | <if test="money != null">aer_money=#{money,jdbcType=DECIMAL},</if> |
| | | <if test="billno != null">aer_billno=#{billno,jdbcType=VARCHAR},</if> |
| | | <if test="detailno != null">aer_detailno=#{detailno,jdbcType=VARCHAR},</if> |
| | | <if test="status != null">aer_status=#{status,jdbcType=VARCHAR},</if> |
| | | <if test="sendTime != null">aer_send_time=#{sendTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="rcvTime != null">aer_rcv_time=#{rcvTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="sendType != null">aer_send_type=#{sendType,jdbcType=VARCHAR},</if> |
| | | <if test="hbType != null">aer_hb_type=#{hbType,jdbcType=VARCHAR},</if> |
| | | <if test="totalNum != null">aer_total_num=#{totalNum,jdbcType=INTEGER},</if> |
| | | <if test="type != null">aer_type=#{type,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">aer_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">aer_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </set> where aer_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="getValidUsers" resultType="Long"> |
| | | SELECT DISTINCT A.uid |
| | | FROM (SELECT t.uid,d.`aer_uid` AS existUid,cc.aer_uid FROM ( |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="index != 0">UNION</if> SELECT #{item} AS uid |
| | | </foreach> |
| | | )t |
| | | LEFT JOIN `yeshi_ec_extract_weixin_record` d ON d.aer_uid = t.uid |
| | | LEFT JOIN (SELECT DISTINCT d.aer_uid FROM `yeshi_ec_extract_weixin_record` d |
| | | WHERE IF(d.`aer_status` = 'RECEIVED',d.`aer_create_time` <![CDATA[<=]]> #{receivedDate}, FALSE) |
| | | OR IF(d.`aer_status` = 'REFUND',d.`aer_create_time` <![CDATA[<=]]> #{refundDate}, FALSE) |
| | | ORDER BY d.`aer_create_time` DESC |
| | | )cc ON cc.aer_uid = t.uid |
| | | WHERE IF (d.`aer_uid` IS NULL,TRUE, IFNULL(cc.aer_uid,FALSE)))A |
| | | </select> |
| | | |
| | | <select id="getByOpenIdAndType" resultMap="BaseResultMap"> |
| | | SELECT * FROM `yeshi_ec_extract_weixin_record` d |
| | | WHERE d.`aer_open_id` = #{openId} AND d.`aer_type` = #{type} |
| | | AND d.`aer_status`<![CDATA[<>]]> 'RECEIVED' AND d.`aer_status`<![CDATA[<>]]> 'REFUND' |
| | | ORDER BY d.`aer_create_time` DESC |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ExtractWeiXinRecordMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord">
|
| | | <id column="aer_id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="aer_uid" property="uid" jdbcType="BIGINT"/>
|
| | | <result column="aer_open_id" property="openId" jdbcType="VARCHAR"/>
|
| | | <result column="aer_union_id" property="unionId" jdbcType="VARCHAR"/>
|
| | | <result column="aer_money" property="money" jdbcType="DECIMAL"/>
|
| | | <result column="aer_billno" property="billno" jdbcType="VARCHAR"/>
|
| | | <result column="aer_detailno" property="detailno" jdbcType="VARCHAR"/>
|
| | | <result column="aer_status" property="status" jdbcType="VARCHAR"/>
|
| | | <result column="aer_send_time" property="sendTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="aer_rcv_time" property="rcvTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="aer_send_type" property="sendType" jdbcType="VARCHAR"/>
|
| | | <result column="aer_hb_type" property="hbType" jdbcType="VARCHAR"/>
|
| | | <result column="aer_total_num" property="totalNum" jdbcType="INTEGER"/>
|
| | | <result column="aer_type" property="type" jdbcType="INTEGER"/>
|
| | | <result column="aer_create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="aer_update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">aer_id,aer_uid,aer_open_id,aer_union_id,aer_money,aer_billno,aer_detailno,aer_status,aer_send_time,aer_rcv_time,aer_send_type,aer_hb_type,aer_total_num,aer_type,aer_create_time,aer_update_time</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_extract_weixin_record where aer_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_extract_weixin_record where aer_id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_extract_weixin_record (aer_id,aer_uid,aer_open_id,aer_union_id,aer_money,aer_billno,aer_detailno,aer_status,aer_send_time,aer_rcv_time,aer_send_type,aer_hb_type,aer_total_num,aer_type,aer_create_time,aer_update_time) values (#{id,jdbcType=BIGINT},#{uid,jdbcType=BIGINT},#{openId,jdbcType=VARCHAR},#{unionId,jdbcType=VARCHAR},#{money,jdbcType=DECIMAL},#{billno,jdbcType=VARCHAR},#{detailno,jdbcType=VARCHAR},#{status,jdbcType=VARCHAR},#{sendTime,jdbcType=TIMESTAMP},#{rcvTime,jdbcType=TIMESTAMP},#{sendType,jdbcType=VARCHAR},#{hbType,jdbcType=VARCHAR},#{totalNum,jdbcType=INTEGER},#{type,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_extract_weixin_record
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">aer_id,</if>
|
| | | <if test="uid != null">aer_uid,</if>
|
| | | <if test="openId != null">aer_open_id,</if>
|
| | | <if test="unionId != null">aer_union_id,</if>
|
| | | <if test="money != null">aer_money,</if>
|
| | | <if test="billno != null">aer_billno,</if>
|
| | | <if test="detailno != null">aer_detailno,</if>
|
| | | <if test="status != null">aer_status,</if>
|
| | | <if test="sendTime != null">aer_send_time,</if>
|
| | | <if test="rcvTime != null">aer_rcv_time,</if>
|
| | | <if test="sendType != null">aer_send_type,</if>
|
| | | <if test="hbType != null">aer_hb_type,</if>
|
| | | <if test="totalNum != null">aer_total_num,</if>
|
| | | <if test="type != null">aer_type,</if>
|
| | | <if test="createTime != null">aer_create_time,</if>
|
| | | <if test="updateTime != null">aer_update_time,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="uid != null">#{uid,jdbcType=BIGINT},</if>
|
| | | <if test="openId != null">#{openId,jdbcType=VARCHAR},</if>
|
| | | <if test="unionId != null">#{unionId,jdbcType=VARCHAR},</if>
|
| | | <if test="money != null">#{money,jdbcType=DECIMAL},</if>
|
| | | <if test="billno != null">#{billno,jdbcType=VARCHAR},</if>
|
| | | <if test="detailno != null">#{detailno,jdbcType=VARCHAR},</if>
|
| | | <if test="status != null">#{status,jdbcType=VARCHAR},</if>
|
| | | <if test="sendTime != null">#{sendTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="rcvTime != null">#{rcvTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="sendType != null">#{sendType,jdbcType=VARCHAR},</if>
|
| | | <if test="hbType != null">#{hbType,jdbcType=VARCHAR},</if>
|
| | | <if test="totalNum != null">#{totalNum,jdbcType=INTEGER},</if>
|
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord">update yeshi_ec_extract_weixin_record set aer_uid = #{uid,jdbcType=BIGINT},aer_open_id = #{openId,jdbcType=VARCHAR},aer_union_id = #{unionId,jdbcType=VARCHAR},aer_money = #{money,jdbcType=DECIMAL},aer_billno = #{billno,jdbcType=VARCHAR},aer_detailno = #{detailno,jdbcType=VARCHAR},aer_status = #{status,jdbcType=VARCHAR},aer_send_time = #{sendTime,jdbcType=TIMESTAMP},aer_rcv_time = #{rcvTime,jdbcType=TIMESTAMP},aer_send_type = #{sendType,jdbcType=VARCHAR},aer_hb_type = #{hbType,jdbcType=VARCHAR},aer_total_num = #{totalNum,jdbcType=INTEGER},aer_type = #{type,jdbcType=INTEGER},aer_create_time = #{createTime,jdbcType=TIMESTAMP},aer_update_time = #{updateTime,jdbcType=TIMESTAMP} where aer_id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.ExtractWeiXinRecord">update yeshi_ec_extract_weixin_record
|
| | | <set>
|
| | | <if test="uid != null">aer_uid=#{uid,jdbcType=BIGINT},</if>
|
| | | <if test="openId != null">aer_open_id=#{openId,jdbcType=VARCHAR},</if>
|
| | | <if test="unionId != null">aer_union_id=#{unionId,jdbcType=VARCHAR},</if>
|
| | | <if test="money != null">aer_money=#{money,jdbcType=DECIMAL},</if>
|
| | | <if test="billno != null">aer_billno=#{billno,jdbcType=VARCHAR},</if>
|
| | | <if test="detailno != null">aer_detailno=#{detailno,jdbcType=VARCHAR},</if>
|
| | | <if test="status != null">aer_status=#{status,jdbcType=VARCHAR},</if>
|
| | | <if test="sendTime != null">aer_send_time=#{sendTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="rcvTime != null">aer_rcv_time=#{rcvTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="sendType != null">aer_send_type=#{sendType,jdbcType=VARCHAR},</if>
|
| | | <if test="hbType != null">aer_hb_type=#{hbType,jdbcType=VARCHAR},</if>
|
| | | <if test="totalNum != null">aer_total_num=#{totalNum,jdbcType=INTEGER},</if>
|
| | | <if test="type != null">aer_type=#{type,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">aer_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">aer_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </set> where aer_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="getValidUsers" resultType="Long">
|
| | | SELECT DISTINCT A.uid |
| | | FROM (SELECT t.uid,d.`aer_uid` AS existUid,cc.aer_uid FROM (
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="index != 0">UNION</if> SELECT #{item} AS uid
|
| | | </foreach>
|
| | | )t
|
| | | LEFT JOIN `yeshi_ec_extract_weixin_record` d ON d.aer_uid = t.uid
|
| | | LEFT JOIN (SELECT DISTINCT d.aer_uid FROM `yeshi_ec_extract_weixin_record` d
|
| | | WHERE IF(d.`aer_status` = 'RECEIVED',d.`aer_create_time` <![CDATA[<=]]> #{receivedDate}, FALSE) |
| | | OR IF(d.`aer_status` = 'REFUND',d.`aer_create_time` <![CDATA[<=]]> #{refundDate}, FALSE) |
| | | ORDER BY d.`aer_create_time` DESC
|
| | | )cc ON cc.aer_uid = t.uid
|
| | | WHERE IF (d.`aer_uid` IS NULL,TRUE, IFNULL(cc.aer_uid,FALSE)))A
|
| | | </select>
|
| | | |
| | | <select id="getByOpenIdAndType" resultMap="BaseResultMap">
|
| | | SELECT * FROM `yeshi_ec_extract_weixin_record` d |
| | | WHERE d.`aer_open_id` = #{openId} AND d.`aer_type` = #{type} |
| | | AND d.`aer_status`<![CDATA[<>]]> 'RECEIVED' AND d.`aer_status`<![CDATA[<>]]> 'REFUND'
|
| | | ORDER BY d.`aer_create_time` DESC
|
| | | LIMIT 1
|
| | | </select>
|
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.GoodsClassMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.clazz.GoodsClass"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="picture" property="picture" jdbcType="VARCHAR" /> |
| | | <result column="url" property="url" jdbcType="VARCHAR" /> |
| | | <result column="key" property="key" jdbcType="VARCHAR" /> |
| | | <result column="search_param" property="searchParam" jdbcType="VARCHAR" /> |
| | | <result column="orderby" property="orderby" jdbcType="INTEGER" /> |
| | | <result column="createtime" property="createtime" jdbcType="BIGINT" /> |
| | | <result column="ios_click" property="iosClick" jdbcType="BIGINT" /> |
| | | <result column="android_click" property="androidClick" |
| | | jdbcType="BIGINT" /> |
| | | <result column="cs_state" property="state" jdbcType="INTEGER" /> |
| | | <result column="sex" property="sex" jdbcType="INTEGER" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,`name`,picture,`key`,search_param,orderby,createtime,ios_click,android_click,cs_state,sex |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long">select * from yeshi_ec_class where id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_class where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_class |
| | | (id,`name`,picture,url,`key`,search_param,orderby,createtime,ios_click,android_click,cs_state,sex) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{url,jdbcType=VARCHAR},#{key,jdbcType=VARCHAR},#{searchParam,jdbcType=VARCHAR},#{orderby,jdbcType=INTEGER},#{createtime,jdbcType=BIGINT},#{iosClick,jdbcType=BIGINT},#{androidClick,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{sex,jdbcType=INTEGER}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_class |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">`name`,</if> |
| | | <if test="picture != null">picture,</if> |
| | | <if test="url != null">url,</if> |
| | | <if test="key != null">`key`,</if> |
| | | <if test="searchParam != null">search_param,</if> |
| | | <if test="orderby != null">orderby,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | <if test="iosClick != null">ios_click,</if> |
| | | <if test="androidClick != null">android_click,</if> |
| | | <if test="state != null">cs_state,</if> |
| | | |
| | | <if test="sex != null">sex,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="picture != null">#{picture,jdbcType=VARCHAR},</if> |
| | | <if test="url != null">#{url,jdbcType=VARCHAR},</if> |
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if> |
| | | <if test="searchParam != null">#{searchParam,jdbcType=VARCHAR},</if> |
| | | <if test="orderby != null">#{orderby,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=BIGINT},</if> |
| | | <if test="iosClick != null">#{iosClick,jdbcType=BIGINT},</if> |
| | | <if test="androidClick != null">#{androidClick,jdbcType=BIGINT},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | |
| | | <if test="sex != null">#{sex,jdbcType=INTEGER}</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass">update |
| | | yeshi_ec_class set `name` = #{name,jdbcType=VARCHAR},picture = |
| | | #{picture,jdbcType=VARCHAR},url = #{url,jdbcType=VARCHAR},`key` = |
| | | #{key,jdbcType=VARCHAR},search_param = |
| | | #{searchParam,jdbcType=VARCHAR},orderby = |
| | | #{orderby,jdbcType=INTEGER},createtime = |
| | | #{createtime,jdbcType=BIGINT},ios_click = |
| | | #{iosClick,jdbcType=BIGINT},android_click = |
| | | #{androidClick,jdbcType=BIGINT},cs_state = #{state,jdbcType=INTEGER} |
| | | ,sex =#{sex,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass"> |
| | | update yeshi_ec_class |
| | | <set> |
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="picture != null">picture=#{picture,jdbcType=VARCHAR},</if> |
| | | <if test="url != null">url=#{url,jdbcType=VARCHAR},</if> |
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if> |
| | | <if test="searchParam != null">search_param=#{searchParam,jdbcType=VARCHAR},</if> |
| | | <if test="orderby != null">orderby=#{orderby,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=BIGINT},</if> |
| | | <if test="iosClick != null">ios_click=#{iosClick,jdbcType=BIGINT},</if> |
| | | <if test="androidClick != null">android_click=#{androidClick,jdbcType=BIGINT},</if> |
| | | <if test="state != null">cs_state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="sex !=null">sex =#{sex,jdbcType=INTEGER},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <select id="getKeysById" resultType="java.lang.String">SELECT ec.`key` FROM |
| | | `yeshi_ec_class` ec WHERE ec.`id` = #{id}; |
| | | </select> |
| | | <select id="listGoodsClassBySystemId" resultMap="BaseResultMap">SELECT |
| | | c.id,c.name,c.picture,c.url FROM `yeshi_ec_class` c RIGHT JOIN |
| | | `yeshi_ec_super_goodsclass` sp ON sp.`goodsclass_id` = c.`id` WHERE |
| | | sp.`system_id` = #{systemId} ORDER BY c.`orderby` |
| | | </select> |
| | | <select id="getByAdjoinOrder" resultMap="BaseResultMap"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | FROM yeshi_ec_class fd WHERE 1=1 |
| | | <if test="type == -1">AND |
| | | fd.`orderby` <![CDATA[<]]> |
| | | #{order} ORDER BY fd.`orderby` desc |
| | | </if> |
| | | <if test="type == 1">AND |
| | | fd.`orderby` <![CDATA[>]]> |
| | | #{order} ORDER BY fd.`orderby` |
| | | </if> |
| | | LIMIT 1 |
| | | </select> |
| | | <select id="getGoodsClassAll" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_class c |
| | | where 1=1 |
| | | <!-- 通用版 --> |
| | | <if test="sex == 0"> |
| | | AND (c.`sex`= 120 OR c.`sex` = 0 OR c.`sex` = 10 OR c.`sex` = 20) |
| | | </if> |
| | | <!-- 女版 --> |
| | | <if test="sex == 1"> |
| | | AND (c.`sex`= 120 OR c.`sex` = 1 OR c.`sex` = 10 OR c.`sex` = 12) |
| | | </if> |
| | | <!-- 男版 --> |
| | | <if test="sex == 2"> |
| | | AND (c.`sex`= 120 OR c.`sex` = 2 OR c.`sex` = 20 OR c.`sex` = 12) |
| | | </if> |
| | | ORDER BY c.orderby |
| | | </select> |
| | | <select id="listByName" resultMap="BaseResultMap">SELECT * from yeshi_ec_class |
| | | rs WHERE rs.name like '%#{name}%' LIMIT ${start},${count}</select> |
| | | <select id="countByName" resultType="java.lang.Integer"> |
| | | SELECT IFNULL(COUNT(rs.id),0) FROM yeshi_ec_class rs |
| | | <if test="systemId != null">RIGHT JOIN yeshi_ec_super_goodsclass sp ON |
| | | sp.`goodsclass_id` = rs.`id` |
| | | </if> |
| | | WHERE rs.name LIKE '%#{name}%' |
| | | <if test="systemId != null">AND sp.`system_id` = #{systemId}</if> |
| | | </select> |
| | | <select id="getMaxOrder" resultType="java.lang.Integer">SELECT |
| | | IFNULL(MAX(orderby),0) FROM `yeshi_ec_class` |
| | | </select> |
| | | <select id="getEffectiveClass" resultMap="BaseResultMap">SELECT * FROM |
| | | yeshi_ec_class rs WHERE rs.cs_state = 1 ORDER BY rs.`orderby` |
| | | </select> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.GoodsClassMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.clazz.GoodsClass">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="name" property="name" jdbcType="VARCHAR" />
|
| | | <result column="picture" property="picture" jdbcType="VARCHAR" />
|
| | | <result column="url" property="url" jdbcType="VARCHAR" />
|
| | | <result column="key" property="key" jdbcType="VARCHAR" />
|
| | | <result column="search_param" property="searchParam" jdbcType="VARCHAR" />
|
| | | <result column="orderby" property="orderby" jdbcType="INTEGER" />
|
| | | <result column="createtime" property="createtime" jdbcType="BIGINT" />
|
| | | <result column="ios_click" property="iosClick" jdbcType="BIGINT" />
|
| | | <result column="android_click" property="androidClick"
|
| | | jdbcType="BIGINT" />
|
| | | <result column="cs_state" property="state" jdbcType="INTEGER" />
|
| | | <result column="sex" property="sex" jdbcType="INTEGER" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,`name`,picture,`key`,search_param,orderby,createtime,ios_click,android_click,cs_state,sex
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">select * from yeshi_ec_class where id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_class where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_class
|
| | | (id,`name`,picture,url,`key`,search_param,orderby,createtime,ios_click,android_click,cs_state,sex)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{url,jdbcType=VARCHAR},#{key,jdbcType=VARCHAR},#{searchParam,jdbcType=VARCHAR},#{orderby,jdbcType=INTEGER},#{createtime,jdbcType=BIGINT},#{iosClick,jdbcType=BIGINT},#{androidClick,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{sex,jdbcType=INTEGER})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_class
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="name != null">`name`,</if>
|
| | | <if test="picture != null">picture,</if>
|
| | | <if test="url != null">url,</if>
|
| | | <if test="key != null">`key`,</if>
|
| | | <if test="searchParam != null">search_param,</if>
|
| | | <if test="orderby != null">orderby,</if>
|
| | | <if test="createtime != null">createtime,</if>
|
| | | <if test="iosClick != null">ios_click,</if>
|
| | | <if test="androidClick != null">android_click,</if>
|
| | | <if test="state != null">cs_state,</if>
|
| | |
|
| | | <if test="sex != null">sex,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="picture != null">#{picture,jdbcType=VARCHAR},</if>
|
| | | <if test="url != null">#{url,jdbcType=VARCHAR},</if>
|
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="searchParam != null">#{searchParam,jdbcType=VARCHAR},</if>
|
| | | <if test="orderby != null">#{orderby,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=BIGINT},</if>
|
| | | <if test="iosClick != null">#{iosClick,jdbcType=BIGINT},</if>
|
| | | <if test="androidClick != null">#{androidClick,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if>
|
| | |
|
| | | <if test="sex != null">#{sex,jdbcType=INTEGER}</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass">update
|
| | | yeshi_ec_class set `name` = #{name,jdbcType=VARCHAR},picture =
|
| | | #{picture,jdbcType=VARCHAR},url = #{url,jdbcType=VARCHAR},`key` =
|
| | | #{key,jdbcType=VARCHAR},search_param =
|
| | | #{searchParam,jdbcType=VARCHAR},orderby =
|
| | | #{orderby,jdbcType=INTEGER},createtime =
|
| | | #{createtime,jdbcType=BIGINT},ios_click =
|
| | | #{iosClick,jdbcType=BIGINT},android_click =
|
| | | #{androidClick,jdbcType=BIGINT},cs_state = #{state,jdbcType=INTEGER}
|
| | | ,sex =#{sex,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsClass">
|
| | | update yeshi_ec_class
|
| | | <set>
|
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="picture != null">picture=#{picture,jdbcType=VARCHAR},</if>
|
| | | <if test="url != null">url=#{url,jdbcType=VARCHAR},</if>
|
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="searchParam != null">search_param=#{searchParam,jdbcType=VARCHAR},</if>
|
| | | <if test="orderby != null">orderby=#{orderby,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=BIGINT},</if>
|
| | | <if test="iosClick != null">ios_click=#{iosClick,jdbcType=BIGINT},</if>
|
| | | <if test="androidClick != null">android_click=#{androidClick,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">cs_state=#{state,jdbcType=INTEGER},</if>
|
| | | <if test="sex !=null">sex =#{sex,jdbcType=INTEGER},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <select id="getKeysById" resultType="java.lang.String">SELECT ec.`key` FROM
|
| | | `yeshi_ec_class` ec WHERE ec.`id` = #{id};
|
| | | </select>
|
| | | <select id="listGoodsClassBySystemId" resultMap="BaseResultMap">SELECT
|
| | | c.id,c.name,c.picture,c.url FROM `yeshi_ec_class` c RIGHT JOIN
|
| | | `yeshi_ec_super_goodsclass` sp ON sp.`goodsclass_id` = c.`id` WHERE
|
| | | sp.`system_id` = #{systemId} ORDER BY c.`orderby`
|
| | | </select>
|
| | | <select id="getByAdjoinOrder" resultMap="BaseResultMap">
|
| | | SELECT
|
| | | <include refid="Base_Column_List" />
|
| | | FROM yeshi_ec_class fd WHERE 1=1
|
| | | <if test="type == -1">AND
|
| | | fd.`orderby` <![CDATA[<]]>
|
| | | #{order} ORDER BY fd.`orderby` desc
|
| | | </if>
|
| | | <if test="type == 1">AND
|
| | | fd.`orderby` <![CDATA[>]]>
|
| | | #{order} ORDER BY fd.`orderby`
|
| | | </if>
|
| | | LIMIT 1
|
| | | </select>
|
| | | <select id="getGoodsClassAll" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_class c
|
| | | where 1=1
|
| | | <!-- 通用版 -->
|
| | | <if test="sex == 0">
|
| | | AND (c.`sex`= 120 OR c.`sex` = 0 OR c.`sex` = 10 OR c.`sex` = 20) |
| | | </if>
|
| | | <!-- 女版 -->
|
| | | <if test="sex == 1">
|
| | | AND (c.`sex`= 120 OR c.`sex` = 1 OR c.`sex` = 10 OR c.`sex` = 12)
|
| | | </if>
|
| | | <!-- 男版 -->
|
| | | <if test="sex == 2">
|
| | | AND (c.`sex`= 120 OR c.`sex` = 2 OR c.`sex` = 20 OR c.`sex` = 12)
|
| | | </if>
|
| | | ORDER BY c.orderby |
| | | </select>
|
| | | <select id="listByName" resultMap="BaseResultMap">SELECT * from yeshi_ec_class
|
| | | rs WHERE rs.name like '%#{name}%' LIMIT ${start},${count}</select>
|
| | | <select id="countByName" resultType="java.lang.Integer">
|
| | | SELECT IFNULL(COUNT(rs.id),0) FROM yeshi_ec_class rs
|
| | | <if test="systemId != null">RIGHT JOIN yeshi_ec_super_goodsclass sp ON
|
| | | sp.`goodsclass_id` = rs.`id`
|
| | | </if>
|
| | | WHERE rs.name LIKE '%#{name}%'
|
| | | <if test="systemId != null">AND sp.`system_id` = #{systemId}</if>
|
| | | </select>
|
| | | <select id="getMaxOrder" resultType="java.lang.Integer">SELECT
|
| | | IFNULL(MAX(orderby),0) FROM `yeshi_ec_class`
|
| | | </select>
|
| | | <select id="getEffectiveClass" resultMap="BaseResultMap">SELECT * FROM
|
| | | yeshi_ec_class rs WHERE rs.cs_state = 1 ORDER BY rs.`orderby`
|
| | | </select>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.GoodsSecondClassMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="name" property="name" jdbcType="VARCHAR"/> |
| | | <result column="picture" property="picture" jdbcType="VARCHAR"/> |
| | | <result column="key" property="key" jdbcType="VARCHAR"/> |
| | | <result column="orderby" property="orderby" jdbcType="INTEGER"/> |
| | | <result column="createtime" property="createtime" jdbcType="BIGINT"/> |
| | | |
| | | <association property="parent" column="pid" javaType="com.yeshi.fanli.entity.bus.clazz.GoodsClass"> |
| | | <id column="pid" property="id" jdbcType="BIGINT"/> |
| | | </association> |
| | | |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,name,picture,pid,key,orderby,createtime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_second_class where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_second_class where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_second_class (id,name,picture,pid,key,orderby,createtime) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{parent.id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{orderby,jdbcType=INTEGER},#{createtime,jdbcType=BIGINT})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_second_class |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="picture != null">picture,</if> |
| | | <if test="parent != null">pid,</if> |
| | | <if test="key != null">key,</if> |
| | | <if test="orderby != null">orderby,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="picture != null">#{picture,jdbcType=VARCHAR},</if> |
| | | <if test="parent != null">#{parent.id,jdbcType=BIGINT},</if> |
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if> |
| | | <if test="orderby != null">#{orderby,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass">update yeshi_ec_second_class set name = #{name,jdbcType=VARCHAR},picture = #{picture,jdbcType=VARCHAR},pid = #{parent.id,jdbcType=BIGINT},key = #{key,jdbcType=VARCHAR},orderby = #{orderby,jdbcType=INTEGER},createtime = #{createtime,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass">update yeshi_ec_second_class |
| | | <set> |
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="picture != null">picture=#{picture,jdbcType=VARCHAR},</if> |
| | | <if test="parent != null">pid=#{parent.id,jdbcType=BIGINT},</if> |
| | | <if test="key != null">key=#{key,jdbcType=VARCHAR},</if> |
| | | <if test="orderby != null">orderby=#{orderby,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=BIGINT},</if> |
| | | </set> where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="getByGoodsClassId" resultMap="BaseResultMap"> |
| | | SELECT * FROM `yeshi_ec_second_class` gc |
| | | WHERE gc.`pid` = #{pid} |
| | | ORDER BY gc.`orderby` |
| | | </select> |
| | | |
| | | <select id="getByNameAndGoodsClassId" resultMap="BaseResultMap"> |
| | | SELECT * FROM `yeshi_ec_second_class` gc |
| | | WHERE gc.`pid` = #{pid} AND gc.`name` like '%#{name}%' |
| | | ORDER BY gc.`orderby` |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | | <select id="countByNameAndGoodsClassId" resultType="java.lang.Integer"> |
| | | SELECT IFNULL(COUNT(gc.`id`),0) FROM `yeshi_ec_second_class` gc |
| | | WHERE gc.`pid` = #{pid} AND gc.`name` like '%#{name}%' |
| | | </select> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.GoodsSecondClassMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass">
|
| | | <id column="id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="name" property="name" jdbcType="VARCHAR"/>
|
| | | <result column="picture" property="picture" jdbcType="VARCHAR"/>
|
| | | <result column="key" property="key" jdbcType="VARCHAR"/>
|
| | | <result column="orderby" property="orderby" jdbcType="INTEGER"/>
|
| | | <result column="createtime" property="createtime" jdbcType="BIGINT"/>
|
| | | |
| | | <association property="parent" column="pid" javaType="com.yeshi.fanli.entity.bus.clazz.GoodsClass">
|
| | | <id column="pid" property="id" jdbcType="BIGINT"/>
|
| | | </association>
|
| | | |
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,name,picture,pid,key,orderby,createtime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_second_class where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_second_class where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_second_class (id,name,picture,pid,key,orderby,createtime) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{picture,jdbcType=VARCHAR},#{parent.id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{orderby,jdbcType=INTEGER},#{createtime,jdbcType=BIGINT})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_second_class
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="name != null">name,</if>
|
| | | <if test="picture != null">picture,</if>
|
| | | <if test="parent != null">pid,</if>
|
| | | <if test="key != null">key,</if>
|
| | | <if test="orderby != null">orderby,</if>
|
| | | <if test="createtime != null">createtime,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="picture != null">#{picture,jdbcType=VARCHAR},</if>
|
| | | <if test="parent != null">#{parent.id,jdbcType=BIGINT},</if>
|
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="orderby != null">#{orderby,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=BIGINT},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass">update yeshi_ec_second_class set name = #{name,jdbcType=VARCHAR},picture = #{picture,jdbcType=VARCHAR},pid = #{parent.id,jdbcType=BIGINT},key = #{key,jdbcType=VARCHAR},orderby = #{orderby,jdbcType=INTEGER},createtime = #{createtime,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass">update yeshi_ec_second_class
|
| | | <set>
|
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="picture != null">picture=#{picture,jdbcType=VARCHAR},</if>
|
| | | <if test="parent != null">pid=#{parent.id,jdbcType=BIGINT},</if>
|
| | | <if test="key != null">key=#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="orderby != null">orderby=#{orderby,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=BIGINT},</if>
|
| | | </set> where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="getByGoodsClassId" resultMap="BaseResultMap">
|
| | | SELECT * FROM `yeshi_ec_second_class` gc |
| | | WHERE gc.`pid` = #{pid}
|
| | | ORDER BY gc.`orderby`
|
| | | </select>
|
| | | |
| | | <select id="getByNameAndGoodsClassId" resultMap="BaseResultMap">
|
| | | SELECT * FROM `yeshi_ec_second_class` gc |
| | | WHERE gc.`pid` = #{pid} AND gc.`name` like '%#{name}%'
|
| | | ORDER BY gc.`orderby`
|
| | | LIMIT #{start},#{count}
|
| | | </select>
|
| | | |
| | | <select id="countByNameAndGoodsClassId" resultType="java.lang.Integer">
|
| | | SELECT IFNULL(COUNT(gc.`id`),0) FROM `yeshi_ec_second_class` gc |
| | | WHERE gc.`pid` = #{pid} AND gc.`name` like '%#{name}%'
|
| | | </select>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.HistorySearchMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.search.HistorySearch"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="businessId" property="businessId" jdbcType="VARCHAR" /> |
| | | <result column="state" property="state" jdbcType="VARCHAR" /> |
| | | <result column="createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,name,businessId,state,createtime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from `yeshi_ec_history_search` where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | `yeshi_ec_history_search` where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | `yeshi_ec_history_search` (id,name,businessId,state,createtime) values |
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{businessId,jdbcType=VARCHAR},#{state,jdbcType=VARCHAR},#{createtime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into `yeshi_ec_history_search` |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="name != null">name,</if> |
| | | <if test="businessId != null">businessId,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="businessId != null">#{businessId,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">#{state,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch">update |
| | | `yeshi_ec_history_search` set name = |
| | | #{name,jdbcType=VARCHAR},businessId = |
| | | #{businessId,jdbcType=VARCHAR},state = |
| | | #{state,jdbcType=VARCHAR},createtime = |
| | | #{createtime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch"> |
| | | update `yeshi_ec_history_search` |
| | | <set> |
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="businessId != null">businessId=#{businessId,jdbcType=VARCHAR},</if> |
| | | <if test="state != null">state=#{state,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.HistorySearchMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.search.HistorySearch">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="name" property="name" jdbcType="VARCHAR" />
|
| | | <result column="businessId" property="businessId" jdbcType="VARCHAR" />
|
| | | <result column="state" property="state" jdbcType="VARCHAR" />
|
| | | <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,name,businessId,state,createtime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from `yeshi_ec_history_search` where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | `yeshi_ec_history_search` where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | `yeshi_ec_history_search` (id,name,businessId,state,createtime) values
|
| | | (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{businessId,jdbcType=VARCHAR},#{state,jdbcType=VARCHAR},#{createtime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into `yeshi_ec_history_search`
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="name != null">name,</if>
|
| | | <if test="businessId != null">businessId,</if>
|
| | | <if test="state != null">state,</if>
|
| | | <if test="createtime != null">createtime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="businessId != null">#{businessId,jdbcType=VARCHAR},</if>
|
| | | <if test="state != null">#{state,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch">update
|
| | | `yeshi_ec_history_search` set name =
|
| | | #{name,jdbcType=VARCHAR},businessId =
|
| | | #{businessId,jdbcType=VARCHAR},state =
|
| | | #{state,jdbcType=VARCHAR},createtime =
|
| | | #{createtime,jdbcType=TIMESTAMP} where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.search.HistorySearch">
|
| | | update `yeshi_ec_history_search`
|
| | | <set>
|
| | | <if test="name != null">name=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="businessId != null">businessId=#{businessId,jdbcType=VARCHAR},</if>
|
| | | <if test="state != null">state=#{state,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.HongBaoManageMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.HongBaoManage"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="`key`" property="key" jdbcType="VARCHAR" /> |
| | | <result column="`value`" property="value" jdbcType="VARCHAR" /> |
| | | <result column="`remark`" property="remark" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,`key`,`value`,`remark`</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_hongbao_manage where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.String"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_hongbao_manage where `key` = #{0} order by validtime |
| | | desc limit 1 |
| | | </select> |
| | | |
| | | <select id="listAll" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_hongbao_manage |
| | | </select> |
| | | |
| | | <select id="selectByKeyAndMaxValidTime" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_hongbao_manage where `key` = #{key} and |
| | | UNIX_TIMESTAMP(validtime)*1000 |
| | | <![CDATA[ |
| | | <= |
| | | ]]> |
| | | #{timeStamp} order by validtime desc limit 1 |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_hongbao_manage where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_hongbao_manage (id,`key`,`value`,`remark`) values |
| | | (#{id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{value,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_hongbao_manage |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="key != null">`key`,</if> |
| | | <if test="value != null">`value`,</if> |
| | | <if test="remark != null">`remark`,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if> |
| | | <if test="remark != null">#{remark,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage">update |
| | | yeshi_ec_hongbao_manage set `key` = #{key,jdbcType=VARCHAR},`value` = |
| | | #{value,jdbcType=VARCHAR},`remark` = #{remark,jdbcType=VARCHAR} where |
| | | id |
| | | = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage"> |
| | | update yeshi_ec_hongbao_manage |
| | | <set> |
| | | <if test="key != null">key=#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">value=#{value,jdbcType=VARCHAR},</if> |
| | | <if test="remark != null">remark=#{remark,jdbcType=VARCHAR},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.HongBaoManageMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.HongBaoManage">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="`key`" property="key" jdbcType="VARCHAR" />
|
| | | <result column="`value`" property="value" jdbcType="VARCHAR" />
|
| | | <result column="`remark`" property="remark" jdbcType="VARCHAR" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,`key`,`value`,`remark`</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_hongbao_manage where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectByKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.String">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_hongbao_manage where `key` = #{0} order by validtime
|
| | | desc limit 1
|
| | | </select>
|
| | |
|
| | | <select id="listAll" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_hongbao_manage
|
| | | </select>
|
| | |
|
| | | <select id="selectByKeyAndMaxValidTime" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_hongbao_manage where `key` = #{key} and
|
| | | UNIX_TIMESTAMP(validtime)*1000
|
| | | <![CDATA[
|
| | | <=
|
| | | ]]>
|
| | | #{timeStamp} order by validtime desc limit 1
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_hongbao_manage where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_hongbao_manage (id,`key`,`value`,`remark`) values
|
| | | (#{id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{value,jdbcType=VARCHAR},#{remark,jdbcType=VARCHAR})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_hongbao_manage
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="key != null">`key`,</if>
|
| | | <if test="value != null">`value`,</if>
|
| | | <if test="remark != null">`remark`,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="remark != null">#{remark,jdbcType=VARCHAR},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage">update
|
| | | yeshi_ec_hongbao_manage set `key` = #{key,jdbcType=VARCHAR},`value` =
|
| | | #{value,jdbcType=VARCHAR},`remark` = #{remark,jdbcType=VARCHAR} where
|
| | | id
|
| | | = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.HongBaoManage">
|
| | | update yeshi_ec_hongbao_manage
|
| | | <set>
|
| | | <if test="key != null">key=#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">value=#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="remark != null">remark=#{remark,jdbcType=VARCHAR},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.PayInfoMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.PayInfo"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="state" property="state" jdbcType="INTEGER" /> |
| | | <result column="info" property="info" jdbcType="VARCHAR" /> |
| | | <result column="biz_no" property="bizno" jdbcType="VARCHAR" /> |
| | | <result column="orderId" property="orderId" jdbcType="VARCHAR" /> |
| | | <result column="createtime" property="createtime" jdbcType="DATE" /> |
| | | <result column="ordertime" property="ordertime" jdbcType="VARCHAR" /> |
| | | <association property="extract" column="eid" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.ExtractMapper.BaseResultMap" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,eid,state,info,biz_no,orderId,createtime,ordertime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_payinfo where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_payinfo where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_payinfo |
| | | (id,eid,state,info,biz_no,orderId,createtime,ordertime) values |
| | | (#{id,jdbcType=BIGINT},#{extract.id,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{info,jdbcType=VARCHAR},#{bizno,jdbcType=VARCHAR},#{orderId,jdbcType=VARCHAR},#{createtime,jdbcType=DATE},#{ordertime,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_payinfo |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="extract != null">eid,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="info != null">info,</if> |
| | | <if test="bizno != null">biz_no,</if> |
| | | <if test="orderId != null">orderId,</if> |
| | | <if test="createtime != null">createtime,</if> |
| | | <if test="ordertime != null">ordertime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="extract != null">#{extract.id,jdbcType=BIGINT},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | <if test="info != null">#{info,jdbcType=VARCHAR},</if> |
| | | <if test="bizno != null">#{bizno,jdbcType=VARCHAR},</if> |
| | | <if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=DATE},</if> |
| | | <if test="ordertime != null">#{ordertime,jdbcType=VARCHAR},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo">update |
| | | yeshi_ec_payinfo set eid = #{extract.id,jdbcType=BIGINT},state = |
| | | #{state,jdbcType=INTEGER},info = #{info,jdbcType=VARCHAR},biz_no = |
| | | #{bizno,jdbcType=VARCHAR},orderId = |
| | | #{orderId,jdbcType=VARCHAR},createtime = |
| | | #{createtime,jdbcType=DATE},ordertime = #{ordertime,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo"> |
| | | update yeshi_ec_payinfo |
| | | <set> |
| | | <if test="extract != null">eid=#{extract.id,jdbcType=BIGINT},</if> |
| | | <if test="state != null">state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="info != null">info=#{info,jdbcType=VARCHAR},</if> |
| | | <if test="bizno != null">biz_no=#{bizno,jdbcType=VARCHAR},</if> |
| | | <if test="orderId != null">orderId=#{orderId,jdbcType=VARCHAR},</if> |
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=DATE},</if> |
| | | <if test="ordertime != null">ordertime=#{ordertime,jdbcType=VARCHAR},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="getListbyExtractId" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_payinfo where state=1 AND eid = #{eid,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | <select id="sumMoneyByUid" resultType="java.lang.Double" parameterType="java.lang.Long"> |
| | | <!-- 统计个人提现成功金额 --> |
| | | SELECT COALESCE(SUM(ex.`money`),0) FROM `yeshi_ec_payinfo` p |
| | | LEFT JOIN `yeshi_ec_extract` ex ON p.`eid`=ex.`id` |
| | | WHERE p.`state` = 1 AND ex.uid = #{uid} |
| | | </select> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.PayInfoMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.PayInfo">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="state" property="state" jdbcType="INTEGER" />
|
| | | <result column="info" property="info" jdbcType="VARCHAR" />
|
| | | <result column="biz_no" property="bizno" jdbcType="VARCHAR" />
|
| | | <result column="orderId" property="orderId" jdbcType="VARCHAR" />
|
| | | <result column="createtime" property="createtime" jdbcType="DATE" />
|
| | | <result column="ordertime" property="ordertime" jdbcType="VARCHAR" />
|
| | | <association property="extract" column="eid"
|
| | | resultMap="com.yeshi.fanli.dao.mybatis.ExtractMapper.BaseResultMap" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,eid,state,info,biz_no,orderId,createtime,ordertime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_payinfo where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_payinfo where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_payinfo
|
| | | (id,eid,state,info,biz_no,orderId,createtime,ordertime) values
|
| | | (#{id,jdbcType=BIGINT},#{extract.id,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{info,jdbcType=VARCHAR},#{bizno,jdbcType=VARCHAR},#{orderId,jdbcType=VARCHAR},#{createtime,jdbcType=DATE},#{ordertime,jdbcType=VARCHAR})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_payinfo
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="extract != null">eid,</if>
|
| | | <if test="state != null">state,</if>
|
| | | <if test="info != null">info,</if>
|
| | | <if test="bizno != null">biz_no,</if>
|
| | | <if test="orderId != null">orderId,</if>
|
| | | <if test="createtime != null">createtime,</if>
|
| | | <if test="ordertime != null">ordertime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="extract != null">#{extract.id,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if>
|
| | | <if test="info != null">#{info,jdbcType=VARCHAR},</if>
|
| | | <if test="bizno != null">#{bizno,jdbcType=VARCHAR},</if>
|
| | | <if test="orderId != null">#{orderId,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=DATE},</if>
|
| | | <if test="ordertime != null">#{ordertime,jdbcType=VARCHAR},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo">update
|
| | | yeshi_ec_payinfo set eid = #{extract.id,jdbcType=BIGINT},state =
|
| | | #{state,jdbcType=INTEGER},info = #{info,jdbcType=VARCHAR},biz_no =
|
| | | #{bizno,jdbcType=VARCHAR},orderId =
|
| | | #{orderId,jdbcType=VARCHAR},createtime =
|
| | | #{createtime,jdbcType=DATE},ordertime = #{ordertime,jdbcType=VARCHAR}
|
| | | where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.PayInfo">
|
| | | update yeshi_ec_payinfo
|
| | | <set>
|
| | | <if test="extract != null">eid=#{extract.id,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">state=#{state,jdbcType=INTEGER},</if>
|
| | | <if test="info != null">info=#{info,jdbcType=VARCHAR},</if>
|
| | | <if test="bizno != null">biz_no=#{bizno,jdbcType=VARCHAR},</if>
|
| | | <if test="orderId != null">orderId=#{orderId,jdbcType=VARCHAR},</if>
|
| | | <if test="createtime != null">createtime=#{createtime,jdbcType=DATE},</if>
|
| | | <if test="ordertime != null">ordertime=#{ordertime,jdbcType=VARCHAR},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="getListbyExtractId" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_payinfo where state=1 AND eid = #{eid,jdbcType=BIGINT}
|
| | | </select>
|
| | | |
| | | <select id="sumMoneyByUid" resultType="java.lang.Double" parameterType="java.lang.Long">
|
| | | <!-- 统计个人提现成功金额 -->
|
| | | SELECT COALESCE(SUM(ex.`money`),0) FROM `yeshi_ec_payinfo` p |
| | | LEFT JOIN `yeshi_ec_extract` ex ON p.`eid`=ex.`id` |
| | | WHERE p.`state` = 1 AND ex.uid = #{uid}
|
| | | </select>
|
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.RecommendBannerV2Mapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.recommend.RecommendBannerV2"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="name" property="name" jdbcType="VARCHAR"/> |
| | | <result column="picture" property="picture" jdbcType="VARCHAR"/> |
| | | <result column="params" property="params" jdbcType="VARCHAR"/> |
| | | <result column="createtime" property="createtime" jdbcType="BIGINT"/> |
| | | <result column="orderby" property="orderby" jdbcType="INTEGER"/> |
| | | <result column="show" property="show" jdbcType="VARCHAR"/> |
| | | <association property="jumpDetail" column="jumpid" javaType="com.yeshi.fanli.entity.common.JumpDetailV2"> |
| | | <id column="jumpid" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List">id,`name`,`picture`,jumpid,`params`,`createtime`,`orderby`,`show`</sql> |
| | | |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long"> |
| | | select <include refid="Base_Column_List"/>from yeshi_ec_recommend_banner_v2 where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.RecommendBannerV2Mapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.recommend.RecommendBannerV2">
|
| | | <id column="id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="name" property="name" jdbcType="VARCHAR"/>
|
| | | <result column="picture" property="picture" jdbcType="VARCHAR"/>
|
| | | <result column="params" property="params" jdbcType="VARCHAR"/>
|
| | | <result column="createtime" property="createtime" jdbcType="BIGINT"/>
|
| | | <result column="orderby" property="orderby" jdbcType="INTEGER"/>
|
| | | <result column="show" property="show" jdbcType="VARCHAR"/>
|
| | | <association property="jumpDetail" column="jumpid" javaType="com.yeshi.fanli.entity.common.JumpDetailV2">
|
| | | <id column="jumpid" property="id" jdbcType="BIGINT" /> |
| | | </association>
|
| | | </resultMap>
|
| | | |
| | | <sql id="Base_Column_List">id,`name`,`picture`,jumpid,`params`,`createtime`,`orderby`,`show`</sql>
|
| | | |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">
|
| | | select <include refid="Base_Column_List"/>from yeshi_ec_recommend_banner_v2 where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SMSHistoryMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.SMSHistory"> |
| | | <id column="sh_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="sh_type" property="type" jdbcType="INTEGER" /> |
| | | <result column="sh_phone" property="phone" jdbcType="VARCHAR" /> |
| | | <result column="sh_content" property="content" jdbcType="VARCHAR" /> |
| | | <result column="sh_createtime" property="createTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">sh_id,sh_type,sh_phone,sh_content,sh_createtime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_sms_history where sh_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_sms_history where sh_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_sms_history |
| | | (sh_id,sh_type,sh_phone,sh_content,sh_createtime) values |
| | | (#{id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{phone,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_sms_history |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">sh_id,</if> |
| | | <if test="type != null">sh_type,</if> |
| | | <if test="phone != null">sh_phone,</if> |
| | | <if test="content != null">sh_content,</if> |
| | | <if test="createTime != null">sh_createtime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | <if test="phone != null">#{phone,jdbcType=VARCHAR},</if> |
| | | <if test="content != null">#{content,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory">update |
| | | yeshi_ec_sms_history set sh_type = #{type,jdbcType=INTEGER},sh_phone = |
| | | #{phone,jdbcType=VARCHAR},sh_content = |
| | | #{content,jdbcType=VARCHAR},sh_createtime = |
| | | #{createTime,jdbcType=TIMESTAMP} where sh_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory"> |
| | | update yeshi_ec_sms_history |
| | | <set> |
| | | <if test="type != null">sh_type=#{type,jdbcType=INTEGER},</if> |
| | | <if test="phone != null">sh_phone=#{phone,jdbcType=VARCHAR},</if> |
| | | <if test="content != null">sh_content=#{content,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">sh_createtime=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where sh_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SMSHistoryMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.SMSHistory">
|
| | | <id column="sh_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="sh_type" property="type" jdbcType="INTEGER" />
|
| | | <result column="sh_phone" property="phone" jdbcType="VARCHAR" />
|
| | | <result column="sh_content" property="content" jdbcType="VARCHAR" />
|
| | | <result column="sh_createtime" property="createTime" jdbcType="TIMESTAMP" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">sh_id,sh_type,sh_phone,sh_content,sh_createtime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_sms_history where sh_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_sms_history where sh_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_sms_history
|
| | | (sh_id,sh_type,sh_phone,sh_content,sh_createtime) values
|
| | | (#{id,jdbcType=BIGINT},#{type,jdbcType=INTEGER},#{phone,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_sms_history
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">sh_id,</if>
|
| | | <if test="type != null">sh_type,</if>
|
| | | <if test="phone != null">sh_phone,</if>
|
| | | <if test="content != null">sh_content,</if>
|
| | | <if test="createTime != null">sh_createtime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if>
|
| | | <if test="phone != null">#{phone,jdbcType=VARCHAR},</if>
|
| | | <if test="content != null">#{content,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory">update
|
| | | yeshi_ec_sms_history set sh_type = #{type,jdbcType=INTEGER},sh_phone =
|
| | | #{phone,jdbcType=VARCHAR},sh_content =
|
| | | #{content,jdbcType=VARCHAR},sh_createtime =
|
| | | #{createTime,jdbcType=TIMESTAMP} where sh_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.SMSHistory">
|
| | | update yeshi_ec_sms_history
|
| | | <set>
|
| | | <if test="type != null">sh_type=#{type,jdbcType=INTEGER},</if>
|
| | | <if test="phone != null">sh_phone=#{phone,jdbcType=VARCHAR},</if>
|
| | | <if test="content != null">sh_content=#{content,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">sh_createtime=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where sh_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ScanHistoryMapper"> |
| | | |
| | | <select id="countUserScanHistory" parameterType="java.lang.Long" resultType="java.lang.Long"> |
| | | SELECT IFNULL(COUNT(id),0) FROM yeshi_ec_scanhistory WHERE uid=#{userId,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.ScanHistoryMapper">
|
| | | |
| | | <select id="countUserScanHistory" parameterType="java.lang.Long" resultType="java.lang.Long">
|
| | | SELECT IFNULL(COUNT(id),0) FROM yeshi_ec_scanhistory WHERE uid=#{userId,jdbcType=BIGINT}
|
| | | </select>
|
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.StrategyPictureMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.xcx.StrategyPicture"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="strategyPicture" property="strategyPicture" |
| | | jdbcType="VARCHAR" /> |
| | | <result column="post_picture" property="postPicture" jdbcType="VARCHAR" /> |
| | | <result column="title" property="title" jdbcType="VARCHAR" /> |
| | | <result column="orderBy" property="orderBy" jdbcType="INTEGER" /> |
| | | <result column="type" property="type" jdbcType="INTEGER" /> |
| | | <result column="video_url" property="videoUrl" jdbcType="VARCHAR" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,strategyPicture,post_picture,title,orderBy,type,video_url |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from ye_yeshi_strategy_picture where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectStrategyPictureList" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from ye_yeshi_strategy_picture order by orderBy desc |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | ye_yeshi_strategy_picture where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | ye_yeshi_strategy_picture |
| | | (id,strategyPicture,post_picture,title,orderBy,type,video_url) values |
| | | (#{id,jdbcType=BIGINT},#{strategyPicture,jdbcType=VARCHAR},#{postPicture,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR},#{orderBy,jdbcType=INTEGER},#{type,jdbcType=INTEGER},#{videoUrl,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into ye_yeshi_strategy_picture |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="strategyPicture != null">strategyPicture,</if> |
| | | <if test="postPicture != null">post_picture,</if> |
| | | <if test="title != null">title,</if> |
| | | <if test="orderBy != null">orderBy,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="videoUrl != null">video_url,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="strategyPicture != null">#{strategyPicture,jdbcType=VARCHAR},</if> |
| | | <if test="postPicture != null">#{postPicture,jdbcType=VARCHAR},</if> |
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if> |
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | <if test="videoUrl != null">#{videoUrl,jdbcType=VARCHAR}</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture">update |
| | | ye_yeshi_strategy_picture set strategyPicture = |
| | | #{strategyPicture,jdbcType=VARCHAR},post_picture = |
| | | #{postPicture,jdbcType=VARCHAR},title = |
| | | #{title,jdbcType=VARCHAR},orderBy = #{orderBy,jdbcType=INTEGER} ,type |
| | | =#{type,jdbcType=INTEGER} ,video_url =#{videoUrl,jdbcType=VARCHAR} |
| | | where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture"> |
| | | update ye_yeshi_strategy_picture |
| | | <set> |
| | | <if test="strategyPicture != null">strategyPicture=#{strategyPicture,jdbcType=VARCHAR},</if> |
| | | <if test="postPicture != null">post_picture=#{postPicture,jdbcType=VARCHAR},</if> |
| | | <if test="title != null">title=#{title,jdbcType=VARCHAR},</if> |
| | | <if test="orderBy != null">orderBy=#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="type !=null">type =#{type,jdbcType=INTEGER},</if> |
| | | <if test="videoUrl !=null">video_url =#{videoUrl,jdbcType=VARCHAR},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.StrategyPictureMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.xcx.StrategyPicture">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="strategyPicture" property="strategyPicture"
|
| | | jdbcType="VARCHAR" />
|
| | | <result column="post_picture" property="postPicture" jdbcType="VARCHAR" />
|
| | | <result column="title" property="title" jdbcType="VARCHAR" />
|
| | | <result column="orderBy" property="orderBy" jdbcType="INTEGER" />
|
| | | <result column="type" property="type" jdbcType="INTEGER" />
|
| | | <result column="video_url" property="videoUrl" jdbcType="VARCHAR" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,strategyPicture,post_picture,title,orderBy,type,video_url
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from ye_yeshi_strategy_picture where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <select id="selectStrategyPictureList" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from ye_yeshi_strategy_picture order by orderBy desc
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | ye_yeshi_strategy_picture where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | ye_yeshi_strategy_picture
|
| | | (id,strategyPicture,post_picture,title,orderBy,type,video_url) values
|
| | | (#{id,jdbcType=BIGINT},#{strategyPicture,jdbcType=VARCHAR},#{postPicture,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR},#{orderBy,jdbcType=INTEGER},#{type,jdbcType=INTEGER},#{videoUrl,jdbcType=VARCHAR})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into ye_yeshi_strategy_picture
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="strategyPicture != null">strategyPicture,</if>
|
| | | <if test="postPicture != null">post_picture,</if>
|
| | | <if test="title != null">title,</if>
|
| | | <if test="orderBy != null">orderBy,</if>
|
| | | <if test="type != null">type,</if>
|
| | | <if test="videoUrl != null">video_url,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="strategyPicture != null">#{strategyPicture,jdbcType=VARCHAR},</if>
|
| | | <if test="postPicture != null">#{postPicture,jdbcType=VARCHAR},</if>
|
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if>
|
| | | <if test="videoUrl != null">#{videoUrl,jdbcType=VARCHAR}</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture">update
|
| | | ye_yeshi_strategy_picture set strategyPicture =
|
| | | #{strategyPicture,jdbcType=VARCHAR},post_picture =
|
| | | #{postPicture,jdbcType=VARCHAR},title =
|
| | | #{title,jdbcType=VARCHAR},orderBy = #{orderBy,jdbcType=INTEGER} ,type
|
| | | =#{type,jdbcType=INTEGER} ,video_url =#{videoUrl,jdbcType=VARCHAR}
|
| | | where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.xcx.StrategyPicture">
|
| | | update ye_yeshi_strategy_picture
|
| | | <set>
|
| | | <if test="strategyPicture != null">strategyPicture=#{strategyPicture,jdbcType=VARCHAR},</if>
|
| | | <if test="postPicture != null">post_picture=#{postPicture,jdbcType=VARCHAR},</if>
|
| | | <if test="title != null">title=#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="orderBy != null">orderBy=#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="type !=null">type =#{type,jdbcType=INTEGER},</if>
|
| | | <if test="videoUrl !=null">video_url =#{videoUrl,jdbcType=VARCHAR},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SuperGoodsClassMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | |
| | | <association property="goodsClass" column="goodsclass_id" |
| | | select="com.yeshi.fanli.dao.mybatis.GoodsClassMapper.selectByPrimaryKey"/> |
| | | |
| | | <association property="system" column="system_id" javaType="com.yeshi.fanli.entity.system.BusinessSystem"> |
| | | <id column="system_id" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,goodsclass_id,system_id</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_super_goodsclass where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_super_goodsclass where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_goodsclass (id,goodsclass_id,system_id) values (#{id,jdbcType=BIGINT},#{goodsClass.id,jdbcType=BIGINT},#{system.id,jdbcType=BIGINT})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_goodsclass |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="goodsClass != null">goodsclass_id,</if> |
| | | <if test="system != null">system_id,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="goodsClass != null">#{goodsClass.id,jdbcType=BIGINT},</if> |
| | | <if test="system != null">#{system.id,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass">update yeshi_ec_super_goodsclass set goodsclass_id = #{goodsClass.id,jdbcType=BIGINT},system_id = #{system.id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass">update yeshi_ec_super_goodsclass |
| | | <set> |
| | | <if test="goodsClass != null">goodsclass_id=#{goodsClass.id,jdbcType=BIGINT},</if> |
| | | <if test="system != null">system_id=#{system.id,jdbcType=BIGINT},</if> |
| | | </set> where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listBySystemId" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_super_goodsclass sg |
| | | LEFT JOIN yeshi_ec_class cs ON cs.`id` = sg.`goodsclass_id` |
| | | WHERE sg.`system_id` = #{systemId} |
| | | ORDER BY cs.`orderby` |
| | | </select> |
| | | |
| | | <select id="listByGoodsclassIds" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_super_goodsclass sg |
| | | LEFT JOIN yeshi_ec_class cs ON cs.`id` = sg.`goodsclass_id` |
| | | WHERE cs.`id` IN |
| | | <foreach collection="list" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="listBySystemIdAmdClassName" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_super_goodsclass sg |
| | | LEFT JOIN yeshi_ec_class cs ON cs.`id` = sg.`goodsclass_id` |
| | | WHERE sg.`system_id` = #{systemId} AND cs.`name` LIKE '%#{name}%' |
| | | ORDER BY cs.`orderby` |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | | <delete id="deleteBySystemIdAndClassId"> |
| | | DELETE FROM yeshi_ec_super_goodsclass |
| | | WHERE `goodsclass_id` = #{goodsClassId} AND system_id = #{systemId} |
| | | </delete> |
| | | |
| | | <delete id="deleteByClassId"> |
| | | DELETE FROM yeshi_ec_super_goodsclass |
| | | WHERE `goodsclass_id` = #{goodsClassId} |
| | | </delete> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SuperGoodsClassMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass">
|
| | | <id column="id" property="id" jdbcType="BIGINT"/>
|
| | | |
| | | <association property="goodsClass" column="goodsclass_id" |
| | | select="com.yeshi.fanli.dao.mybatis.GoodsClassMapper.selectByPrimaryKey"/>
|
| | | |
| | | <association property="system" column="system_id" javaType="com.yeshi.fanli.entity.system.BusinessSystem">
|
| | | <id column="system_id" property="id" jdbcType="BIGINT" /> |
| | | </association>
|
| | | |
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,goodsclass_id,system_id</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_super_goodsclass where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_super_goodsclass where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_goodsclass (id,goodsclass_id,system_id) values (#{id,jdbcType=BIGINT},#{goodsClass.id,jdbcType=BIGINT},#{system.id,jdbcType=BIGINT})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_goodsclass
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="goodsClass != null">goodsclass_id,</if>
|
| | | <if test="system != null">system_id,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="goodsClass != null">#{goodsClass.id,jdbcType=BIGINT},</if>
|
| | | <if test="system != null">#{system.id,jdbcType=BIGINT},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass">update yeshi_ec_super_goodsclass set goodsclass_id = #{goodsClass.id,jdbcType=BIGINT},system_id = #{system.id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.su.clazz.SuperGoodsClass">update yeshi_ec_super_goodsclass
|
| | | <set>
|
| | | <if test="goodsClass != null">goodsclass_id=#{goodsClass.id,jdbcType=BIGINT},</if>
|
| | | <if test="system != null">system_id=#{system.id,jdbcType=BIGINT},</if>
|
| | | </set> where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="listBySystemId" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_super_goodsclass sg |
| | | LEFT JOIN yeshi_ec_class cs ON cs.`id` = sg.`goodsclass_id`
|
| | | WHERE sg.`system_id` = #{systemId}
|
| | | ORDER BY cs.`orderby`
|
| | | </select>
|
| | | |
| | | <select id="listByGoodsclassIds" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_super_goodsclass sg |
| | | LEFT JOIN yeshi_ec_class cs ON cs.`id` = sg.`goodsclass_id`
|
| | | WHERE cs.`id` IN |
| | | <foreach collection="list" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item}
|
| | | </foreach>
|
| | | </select>
|
| | | |
| | | <select id="listBySystemIdAmdClassName" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_super_goodsclass sg |
| | | LEFT JOIN yeshi_ec_class cs ON cs.`id` = sg.`goodsclass_id`
|
| | | WHERE sg.`system_id` = #{systemId} AND cs.`name` LIKE '%#{name}%'
|
| | | ORDER BY cs.`orderby`
|
| | | LIMIT #{start},#{count}
|
| | | </select>
|
| | | |
| | | <delete id="deleteBySystemIdAndClassId">
|
| | | DELETE FROM yeshi_ec_super_goodsclass |
| | | WHERE `goodsclass_id` = #{goodsClassId} AND system_id = #{systemId}
|
| | | </delete>
|
| | | |
| | | <delete id="deleteByClassId">
|
| | | DELETE FROM yeshi_ec_super_goodsclass |
| | | WHERE `goodsclass_id` = #{goodsClassId}
|
| | | </delete>
|
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SuperRecommendBannerV2Mapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | |
| | | <association property="recommendBanner" column="recommendbanner_id" |
| | | select="com.yeshi.fanli.dao.mybatis.RecommendBannerV2Mapper.selectByPrimaryKey"/> |
| | | |
| | | <association property="system" column="system_id" javaType="com.yeshi.fanli.entity.system.BusinessSystem"> |
| | | <id column="system_id" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | </resultMap> |
| | | |
| | | |
| | | <sql id="Base_Column_List">id,recommendbanner_id,system_id</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_super_recommendbanner_v2 where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_super_recommendbanner_v2 where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_recommendbanner_v2 (id,recommendbanner_id,system_id) values (#{id,jdbcType=BIGINT},#{recommendBanner.id,jdbcType=BIGINT},#{system.id,jdbcType=BIGINT})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_recommendbanner_v2 |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="recommendBanner != null">recommendbanner_id,</if> |
| | | <if test="system != null">system_id,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="recommendBanner != null">#{recommendBanner.id,jdbcType=BIGINT},</if> |
| | | <if test="system != null">#{system.id,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2">update yeshi_ec_super_recommendbanner_v2 set recommendbanner_id = #{recommendBanner.id,jdbcType=BIGINT},system_id = #{system.id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2">update yeshi_ec_super_recommendbanner_v2 |
| | | <set> |
| | | <if test="recommendBanner != null">recommendbanner_id=#{recommendBanner.id,jdbcType=BIGINT},</if> |
| | | <if test="system != null">system_id=#{system.id,jdbcType=BIGINT},</if> |
| | | </set> where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listBySystemId" resultMap="BaseResultMap"> |
| | | SELECT vp.* FROM yeshi_ec_super_recommendbanner_v2 vp |
| | | LEFT JOIN yeshi_ec_recommend_banner_v2 vb ON vb.`id` = vp.`recommendbanner_id` |
| | | WHERE vp.`system_id` = #{systemId} |
| | | ORDER BY vb.`orderby` |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SuperRecommendBannerV2Mapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2">
|
| | | <id column="id" property="id" jdbcType="BIGINT"/>
|
| | | |
| | | <association property="recommendBanner" column="recommendbanner_id" |
| | | select="com.yeshi.fanli.dao.mybatis.RecommendBannerV2Mapper.selectByPrimaryKey"/>
|
| | | |
| | | <association property="system" column="system_id" javaType="com.yeshi.fanli.entity.system.BusinessSystem">
|
| | | <id column="system_id" property="id" jdbcType="BIGINT" /> |
| | | </association>
|
| | | </resultMap>
|
| | | |
| | | |
| | | <sql id="Base_Column_List">id,recommendbanner_id,system_id</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_super_recommendbanner_v2 where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_super_recommendbanner_v2 where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_recommendbanner_v2 (id,recommendbanner_id,system_id) values (#{id,jdbcType=BIGINT},#{recommendBanner.id,jdbcType=BIGINT},#{system.id,jdbcType=BIGINT})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_super_recommendbanner_v2
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="recommendBanner != null">recommendbanner_id,</if>
|
| | | <if test="system != null">system_id,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="recommendBanner != null">#{recommendBanner.id,jdbcType=BIGINT},</if>
|
| | | <if test="system != null">#{system.id,jdbcType=BIGINT},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2">update yeshi_ec_super_recommendbanner_v2 set recommendbanner_id = #{recommendBanner.id,jdbcType=BIGINT},system_id = #{system.id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.su.recommend.SuperRecommendBannerV2">update yeshi_ec_super_recommendbanner_v2
|
| | | <set>
|
| | | <if test="recommendBanner != null">recommendbanner_id=#{recommendBanner.id,jdbcType=BIGINT},</if>
|
| | | <if test="system != null">system_id=#{system.id,jdbcType=BIGINT},</if>
|
| | | </set> where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="listBySystemId" resultMap="BaseResultMap">
|
| | | SELECT vp.* FROM yeshi_ec_super_recommendbanner_v2 vp |
| | | LEFT JOIN yeshi_ec_recommend_banner_v2 vb ON vb.`id` = vp.`recommendbanner_id`
|
| | | WHERE vp.`system_id` = #{systemId}
|
| | | ORDER BY vb.`orderby`
|
| | | </select>
|
| | | |
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SystemClientParamsMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.system.SystemClientParams"> |
| | | <id column="id" property="id" jdbcType="BIGINT" /> |
| | | <result column="key" property="key" jdbcType="VARCHAR" /> |
| | | <result column="value" property="value" jdbcType="VARCHAR" /> |
| | | <result column="name" property="name" jdbcType="VARCHAR" /> |
| | | <result column="updatetime" property="updatetime" jdbcType="BIGINT" /> |
| | | <result column="min_version" property="minVersion" jdbcType="INTEGER" /> |
| | | <association property="system" column="systemid" |
| | | javaType="com.yeshi.fanli.entity.system.BusinessSystem"> |
| | | <id column="systemid" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,`systemid`,`key`,`value`,`name`,updatetime,min_version |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_system_clientparams where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_system_clientparams where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.SystemClientParams" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_system_clientparams |
| | | (id,`systemid`,`key`,`value`,`name`,updatetime,min_version) |
| | | values |
| | | (#{id,jdbcType=BIGINT}, #{system.id,jdbcType=BIGINT}, |
| | | #{key,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, |
| | | #{name,jdbcType=VARCHAR}, |
| | | #{updatetime,jdbcType=BIGINT},#{minVersion,jdbcType=INTEGER}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.SystemClientParams" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_system_clientparams |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="system != null">`systemid`,</if> |
| | | <if test="key != null">`key`,</if> |
| | | <if test="value != null">`value`,</if> |
| | | <if test="name != null">`name`,</if> |
| | | <if test="updatetime != null">updatetime,</if> |
| | | <if test="minVersion != null">min_version,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="system != null">#{system.id,jdbcType=BIGINT},</if> |
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="updatetime != null">#{updatetime,jdbcType=BIGINT},</if> |
| | | <if test="minVersion != null">#{minVersion,jdbcType=INTEGER}</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.SystemClientParams">update |
| | | yeshi_ec_system_clientparams set systemid = |
| | | #{system.id,jdbcType=BIGINT},`key` = #{key,jdbcType=VARCHAR},`value` = |
| | | #{value,jdbcType=VARCHAR},`name` = #{name,jdbcType=VARCHAR},updatetime |
| | | = #{updatetime,jdbcType=BIGINT} ,min_version |
| | | =#{minVersion,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.SystemClientParams"> |
| | | update yeshi_ec_system_clientparams |
| | | <set> |
| | | <if test="system != null">`systemid`=#{system.id,jdbcType=BIGINT},</if> |
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">`value`=#{value,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="updatetime != null">updatetime=#{updatetime,jdbcType=BIGINT},</if> |
| | | <if test="minVersion !=null">min_version =#{minVersion,jdbcType=INTEGER},</if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listBySystemIdAndMinVersion" resultMap="BaseResultMap"> |
| | | SELECT * FROM ( |
| | | SELECT * FROM |
| | | yeshi_ec_system_clientparams cp WHERE |
| | | cp.`systemid` = |
| | | #{systemId} |
| | | <if test="minVersion!=null"> |
| | | and #{minVersion}>=min_version |
| | | order by min_version desc |
| | | </if> |
| | | )a group by a.key |
| | | </select> |
| | | |
| | | <select id="getSystemClientParamsBySystemAndKey" resultMap="BaseResultMap">SELECT |
| | | * FROM yeshi_ec_system_clientparams cp WHERE cp.`systemid` = |
| | | #{systemId} AND cp.`key` = #{key} LIMIT 1 |
| | | </select> |
| | | <select id="listQuery" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_system_clientparams cp WHERE 1=1 |
| | | <if test="systemId != null">AND cp.`systemid` = #{systemId}</if> |
| | | <if test="key != null and key != '' ">AND (cp.`name` LIKE '%${key}%' or cp.`key` LIKE |
| | | '%${key}%' |
| | | ) |
| | | </if> |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | <select id="countQuery" resultType="java.lang.Long"> |
| | | SELECT IFNULL(COUNT(cp.`id`),0) FROM yeshi_ec_system_clientparams cp |
| | | WHERE 1=1 |
| | | <if test="systemId != null">AND cp.`systemid` = #{systemId}</if> |
| | | <if test="key != null and key != '' ">AND (cp.`name` LIKE '%${key}%' or cp.`key` LIKE |
| | | '%${key}%' |
| | | ) |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SystemClientParamsMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.system.SystemClientParams">
|
| | | <id column="id" property="id" jdbcType="BIGINT" />
|
| | | <result column="key" property="key" jdbcType="VARCHAR" />
|
| | | <result column="value" property="value" jdbcType="VARCHAR" />
|
| | | <result column="name" property="name" jdbcType="VARCHAR" />
|
| | | <result column="updatetime" property="updatetime" jdbcType="BIGINT" />
|
| | | <result column="min_version" property="minVersion" jdbcType="INTEGER" />
|
| | | <association property="system" column="systemid"
|
| | | javaType="com.yeshi.fanli.entity.system.BusinessSystem">
|
| | | <id column="systemid" property="id" jdbcType="BIGINT" />
|
| | | </association>
|
| | |
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,`systemid`,`key`,`value`,`name`,updatetime,min_version
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_system_clientparams where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_system_clientparams where id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.SystemClientParams"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_system_clientparams
|
| | | (id,`systemid`,`key`,`value`,`name`,updatetime,min_version)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT}, #{system.id,jdbcType=BIGINT},
|
| | | #{key,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
|
| | | #{name,jdbcType=VARCHAR},
|
| | | #{updatetime,jdbcType=BIGINT},#{minVersion,jdbcType=INTEGER})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.SystemClientParams"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_system_clientparams
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="system != null">`systemid`,</if>
|
| | | <if test="key != null">`key`,</if>
|
| | | <if test="value != null">`value`,</if>
|
| | | <if test="name != null">`name`,</if>
|
| | | <if test="updatetime != null">updatetime,</if>
|
| | | <if test="minVersion != null">min_version,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="system != null">#{system.id,jdbcType=BIGINT},</if>
|
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="updatetime != null">#{updatetime,jdbcType=BIGINT},</if>
|
| | | <if test="minVersion != null">#{minVersion,jdbcType=INTEGER}</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.SystemClientParams">update
|
| | | yeshi_ec_system_clientparams set systemid =
|
| | | #{system.id,jdbcType=BIGINT},`key` = #{key,jdbcType=VARCHAR},`value` =
|
| | | #{value,jdbcType=VARCHAR},`name` = #{name,jdbcType=VARCHAR},updatetime
|
| | | = #{updatetime,jdbcType=BIGINT} ,min_version
|
| | | =#{minVersion,jdbcType=INTEGER} where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.SystemClientParams">
|
| | | update yeshi_ec_system_clientparams
|
| | | <set>
|
| | | <if test="system != null">`systemid`=#{system.id,jdbcType=BIGINT},</if>
|
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">`value`=#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="updatetime != null">updatetime=#{updatetime,jdbcType=BIGINT},</if>
|
| | | <if test="minVersion !=null">min_version =#{minVersion,jdbcType=INTEGER},</if>
|
| | | </set>
|
| | | where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | |
|
| | | <select id="listBySystemIdAndMinVersion" resultMap="BaseResultMap">
|
| | | SELECT * FROM (
|
| | | SELECT * FROM
|
| | | yeshi_ec_system_clientparams cp WHERE
|
| | | cp.`systemid` =
|
| | | #{systemId}
|
| | | <if test="minVersion!=null">
|
| | | and #{minVersion}>=min_version
|
| | | order by min_version desc
|
| | | </if>
|
| | | )a group by a.key
|
| | | </select>
|
| | |
|
| | | <select id="getSystemClientParamsBySystemAndKey" resultMap="BaseResultMap">SELECT
|
| | | * FROM yeshi_ec_system_clientparams cp WHERE cp.`systemid` =
|
| | | #{systemId} AND cp.`key` = #{key} LIMIT 1
|
| | | </select>
|
| | | <select id="listQuery" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_system_clientparams cp WHERE 1=1
|
| | | <if test="systemId != null">AND cp.`systemid` = #{systemId}</if>
|
| | | <if test="key != null and key != '' ">AND (cp.`name` LIKE '%${key}%' or cp.`key` LIKE
|
| | | '%${key}%'
|
| | | )
|
| | | </if>
|
| | | LIMIT #{start},#{count}
|
| | | </select>
|
| | | <select id="countQuery" resultType="java.lang.Long">
|
| | | SELECT IFNULL(COUNT(cp.`id`),0) FROM yeshi_ec_system_clientparams cp
|
| | | WHERE 1=1
|
| | | <if test="systemId != null">AND cp.`systemid` = #{systemId}</if>
|
| | | <if test="key != null and key != '' ">AND (cp.`name` LIKE '%${key}%' or cp.`key` LIKE
|
| | | '%${key}%'
|
| | | )
|
| | | </if>
|
| | | </select>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SystemConfigMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.SystemConfig"> |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="key" property="key" jdbcType="VARCHAR"/> |
| | | <result column="value" property="value" jdbcType="VARCHAR"/> |
| | | <result column="name" property="name" jdbcType="VARCHAR"/> |
| | | <result column="updatetime" property="updatetime" jdbcType="BIGINT"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">id,`key`,`value`,`name`,updatetime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_system_config where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_system_config where id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.SystemConfig" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_system_config (id,`key`,`value`,`name`,updatetime) values (#{id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{value,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{updatetime,jdbcType=BIGINT})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.SystemConfig" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_system_config |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="key != null">`key`,</if> |
| | | <if test="value != null">`value`,</if> |
| | | <if test="name != null">`name`,</if> |
| | | <if test="updatetime != null">updatetime,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="updatetime != null">#{updatetime,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.SystemConfig">update yeshi_ec_system_config set `key` = #{key,jdbcType=VARCHAR},`value` = #{value,jdbcType=VARCHAR},`name` = #{name,jdbcType=VARCHAR},updatetime = #{updatetime,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.SystemConfig">update yeshi_ec_system_config |
| | | <set> |
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if> |
| | | <if test="value != null">`value`=#{value,jdbcType=VARCHAR},</if> |
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="updatetime != null">updatetime=#{updatetime,jdbcType=BIGINT},</if> |
| | | </set> where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="getByKey" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_system_config t |
| | | WHERE t.`key` = #{key} |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | <select id="getByKeyAndSystemId" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_system_config t |
| | | LEFT JOIN `yeshi_ec_system_systemconfig` g ON g.`scid` = t.`id` |
| | | WHERE t.`key` = #{key} AND g.`sid` = #{systemId} |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.SystemConfigMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.system.SystemConfig">
|
| | | <id column="id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="key" property="key" jdbcType="VARCHAR"/>
|
| | | <result column="value" property="value" jdbcType="VARCHAR"/>
|
| | | <result column="name" property="name" jdbcType="VARCHAR"/>
|
| | | <result column="updatetime" property="updatetime" jdbcType="BIGINT"/>
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">id,`key`,`value`,`name`,updatetime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_system_config where id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_system_config where id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.system.SystemConfig" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_system_config (id,`key`,`value`,`name`,updatetime) values (#{id,jdbcType=BIGINT},#{key,jdbcType=VARCHAR},#{value,jdbcType=VARCHAR},#{name,jdbcType=VARCHAR},#{updatetime,jdbcType=BIGINT})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.system.SystemConfig" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_system_config
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">id,</if>
|
| | | <if test="key != null">`key`,</if>
|
| | | <if test="value != null">`value`,</if>
|
| | | <if test="name != null">`name`,</if>
|
| | | <if test="updatetime != null">updatetime,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="key != null">#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="updatetime != null">#{updatetime,jdbcType=BIGINT},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.system.SystemConfig">update yeshi_ec_system_config set `key` = #{key,jdbcType=VARCHAR},`value` = #{value,jdbcType=VARCHAR},`name` = #{name,jdbcType=VARCHAR},updatetime = #{updatetime,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.system.SystemConfig">update yeshi_ec_system_config
|
| | | <set>
|
| | | <if test="key != null">`key`=#{key,jdbcType=VARCHAR},</if>
|
| | | <if test="value != null">`value`=#{value,jdbcType=VARCHAR},</if>
|
| | | <if test="name != null">`name`=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="updatetime != null">updatetime=#{updatetime,jdbcType=BIGINT},</if>
|
| | | </set> where id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="getByKey" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_system_config t |
| | | WHERE t.`key` = #{key}
|
| | | LIMIT 1
|
| | | </select>
|
| | | |
| | | <select id="getByKeyAndSystemId" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_system_config t |
| | | LEFT JOIN `yeshi_ec_system_systemconfig` g ON g.`scid` = t.`id`
|
| | | WHERE t.`key` = #{key} AND g.`sid` = #{systemId}
|
| | | LIMIT 1
|
| | | </select>
|
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.TaoBaoClassMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass"> |
| | | <id column="tc_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="tc_category_id" property="categoryId" jdbcType="INTEGER"/> |
| | | <result column="tc_category_name" property="categoryName" jdbcType="VARCHAR"/> |
| | | <result column="tc_parent_category_id" property="parentCategoryId" jdbcType="INTEGER"/> |
| | | <result column="tc_createtime" property="createtime" jdbcType="TIMESTAMP"/> |
| | | <result column="tc_updatetime" property="updatetime" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">tc_id,tc_category_id,tc_category_name,tc_parent_category_id,tc_createtime,tc_updatetime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_taobao_class where tc_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_taobao_class where tc_id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_taobao_class (tc_id,tc_category_id,tc_category_name,tc_parent_category_id,tc_createtime,tc_updatetime) values (#{id,jdbcType=BIGINT},#{categoryId,jdbcType=INTEGER},#{categoryName,jdbcType=VARCHAR},#{parentCategoryId,jdbcType=INTEGER},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_taobao_class |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">tc_id,</if> |
| | | <if test="categoryId != null">tc_category_id,</if> |
| | | <if test="categoryName != null">tc_category_name,</if> |
| | | <if test="parentCategoryId != null">tc_parent_category_id,</if> |
| | | <if test="createtime != null">tc_createtime,</if> |
| | | <if test="updatetime != null">tc_updatetime,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="categoryId != null">#{categoryId,jdbcType=INTEGER},</if> |
| | | <if test="categoryName != null">#{categoryName,jdbcType=VARCHAR},</if> |
| | | <if test="parentCategoryId != null">#{parentCategoryId,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updatetime != null">#{updatetime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass">update yeshi_ec_taobao_class set tc_category_id = #{categoryId,jdbcType=INTEGER},tc_category_name = #{categoryName,jdbcType=VARCHAR},tc_parent_category_id = #{parentCategoryId,jdbcType=INTEGER},tc_createtime = #{createtime,jdbcType=TIMESTAMP},tc_updatetime = #{updatetime,jdbcType=TIMESTAMP} where tc_id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass">update yeshi_ec_taobao_class |
| | | <set> |
| | | <if test="categoryId != null">tc_category_id=#{categoryId,jdbcType=INTEGER},</if> |
| | | <if test="categoryName != null">tc_category_name=#{categoryName,jdbcType=VARCHAR},</if> |
| | | <if test="parentCategoryId != null">tc_parent_category_id=#{parentCategoryId,jdbcType=INTEGER},</if> |
| | | <if test="createtime != null">tc_createtime=#{createtime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updatetime != null">tc_updatetime=#{updatetime,jdbcType=TIMESTAMP},</if> |
| | | </set> where tc_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listBySystemCid" resultMap="BaseResultMap"> |
| | | SELECT <include refid="Base_Column_List"/> FROM `yeshi_ec_taobao_class` tc |
| | | LEFT JOIN `yeshi_ec_taobao_class_mapper` tm ON tc.`tc_id` = tm.`tm_taobao_cid` |
| | | WHERE tm.`tm_system_cid`= #{systemCid} |
| | | ORDER BY tm.`tm_weight` DESC |
| | | LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="listBySystemSubCid" resultMap="BaseResultMap"> |
| | | SELECT <include refid="Base_Column_List"/> FROM `yeshi_ec_taobao_class` tc |
| | | LEFT JOIN `yeshi_ec_taobao_class_mapper` tm ON tc.`tc_id` = tm.`tm_taobao_cid` |
| | | WHERE tm.`tm_system_sub_cid`= #{systemCid} |
| | | ORDER BY tm.`tm_weight` DESC |
| | | LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="getByCategoryId" resultMap="BaseResultMap"> |
| | | SELECT * FROM `yeshi_ec_taobao_class` |
| | | WHERE tc_category_id = #{categoryId} |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.TaoBaoClassMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass">
|
| | | <id column="tc_id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="tc_category_id" property="categoryId" jdbcType="INTEGER"/>
|
| | | <result column="tc_category_name" property="categoryName" jdbcType="VARCHAR"/>
|
| | | <result column="tc_parent_category_id" property="parentCategoryId" jdbcType="INTEGER"/>
|
| | | <result column="tc_createtime" property="createtime" jdbcType="TIMESTAMP"/>
|
| | | <result column="tc_updatetime" property="updatetime" jdbcType="TIMESTAMP"/>
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">tc_id,tc_category_id,tc_category_name,tc_parent_category_id,tc_createtime,tc_updatetime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_taobao_class where tc_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_taobao_class where tc_id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_taobao_class (tc_id,tc_category_id,tc_category_name,tc_parent_category_id,tc_createtime,tc_updatetime) values (#{id,jdbcType=BIGINT},#{categoryId,jdbcType=INTEGER},#{categoryName,jdbcType=VARCHAR},#{parentCategoryId,jdbcType=INTEGER},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_taobao_class
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">tc_id,</if>
|
| | | <if test="categoryId != null">tc_category_id,</if>
|
| | | <if test="categoryName != null">tc_category_name,</if>
|
| | | <if test="parentCategoryId != null">tc_parent_category_id,</if>
|
| | | <if test="createtime != null">tc_createtime,</if>
|
| | | <if test="updatetime != null">tc_updatetime,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="categoryId != null">#{categoryId,jdbcType=INTEGER},</if>
|
| | | <if test="categoryName != null">#{categoryName,jdbcType=VARCHAR},</if>
|
| | | <if test="parentCategoryId != null">#{parentCategoryId,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updatetime != null">#{updatetime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass">update yeshi_ec_taobao_class set tc_category_id = #{categoryId,jdbcType=INTEGER},tc_category_name = #{categoryName,jdbcType=VARCHAR},tc_parent_category_id = #{parentCategoryId,jdbcType=INTEGER},tc_createtime = #{createtime,jdbcType=TIMESTAMP},tc_updatetime = #{updatetime,jdbcType=TIMESTAMP} where tc_id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClass">update yeshi_ec_taobao_class
|
| | | <set>
|
| | | <if test="categoryId != null">tc_category_id=#{categoryId,jdbcType=INTEGER},</if>
|
| | | <if test="categoryName != null">tc_category_name=#{categoryName,jdbcType=VARCHAR},</if>
|
| | | <if test="parentCategoryId != null">tc_parent_category_id=#{parentCategoryId,jdbcType=INTEGER},</if>
|
| | | <if test="createtime != null">tc_createtime=#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updatetime != null">tc_updatetime=#{updatetime,jdbcType=TIMESTAMP},</if>
|
| | | </set> where tc_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="listBySystemCid" resultMap="BaseResultMap">
|
| | | SELECT <include refid="Base_Column_List"/> FROM `yeshi_ec_taobao_class` tc |
| | | LEFT JOIN `yeshi_ec_taobao_class_mapper` tm ON tc.`tc_id` = tm.`tm_taobao_cid` |
| | | WHERE tm.`tm_system_cid`= #{systemCid} |
| | | ORDER BY tm.`tm_weight` DESC
|
| | | LIMIT ${start},${count}
|
| | | </select>
|
| | | |
| | | <select id="listBySystemSubCid" resultMap="BaseResultMap">
|
| | | SELECT <include refid="Base_Column_List"/> FROM `yeshi_ec_taobao_class` tc |
| | | LEFT JOIN `yeshi_ec_taobao_class_mapper` tm ON tc.`tc_id` = tm.`tm_taobao_cid` |
| | | WHERE tm.`tm_system_sub_cid`= #{systemCid} |
| | | ORDER BY tm.`tm_weight` DESC
|
| | | LIMIT ${start},${count}
|
| | | </select>
|
| | | |
| | | <select id="getByCategoryId" resultMap="BaseResultMap">
|
| | | SELECT * FROM `yeshi_ec_taobao_class` |
| | | WHERE tc_category_id = #{categoryId}
|
| | | LIMIT 1
|
| | | </select>
|
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.TaoBaoClassRelationMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation"> |
| | | <id column="tm_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="tm_system_cid" property="cid" jdbcType="BIGINT" /> |
| | | <result column="tm_system_sub_cid" property="subId" jdbcType="BIGINT" /> |
| | | <result column="tm_taobao_cid" property="taobaoCid" jdbcType="TIMESTAMP" /> |
| | | <result column="tm_weight" property="weight" jdbcType="DOUBLE" /> |
| | | <result column="tm_createtime" property="createtime" jdbcType="TIMESTAMP" /> |
| | | <result column="tm_updatetime" property="updatetime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">tm_id,tm_system_cid,tm_system_sub_cid,tm_taobao_cid,tm_weight,tm_createtime,tm_updatetime |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_taobao_class_mapper where tm_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_taobao_class_mapper where tm_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | <delete id="deleteBySubId" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_taobao_class_mapper where tm_system_sub_cid = #{0} |
| | | </delete> |
| | | |
| | | <delete id="deleteByCid" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_taobao_class_mapper where tm_system_cid = #{0} |
| | | </delete> |
| | | |
| | | |
| | | <insert id="insert" |
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_taobao_class_mapper |
| | | (tm_id,tm_system_cid,tm_system_sub_cid,tm_taobao_cid,tm_weight,tm_createtime,tm_updatetime) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{cid,jdbcType=BIGINT},#{subId,jdbcType=BIGINT},#{taobaoCid,jdbcType=BIGINT},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_taobao_class_mapper |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">tm_id,</if> |
| | | <if test="cid != null">tm_system_cid,</if> |
| | | <if test="subId != null">tm_system_sub_cid,</if> |
| | | <if test="taobaoCid != null">tm_taobao_cid,</if> |
| | | <if test="weight != null">tm_weight,</if> |
| | | <if test="createtime != null">tm_createtime,</if> |
| | | <if test="updatetime != null">tm_updatetime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="cid != null">#{cid,jdbcType=BIGINT},</if> |
| | | <if test="subId != null">#{subId,jdbcType=BIGINT},</if> |
| | | <if test="taobaoCid != null">#{taobaoCid,jdbcType=BIGINT},</if> |
| | | <if test="weight != null">#{weight,jdbcType=DOUBLE},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updatetime != null">#{updatetime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation">update yeshi_ec_taobao_class_mapper set tm_system_cid = |
| | | #{cid,jdbcType=BIGINT},tm_system_sub_cid = |
| | | #{subId,jdbcType=BIGINT},tm_taobao_cid = |
| | | #{taobaoCid,jdbcType=BIGINT},tm_weight = |
| | | #{weight,jdbcType=DOUBLE},tm_createtime = |
| | | #{createtime,jdbcType=TIMESTAMP},tm_updatetime = |
| | | #{updatetime,jdbcType=TIMESTAMP} where tm_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation"> |
| | | update yeshi_ec_taobao_class_mapper |
| | | <set> |
| | | <if test="cid != null">tm_system_cid=#{cid,jdbcType=BIGINT},</if> |
| | | <if test="subId != null">tm_system_sub_cid=#{subId,jdbcType=BIGINT},</if> |
| | | <if test="taobaoCid != null">tm_taobao_cid=#{taobaoCid,jdbcType=BIGINT},</if> |
| | | <if test="weight != null">tm_weight=#{weight,jdbcType=DOUBLE},</if> |
| | | <if test="createtime != null">tm_createtime=#{createtime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updatetime != null">tm_updatetime=#{updatetime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where tm_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listByTaoBaoCid" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | FROM `yeshi_ec_taobao_class_mapper` tm |
| | | LEFT JOIN `yeshi_ec_taobao_class` tc ON tc.`tc_id` = tm.`tm_taobao_cid` |
| | | WHERE tc.`tc_category_id`= #{taobaoCid,jdbcType=BIGINT} ORDER BY |
| | | tm.`tm_weight` DESC LIMIT 0,10 |
| | | </select> |
| | | |
| | | <select id="getByLocalCid" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | FROM `yeshi_ec_taobao_class_mapper` |
| | | WHERE tm_taobao_cid = #{localCid,jdbcType=BIGINT} |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | <delete id="deleteRelationByLocalCid" parameterType="java.lang.Long"> |
| | | delete from yeshi_ec_taobao_class_mapper |
| | | where tm_taobao_cid = #{localCid,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | |
| | | <select id="getClassIdByTaoBaoCid" parameterType="java.lang.Long" resultType="java.lang.Long"> |
| | | SELECT tm.tm_system_cid FROM `yeshi_ec_taobao_class_mapper` tm |
| | | LEFT JOIN `yeshi_ec_taobao_class` tc ON tc.`tc_id` = tm.`tm_taobao_cid` |
| | | WHERE tc.`tc_category_id`= #{taobaoCid,jdbcType=BIGINT} |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.TaoBaoClassRelationMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation">
|
| | | <id column="tm_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="tm_system_cid" property="cid" jdbcType="BIGINT" />
|
| | | <result column="tm_system_sub_cid" property="subId" jdbcType="BIGINT" />
|
| | | <result column="tm_taobao_cid" property="taobaoCid" jdbcType="TIMESTAMP" />
|
| | | <result column="tm_weight" property="weight" jdbcType="DOUBLE" />
|
| | | <result column="tm_createtime" property="createtime" jdbcType="TIMESTAMP" />
|
| | | <result column="tm_updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">tm_id,tm_system_cid,tm_system_sub_cid,tm_taobao_cid,tm_weight,tm_createtime,tm_updatetime
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_taobao_class_mapper where tm_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_taobao_class_mapper where tm_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | |
| | | <delete id="deleteBySubId" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_taobao_class_mapper where tm_system_sub_cid = #{0}
|
| | | </delete>
|
| | | |
| | | <delete id="deleteByCid" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_taobao_class_mapper where tm_system_cid = #{0}
|
| | | </delete>
|
| | | |
| | | |
| | | <insert id="insert"
|
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_taobao_class_mapper
|
| | | (tm_id,tm_system_cid,tm_system_sub_cid,tm_taobao_cid,tm_weight,tm_createtime,tm_updatetime)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{cid,jdbcType=BIGINT},#{subId,jdbcType=BIGINT},#{taobaoCid,jdbcType=BIGINT},#{weight,jdbcType=DOUBLE},#{createtime,jdbcType=TIMESTAMP},#{updatetime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_taobao_class_mapper
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">tm_id,</if>
|
| | | <if test="cid != null">tm_system_cid,</if>
|
| | | <if test="subId != null">tm_system_sub_cid,</if>
|
| | | <if test="taobaoCid != null">tm_taobao_cid,</if>
|
| | | <if test="weight != null">tm_weight,</if>
|
| | | <if test="createtime != null">tm_createtime,</if>
|
| | | <if test="updatetime != null">tm_updatetime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="cid != null">#{cid,jdbcType=BIGINT},</if>
|
| | | <if test="subId != null">#{subId,jdbcType=BIGINT},</if>
|
| | | <if test="taobaoCid != null">#{taobaoCid,jdbcType=BIGINT},</if>
|
| | | <if test="weight != null">#{weight,jdbcType=DOUBLE},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updatetime != null">#{updatetime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey"
|
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation">update yeshi_ec_taobao_class_mapper set tm_system_cid =
|
| | | #{cid,jdbcType=BIGINT},tm_system_sub_cid =
|
| | | #{subId,jdbcType=BIGINT},tm_taobao_cid =
|
| | | #{taobaoCid,jdbcType=BIGINT},tm_weight =
|
| | | #{weight,jdbcType=DOUBLE},tm_createtime =
|
| | | #{createtime,jdbcType=TIMESTAMP},tm_updatetime =
|
| | | #{updatetime,jdbcType=TIMESTAMP} where tm_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.clazz.TaoBaoClassRelation">
|
| | | update yeshi_ec_taobao_class_mapper
|
| | | <set>
|
| | | <if test="cid != null">tm_system_cid=#{cid,jdbcType=BIGINT},</if>
|
| | | <if test="subId != null">tm_system_sub_cid=#{subId,jdbcType=BIGINT},</if>
|
| | | <if test="taobaoCid != null">tm_taobao_cid=#{taobaoCid,jdbcType=BIGINT},</if>
|
| | | <if test="weight != null">tm_weight=#{weight,jdbcType=DOUBLE},</if>
|
| | | <if test="createtime != null">tm_createtime=#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updatetime != null">tm_updatetime=#{updatetime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where tm_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | |
|
| | | <select id="listByTaoBaoCid" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | SELECT
|
| | | <include refid="Base_Column_List" />
|
| | | FROM `yeshi_ec_taobao_class_mapper` tm
|
| | | LEFT JOIN `yeshi_ec_taobao_class` tc ON tc.`tc_id` = tm.`tm_taobao_cid`
|
| | | WHERE tc.`tc_category_id`= #{taobaoCid,jdbcType=BIGINT} ORDER BY
|
| | | tm.`tm_weight` DESC LIMIT 0,10
|
| | | </select>
|
| | |
|
| | | <select id="getByLocalCid" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | SELECT
|
| | | <include refid="Base_Column_List" />
|
| | | FROM `yeshi_ec_taobao_class_mapper`
|
| | | WHERE tm_taobao_cid = #{localCid,jdbcType=BIGINT}
|
| | | LIMIT 1
|
| | | </select>
|
| | |
|
| | | <delete id="deleteRelationByLocalCid" parameterType="java.lang.Long">
|
| | | delete from yeshi_ec_taobao_class_mapper
|
| | | where tm_taobao_cid = #{localCid,jdbcType=BIGINT}
|
| | | </delete>
|
| | |
|
| | |
|
| | | <select id="getClassIdByTaoBaoCid" parameterType="java.lang.Long" resultType="java.lang.Long">
|
| | | SELECT tm.tm_system_cid FROM `yeshi_ec_taobao_class_mapper` tm
|
| | | LEFT JOIN `yeshi_ec_taobao_class` tc ON tc.`tc_id` = tm.`tm_taobao_cid`
|
| | | WHERE tc.`tc_category_id`= #{taobaoCid,jdbcType=BIGINT} |
| | | LIMIT 1
|
| | | </select>
|
| | |
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.UserConnectHistoryMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.user.UserConnectHistory"> |
| | | <id column="uch_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="uch_log_url" property="logUrl" jdbcType="VARCHAR" /> |
| | | <result column="uch_createtime" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <association property="mainUser" column="uch_main_uid" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.UserInfoMapper.BaseResultMap" /> |
| | | <association property="lessUser" column="uch_less_uid" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.UserInfoMapper.BaseResultMap" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">uch_id,uch_main_uid,uch_less_uid,uch_log_url,uch_createtime |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_user_connect_history where uch_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_user_connect_history where uch_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_user_connect_history |
| | | (uch_id,uch_main_uid,uch_less_uid,uch_log_url,uch_createtime) values |
| | | (#{id,jdbcType=BIGINT},#{mainUser.id,jdbcType=BIGINT},#{lessUser.id,jdbcType=BIGINT},#{logUrl,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_user_connect_history |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">uch_id,</if> |
| | | <if test="mainUser != null">uch_main_uid,</if> |
| | | <if test="lessUser != null">uch_less_uid,</if> |
| | | <if test="logUrl != null">uch_log_url,</if> |
| | | <if test="createTime != null">uch_createtime,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="mainUser != null">#{mainUser.id,jdbcType=BIGINT},</if> |
| | | <if test="lessUser != null">#{lessUser.id,jdbcType=BIGINT},</if> |
| | | <if test="logUrl != null">#{logUrl,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory">update |
| | | yeshi_ec_user_connect_history set uch_main_uid = |
| | | #{mainUser.id,jdbcType=BIGINT},uch_less_uid = |
| | | #{lessUser.id,jdbcType=BIGINT},uch_log_url = |
| | | #{logUrl,jdbcType=VARCHAR},uch_createtime = |
| | | #{createTime,jdbcType=TIMESTAMP} where uch_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory"> |
| | | update yeshi_ec_user_connect_history |
| | | <set> |
| | | <if test="mainUser != null">uch_main_uid=#{mainUser.id,jdbcType=BIGINT},</if> |
| | | <if test="lessUser != null">uch_less_uid=#{lessUser.id,jdbcType=BIGINT},</if> |
| | | <if test="logUrl != null">uch_log_url=#{logUrl,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">uch_createtime=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where uch_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.UserConnectHistoryMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.user.UserConnectHistory">
|
| | | <id column="uch_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="uch_log_url" property="logUrl" jdbcType="VARCHAR" />
|
| | | <result column="uch_createtime" property="createTime" jdbcType="TIMESTAMP" />
|
| | | <association property="mainUser" column="uch_main_uid"
|
| | | resultMap="com.yeshi.fanli.dao.mybatis.UserInfoMapper.BaseResultMap" />
|
| | | <association property="lessUser" column="uch_less_uid"
|
| | | resultMap="com.yeshi.fanli.dao.mybatis.UserInfoMapper.BaseResultMap" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">uch_id,uch_main_uid,uch_less_uid,uch_log_url,uch_createtime
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_user_connect_history where uch_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_user_connect_history where uch_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_user_connect_history
|
| | | (uch_id,uch_main_uid,uch_less_uid,uch_log_url,uch_createtime) values
|
| | | (#{id,jdbcType=BIGINT},#{mainUser.id,jdbcType=BIGINT},#{lessUser.id,jdbcType=BIGINT},#{logUrl,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_user_connect_history
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">uch_id,</if>
|
| | | <if test="mainUser != null">uch_main_uid,</if>
|
| | | <if test="lessUser != null">uch_less_uid,</if>
|
| | | <if test="logUrl != null">uch_log_url,</if>
|
| | | <if test="createTime != null">uch_createtime,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="mainUser != null">#{mainUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="lessUser != null">#{lessUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="logUrl != null">#{logUrl,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory">update
|
| | | yeshi_ec_user_connect_history set uch_main_uid =
|
| | | #{mainUser.id,jdbcType=BIGINT},uch_less_uid =
|
| | | #{lessUser.id,jdbcType=BIGINT},uch_log_url =
|
| | | #{logUrl,jdbcType=VARCHAR},uch_createtime =
|
| | | #{createTime,jdbcType=TIMESTAMP} where uch_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.UserConnectHistory">
|
| | | update yeshi_ec_user_connect_history
|
| | | <set>
|
| | | <if test="mainUser != null">uch_main_uid=#{mainUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="lessUser != null">uch_less_uid=#{lessUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="logUrl != null">uch_log_url=#{logUrl,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">uch_createtime=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where uch_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.UserRankingsMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.UserRankings"> |
| | | <id column="r_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="r_show_id" property="showId" jdbcType="VARCHAR"/> |
| | | <result column="r_nick_name" property="nickName" jdbcType="VARCHAR"/> |
| | | <result column="r_portrait" property="portrait" jdbcType="VARCHAR"/> |
| | | <result column="r_trade_reward" property="tradeReward" jdbcType="DECIMAL"/> |
| | | <result column="r_share_reward" property="shareReward" jdbcType="DECIMAL"/> |
| | | <result column="r_trade_state" property="tradeState" jdbcType="INTEGER"/> |
| | | <result column="r_share_state" property="shareState" jdbcType="INTEGER"/> |
| | | <result column="r_trade_time" property="tradeTime" jdbcType="TIMESTAMP"/> |
| | | <result column="r_share_time" property="shareTime" jdbcType="TIMESTAMP"/> |
| | | <result column="r_createtime" property="createtime" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">r_id,r_show_id,r_nick_name,r_portrait,r_trade_reward,r_share_reward,r_trade_state,r_share_state,r_trade_time,r_share_time,r_createtime</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_rankings_record where r_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_rankings_record where r_id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_rankings_record (r_id,r_show_id,r_nick_name,r_portrait,r_trade_reward,r_share_reward,r_trade_state,r_share_state,r_trade_time,r_share_time,r_createtime) values (#{id,jdbcType=BIGINT},#{showId,jdbcType=VARCHAR},#{nickName,jdbcType=VARCHAR},#{portrait,jdbcType=VARCHAR},#{tradeReward,jdbcType=DECIMAL},#{shareReward,jdbcType=DECIMAL},#{tradeState,jdbcType=INTEGER},#{shareState,jdbcType=INTEGER},#{tradeTime,jdbcType=TIMESTAMP},#{shareTime,jdbcType=TIMESTAMP},#{createtime,jdbcType=TIMESTAMP})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_rankings_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">r_id,</if> |
| | | <if test="showId != null">r_show_id,</if> |
| | | <if test="nickName != null">r_nick_name,</if> |
| | | <if test="portrait != null">r_portrait,</if> |
| | | <if test="tradeReward != null">r_trade_reward,</if> |
| | | <if test="shareReward != null">r_share_reward,</if> |
| | | <if test="tradeState != null">r_trade_state,</if> |
| | | <if test="shareState != null">r_share_state,</if> |
| | | <if test="tradeTime != null">r_trade_time,</if> |
| | | <if test="shareTime != null">r_share_time,</if> |
| | | <if test="createtime != null">r_createtime,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="showId != null">#{showId,jdbcType=VARCHAR},</if> |
| | | <if test="nickName != null">#{nickName,jdbcType=VARCHAR},</if> |
| | | <if test="portrait != null">#{portrait,jdbcType=VARCHAR},</if> |
| | | <if test="tradeReward != null">#{tradeReward,jdbcType=DECIMAL},</if> |
| | | <if test="shareReward != null">#{shareReward,jdbcType=DECIMAL},</if> |
| | | <if test="tradeState != null">#{tradeState,jdbcType=INTEGER},</if> |
| | | <if test="shareState != null">#{shareState,jdbcType=INTEGER},</if> |
| | | <if test="tradeTime != null">#{tradeTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="shareTime != null">#{shareTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings">update yeshi_ec_rankings_record set r_show_id = #{showId,jdbcType=VARCHAR},r_nick_name = #{nickName,jdbcType=VARCHAR},r_portrait = #{portrait,jdbcType=VARCHAR},r_trade_reward = #{tradeReward,jdbcType=DECIMAL},r_share_reward = #{shareReward,jdbcType=DECIMAL},r_trade_state = #{tradeState,jdbcType=INTEGER},r_share_state = #{shareState,jdbcType=INTEGER},r_trade_time = #{tradeTime,jdbcType=TIMESTAMP},r_share_time = #{shareTime,jdbcType=TIMESTAMP},r_createtime = #{createtime,jdbcType=TIMESTAMP} where r_id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings">update yeshi_ec_rankings_record |
| | | <set> |
| | | <if test="showId != null">r_show_id=#{showId,jdbcType=VARCHAR},</if> |
| | | <if test="nickName != null">r_nick_name=#{nickName,jdbcType=VARCHAR},</if> |
| | | <if test="portrait != null">r_portrait=#{portrait,jdbcType=VARCHAR},</if> |
| | | <if test="tradeReward != null">r_trade_reward=#{tradeReward,jdbcType=DECIMAL},</if> |
| | | <if test="shareReward != null">r_share_reward=#{shareReward,jdbcType=DECIMAL},</if> |
| | | <if test="tradeState != null">r_trade_state=#{tradeState,jdbcType=INTEGER},</if> |
| | | <if test="shareState != null">r_share_state=#{shareState,jdbcType=INTEGER},</if> |
| | | <if test="tradeTime != null">r_trade_time=#{tradeTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="shareTime != null">r_share_time=#{shareTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createtime != null">r_createtime=#{createtime,jdbcType=TIMESTAMP},</if> |
| | | </set> where r_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="selectByNickName" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from yeshi_ec_rankings_record where r_nick_name = #{nickName,jdbcType=VARCHAR} |
| | | </select> |
| | | |
| | | <select id="selectByShowId" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from yeshi_ec_rankings_record where r_show_id = #{showId,jdbcType=VARCHAR} |
| | | </select> |
| | | |
| | | <update id="updateClearTradeState" > |
| | | update yeshi_ec_rankings_record |
| | | <set> |
| | | r_trade_reward = 0, |
| | | r_trade_state = 0 |
| | | </set> |
| | | WHERE r_trade_state = 1 |
| | | </update> |
| | | |
| | | <select id="query" resultMap="BaseResultMap"> |
| | | <!-- 根据条件查询所有标签 --> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_rankings_record |
| | | WHERE <![CDATA[1>0]]> |
| | | <if test='key != null and key != ""'> |
| | | AND (r_show_id like '%#{key}%' OR r_nick_name like '%#{key}%') |
| | | </if> |
| | | |
| | | <if test='tradeState != null and tradeState == 1'> |
| | | AND r_trade_state = #{tradeState} |
| | | </if> |
| | | |
| | | <if test='shareState != null and shareState == 1'> |
| | | AND r_share_state = #{shareState} |
| | | </if> |
| | | |
| | | <if test='tradeState != null and tradeState == 0'> |
| | | AND (r_trade_state = #{tradeState} or r_trade_state is null) |
| | | </if> |
| | | |
| | | <if test='shareState != null and shareState == 0'> |
| | | AND (r_share_state = #{shareState} or r_share_state is null) |
| | | </if> |
| | | |
| | | ORDER BY |
| | | |
| | | <if test='sort==1'> |
| | | r_trade_reward, |
| | | </if> |
| | | <if test='sort==2'> |
| | | r_trade_reward desc, |
| | | </if> |
| | | <if test ='sort==3'> |
| | | r_share_reward, |
| | | </if> |
| | | <if test='sort==4'> |
| | | r_share_reward desc, |
| | | </if> |
| | | <if test='sort==5'> |
| | | r_trade_time, |
| | | </if> |
| | | <if test='sort==6'> |
| | | r_trade_time desc, |
| | | </if> |
| | | <if test='sort==7'> |
| | | r_share_time, |
| | | </if> |
| | | <if test='sort==8'> |
| | | r_share_time desc, |
| | | </if> |
| | | r_createtime LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="queryCount" resultType="java.lang.Long"> |
| | | <!-- 根据条件查询所有标签 --> |
| | | SELECT count(r_id) FROM yeshi_ec_rankings_record |
| | | WHERE <![CDATA[1>0]]> |
| | | <if test='key != null and key != ""'> |
| | | AND (r_show_id like '%#{key}%' OR r_nick_name like '%#{key}%') |
| | | </if> |
| | | <if test='tradeState != null and tradeState == 1'> |
| | | AND r_trade_state = #{tradeState} |
| | | </if> |
| | | |
| | | <if test='shareState != null and shareState == 1'> |
| | | AND r_share_state = #{shareState} |
| | | </if> |
| | | |
| | | <if test='tradeState != null and tradeState == 0'> |
| | | AND (r_trade_state = #{tradeState} or r_trade_state is null) |
| | | </if> |
| | | |
| | | <if test='shareState != null and shareState == 0'> |
| | | AND (r_share_state = #{shareState} or r_share_state is null) |
| | | </if> |
| | | </select> |
| | | |
| | | <insert id="insertBatch" useGeneratedKeys="true" keyProperty="id" parameterType="java.util.List"> |
| | | insert into yeshi_ec_rankings_record |
| | | (<include refid="Base_Column_List" />) |
| | | values |
| | | |
| | | <foreach collection="list" item="item" separator=","> |
| | | ( |
| | | #{item.id,jdbcType=BIGINT}, |
| | | #{item.showId,jdbcType=VARCHAR}, |
| | | #{item.nickName,jdbcType=VARCHAR}, |
| | | #{item.portrait,jdbcType=VARCHAR}, |
| | | #{item.tradeReward,jdbcType=DECIMAL}, |
| | | #{item.shareReward,jdbcType=DECIMAL}, |
| | | #{item.tradeState,jdbcType=INTEGER}, |
| | | #{item.shareState,jdbcType=INTEGER}, |
| | | #{item.tradeTime,jdbcType=TIMESTAMP}, |
| | | #{item.shareTime,jdbcType=TIMESTAMP}, |
| | | #{item.createtime,jdbcType=TIMESTAMP} |
| | | ) |
| | | |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <update id="updateBatchSelective" parameterType="java.util.List"> |
| | | |
| | | update yeshi_ec_rankings_record |
| | | <trim prefix="set" suffixOverrides=","> |
| | | <trim prefix="r_show_id =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.showId !=null"> |
| | | when r_id=#{item.id} then #{item.showId} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | |
| | | <trim prefix="r_nick_name =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.nickName !=null"> |
| | | when r_id=#{item.id} then #{item.nickName} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | |
| | | <trim prefix="r_portrait =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.portrait !=null"> |
| | | when r_id=#{item.id} then #{item.portrait} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | |
| | | <trim prefix="r_trade_reward =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.tradeReward !=null"> |
| | | when r_id=#{item.id} then #{item.tradeReward} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | |
| | | <trim prefix="r_share_reward =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.shareReward !=null"> |
| | | when r_id=#{item.id} then #{item.shareReward} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | |
| | | |
| | | <trim prefix="r_trade_state =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.tradeState !=null"> |
| | | when r_id=#{item.id} then #{item.tradeState} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | |
| | | <trim prefix="r_share_state =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.shareState !=null"> |
| | | when r_id=#{item.id} then #{item.shareState} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | <trim prefix="r_trade_time =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.tradeTime !=null"> |
| | | when r_id=#{item.id} then #{item.tradeTime} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | <trim prefix="r_share_time =case" suffix="end,"> |
| | | <foreach collection="list" item="item" index="index"> |
| | | <if test="item.shareTime !=null"> |
| | | when r_id=#{item.id} then #{item.shareTime} |
| | | </if> |
| | | </foreach> |
| | | </trim> |
| | | |
| | | </trim> |
| | | where r_id in |
| | | <foreach collection="list" index="index" item="item" separator="," open="(" close=")"> |
| | | #{item.id,jdbcType=BIGINT} |
| | | </foreach> |
| | | </update> |
| | | |
| | | |
| | | <select id="queryAll" resultMap="BaseResultMap"> |
| | | <!-- 根据条件查询所有标签 --> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_rankings_record |
| | | </select> |
| | | |
| | | <select id="listQueryByIds" resultMap="BaseResultMap" parameterType="java.util.List"> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_rankings_record |
| | | where r_id in |
| | | <foreach collection="list" index="index" item="item" separator="," open="(" close=")"> |
| | | #{item,jdbcType=BIGINT} |
| | | </foreach> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.UserRankingsMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.bus.user.UserRankings">
|
| | | <id column="r_id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="r_show_id" property="showId" jdbcType="VARCHAR"/>
|
| | | <result column="r_nick_name" property="nickName" jdbcType="VARCHAR"/>
|
| | | <result column="r_portrait" property="portrait" jdbcType="VARCHAR"/>
|
| | | <result column="r_trade_reward" property="tradeReward" jdbcType="DECIMAL"/>
|
| | | <result column="r_share_reward" property="shareReward" jdbcType="DECIMAL"/>
|
| | | <result column="r_trade_state" property="tradeState" jdbcType="INTEGER"/>
|
| | | <result column="r_share_state" property="shareState" jdbcType="INTEGER"/>
|
| | | <result column="r_trade_time" property="tradeTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="r_share_time" property="shareTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="r_createtime" property="createtime" jdbcType="TIMESTAMP"/>
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">r_id,r_show_id,r_nick_name,r_portrait,r_trade_reward,r_share_reward,r_trade_state,r_share_state,r_trade_time,r_share_time,r_createtime</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_rankings_record where r_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_rankings_record where r_id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_rankings_record (r_id,r_show_id,r_nick_name,r_portrait,r_trade_reward,r_share_reward,r_trade_state,r_share_state,r_trade_time,r_share_time,r_createtime) values (#{id,jdbcType=BIGINT},#{showId,jdbcType=VARCHAR},#{nickName,jdbcType=VARCHAR},#{portrait,jdbcType=VARCHAR},#{tradeReward,jdbcType=DECIMAL},#{shareReward,jdbcType=DECIMAL},#{tradeState,jdbcType=INTEGER},#{shareState,jdbcType=INTEGER},#{tradeTime,jdbcType=TIMESTAMP},#{shareTime,jdbcType=TIMESTAMP},#{createtime,jdbcType=TIMESTAMP})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_rankings_record
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">r_id,</if>
|
| | | <if test="showId != null">r_show_id,</if>
|
| | | <if test="nickName != null">r_nick_name,</if>
|
| | | <if test="portrait != null">r_portrait,</if>
|
| | | <if test="tradeReward != null">r_trade_reward,</if>
|
| | | <if test="shareReward != null">r_share_reward,</if>
|
| | | <if test="tradeState != null">r_trade_state,</if>
|
| | | <if test="shareState != null">r_share_state,</if>
|
| | | <if test="tradeTime != null">r_trade_time,</if>
|
| | | <if test="shareTime != null">r_share_time,</if>
|
| | | <if test="createtime != null">r_createtime,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="showId != null">#{showId,jdbcType=VARCHAR},</if>
|
| | | <if test="nickName != null">#{nickName,jdbcType=VARCHAR},</if>
|
| | | <if test="portrait != null">#{portrait,jdbcType=VARCHAR},</if>
|
| | | <if test="tradeReward != null">#{tradeReward,jdbcType=DECIMAL},</if>
|
| | | <if test="shareReward != null">#{shareReward,jdbcType=DECIMAL},</if>
|
| | | <if test="tradeState != null">#{tradeState,jdbcType=INTEGER},</if>
|
| | | <if test="shareState != null">#{shareState,jdbcType=INTEGER},</if>
|
| | | <if test="tradeTime != null">#{tradeTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="shareTime != null">#{shareTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="createtime != null">#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings">update yeshi_ec_rankings_record set r_show_id = #{showId,jdbcType=VARCHAR},r_nick_name = #{nickName,jdbcType=VARCHAR},r_portrait = #{portrait,jdbcType=VARCHAR},r_trade_reward = #{tradeReward,jdbcType=DECIMAL},r_share_reward = #{shareReward,jdbcType=DECIMAL},r_trade_state = #{tradeState,jdbcType=INTEGER},r_share_state = #{shareState,jdbcType=INTEGER},r_trade_time = #{tradeTime,jdbcType=TIMESTAMP},r_share_time = #{shareTime,jdbcType=TIMESTAMP},r_createtime = #{createtime,jdbcType=TIMESTAMP} where r_id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.user.UserRankings">update yeshi_ec_rankings_record
|
| | | <set>
|
| | | <if test="showId != null">r_show_id=#{showId,jdbcType=VARCHAR},</if>
|
| | | <if test="nickName != null">r_nick_name=#{nickName,jdbcType=VARCHAR},</if>
|
| | | <if test="portrait != null">r_portrait=#{portrait,jdbcType=VARCHAR},</if>
|
| | | <if test="tradeReward != null">r_trade_reward=#{tradeReward,jdbcType=DECIMAL},</if>
|
| | | <if test="shareReward != null">r_share_reward=#{shareReward,jdbcType=DECIMAL},</if>
|
| | | <if test="tradeState != null">r_trade_state=#{tradeState,jdbcType=INTEGER},</if>
|
| | | <if test="shareState != null">r_share_state=#{shareState,jdbcType=INTEGER},</if>
|
| | | <if test="tradeTime != null">r_trade_time=#{tradeTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="shareTime != null">r_share_time=#{shareTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="createtime != null">r_createtime=#{createtime,jdbcType=TIMESTAMP},</if>
|
| | | </set> where r_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <select id="selectByNickName" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List"/>
|
| | | from yeshi_ec_rankings_record where r_nick_name = #{nickName,jdbcType=VARCHAR}
|
| | | </select>
|
| | | |
| | | <select id="selectByShowId" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List"/>
|
| | | from yeshi_ec_rankings_record where r_show_id = #{showId,jdbcType=VARCHAR}
|
| | | </select>
|
| | | |
| | | <update id="updateClearTradeState" > |
| | | update yeshi_ec_rankings_record
|
| | | <set>
|
| | | r_trade_reward = 0,
|
| | | r_trade_state = 0
|
| | | </set>
|
| | | WHERE r_trade_state = 1
|
| | | </update>
|
| | | |
| | | <select id="query" resultMap="BaseResultMap">
|
| | | <!-- 根据条件查询所有标签 -->
|
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_rankings_record |
| | | WHERE <![CDATA[1>0]]>
|
| | | <if test='key != null and key != ""'>
|
| | | AND (r_show_id like '%#{key}%' OR r_nick_name like '%#{key}%') |
| | | </if>
|
| | | |
| | | <if test='tradeState != null and tradeState == 1'>
|
| | | AND r_trade_state = #{tradeState}
|
| | | </if>
|
| | | |
| | | <if test='shareState != null and shareState == 1'>
|
| | | AND r_share_state = #{shareState}
|
| | | </if>
|
| | | |
| | | <if test='tradeState != null and tradeState == 0'>
|
| | | AND (r_trade_state = #{tradeState} or r_trade_state is null)
|
| | | </if>
|
| | | |
| | | <if test='shareState != null and shareState == 0'>
|
| | | AND (r_share_state = #{shareState} or r_share_state is null)
|
| | | </if>
|
| | | |
| | | ORDER BY
|
| | | |
| | | <if test='sort==1'>
|
| | | r_trade_reward,
|
| | | </if>
|
| | | <if test='sort==2'>
|
| | | r_trade_reward desc,
|
| | | </if>
|
| | | <if test ='sort==3'>
|
| | | r_share_reward,
|
| | | </if>
|
| | | <if test='sort==4'>
|
| | | r_share_reward desc,
|
| | | </if>
|
| | | <if test='sort==5'>
|
| | | r_trade_time,
|
| | | </if>
|
| | | <if test='sort==6'>
|
| | | r_trade_time desc,
|
| | | </if>
|
| | | <if test='sort==7'>
|
| | | r_share_time,
|
| | | </if>
|
| | | <if test='sort==8'>
|
| | | r_share_time desc,
|
| | | </if>
|
| | | r_createtime LIMIT ${start},${count}
|
| | | </select>
|
| | | |
| | | <select id="queryCount" resultType="java.lang.Long">
|
| | | <!-- 根据条件查询所有标签 -->
|
| | | SELECT count(r_id) FROM yeshi_ec_rankings_record |
| | | WHERE <![CDATA[1>0]]>
|
| | | <if test='key != null and key != ""'>
|
| | | AND (r_show_id like '%#{key}%' OR r_nick_name like '%#{key}%') |
| | | </if>
|
| | | <if test='tradeState != null and tradeState == 1'>
|
| | | AND r_trade_state = #{tradeState}
|
| | | </if>
|
| | | |
| | | <if test='shareState != null and shareState == 1'>
|
| | | AND r_share_state = #{shareState}
|
| | | </if>
|
| | | |
| | | <if test='tradeState != null and tradeState == 0'>
|
| | | AND (r_trade_state = #{tradeState} or r_trade_state is null)
|
| | | </if>
|
| | | |
| | | <if test='shareState != null and shareState == 0'>
|
| | | AND (r_share_state = #{shareState} or r_share_state is null)
|
| | | </if>
|
| | | </select>
|
| | | |
| | | <insert id="insertBatch" useGeneratedKeys="true" keyProperty="id" parameterType="java.util.List">
|
| | | insert into yeshi_ec_rankings_record
|
| | | (<include refid="Base_Column_List" />)
|
| | | values
|
| | | |
| | | <foreach collection="list" item="item" separator=",">
|
| | | (
|
| | | #{item.id,jdbcType=BIGINT},
|
| | | #{item.showId,jdbcType=VARCHAR},
|
| | | #{item.nickName,jdbcType=VARCHAR},
|
| | | #{item.portrait,jdbcType=VARCHAR},
|
| | | #{item.tradeReward,jdbcType=DECIMAL},
|
| | | #{item.shareReward,jdbcType=DECIMAL},
|
| | | #{item.tradeState,jdbcType=INTEGER},
|
| | | #{item.shareState,jdbcType=INTEGER},
|
| | | #{item.tradeTime,jdbcType=TIMESTAMP},
|
| | | #{item.shareTime,jdbcType=TIMESTAMP},
|
| | | #{item.createtime,jdbcType=TIMESTAMP}
|
| | | )
|
| | | |
| | | </foreach>
|
| | | </insert>
|
| | | |
| | | <update id="updateBatchSelective" parameterType="java.util.List">
|
| | | |
| | | update yeshi_ec_rankings_record
|
| | | <trim prefix="set" suffixOverrides=",">
|
| | | <trim prefix="r_show_id =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.showId !=null">
|
| | | when r_id=#{item.id} then #{item.showId}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | |
| | | <trim prefix="r_nick_name =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.nickName !=null">
|
| | | when r_id=#{item.id} then #{item.nickName}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | |
| | | <trim prefix="r_portrait =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.portrait !=null">
|
| | | when r_id=#{item.id} then #{item.portrait}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | |
| | | <trim prefix="r_trade_reward =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.tradeReward !=null">
|
| | | when r_id=#{item.id} then #{item.tradeReward}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | |
| | | <trim prefix="r_share_reward =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.shareReward !=null">
|
| | | when r_id=#{item.id} then #{item.shareReward}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | |
| | | |
| | | <trim prefix="r_trade_state =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.tradeState !=null">
|
| | | when r_id=#{item.id} then #{item.tradeState}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | |
| | | <trim prefix="r_share_state =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.shareState !=null">
|
| | | when r_id=#{item.id} then #{item.shareState}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | <trim prefix="r_trade_time =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.tradeTime !=null">
|
| | | when r_id=#{item.id} then #{item.tradeTime}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | <trim prefix="r_share_time =case" suffix="end,">
|
| | | <foreach collection="list" item="item" index="index">
|
| | | <if test="item.shareTime !=null">
|
| | | when r_id=#{item.id} then #{item.shareTime}
|
| | | </if>
|
| | | </foreach>
|
| | | </trim>
|
| | | |
| | | </trim>
|
| | | where r_id in
|
| | | <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
| | | #{item.id,jdbcType=BIGINT}
|
| | | </foreach>
|
| | | </update>
|
| | | |
| | | |
| | | <select id="queryAll" resultMap="BaseResultMap">
|
| | | <!-- 根据条件查询所有标签 -->
|
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_rankings_record |
| | | </select>
|
| | | |
| | | <select id="listQueryByIds" resultMap="BaseResultMap" parameterType="java.util.List">
|
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_rankings_record |
| | | where r_id in
|
| | | <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
| | | #{item,jdbcType=BIGINT}
|
| | | </foreach>
|
| | | </select>
|
| | | |
| | | |
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.activity.ActivityRuleUserMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser"> |
| | | <id column="aru_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="aru_rule_code" property="ruleCode" jdbcType="INTEGER" /> |
| | | <result column="aru_order_by" property="orderBy" jdbcType="INTEGER" /> |
| | | <result column="aru_create_time" property="createTime" |
| | | jdbcType="TIMESTAMP" /> |
| | | <association property="activityUser" column="aru_id_user_id" |
| | | select="com.yeshi.fanli.dao.mybatis.activity.ActivityUserMapper.selectByPrimaryKey"></association> |
| | | |
| | | </resultMap> |
| | | <sql id="Base_Column_List">aru_id,aru_id_user_id,aru_rule_code,aru_order_by,aru_create_time |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_rule_user where aru_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByUserIdAndRuleCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_rule_user where aru_id_user_id = #{userId} and |
| | | aru_rule_code=#{ruleCode} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="listByRuleCode" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_rule_user where aru_rule_code=#{ruleCode} order |
| | | by aru_order_by limit #{start},#{count} |
| | | </select> |
| | | |
| | | |
| | | <select id="countByRuleCode" resultType="java.lang.Long" |
| | | parameterType="java.lang.Integer"> |
| | | select |
| | | count(aru_id) |
| | | from yeshi_ec_activity_rule_user |
| | | where aru_rule_code=#{0} |
| | | </select> |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_activity_rule_user where aru_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_activity_rule_user |
| | | (aru_id,aru_id_user_id,aru_rule_code,aru_order_by,aru_create_time) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{activityUser.id,jdbcType=BIGINT},#{ruleCode,jdbcType=INTEGER},#{orderBy,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_activity_rule_user |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">aru_id,</if> |
| | | <if test="activityUser != null">aru_id_user_id,</if> |
| | | <if test="ruleCode != null">aru_rule_code,</if> |
| | | <if test="orderBy != null">aru_order_by,</if> |
| | | <if test="createTime != null">aru_create_time,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="activityUser != null">#{activityUser.id,jdbcType=BIGINT},</if> |
| | | <if test="ruleCode != null">#{ruleCode,jdbcType=INTEGER},</if> |
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser">update yeshi_ec_activity_rule_user set aru_id_user_id = |
| | | #{activityUser.id,jdbcType=BIGINT},aru_rule_code = |
| | | #{ruleCode,jdbcType=INTEGER},aru_order_by = |
| | | #{orderBy,jdbcType=INTEGER},aru_create_time = |
| | | #{createTime,jdbcType=TIMESTAMP} where aru_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser"> |
| | | update yeshi_ec_activity_rule_user |
| | | <set> |
| | | <if test="activityUser != null">aru_id_user_id=#{activityUser.id,jdbcType=BIGINT},</if> |
| | | <if test="ruleCode != null">aru_rule_code=#{ruleCode,jdbcType=INTEGER},</if> |
| | | <if test="orderBy != null">aru_order_by=#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">aru_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where aru_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.activity.ActivityRuleUserMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser">
|
| | | <id column="aru_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="aru_rule_code" property="ruleCode" jdbcType="INTEGER" />
|
| | | <result column="aru_order_by" property="orderBy" jdbcType="INTEGER" />
|
| | | <result column="aru_create_time" property="createTime"
|
| | | jdbcType="TIMESTAMP" />
|
| | | <association property="activityUser" column="aru_id_user_id"
|
| | | select="com.yeshi.fanli.dao.mybatis.activity.ActivityUserMapper.selectByPrimaryKey"></association>
|
| | |
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">aru_id,aru_id_user_id,aru_rule_code,aru_order_by,aru_create_time
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_rule_user where aru_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectByUserIdAndRuleCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_rule_user where aru_id_user_id = #{userId} and
|
| | | aru_rule_code=#{ruleCode}
|
| | | </select>
|
| | |
|
| | |
|
| | |
|
| | | <select id="listByRuleCode" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_rule_user where aru_rule_code=#{ruleCode} order
|
| | | by aru_order_by limit #{start},#{count}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="countByRuleCode" resultType="java.lang.Long"
|
| | | parameterType="java.lang.Integer">
|
| | | select
|
| | | count(aru_id)
|
| | | from yeshi_ec_activity_rule_user
|
| | | where aru_rule_code=#{0}
|
| | | </select>
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_activity_rule_user where aru_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_activity_rule_user
|
| | | (aru_id,aru_id_user_id,aru_rule_code,aru_order_by,aru_create_time)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{activityUser.id,jdbcType=BIGINT},#{ruleCode,jdbcType=INTEGER},#{orderBy,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_activity_rule_user
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">aru_id,</if>
|
| | | <if test="activityUser != null">aru_id_user_id,</if>
|
| | | <if test="ruleCode != null">aru_rule_code,</if>
|
| | | <if test="orderBy != null">aru_order_by,</if>
|
| | | <if test="createTime != null">aru_create_time,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="activityUser != null">#{activityUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="ruleCode != null">#{ruleCode,jdbcType=INTEGER},</if>
|
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser">update yeshi_ec_activity_rule_user set aru_id_user_id =
|
| | | #{activityUser.id,jdbcType=BIGINT},aru_rule_code =
|
| | | #{ruleCode,jdbcType=INTEGER},aru_order_by =
|
| | | #{orderBy,jdbcType=INTEGER},aru_create_time =
|
| | | #{createTime,jdbcType=TIMESTAMP} where aru_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.ActivityRuleUser">
|
| | | update yeshi_ec_activity_rule_user
|
| | | <set>
|
| | | <if test="activityUser != null">aru_id_user_id=#{activityUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="ruleCode != null">aru_rule_code=#{ruleCode,jdbcType=INTEGER},</if>
|
| | | <if test="orderBy != null">aru_order_by=#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">aru_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where aru_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.activity.ActivityUserMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.activity.ActivityUser"> |
| | | <id column="au_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="au_nick_name" property="nickName" jdbcType="VARCHAR" /> |
| | | <result column="au_portrait" property="portrait" jdbcType="VARCHAR" /> |
| | | <result column="au_create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">au_id,au_nick_name,au_portrait,au_create_time</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_user where au_id = #{0} |
| | | </select> |
| | | |
| | | <select id="selectList" resultMap="BaseResultMap" parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_user |
| | | </select> |
| | | |
| | | |
| | | <select id="listRand" resultMap="BaseResultMap"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | FROM yeshi_ec_activity_user ORDER BY RAND() LIMIT #{count} |
| | | </select> |
| | | |
| | | <select id="selectByName" resultMap="BaseResultMap" parameterType="java.lang.String"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | FROM yeshi_ec_activity_user where au_nick_name=#{0} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_activity_user where au_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_activity_user |
| | | (au_id,au_nick_name,au_portrait,au_create_time) values |
| | | (#{id,jdbcType=BIGINT},#{nickName,jdbcType=VARCHAR},#{portrait,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_activity_user |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">au_id,</if> |
| | | <if test="nickName != null">au_nick_name,</if> |
| | | <if test="portrait != null">au_portrait,</if> |
| | | <if test="createTime != null">au_create_time,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="nickName != null">#{nickName,jdbcType=VARCHAR},</if> |
| | | <if test="portrait != null">#{portrait,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser">update |
| | | yeshi_ec_activity_user set au_nick_name = |
| | | #{nickName,jdbcType=VARCHAR},au_portrait = |
| | | #{portrait,jdbcType=VARCHAR},au_create_time = |
| | | #{createTime,jdbcType=TIMESTAMP} where au_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser"> |
| | | update yeshi_ec_activity_user |
| | | <set> |
| | | <if test="nickName != null">au_nick_name=#{nickName,jdbcType=VARCHAR},</if> |
| | | <if test="portrait != null">au_portrait=#{portrait,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">au_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | </set> |
| | | where au_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.activity.ActivityUserMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.activity.ActivityUser">
|
| | | <id column="au_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="au_nick_name" property="nickName" jdbcType="VARCHAR" />
|
| | | <result column="au_portrait" property="portrait" jdbcType="VARCHAR" />
|
| | | <result column="au_create_time" property="createTime" jdbcType="TIMESTAMP" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">au_id,au_nick_name,au_portrait,au_create_time</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_user where au_id = #{0}
|
| | | </select>
|
| | |
|
| | | <select id="selectList" resultMap="BaseResultMap" parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_user |
| | | </select>
|
| | |
|
| | |
|
| | | <select id="listRand" resultMap="BaseResultMap">
|
| | | SELECT
|
| | | <include refid="Base_Column_List" />
|
| | | FROM yeshi_ec_activity_user ORDER BY RAND() LIMIT #{count}
|
| | | </select>
|
| | | |
| | | <select id="selectByName" resultMap="BaseResultMap" parameterType="java.lang.String">
|
| | | SELECT
|
| | | <include refid="Base_Column_List" />
|
| | | FROM yeshi_ec_activity_user where au_nick_name=#{0}
|
| | | </select>
|
| | | |
| | | |
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_activity_user where au_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_activity_user
|
| | | (au_id,au_nick_name,au_portrait,au_create_time) values
|
| | | (#{id,jdbcType=BIGINT},#{nickName,jdbcType=VARCHAR},#{portrait,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP})
|
| | | </insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_activity_user
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">au_id,</if>
|
| | | <if test="nickName != null">au_nick_name,</if>
|
| | | <if test="portrait != null">au_portrait,</if>
|
| | | <if test="createTime != null">au_create_time,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="nickName != null">#{nickName,jdbcType=VARCHAR},</if>
|
| | | <if test="portrait != null">#{portrait,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser">update
|
| | | yeshi_ec_activity_user set au_nick_name =
|
| | | #{nickName,jdbcType=VARCHAR},au_portrait =
|
| | | #{portrait,jdbcType=VARCHAR},au_create_time =
|
| | | #{createTime,jdbcType=TIMESTAMP} where au_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.activity.ActivityUser">
|
| | | update yeshi_ec_activity_user
|
| | | <set>
|
| | | <if test="nickName != null">au_nick_name=#{nickName,jdbcType=VARCHAR},</if>
|
| | | <if test="portrait != null">au_portrait=#{portrait,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">au_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | </set>
|
| | | where au_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper |
| | | namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityImgMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg"> |
| | | <id column="ai_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="ai_img" property="img" jdbcType="VARCHAR" /> |
| | | <result column="ai_orderby" property="orderBy" jdbcType="INTEGER" /> |
| | | <result column="ai_img_height" property="imgHeight" jdbcType="INTEGER" /> |
| | | <result column="ai_img_width" property="imgWidth" jdbcType="INTEGER" /> |
| | | <association property="recommendActivity" column="ai_activity_id" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityMapper.BaseResultMap" /> |
| | | |
| | | </resultMap> |
| | | <sql id="Base_Column_List">ai_id,ai_activity_id as |
| | | ar_id,ai_img,ai_orderby,ai_activity_id,ai_img_height,ai_img_width |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_img where ai_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="getImgByActivityId" resultType="java.lang.String" |
| | | parameterType="java.lang.Long">select ai_img from yeshi_ec_activity_img where |
| | | ai_activity_id = #{0} order by ai_orderby |
| | | </select> |
| | | |
| | | <select id="getImgWithAndHeightByActivityId" resultType="java.lang.String" |
| | | parameterType="java.lang.Long">select concat(ai_img_width,'#',ai_img_height) from yeshi_ec_activity_img where |
| | | ai_activity_id = #{0} order by ai_orderby |
| | | </select> |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_activity_img where ai_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <delete id="batchDeleteByActivityid" parameterType="int"> |
| | | <!-- 批量删除 --> |
| | | delete from yeshi_ec_activity_img where ai_activity_id in |
| | | <foreach item="arids" collection="array" open="(" separator="," |
| | | close=")">#{arids}</foreach> |
| | | </delete> |
| | | <insert id="insert" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_activity_img |
| | | (ai_id,ai_activity_id,ai_img,ai_orderby,ai_img_height,ai_img_width) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{recommendActivity.id,jdbcType=BIGINT},#{img,jdbcType=VARCHAR},#{orderBy,jdbcType=INTEGER},#{imgHeight,jdbcType=INTEGER},#{imgWidth,jdbcType=INTEGER}) |
| | | </insert> |
| | | <insert id="insertSelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_activity_img |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">ai_id,</if> |
| | | <if test="recommendActivity != null">ai_activity_id,</if> |
| | | <if test="img != null">ai_img,</if> |
| | | <if test="orderBy != null">ai_orderby,</if> |
| | | <if test="imgHeight != null">ai_img_height,</if> |
| | | <if test="imgWidth != null">ai_img_width,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="recommendActivity != null">#{recommendActivity.id,jdbcType=BIGINT},</if> |
| | | <if test="img != null">#{img,jdbcType=VARCHAR},</if> |
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="imgHeight != null">#{imgHeight,jdbcType=INTEGER},</if> |
| | | <if test="imgWidth != null">#{imgWidth,jdbcType=INTEGER}</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg">update yeshi_ec_activity_img set ai_activity_id = |
| | | #{recommendActivity.id,jdbcType=BIGINT},ai_img = |
| | | #{img,jdbcType=VARCHAR},ai_orderby = #{orderBy,jdbcType=INTEGER} |
| | | ,ai_img_height =#{imgHeight,jdbcType=INTEGER} ,ai_img_width |
| | | =#{imgWidth,jdbcType=INTEGER} where ai_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg"> |
| | | update yeshi_ec_activity_img |
| | | <set> |
| | | <if test="recommendActivity != null">ai_activity_id=#{recommendActivity.id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="img != null">ai_img=#{img,jdbcType=VARCHAR},</if> |
| | | <if test="orderBy != null">ai_orderby=#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="id !=null">ai_id =#{id,jdbcType=BIGINT},</if> |
| | | <if test="imgHeight !=null">ai_img_height =#{imgHeight,jdbcType=INTEGER},</if> |
| | | <if test="imgWidth !=null">ai_img_width =#{imgWidth,jdbcType=INTEGER},</if> |
| | | </set> |
| | | where ai_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper
|
| | | namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityImgMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg">
|
| | | <id column="ai_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="ai_img" property="img" jdbcType="VARCHAR" />
|
| | | <result column="ai_orderby" property="orderBy" jdbcType="INTEGER" />
|
| | | <result column="ai_img_height" property="imgHeight" jdbcType="INTEGER" />
|
| | | <result column="ai_img_width" property="imgWidth" jdbcType="INTEGER" />
|
| | | <association property="recommendActivity" column="ai_activity_id"
|
| | | resultMap="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityMapper.BaseResultMap" />
|
| | |
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">ai_id,ai_activity_id as
|
| | | ar_id,ai_img,ai_orderby,ai_activity_id,ai_img_height,ai_img_width
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_img where ai_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <select id="getImgByActivityId" resultType="java.lang.String"
|
| | | parameterType="java.lang.Long">select ai_img from yeshi_ec_activity_img where
|
| | | ai_activity_id = #{0} order by ai_orderby
|
| | | </select>
|
| | | |
| | | <select id="getImgWithAndHeightByActivityId" resultType="java.lang.String"
|
| | | parameterType="java.lang.Long">select concat(ai_img_width,'#',ai_img_height) from yeshi_ec_activity_img where
|
| | | ai_activity_id = #{0} order by ai_orderby
|
| | | </select>
|
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_activity_img where ai_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <delete id="batchDeleteByActivityid" parameterType="int">
|
| | | <!-- 批量删除 -->
|
| | | delete from yeshi_ec_activity_img where ai_activity_id in
|
| | | <foreach item="arids" collection="array" open="(" separator=","
|
| | | close=")">#{arids}</foreach>
|
| | | </delete>
|
| | | <insert id="insert"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_activity_img
|
| | | (ai_id,ai_activity_id,ai_img,ai_orderby,ai_img_height,ai_img_width)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{recommendActivity.id,jdbcType=BIGINT},#{img,jdbcType=VARCHAR},#{orderBy,jdbcType=INTEGER},#{imgHeight,jdbcType=INTEGER},#{imgWidth,jdbcType=INTEGER})
|
| | | </insert>
|
| | | <insert id="insertSelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_activity_img
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">ai_id,</if>
|
| | | <if test="recommendActivity != null">ai_activity_id,</if>
|
| | | <if test="img != null">ai_img,</if>
|
| | | <if test="orderBy != null">ai_orderby,</if>
|
| | | <if test="imgHeight != null">ai_img_height,</if>
|
| | | <if test="imgWidth != null">ai_img_width,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="recommendActivity != null">#{recommendActivity.id,jdbcType=BIGINT},</if>
|
| | | <if test="img != null">#{img,jdbcType=VARCHAR},</if>
|
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="imgHeight != null">#{imgHeight,jdbcType=INTEGER},</if>
|
| | | <if test="imgWidth != null">#{imgWidth,jdbcType=INTEGER}</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg">update yeshi_ec_activity_img set ai_activity_id =
|
| | | #{recommendActivity.id,jdbcType=BIGINT},ai_img =
|
| | | #{img,jdbcType=VARCHAR},ai_orderby = #{orderBy,jdbcType=INTEGER}
|
| | | ,ai_img_height =#{imgHeight,jdbcType=INTEGER} ,ai_img_width
|
| | | =#{imgWidth,jdbcType=INTEGER} where ai_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityImg">
|
| | | update yeshi_ec_activity_img
|
| | | <set>
|
| | | <if test="recommendActivity != null">ai_activity_id=#{recommendActivity.id,jdbcType=BIGINT},
|
| | | </if>
|
| | | <if test="img != null">ai_img=#{img,jdbcType=VARCHAR},</if>
|
| | | <if test="orderBy != null">ai_orderby=#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="id !=null">ai_id =#{id,jdbcType=BIGINT},</if>
|
| | | <if test="imgHeight !=null">ai_img_height =#{imgHeight,jdbcType=INTEGER},</if>
|
| | | <if test="imgWidth !=null">ai_img_width =#{imgWidth,jdbcType=INTEGER},</if>
|
| | | </set>
|
| | | where ai_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper |
| | | namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityInviteInfoMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo"> |
| | | <id column="aii_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="aii_px" property="px" jdbcType="INTEGER" /> |
| | | <result column="aii_py" property="py" jdbcType="INTEGER" /> |
| | | <result column="aii_size" property="size" jdbcType="INTEGER" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">aii_id,aii_px,aii_py,aii_size,aii_activity_id</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_invite_info where aii_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByActivityId" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_invite_info where aii_activity_id = |
| | | #{0} limit 1 |
| | | </select> |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_activity_invite_info where aii_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_activity_invite_info |
| | | (aii_id,aii_px,aii_py,aii_size,aii_activity_id) values |
| | | (#{id,jdbcType=BIGINT},#{px,jdbcType=INTEGER},#{py,jdbcType=INTEGER},#{size,jdbcType=INTEGER},#{recommendActivity.id,jdbcType=BIGINT}) |
| | | </insert> |
| | | <insert id="insertSelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_activity_invite_info |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">aii_id,</if> |
| | | <if test="px != null">aii_px,</if> |
| | | <if test="py != null">aii_py,</if> |
| | | <if test="size != null">aii_size,</if> |
| | | <if test="recommendActivity != null">aii_activity_id,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="px != null">#{px,jdbcType=INTEGER},</if> |
| | | <if test="py != null">#{py,jdbcType=INTEGER},</if> |
| | | <if test="size != null">#{size,jdbcType=INTEGER},</if> |
| | | <if test="recommendActivity != null">#{recommendActivity.id,jdbcType=BIGINT},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo">update yeshi_ec_activity_invite_info set aii_px = |
| | | #{px,jdbcType=INTEGER},aii_py = #{py,jdbcType=INTEGER},aii_size = |
| | | #{size,jdbcType=INTEGER},aii_activity_id = |
| | | #{recommendActivity.id,jdbcType=BIGINT} where aii_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo"> |
| | | update yeshi_ec_activity_invite_info |
| | | <set> |
| | | <if test="px != null">aii_px=#{px,jdbcType=INTEGER},</if> |
| | | <if test="py != null">aii_py=#{py,jdbcType=INTEGER},</if> |
| | | <if test="size != null">aii_size=#{size,jdbcType=INTEGER},</if> |
| | | <if test="recommendActivity != null">aii_activity_id=#{recommendActivity.id,jdbcType=BIGINT}, |
| | | </if> |
| | | </set> |
| | | where aii_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper
|
| | | namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityInviteInfoMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo">
|
| | | <id column="aii_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="aii_px" property="px" jdbcType="INTEGER" />
|
| | | <result column="aii_py" property="py" jdbcType="INTEGER" />
|
| | | <result column="aii_size" property="size" jdbcType="INTEGER" />
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">aii_id,aii_px,aii_py,aii_size,aii_activity_id</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_invite_info where aii_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="selectByActivityId" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_invite_info where aii_activity_id =
|
| | | #{0} limit 1
|
| | | </select>
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_activity_invite_info where aii_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_activity_invite_info
|
| | | (aii_id,aii_px,aii_py,aii_size,aii_activity_id) values
|
| | | (#{id,jdbcType=BIGINT},#{px,jdbcType=INTEGER},#{py,jdbcType=INTEGER},#{size,jdbcType=INTEGER},#{recommendActivity.id,jdbcType=BIGINT})
|
| | | </insert>
|
| | | <insert id="insertSelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_activity_invite_info
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">aii_id,</if>
|
| | | <if test="px != null">aii_px,</if>
|
| | | <if test="py != null">aii_py,</if>
|
| | | <if test="size != null">aii_size,</if>
|
| | | <if test="recommendActivity != null">aii_activity_id,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="px != null">#{px,jdbcType=INTEGER},</if>
|
| | | <if test="py != null">#{py,jdbcType=INTEGER},</if>
|
| | | <if test="size != null">#{size,jdbcType=INTEGER},</if>
|
| | | <if test="recommendActivity != null">#{recommendActivity.id,jdbcType=BIGINT},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo">update yeshi_ec_activity_invite_info set aii_px =
|
| | | #{px,jdbcType=INTEGER},aii_py = #{py,jdbcType=INTEGER},aii_size =
|
| | | #{size,jdbcType=INTEGER},aii_activity_id =
|
| | | #{recommendActivity.id,jdbcType=BIGINT} where aii_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo">
|
| | | update yeshi_ec_activity_invite_info
|
| | | <set>
|
| | | <if test="px != null">aii_px=#{px,jdbcType=INTEGER},</if>
|
| | | <if test="py != null">aii_py=#{py,jdbcType=INTEGER},</if>
|
| | | <if test="size != null">aii_size=#{size,jdbcType=INTEGER},</if>
|
| | | <if test="recommendActivity != null">aii_activity_id=#{recommendActivity.id,jdbcType=BIGINT},
|
| | | </if>
|
| | | </set>
|
| | | where aii_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivity"> |
| | | <id column="ar_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="ar_title" property="title" jdbcType="VARCHAR" /> |
| | | <result column="ar_type" property="type" jdbcType="INTEGER" /> |
| | | <result column="ar_order_by" property="orderBy" jdbcType="INTEGER" /> |
| | | <result column="ar_share_count" property="shareCount" jdbcType="INTEGER" /> |
| | | <result column="ar_total_getmoney" property="totalGetMoney" |
| | | jdbcType="VARCHAR" /> |
| | | <result column="ar_video_post_picture" property="videoPostPictire" |
| | | jdbcType="VARCHAR" /> |
| | | <result column="ar_video_url" property="videoUrl" jdbcType="VARCHAR" /> |
| | | <result column="ar_create_time" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="ar_top" property="top" jdbcType="BOOLEAN" /> |
| | | <result column="ar_start_time" property="startTime" jdbcType="TIMESTAMP" /> |
| | | <result column="ar_end_time" property="endTime" jdbcType="TIMESTAMP" /> |
| | | <result column="ar_state" property="state" jdbcType="INTEGER" /> |
| | | |
| | | <association property="activityUser" column="ar_activity_uid" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.activity.ActivityUserMapper.BaseResultMap" /> |
| | | |
| | | <association property="goodsList" column="ar_id" |
| | | select="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityTaoBaoGoodsMapper.selectByActivityId"> |
| | | </association> |
| | | <association property="imageList" column="ar_id" |
| | | select="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityImgMapper.getImgByActivityId"> |
| | | </association> |
| | | |
| | | <association property="widthAndHeight" column="ar_id" |
| | | select="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityImgMapper.getImgWithAndHeightByActivityId"> |
| | | </association> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List">ar_id,ar_title,ar_type,ar_order_by,ar_activity_uid,ar_share_count,ar_total_getmoney,ar_video_post_picture,ar_video_url,ar_create_time,ar_top,ar_start_time,ar_end_time,ar_state |
| | | </sql> |
| | | |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select *,ar_activity_uid AS au_id from yeshi_ec_activity_recommend |
| | | where ar_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | <select id="getRecommendActivityList" resultMap="BaseResultMap"> |
| | | SELECT *,IF(ar_start_time IS NULL,ar_create_time,ar_start_time) AS |
| | | orderbyTime FROM yeshi_ec_activity_recommend |
| | | LEFT JOIN yeshi_ec_activity_user ON ar_activity_uid=au_id |
| | | WHERE IF(ar_start_time IS NULL,TRUE, ar_start_time<![CDATA[<=]]> |
| | | NOW()) |
| | | AND IF(ar_end_time IS NULL,TRUE, ar_end_time <![CDATA[>=]]> |
| | | NOW()) |
| | | ORDER BY ar_top DESC,ar_order_by ASC,orderbyTime DESC |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | | <select id="getRecommendActivityEffectiveCount" resultType="java.lang.Long"> |
| | | SELECT count(ar_id) FROM yeshi_ec_activity_recommend |
| | | WHERE IF(ar_start_time IS NULL,TRUE, ar_start_time<![CDATA[<=]]> |
| | | NOW()) |
| | | AND IF(ar_end_time IS NULL,TRUE, ar_end_time <![CDATA[>=]]> |
| | | NOW()) |
| | | </select> |
| | | |
| | | |
| | | <select id="queryRecommendActivityList" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_activity_recommend t |
| | | LEFT JOIN |
| | | yeshi_ec_activity_user u ON t.ar_activity_uid=u.au_id |
| | | WHERE 1=1 |
| | | <if test="title != null and title != '' "> |
| | | AND t.ar_title LIKE '%${title}%' |
| | | </if> |
| | | ORDER BY t.ar_top DESC,t.ar_order_by ASC,t.ar_create_time DESC |
| | | LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="getRecommendActivityCount" resultType="java.lang.Long"> |
| | | SELECT IFNULL(COUNT(t.ar_id),0) FROM yeshi_ec_activity_recommend t |
| | | WHERE 1=1 |
| | | <if test="title != null and title != '' "> |
| | | AND t.ar_title LIKE '%${title}%' |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="getRecommendActivityListByType" resultMap="BaseResultMap"> |
| | | select |
| | | * |
| | | from |
| | | yeshi_ec_activity_recommend left join yeshi_ec_activity_user on |
| | | ar_activity_uid=au_id where ar_type=#{type} order by ar_top |
| | | desc,ar_order_by |
| | | asc,ar_create_time desc limit ${start},${count} |
| | | </select> |
| | | |
| | | <select id="getRecommendActivityCountByType" resultType="java.lang.Long" |
| | | parameterType="java.lang.Integer"> |
| | | select |
| | | count(ar_id) |
| | | from yeshi_ec_activity_recommend where |
| | | ar_type=#{type} |
| | | </select> |
| | | |
| | | <delete id="batchDeleteByPrimaryKey" parameterType="int"> |
| | | <!-- 批量删除动态信息 --> |
| | | delete from yeshi_ec_activity_recommend where ar_id in |
| | | <foreach item="arids" collection="array" open="(" separator="," |
| | | close=")"> |
| | | #{arids} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | <select id="getNeedPublish" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_activity_recommend |
| | | LEFT JOIN yeshi_ec_activity_user ON ar_activity_uid= au_id |
| | | WHERE ar_state = 0 AND IF(ar_start_time IS NULL,TRUE, ar_start_time<![CDATA[<=]]> |
| | | NOW()) |
| | | AND IF(ar_end_time IS NULL,TRUE, ar_end_time <![CDATA[>=]]> |
| | | NOW()) |
| | | </select> |
| | | |
| | | <update id="addShareCount"> |
| | | update yeshi_ec_activity_recommend r set |
| | | r.ar_share_count=ar_share_count+#{count} where ar_id=#{id} |
| | | </update> |
| | | |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_activity_recommend where ar_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_activity_recommend |
| | | (ar_id,ar_title,ar_type,ar_order_by,ar_activity_uid,ar_share_count,ar_total_getmoney,ar_video_post_picture,ar_video_url,ar_create_time,ar_top,ar_start_time,ar_end_time,ar_state) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{type,jdbcType=INTEGER},#{orderBy,jdbcType=INTEGER},#{activityUser.id,jdbcType=BIGINT},#{shareCount,jdbcType=INTEGER},#{totalGetMoney,jdbcType=VARCHAR},#{videoPostPictire,jdbcType=VARCHAR},#{videoUrl,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{top,jdbcType=BOOLEAN},#{startTime,jdbcType=TIMESTAMP},#{endTime,jdbcType=TIMESTAMP},#{state,jdbcType=INTEGER}) |
| | | </insert> |
| | | <insert id="insertSelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_activity_recommend |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">ar_id,</if> |
| | | <if test="title != null">ar_title,</if> |
| | | <if test="type != null">ar_type,</if> |
| | | <if test="orderBy != null">ar_order_by,</if> |
| | | <if test="activityUser != null">ar_activity_uid,</if> |
| | | <if test="shareCount != null">ar_share_count,</if> |
| | | <if test="totalGetMoney != null">ar_total_getmoney,</if> |
| | | <if test="videoPostPictire != null">ar_video_post_picture,</if> |
| | | <if test="videoUrl != null">ar_video_url,</if> |
| | | <if test="createTime != null">ar_create_time,</if> |
| | | <if test="top != null">ar_top,</if> |
| | | <if test="startTime != null">ar_start_time,</if> |
| | | <if test="endTime != null">ar_end_time,</if> |
| | | <if test="state != null">ar_state,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if> |
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if> |
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="activityUser != null">#{activityUser.id,jdbcType=BIGINT},</if> |
| | | <if test="shareCount != null">#{shareCount,jdbcType=INTEGER},</if> |
| | | <if test="totalGetMoney != null">#{totalGetMoney,jdbcType=VARCHAR},</if> |
| | | <if test="videoPostPictire != null">#{videoPostPictire,jdbcType=VARCHAR},</if> |
| | | <if test="videoUrl != null">#{videoUrl,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="top != null">#{top,jdbcType=BOOLEAN},</if> |
| | | <if test="startTime != null">#{startTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="endTime != null">#{endTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity">update yeshi_ec_activity_recommend set ar_title = |
| | | #{title,jdbcType=VARCHAR},ar_type = |
| | | #{type,jdbcType=INTEGER},ar_order_by = |
| | | #{orderBy,jdbcType=INTEGER},ar_activity_uid = |
| | | #{activityUser.id,jdbcType=BIGINT},ar_share_count = |
| | | #{shareCount,jdbcType=INTEGER},ar_total_getmoney = |
| | | #{totalGetMoney,jdbcType=VARCHAR},ar_video_post_picture = |
| | | #{videoPostPictire,jdbcType=VARCHAR},ar_video_url = |
| | | #{videoUrl,jdbcType=VARCHAR},ar_create_time = |
| | | #{createTime,jdbcType=TIMESTAMP},ar_top = |
| | | #{top,jdbcType=BOOLEAN},ar_start_time = |
| | | #{startTime,jdbcType=TIMESTAMP},ar_end_time = |
| | | #{endTime,jdbcType=TIMESTAMP},ar_state = #{state,jdbcType=INTEGER} |
| | | where ar_id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity"> |
| | | update yeshi_ec_activity_recommend |
| | | <set> |
| | | <if test="title != null">ar_title=#{title,jdbcType=VARCHAR},</if> |
| | | <if test="type != null">ar_type=#{type,jdbcType=INTEGER},</if> |
| | | <if test="orderBy != null">ar_order_by=#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="activityUser != null">ar_activity_uid=#{activityUser.id,jdbcType=BIGINT},</if> |
| | | <if test="shareCount != null">ar_share_count=#{shareCount,jdbcType=INTEGER},</if> |
| | | <if test="totalGetMoney != null">ar_total_getmoney=#{totalGetMoney,jdbcType=VARCHAR},</if> |
| | | <if test="videoPostPictire != null">ar_video_post_picture=#{videoPostPictire,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="videoUrl != null">ar_video_url=#{videoUrl,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">ar_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="top != null">ar_top=#{top,jdbcType=BOOLEAN},</if> |
| | | <if test="startTime != null">ar_start_time=#{startTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="state != null">ar_state=#{state,jdbcType=INTEGER},</if> |
| | | </set> |
| | | where ar_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivity">
|
| | | <id column="ar_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="ar_title" property="title" jdbcType="VARCHAR" />
|
| | | <result column="ar_type" property="type" jdbcType="INTEGER" />
|
| | | <result column="ar_order_by" property="orderBy" jdbcType="INTEGER" />
|
| | | <result column="ar_share_count" property="shareCount" jdbcType="INTEGER" />
|
| | | <result column="ar_total_getmoney" property="totalGetMoney"
|
| | | jdbcType="VARCHAR" />
|
| | | <result column="ar_video_post_picture" property="videoPostPictire"
|
| | | jdbcType="VARCHAR" />
|
| | | <result column="ar_video_url" property="videoUrl" jdbcType="VARCHAR" />
|
| | | <result column="ar_create_time" property="createTime" jdbcType="TIMESTAMP" />
|
| | | <result column="ar_top" property="top" jdbcType="BOOLEAN" />
|
| | | <result column="ar_start_time" property="startTime" jdbcType="TIMESTAMP" />
|
| | | <result column="ar_end_time" property="endTime" jdbcType="TIMESTAMP" />
|
| | | <result column="ar_state" property="state" jdbcType="INTEGER" />
|
| | |
|
| | | <association property="activityUser" column="ar_activity_uid"
|
| | | resultMap="com.yeshi.fanli.dao.mybatis.activity.ActivityUserMapper.BaseResultMap" />
|
| | |
|
| | | <association property="goodsList" column="ar_id"
|
| | | select="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityTaoBaoGoodsMapper.selectByActivityId">
|
| | | </association>
|
| | | <association property="imageList" column="ar_id"
|
| | | select="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityImgMapper.getImgByActivityId">
|
| | | </association>
|
| | |
|
| | | <association property="widthAndHeight" column="ar_id"
|
| | | select="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityImgMapper.getImgWithAndHeightByActivityId">
|
| | | </association>
|
| | |
|
| | | </resultMap>
|
| | |
|
| | | <sql id="Base_Column_List">ar_id,ar_title,ar_type,ar_order_by,ar_activity_uid,ar_share_count,ar_total_getmoney,ar_video_post_picture,ar_video_url,ar_create_time,ar_top,ar_start_time,ar_end_time,ar_state
|
| | | </sql>
|
| | |
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select *,ar_activity_uid AS au_id from yeshi_ec_activity_recommend
|
| | | where ar_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | |
|
| | | <select id="getRecommendActivityList" resultMap="BaseResultMap">
|
| | | SELECT *,IF(ar_start_time IS NULL,ar_create_time,ar_start_time) AS
|
| | | orderbyTime FROM yeshi_ec_activity_recommend
|
| | | LEFT JOIN yeshi_ec_activity_user ON ar_activity_uid=au_id
|
| | | WHERE IF(ar_start_time IS NULL,TRUE, ar_start_time<![CDATA[<=]]>
|
| | | NOW())
|
| | | AND IF(ar_end_time IS NULL,TRUE, ar_end_time <![CDATA[>=]]>
|
| | | NOW())
|
| | | ORDER BY ar_top DESC,ar_order_by ASC,orderbyTime DESC
|
| | | LIMIT #{start},#{count}
|
| | | </select>
|
| | |
|
| | | <select id="getRecommendActivityEffectiveCount" resultType="java.lang.Long">
|
| | | SELECT count(ar_id) FROM yeshi_ec_activity_recommend
|
| | | WHERE IF(ar_start_time IS NULL,TRUE, ar_start_time<![CDATA[<=]]>
|
| | | NOW())
|
| | | AND IF(ar_end_time IS NULL,TRUE, ar_end_time <![CDATA[>=]]>
|
| | | NOW())
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="queryRecommendActivityList" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_activity_recommend t
|
| | | LEFT JOIN
|
| | | yeshi_ec_activity_user u ON t.ar_activity_uid=u.au_id
|
| | | WHERE 1=1
|
| | | <if test="title != null and title != '' ">
|
| | | AND t.ar_title LIKE '%${title}%'
|
| | | </if>
|
| | | ORDER BY t.ar_top DESC,t.ar_order_by ASC,t.ar_create_time DESC
|
| | | LIMIT ${start},${count}
|
| | | </select>
|
| | |
|
| | | <select id="getRecommendActivityCount" resultType="java.lang.Long">
|
| | | SELECT IFNULL(COUNT(t.ar_id),0) FROM yeshi_ec_activity_recommend t
|
| | | WHERE 1=1
|
| | | <if test="title != null and title != '' ">
|
| | | AND t.ar_title LIKE '%${title}%'
|
| | | </if>
|
| | | </select>
|
| | |
|
| | |
|
| | | <select id="getRecommendActivityListByType" resultMap="BaseResultMap">
|
| | | select
|
| | | *
|
| | | from
|
| | | yeshi_ec_activity_recommend left join yeshi_ec_activity_user on
|
| | | ar_activity_uid=au_id where ar_type=#{type} order by ar_top
|
| | | desc,ar_order_by
|
| | | asc,ar_create_time desc limit ${start},${count}
|
| | | </select>
|
| | |
|
| | | <select id="getRecommendActivityCountByType" resultType="java.lang.Long"
|
| | | parameterType="java.lang.Integer">
|
| | | select
|
| | | count(ar_id)
|
| | | from yeshi_ec_activity_recommend where
|
| | | ar_type=#{type}
|
| | | </select>
|
| | |
|
| | | <delete id="batchDeleteByPrimaryKey" parameterType="int">
|
| | | <!-- 批量删除动态信息 -->
|
| | | delete from yeshi_ec_activity_recommend where ar_id in
|
| | | <foreach item="arids" collection="array" open="(" separator=","
|
| | | close=")">
|
| | | #{arids}
|
| | | </foreach>
|
| | | </delete>
|
| | |
|
| | |
|
| | | <select id="getNeedPublish" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_activity_recommend
|
| | | LEFT JOIN yeshi_ec_activity_user ON ar_activity_uid= au_id
|
| | | WHERE ar_state = 0 AND IF(ar_start_time IS NULL,TRUE, ar_start_time<![CDATA[<=]]>
|
| | | NOW())
|
| | | AND IF(ar_end_time IS NULL,TRUE, ar_end_time <![CDATA[>=]]>
|
| | | NOW())
|
| | | </select>
|
| | |
|
| | | <update id="addShareCount">
|
| | | update yeshi_ec_activity_recommend r set
|
| | | r.ar_share_count=ar_share_count+#{count} where ar_id=#{id}
|
| | | </update>
|
| | |
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_activity_recommend where ar_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <insert id="insert"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_activity_recommend
|
| | | (ar_id,ar_title,ar_type,ar_order_by,ar_activity_uid,ar_share_count,ar_total_getmoney,ar_video_post_picture,ar_video_url,ar_create_time,ar_top,ar_start_time,ar_end_time,ar_state)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{title,jdbcType=VARCHAR},#{type,jdbcType=INTEGER},#{orderBy,jdbcType=INTEGER},#{activityUser.id,jdbcType=BIGINT},#{shareCount,jdbcType=INTEGER},#{totalGetMoney,jdbcType=VARCHAR},#{videoPostPictire,jdbcType=VARCHAR},#{videoUrl,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{top,jdbcType=BOOLEAN},#{startTime,jdbcType=TIMESTAMP},#{endTime,jdbcType=TIMESTAMP},#{state,jdbcType=INTEGER})
|
| | | </insert>
|
| | | <insert id="insertSelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_activity_recommend
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">ar_id,</if>
|
| | | <if test="title != null">ar_title,</if>
|
| | | <if test="type != null">ar_type,</if>
|
| | | <if test="orderBy != null">ar_order_by,</if>
|
| | | <if test="activityUser != null">ar_activity_uid,</if>
|
| | | <if test="shareCount != null">ar_share_count,</if>
|
| | | <if test="totalGetMoney != null">ar_total_getmoney,</if>
|
| | | <if test="videoPostPictire != null">ar_video_post_picture,</if>
|
| | | <if test="videoUrl != null">ar_video_url,</if>
|
| | | <if test="createTime != null">ar_create_time,</if>
|
| | | <if test="top != null">ar_top,</if>
|
| | | <if test="startTime != null">ar_start_time,</if>
|
| | | <if test="endTime != null">ar_end_time,</if>
|
| | | <if test="state != null">ar_state,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="type != null">#{type,jdbcType=INTEGER},</if>
|
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="activityUser != null">#{activityUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="shareCount != null">#{shareCount,jdbcType=INTEGER},</if>
|
| | | <if test="totalGetMoney != null">#{totalGetMoney,jdbcType=VARCHAR},</if>
|
| | | <if test="videoPostPictire != null">#{videoPostPictire,jdbcType=VARCHAR},</if>
|
| | | <if test="videoUrl != null">#{videoUrl,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="top != null">#{top,jdbcType=BOOLEAN},</if>
|
| | | <if test="startTime != null">#{startTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="endTime != null">#{endTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity">update yeshi_ec_activity_recommend set ar_title =
|
| | | #{title,jdbcType=VARCHAR},ar_type =
|
| | | #{type,jdbcType=INTEGER},ar_order_by =
|
| | | #{orderBy,jdbcType=INTEGER},ar_activity_uid =
|
| | | #{activityUser.id,jdbcType=BIGINT},ar_share_count =
|
| | | #{shareCount,jdbcType=INTEGER},ar_total_getmoney =
|
| | | #{totalGetMoney,jdbcType=VARCHAR},ar_video_post_picture =
|
| | | #{videoPostPictire,jdbcType=VARCHAR},ar_video_url =
|
| | | #{videoUrl,jdbcType=VARCHAR},ar_create_time =
|
| | | #{createTime,jdbcType=TIMESTAMP},ar_top =
|
| | | #{top,jdbcType=BOOLEAN},ar_start_time =
|
| | | #{startTime,jdbcType=TIMESTAMP},ar_end_time =
|
| | | #{endTime,jdbcType=TIMESTAMP},ar_state = #{state,jdbcType=INTEGER}
|
| | | where ar_id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivity">
|
| | | update yeshi_ec_activity_recommend
|
| | | <set>
|
| | | <if test="title != null">ar_title=#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="type != null">ar_type=#{type,jdbcType=INTEGER},</if>
|
| | | <if test="orderBy != null">ar_order_by=#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="activityUser != null">ar_activity_uid=#{activityUser.id,jdbcType=BIGINT},</if>
|
| | | <if test="shareCount != null">ar_share_count=#{shareCount,jdbcType=INTEGER},</if>
|
| | | <if test="totalGetMoney != null">ar_total_getmoney=#{totalGetMoney,jdbcType=VARCHAR},</if>
|
| | | <if test="videoPostPictire != null">ar_video_post_picture=#{videoPostPictire,jdbcType=VARCHAR},
|
| | | </if>
|
| | | <if test="videoUrl != null">ar_video_url=#{videoUrl,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">ar_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="top != null">ar_top=#{top,jdbcType=BOOLEAN},</if>
|
| | | <if test="startTime != null">ar_start_time=#{startTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="state != null">ar_state=#{state,jdbcType=INTEGER},</if>
|
| | | </set>
|
| | | where ar_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper |
| | | namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityTaoBaoGoodsMapper"> |
| | | <resultMap id="BaseResultMap" |
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods"> |
| | | <id column="agt_id" property="id" jdbcType="BIGINT" /> |
| | | <result column="agt_orderby" property="orderBy" jdbcType="INTEGER" /> |
| | | <result column="agt_picture" property="pictUrl" jdbcType="VARCHAR" /> |
| | | <result column="agt_desc" property="desc" jdbcType="VARCHAR" /> |
| | | <result column="agt_auctionid" property="auctionId" jdbcType="VARCHAR" /> |
| | | <result column="agt_createtime" property="createTime" jdbcType="TIMESTAMP" /> |
| | | <result column="agt_state" property="state" jdbcType="INTEGER" /> |
| | | <result column="agt_title" property="title" jdbcType="VARCHAR" /> |
| | | <result column="agt_coupon_amount" property="couponAmount" |
| | | jdbcType="DECIMAL" /> |
| | | <association property="recommendActivity" column="agt_activity_id" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityMapper.BaseResultMap" /> |
| | | <association property="taoBaoGoodsBrief" column="agt_goods_id" |
| | | resultMap="TAOBAOGOODS" /> |
| | | </resultMap> |
| | | <resultMap id="TAOBAOGOODS" |
| | | type="com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief"> |
| | | <!-- <id column="id" property="id" jdbcType="BIGINT" /> <result column="auctionId" |
| | | property="auctionId" jdbcType="BIGINT" /> --> |
| | | </resultMap> |
| | | <sql id="Base_Column_List">agt_id,agt_activity_id,agt_goods_id,agt_orderby,agt_picture,agt_desc,agt_auctionid,agt_createtime,agt_state,agt_title,agt_coupon_amount |
| | | </sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_goods_taobao where agt_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <select id="selectList" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from yeshi_ec_activity_goods_taobao limit #{start},#{count} |
| | | </select> |
| | | <select id="selectByActivityId" resultMap="BaseResultMap" parameterType="java.lang.Long"> |
| | | SELECT t.* FROM yeshi_ec_activity_goods_taobao t |
| | | WHERE t.`agt_activity_id`=#{0} |
| | | </select> |
| | | |
| | | <select id="selectByAuctionId" resultMap="BaseResultMap" |
| | | parameterType="java.lang.Long"> |
| | | SELECT * FROM yeshi_ec_activity_goods_taobao where agt_auctionid=#{0} |
| | | </select> |
| | | |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_activity_goods_taobao where agt_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <delete id="batchDeleteByActivityid" parameterType="int"> |
| | | <!-- 批量删除 --> |
| | | delete from yeshi_ec_activity_goods_taobao where agt_activity_id in |
| | | <foreach item="arids" collection="array" open="(" separator="," |
| | | close=")">#{arids}</foreach> |
| | | </delete> |
| | | <insert id="insert" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods" |
| | | useGeneratedKeys="true" keyProperty="id">insert into |
| | | yeshi_ec_activity_goods_taobao |
| | | (agt_id,agt_activity_id,agt_goods_id,agt_orderby,agt_picture,agt_desc,agt_auctionid,agt_createtime,agt_state,agt_title,agt_coupon_amount) |
| | | values |
| | | (#{id,jdbcType=BIGINT},#{recommendActivity.id,jdbcType=BIGINT},#{taoBaoGoodsBrief.id,jdbcType=BIGINT},#{orderBy,jdbcType=INTEGER},#{pictUrl,jdbcType=VARCHAR},#{desc,jdbcType=VARCHAR},#{auctionId,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{state,jdbcType=INTEGER},#{title,jdbcType=VARCHAR},#{couponAmount,jdbcType=DECIMAL}) |
| | | </insert> |
| | | <insert id="insertSelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into yeshi_ec_activity_goods_taobao |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">agt_id,</if> |
| | | <if test="recommendActivity != null">agt_activity_id,</if> |
| | | <if test="taoBaoGoodsBrief != null">agt_goods_id,</if> |
| | | <if test="orderBy != null">agt_orderby,</if> |
| | | <if test="pictUrl != null">agt_picture,</if> |
| | | <if test="desc != null">agt_desc,</if> |
| | | <if test="auctionId != null">agt_auctionid,</if> |
| | | <if test="createTime != null">agt_createtime,</if> |
| | | <if test="state != null">agt_state,</if> |
| | | <if test="title != null">agt_title,</if> |
| | | <if test="couponAmount != null">agt_coupon_amount,</if> |
| | | </trim> |
| | | values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="recommendActivity != null">#{recommendActivity.id,jdbcType=BIGINT},</if> |
| | | <if test="taoBaoGoodsBrief != null">#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if> |
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="pictUrl != null">#{pictUrl,jdbcType=VARCHAR},</if> |
| | | <if test="desc != null">#{desc,jdbcType=VARCHAR},</if> |
| | | <if test="auctionId != null">#{auctionId,jdbcType=VARCHAR},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if> |
| | | <if test="couponAmount != null">#{couponAmount,jdbcType=DECIMAL},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods">update yeshi_ec_activity_goods_taobao set |
| | | agt_activity_id = #{recommendActivity.id,jdbcType=BIGINT},agt_goods_id |
| | | = #{taoBaoGoodsBrief.id,jdbcType=BIGINT},agt_orderby = |
| | | #{orderBy,jdbcType=INTEGER} ,agt_picture =#{pictUrl,jdbcType=VARCHAR} |
| | | ,agt_desc =#{desc,jdbcType=VARCHAR} ,agt_auctionid |
| | | =#{auctionId,jdbcType=VARCHAR} ,agt_createtime |
| | | =#{createTime,jdbcType=TIMESTAMP} ,agt_state |
| | | =#{state,jdbcType=INTEGER} ,agt_title =#{title,jdbcType=VARCHAR} |
| | | ,agt_coupon_amount =#{couponAmount,jdbcType=DECIMAL} where agt_id = |
| | | #{id,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateStateByAuctionId">update yeshi_ec_activity_goods_taobao set agt_state |
| | | =#{state} where agt_goods_id = #{auctionId,jdbcType=BIGINT} |
| | | </update> |
| | | <update id="updateByPrimaryKeySelective" |
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods"> |
| | | update yeshi_ec_activity_goods_taobao |
| | | <set> |
| | | <if test="recommendActivity != null">agt_activity_id=#{recommendActivity.id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="taoBaoGoodsBrief != null">agt_goods_id=#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if> |
| | | <if test="orderBy != null">agt_orderby=#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="id !=null">agt_id =#{id,jdbcType=BIGINT},</if> |
| | | <if test="pictUrl !=null">agt_picture =#{pictUrl,jdbcType=VARCHAR},</if> |
| | | <if test="desc !=null">agt_desc =#{desc,jdbcType=VARCHAR},</if> |
| | | <if test="auctionId !=null">agt_auctionid =#{auctionId,jdbcType=VARCHAR},</if> |
| | | <if test="createTime !=null">agt_createtime =#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="state !=null">agt_state =#{state,jdbcType=INTEGER},</if> |
| | | <if test="title !=null">agt_title =#{title,jdbcType=VARCHAR},</if> |
| | | <if test="couponAmount !=null">agt_coupon_amount =#{couponAmount,jdbcType=DECIMAL},</if> |
| | | </set> |
| | | where agt_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper
|
| | | namespace="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityTaoBaoGoodsMapper">
|
| | | <resultMap id="BaseResultMap"
|
| | | type="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods">
|
| | | <id column="agt_id" property="id" jdbcType="BIGINT" />
|
| | | <result column="agt_orderby" property="orderBy" jdbcType="INTEGER" />
|
| | | <result column="agt_picture" property="pictUrl" jdbcType="VARCHAR" />
|
| | | <result column="agt_desc" property="desc" jdbcType="VARCHAR" />
|
| | | <result column="agt_auctionid" property="auctionId" jdbcType="VARCHAR" />
|
| | | <result column="agt_createtime" property="createTime" jdbcType="TIMESTAMP" />
|
| | | <result column="agt_state" property="state" jdbcType="INTEGER" />
|
| | | <result column="agt_title" property="title" jdbcType="VARCHAR" />
|
| | | <result column="agt_coupon_amount" property="couponAmount"
|
| | | jdbcType="DECIMAL" />
|
| | | <association property="recommendActivity" column="agt_activity_id"
|
| | | resultMap="com.yeshi.fanli.dao.mybatis.activity.RecommendActivityMapper.BaseResultMap" />
|
| | | <association property="taoBaoGoodsBrief" column="agt_goods_id"
|
| | | resultMap="TAOBAOGOODS" />
|
| | | </resultMap>
|
| | | <resultMap id="TAOBAOGOODS"
|
| | | type="com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief">
|
| | | <!-- <id column="id" property="id" jdbcType="BIGINT" /> <result column="auctionId" |
| | | property="auctionId" jdbcType="BIGINT" /> -->
|
| | | </resultMap>
|
| | | <sql id="Base_Column_List">agt_id,agt_activity_id,agt_goods_id,agt_orderby,agt_picture,agt_desc,agt_auctionid,agt_createtime,agt_state,agt_title,agt_coupon_amount
|
| | | </sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_goods_taobao where agt_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <select id="selectList" resultMap="BaseResultMap">
|
| | | select
|
| | | <include refid="Base_Column_List" />
|
| | | from yeshi_ec_activity_goods_taobao limit #{start},#{count}
|
| | | </select>
|
| | | <select id="selectByActivityId" resultMap="BaseResultMap" parameterType="java.lang.Long">
|
| | | SELECT t.* FROM yeshi_ec_activity_goods_taobao t |
| | | WHERE t.`agt_activity_id`=#{0}
|
| | | </select>
|
| | |
|
| | | <select id="selectByAuctionId" resultMap="BaseResultMap"
|
| | | parameterType="java.lang.Long">
|
| | | SELECT * FROM yeshi_ec_activity_goods_taobao where agt_auctionid=#{0}
|
| | | </select>
|
| | |
|
| | |
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
|
| | | yeshi_ec_activity_goods_taobao where agt_id = #{id,jdbcType=BIGINT}
|
| | | </delete>
|
| | | <delete id="batchDeleteByActivityid" parameterType="int">
|
| | | <!-- 批量删除 -->
|
| | | delete from yeshi_ec_activity_goods_taobao where agt_activity_id in
|
| | | <foreach item="arids" collection="array" open="(" separator=","
|
| | | close=")">#{arids}</foreach>
|
| | | </delete>
|
| | | <insert id="insert"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods"
|
| | | useGeneratedKeys="true" keyProperty="id">insert into
|
| | | yeshi_ec_activity_goods_taobao
|
| | | (agt_id,agt_activity_id,agt_goods_id,agt_orderby,agt_picture,agt_desc,agt_auctionid,agt_createtime,agt_state,agt_title,agt_coupon_amount)
|
| | | values
|
| | | (#{id,jdbcType=BIGINT},#{recommendActivity.id,jdbcType=BIGINT},#{taoBaoGoodsBrief.id,jdbcType=BIGINT},#{orderBy,jdbcType=INTEGER},#{pictUrl,jdbcType=VARCHAR},#{desc,jdbcType=VARCHAR},#{auctionId,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{state,jdbcType=INTEGER},#{title,jdbcType=VARCHAR},#{couponAmount,jdbcType=DECIMAL})
|
| | | </insert>
|
| | | <insert id="insertSelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods"
|
| | | useGeneratedKeys="true" keyProperty="id">
|
| | | insert into yeshi_ec_activity_goods_taobao
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">agt_id,</if>
|
| | | <if test="recommendActivity != null">agt_activity_id,</if>
|
| | | <if test="taoBaoGoodsBrief != null">agt_goods_id,</if>
|
| | | <if test="orderBy != null">agt_orderby,</if>
|
| | | <if test="pictUrl != null">agt_picture,</if>
|
| | | <if test="desc != null">agt_desc,</if>
|
| | | <if test="auctionId != null">agt_auctionid,</if>
|
| | | <if test="createTime != null">agt_createtime,</if>
|
| | | <if test="state != null">agt_state,</if>
|
| | | <if test="title != null">agt_title,</if>
|
| | | <if test="couponAmount != null">agt_coupon_amount,</if>
|
| | | </trim>
|
| | | values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="recommendActivity != null">#{recommendActivity.id,jdbcType=BIGINT},</if>
|
| | | <if test="taoBaoGoodsBrief != null">#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if>
|
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="pictUrl != null">#{pictUrl,jdbcType=VARCHAR},</if>
|
| | | <if test="desc != null">#{desc,jdbcType=VARCHAR},</if>
|
| | | <if test="auctionId != null">#{auctionId,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if>
|
| | | <if test="title != null">#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="couponAmount != null">#{couponAmount,jdbcType=DECIMAL},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods">update yeshi_ec_activity_goods_taobao set
|
| | | agt_activity_id = #{recommendActivity.id,jdbcType=BIGINT},agt_goods_id
|
| | | = #{taoBaoGoodsBrief.id,jdbcType=BIGINT},agt_orderby =
|
| | | #{orderBy,jdbcType=INTEGER} ,agt_picture =#{pictUrl,jdbcType=VARCHAR}
|
| | | ,agt_desc =#{desc,jdbcType=VARCHAR} ,agt_auctionid
|
| | | =#{auctionId,jdbcType=VARCHAR} ,agt_createtime
|
| | | =#{createTime,jdbcType=TIMESTAMP} ,agt_state
|
| | | =#{state,jdbcType=INTEGER} ,agt_title =#{title,jdbcType=VARCHAR}
|
| | | ,agt_coupon_amount =#{couponAmount,jdbcType=DECIMAL} where agt_id =
|
| | | #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateStateByAuctionId">update yeshi_ec_activity_goods_taobao set agt_state
|
| | | =#{state} where agt_goods_id = #{auctionId,jdbcType=BIGINT}
|
| | | </update>
|
| | | <update id="updateByPrimaryKeySelective"
|
| | | parameterType="com.yeshi.fanli.entity.bus.activity.RecommendActivityTaoBaoGoods">
|
| | | update yeshi_ec_activity_goods_taobao
|
| | | <set>
|
| | | <if test="recommendActivity != null">agt_activity_id=#{recommendActivity.id,jdbcType=BIGINT},
|
| | | </if>
|
| | | <if test="taoBaoGoodsBrief != null">agt_goods_id=#{taoBaoGoodsBrief.id,jdbcType=BIGINT},</if>
|
| | | <if test="orderBy != null">agt_orderby=#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="id !=null">agt_id =#{id,jdbcType=BIGINT},</if>
|
| | | <if test="pictUrl !=null">agt_picture =#{pictUrl,jdbcType=VARCHAR},</if>
|
| | | <if test="desc !=null">agt_desc =#{desc,jdbcType=VARCHAR},</if>
|
| | | <if test="auctionId !=null">agt_auctionid =#{auctionId,jdbcType=VARCHAR},</if>
|
| | | <if test="createTime !=null">agt_createtime =#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="state !=null">agt_state =#{state,jdbcType=INTEGER},</if>
|
| | | <if test="title !=null">agt_title =#{title,jdbcType=VARCHAR},</if>
|
| | | <if test="couponAmount !=null">agt_coupon_amount =#{couponAmount,jdbcType=DECIMAL},</if>
|
| | | </set>
|
| | | where agt_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.brand.BrandClassMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.brand.BrandClass"> |
| | | <id column="bc_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="bc_name" property="name" jdbcType="VARCHAR"/> |
| | | <result column="bc_state" property="state" jdbcType="INTEGER"/> |
| | | <result column="bc_orderby" property="orderBy" jdbcType="INTEGER"/> |
| | | <result column="bc_create_time" property="createTime" jdbcType="TIMESTAMP"/> |
| | | <result column="bc_update_time" property="updateTime" jdbcType="TIMESTAMP"/> |
| | | |
| | | <association column="bc_gclass_id" property="goodsClass" javaType="com.yeshi.fanli.entity.bus.clazz.GoodsClass"> |
| | | <id column="bc_gclass_id" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | |
| | | </resultMap> |
| | | <sql id="Base_Column_List">bc_id,bc_name,bc_gclass_id,bc_state,bc_orderby,bc_create_time,bc_update_time</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_brand_class where bc_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_brand_class where bc_id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.brand.BrandClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class (bc_id,bc_name,bc_gclass_id,bc_state,bc_orderby,bc_create_time,bc_update_time) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{goodsClass.id,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{orderBy,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.brand.BrandClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">bc_id,</if> |
| | | <if test="name != null">bc_name,</if> |
| | | <if test="goodsClass != null">bc_gclass_id,</if> |
| | | <if test="state != null">bc_state,</if> |
| | | <if test="orderBy != null">bc_orderby,</if> |
| | | <if test="createTime != null">bc_create_time,</if> |
| | | <if test="updateTime != null">bc_update_time,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if> |
| | | <if test="goodsClass != null">#{goodsClass.id,jdbcType=BIGINT},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.brand.BrandClass">update yeshi_ec_brand_class set bc_name = #{name,jdbcType=VARCHAR},bc_gclass_id = #{goodsClass.id,jdbcType=BIGINT},bc_state = #{state,jdbcType=INTEGER},bc_orderby = #{orderBy,jdbcType=INTEGER},bc_create_time = #{createTime,jdbcType=TIMESTAMP},bc_update_time = #{updateTime,jdbcType=TIMESTAMP} where bc_id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.brand.BrandClass">update yeshi_ec_brand_class |
| | | <set> |
| | | <if test="name != null">bc_name=#{name,jdbcType=VARCHAR},</if> |
| | | <if test="goodsClass != null">bc_gclass_id=#{goodsClass.id,jdbcType=BIGINT},</if> |
| | | <if test="state != null">bc_state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="orderBy != null">bc_orderby=#{orderBy,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">bc_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">bc_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </set> where bc_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <delete id="deleteBatchByPrimaryKey" parameterType="java.util.List"> |
| | | delete from yeshi_ec_brand_class WHERE bc_id in |
| | | <foreach collection="list" item="item" open="(" close=")" |
| | | separator=",">#{item}</foreach> |
| | | </delete> |
| | | |
| | | <select id="listEffective" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_brand_class |
| | | WHERE bc_state = 1 |
| | | ORDER BY bc_orderby |
| | | </select> |
| | | |
| | | <select id="getMaxOrder" resultType="java.lang.Integer"> |
| | | SELECT IFNULL(MAX(bc_orderby),0) FROM yeshi_ec_brand_class |
| | | </select> |
| | | |
| | | <select id="getByAdjoinOrder" resultMap="BaseResultMap"> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_brand_class |
| | | WHERE 1=1 |
| | | <if test="type == -1"> |
| | | AND bc_orderby <![CDATA[<]]> #{order} |
| | | ORDER BY bc_orderby desc |
| | | </if> |
| | | |
| | | <if test="type == 1"> |
| | | AND bc_orderby <![CDATA[>]]> #{order} |
| | | ORDER BY bc_orderby |
| | | </if> |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | <select id="listQuery" resultMap="BaseResultMap"> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_brand_class |
| | | WHERE 1=1 |
| | | <if test="key != null and key !='' "> |
| | | AND bc_name LIKE '%${key}%' |
| | | </if> |
| | | <if test="state != null"> |
| | | AND bc_state = #{state} |
| | | </if> |
| | | ORDER BY bc_orderby |
| | | LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="countQuery" resultType="java.lang.Long"> |
| | | SELECT IFNULL(COUNT(bc_id),0) FROM yeshi_ec_brand_class |
| | | WHERE 1=1 |
| | | <if test="key != null and key !='' "> |
| | | AND bc_name LIKE '%${key}%' |
| | | </if> |
| | | <if test="state != null"> |
| | | AND bc_state = #{state} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.brand.BrandClassMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.brand.BrandClass">
|
| | | <id column="bc_id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="bc_name" property="name" jdbcType="VARCHAR"/>
|
| | | <result column="bc_state" property="state" jdbcType="INTEGER"/>
|
| | | <result column="bc_orderby" property="orderBy" jdbcType="INTEGER"/>
|
| | | <result column="bc_create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="bc_update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
| | | |
| | | <association column="bc_gclass_id" property="goodsClass" javaType="com.yeshi.fanli.entity.bus.clazz.GoodsClass">
|
| | | <id column="bc_gclass_id" property="id" jdbcType="BIGINT" /> |
| | | </association>
|
| | | |
| | | </resultMap>
|
| | | <sql id="Base_Column_List">bc_id,bc_name,bc_gclass_id,bc_state,bc_orderby,bc_create_time,bc_update_time</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_brand_class where bc_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_brand_class where bc_id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.brand.BrandClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class (bc_id,bc_name,bc_gclass_id,bc_state,bc_orderby,bc_create_time,bc_update_time) values (#{id,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{goodsClass.id,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{orderBy,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.brand.BrandClass" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">bc_id,</if>
|
| | | <if test="name != null">bc_name,</if>
|
| | | <if test="goodsClass != null">bc_gclass_id,</if>
|
| | | <if test="state != null">bc_state,</if>
|
| | | <if test="orderBy != null">bc_orderby,</if>
|
| | | <if test="createTime != null">bc_create_time,</if>
|
| | | <if test="updateTime != null">bc_update_time,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="name != null">#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="goodsClass != null">#{goodsClass.id,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if>
|
| | | <if test="orderBy != null">#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.brand.BrandClass">update yeshi_ec_brand_class set bc_name = #{name,jdbcType=VARCHAR},bc_gclass_id = #{goodsClass.id,jdbcType=BIGINT},bc_state = #{state,jdbcType=INTEGER},bc_orderby = #{orderBy,jdbcType=INTEGER},bc_create_time = #{createTime,jdbcType=TIMESTAMP},bc_update_time = #{updateTime,jdbcType=TIMESTAMP} where bc_id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.brand.BrandClass">update yeshi_ec_brand_class
|
| | | <set>
|
| | | <if test="name != null">bc_name=#{name,jdbcType=VARCHAR},</if>
|
| | | <if test="goodsClass != null">bc_gclass_id=#{goodsClass.id,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">bc_state=#{state,jdbcType=INTEGER},</if>
|
| | | <if test="orderBy != null">bc_orderby=#{orderBy,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">bc_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">bc_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </set> where bc_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | <delete id="deleteBatchByPrimaryKey" parameterType="java.util.List">
|
| | | delete from yeshi_ec_brand_class WHERE bc_id in
|
| | | <foreach collection="list" item="item" open="(" close=")"
|
| | | separator=",">#{item}</foreach>
|
| | | </delete>
|
| | | |
| | | <select id="listEffective" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_brand_class |
| | | WHERE bc_state = 1
|
| | | ORDER BY bc_orderby
|
| | | </select>
|
| | | |
| | | <select id="getMaxOrder" resultType="java.lang.Integer">
|
| | | SELECT IFNULL(MAX(bc_orderby),0) FROM yeshi_ec_brand_class
|
| | | </select>
|
| | | |
| | | <select id="getByAdjoinOrder" resultMap="BaseResultMap">
|
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_brand_class
|
| | | WHERE 1=1
|
| | | <if test="type == -1">
|
| | | AND bc_orderby <![CDATA[<]]> #{order} |
| | | ORDER BY bc_orderby desc
|
| | | </if>
|
| | | |
| | | <if test="type == 1">
|
| | | AND bc_orderby <![CDATA[>]]> #{order} |
| | | ORDER BY bc_orderby |
| | | </if>
|
| | | LIMIT 1
|
| | | </select>
|
| | | |
| | | <select id="listQuery" resultMap="BaseResultMap">
|
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_brand_class
|
| | | WHERE 1=1 |
| | | <if test="key != null and key !='' ">
|
| | | AND bc_name LIKE '%${key}%'
|
| | | </if>
|
| | | <if test="state != null">
|
| | | AND bc_state = #{state}
|
| | | </if>
|
| | | ORDER BY bc_orderby
|
| | | LIMIT ${start},${count}
|
| | | </select>
|
| | | |
| | | <select id="countQuery" resultType="java.lang.Long">
|
| | | SELECT IFNULL(COUNT(bc_id),0) FROM yeshi_ec_brand_class
|
| | | WHERE 1=1 |
| | | <if test="key != null and key !='' ">
|
| | | AND bc_name LIKE '%${key}%'
|
| | | </if>
|
| | | <if test="state != null">
|
| | | AND bc_state = #{state}
|
| | | </if>
|
| | | </select>
|
| | | </mapper>
|
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.brand.BrandClassShopMapper"> |
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.brand.BrandClassShop"> |
| | | <id column="bcs_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="bcs_top" property="top" jdbcType="INTEGER"/> |
| | | <result column="bcs_orderby" property="orderby" jdbcType="INTEGER"/> |
| | | <result column="bcs_browse_num" property="browseNum" jdbcType="BIGINT"/> |
| | | <result column="bcs_state" property="state" jdbcType="INTEGER"/> |
| | | <result column="bcs_create_time" property="createTime" jdbcType="TIMESTAMP"/> |
| | | <result column="bcs_update_time" property="updateTime" jdbcType="TIMESTAMP"/> |
| | | <association column="bcs_cid" property="brandClass" javaType="com.yeshi.fanli.entity.brand.BrandClass"> |
| | | <id column="bcs_cid" property="id" jdbcType="BIGINT" /> |
| | | </association> |
| | | <association column="bcs_shop_id" property="shop" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.taobao.TaoBaoShopMapper.BaseResultMap"> |
| | | </association> |
| | | </resultMap> |
| | | |
| | | |
| | | <resultMap id="BaseResultAllMap" type="com.yeshi.fanli.entity.brand.BrandClassShop"> |
| | | <id column="bcs_id" property="id" jdbcType="BIGINT"/> |
| | | <result column="bcs_top" property="top" jdbcType="INTEGER"/> |
| | | <result column="bcs_orderby" property="orderby" jdbcType="INTEGER"/> |
| | | <result column="bcs_browse_num" property="browseNum" jdbcType="BIGINT"/> |
| | | <result column="bcs_state" property="state" jdbcType="INTEGER"/> |
| | | <result column="bcs_create_time" property="createTime" jdbcType="TIMESTAMP"/> |
| | | <result column="bcs_update_time" property="updateTime" jdbcType="TIMESTAMP"/> |
| | | <association column="bcs_cid" property="brandClass" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.brand.BrandClassMapper.BaseResultMap"> |
| | | </association> |
| | | <association column="bcs_shop_id" property="shop" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.taobao.TaoBaoShopMapper.BaseResultMap"> |
| | | </association> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List">bcs_id,bcs_cid,bcs_shop_id,bcs_top,bcs_orderby,bcs_browse_num,bcs_state,bcs_create_time,bcs_update_time,bcs_shop_id AS tsi_id</sql> |
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select |
| | | <include refid="Base_Column_List"/>from yeshi_ec_brand_class_shop where bcs_id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_brand_class_shop where bcs_id = #{id,jdbcType=BIGINT}</delete> |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class_shop (bcs_id,bcs_cid,bcs_shop_id,bcs_top,bcs_orderby,bcs_browse_num,bcs_state,bcs_create_time,bcs_update_time) values (#{id,jdbcType=BIGINT},#{brandClass.id,jdbcType=BIGINT},#{shop.id,jdbcType=BIGINT},#{top,jdbcType=INTEGER},#{orderby,jdbcType=INTEGER},#{browseNum,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert> |
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class_shop |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">bcs_id,</if> |
| | | <if test="brandClass != null">bcs_cid,</if> |
| | | <if test="shop != null">bcs_shop_id,</if> |
| | | <if test="top != null">bcs_top,</if> |
| | | <if test="orderby != null">bcs_orderby,</if> |
| | | <if test="browseNum != null">bcs_browse_num,</if> |
| | | <if test="state != null">bcs_state,</if> |
| | | <if test="createTime != null">bcs_create_time,</if> |
| | | <if test="updateTime != null">bcs_update_time,</if> |
| | | </trim>values |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="brandClass != null">#{brandClass.id,jdbcType=BIGINT},</if> |
| | | <if test="shop != null">#{shop.id,jdbcType=BIGINT},</if> |
| | | <if test="top != null">#{top,jdbcType=INTEGER},</if> |
| | | <if test="orderby != null">#{orderby,jdbcType=INTEGER},</if> |
| | | <if test="browseNum != null">#{browseNum,jdbcType=BIGINT},</if> |
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop">update yeshi_ec_brand_class_shop set bcs_cid = #{brandClass.id,jdbcType=BIGINT},bcs_shop_id = #{shop.id,jdbcType=BIGINT},bcs_top = #{top,jdbcType=INTEGER},bcs_orderby = #{orderby,jdbcType=INTEGER},bcs_browse_num = #{browseNum,jdbcType=BIGINT},bcs_state = #{state,jdbcType=INTEGER},bcs_create_time = #{createTime,jdbcType=TIMESTAMP},bcs_update_time = #{updateTime,jdbcType=TIMESTAMP} where bcs_id = #{id,jdbcType=BIGINT}</update> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop">update yeshi_ec_brand_class_shop |
| | | <set> |
| | | <if test="brandClass != null">bcs_cid=#{brandClass.id,jdbcType=BIGINT},</if> |
| | | <if test="shop != null">bcs_shop_id=#{shop.id,jdbcType=BIGINT},</if> |
| | | <if test="top != null">bcs_top=#{top,jdbcType=INTEGER},</if> |
| | | <if test="orderby != null">bcs_orderby=#{orderby,jdbcType=INTEGER},</if> |
| | | <if test="browseNum != null">bcs_browse_num=#{browseNum,jdbcType=BIGINT},</if> |
| | | <if test="state != null">bcs_state=#{state,jdbcType=INTEGER},</if> |
| | | <if test="createTime != null">bcs_create_time=#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="updateTime != null">bcs_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> |
| | | </set> where bcs_id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | |
| | | <delete id="deleteBatchByClassId" parameterType="java.util.List"> |
| | | delete from yeshi_ec_brand_class_shop WHERE bcs_cid in |
| | | <foreach collection="list" item="item" open="(" close=")" |
| | | separator=",">#{item}</foreach> |
| | | </delete> |
| | | |
| | | <select id="listEffective" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_brand_class_shop b |
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON b.`bcs_shop_id` = p.`tsi_id` |
| | | WHERE b.bcs_state = 1 |
| | | <if test="cid != null and cid !=0 "> |
| | | AND b.`bcs_cid` = #{cid} |
| | | </if> |
| | | ORDER BY b.`bcs_top`,bcs_orderby |
| | | </select> |
| | | |
| | | <select id="countEffective" resultType="Long"> |
| | | SELECT IFNULL(COUNT(b.`bcs_cid`),0) FROM yeshi_ec_brand_class_shop b |
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON b.`bcs_shop_id` = p.`tsi_id` |
| | | WHERE b.bcs_state = 1 |
| | | <if test="cid != null and cid !=0 "> |
| | | AND b.`bcs_cid` = #{cid} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getExistByShopIds" parameterType="java.util.List" resultMap="BaseResultAllMap"> |
| | | SELECT * FROM yeshi_ec_brand_class_shop cp |
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON p.`tsi_id` = cp.`bcs_shop_id` |
| | | LEFT JOIN `yeshi_ec_brand_class` c ON c.`bc_id` = cp.`bcs_cid` |
| | | WHERE cp.bcs_shop_id in |
| | | <foreach collection="list" item="item" open="(" close=")" |
| | | separator=",">#{item}</foreach> |
| | | </select> |
| | | |
| | | <select id="getByShopIdAndCid" resultMap="BaseResultAllMap"> |
| | | SELECT * FROM yeshi_ec_brand_class_shop |
| | | WHERE bcs_shop_id = #{shopId} AND bcs_cid = #{cid} |
| | | limit 1 |
| | | </select> |
| | | |
| | | <select id="getByShopId" resultMap="BaseResultAllMap"> |
| | | SELECT * FROM yeshi_ec_brand_class_shop |
| | | WHERE bcs_shop_id = #{shopId} |
| | | limit 1 |
| | | </select> |
| | | |
| | | <select id="getMaxOrder" resultType="Integer"> |
| | | SELECT IFNULL(COUNT(bcs_id),0) FROM yeshi_ec_brand_class_shop |
| | | WHERE bcs_cid = #{cid} |
| | | </select> |
| | | |
| | | |
| | | <select id="getByAdjoinOrder" resultMap="BaseResultMap"> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_brand_class_shop |
| | | WHERE bcs_cid = #{cid} |
| | | <if test="type == -1"> |
| | | AND bcs_orderby <![CDATA[<]]> #{order} |
| | | ORDER BY bcs_orderby desc |
| | | </if> |
| | | |
| | | <if test="type == 1"> |
| | | AND bcs_orderby <![CDATA[>]]> #{order} |
| | | ORDER BY bcs_orderby |
| | | </if> |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | <select id="listQuery" resultMap="BaseResultAllMap"> |
| | | SELECT * FROM `yeshi_ec_brand_class_shop` cp |
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON p.`tsi_id` = cp.`bcs_shop_id` |
| | | LEFT JOIN `yeshi_ec_brand_class` c ON c.`bc_id` = cp.`bcs_cid` |
| | | WHERE 1=1 |
| | | <if test="key != null and key !='' "> |
| | | AND p.`tsi_shop_name` LIKE '%${key}%' or p.`tsi_seller_nick` LIKE '%${key}%' |
| | | </if> |
| | | |
| | | <if test="cid != null"> |
| | | AND cp.`bcs_cid` = #{cid} |
| | | </if> |
| | | |
| | | <if test="state != null"> |
| | | AND cp.`bcs_state` = #{state} |
| | | </if> |
| | | ORDER BY cp.`bcs_top` DESC,cp.`bcs_orderby` |
| | | LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="countQuery" resultType="java.lang.Long"> |
| | | SELECT IFNULL(COUNT(cp.bcs_id),0) FROM `yeshi_ec_brand_class_shop` cp |
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON p.`tsi_id` = cp.`bcs_shop_id` |
| | | WHERE 1=1 |
| | | <if test="key != null and key !='' "> |
| | | AND p.`tsi_shop_name` LIKE '%${key}%' or p.`tsi_seller_nick` LIKE '%${key}%' |
| | | </if> |
| | | |
| | | <if test="cid != null"> |
| | | AND cp.`bcs_cid` = #{cid} |
| | | </if> |
| | | |
| | | <if test="state != null"> |
| | | AND cp.`bcs_state` = #{state} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
| | | <?xml version="1.0" encoding="UTF-8"?>
|
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
| | |
|
| | | <mapper namespace="com.yeshi.fanli.dao.mybatis.brand.BrandClassShopMapper">
|
| | | <resultMap id="BaseResultMap" type="com.yeshi.fanli.entity.brand.BrandClassShop">
|
| | | <id column="bcs_id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="bcs_top" property="top" jdbcType="INTEGER"/>
|
| | | <result column="bcs_orderby" property="orderby" jdbcType="INTEGER"/>
|
| | | <result column="bcs_browse_num" property="browseNum" jdbcType="BIGINT"/>
|
| | | <result column="bcs_state" property="state" jdbcType="INTEGER"/>
|
| | | <result column="bcs_create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="bcs_update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
| | | <association column="bcs_cid" property="brandClass" javaType="com.yeshi.fanli.entity.brand.BrandClass">
|
| | | <id column="bcs_cid" property="id" jdbcType="BIGINT" /> |
| | | </association>
|
| | | <association column="bcs_shop_id" property="shop" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.taobao.TaoBaoShopMapper.BaseResultMap">
|
| | | </association>
|
| | | </resultMap>
|
| | | |
| | | |
| | | <resultMap id="BaseResultAllMap" type="com.yeshi.fanli.entity.brand.BrandClassShop">
|
| | | <id column="bcs_id" property="id" jdbcType="BIGINT"/>
|
| | | <result column="bcs_top" property="top" jdbcType="INTEGER"/>
|
| | | <result column="bcs_orderby" property="orderby" jdbcType="INTEGER"/>
|
| | | <result column="bcs_browse_num" property="browseNum" jdbcType="BIGINT"/>
|
| | | <result column="bcs_state" property="state" jdbcType="INTEGER"/>
|
| | | <result column="bcs_create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
| | | <result column="bcs_update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
| | | <association column="bcs_cid" property="brandClass" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.brand.BrandClassMapper.BaseResultMap">
|
| | | </association>
|
| | | <association column="bcs_shop_id" property="shop" |
| | | resultMap="com.yeshi.fanli.dao.mybatis.taobao.TaoBaoShopMapper.BaseResultMap">
|
| | | </association>
|
| | | |
| | | </resultMap>
|
| | | |
| | | <sql id="Base_Column_List">bcs_id,bcs_cid,bcs_shop_id,bcs_top,bcs_orderby,bcs_browse_num,bcs_state,bcs_create_time,bcs_update_time,bcs_shop_id AS tsi_id</sql>
|
| | | <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">select
|
| | | <include refid="Base_Column_List"/>from yeshi_ec_brand_class_shop where bcs_id = #{id,jdbcType=BIGINT}
|
| | | </select>
|
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from yeshi_ec_brand_class_shop where bcs_id = #{id,jdbcType=BIGINT}</delete>
|
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class_shop (bcs_id,bcs_cid,bcs_shop_id,bcs_top,bcs_orderby,bcs_browse_num,bcs_state,bcs_create_time,bcs_update_time) values (#{id,jdbcType=BIGINT},#{brandClass.id,jdbcType=BIGINT},#{shop.id,jdbcType=BIGINT},#{top,jdbcType=INTEGER},#{orderby,jdbcType=INTEGER},#{browseNum,jdbcType=BIGINT},#{state,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP})</insert>
|
| | | <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_brand_class_shop
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">bcs_id,</if>
|
| | | <if test="brandClass != null">bcs_cid,</if>
|
| | | <if test="shop != null">bcs_shop_id,</if>
|
| | | <if test="top != null">bcs_top,</if>
|
| | | <if test="orderby != null">bcs_orderby,</if>
|
| | | <if test="browseNum != null">bcs_browse_num,</if>
|
| | | <if test="state != null">bcs_state,</if>
|
| | | <if test="createTime != null">bcs_create_time,</if>
|
| | | <if test="updateTime != null">bcs_update_time,</if>
|
| | | </trim>values
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if>
|
| | | <if test="brandClass != null">#{brandClass.id,jdbcType=BIGINT},</if>
|
| | | <if test="shop != null">#{shop.id,jdbcType=BIGINT},</if>
|
| | | <if test="top != null">#{top,jdbcType=INTEGER},</if>
|
| | | <if test="orderby != null">#{orderby,jdbcType=INTEGER},</if>
|
| | | <if test="browseNum != null">#{browseNum,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">#{state,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </trim>
|
| | | </insert>
|
| | | <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop">update yeshi_ec_brand_class_shop set bcs_cid = #{brandClass.id,jdbcType=BIGINT},bcs_shop_id = #{shop.id,jdbcType=BIGINT},bcs_top = #{top,jdbcType=INTEGER},bcs_orderby = #{orderby,jdbcType=INTEGER},bcs_browse_num = #{browseNum,jdbcType=BIGINT},bcs_state = #{state,jdbcType=INTEGER},bcs_create_time = #{createTime,jdbcType=TIMESTAMP},bcs_update_time = #{updateTime,jdbcType=TIMESTAMP} where bcs_id = #{id,jdbcType=BIGINT}</update>
|
| | | <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.brand.BrandClassShop">update yeshi_ec_brand_class_shop
|
| | | <set>
|
| | | <if test="brandClass != null">bcs_cid=#{brandClass.id,jdbcType=BIGINT},</if>
|
| | | <if test="shop != null">bcs_shop_id=#{shop.id,jdbcType=BIGINT},</if>
|
| | | <if test="top != null">bcs_top=#{top,jdbcType=INTEGER},</if>
|
| | | <if test="orderby != null">bcs_orderby=#{orderby,jdbcType=INTEGER},</if>
|
| | | <if test="browseNum != null">bcs_browse_num=#{browseNum,jdbcType=BIGINT},</if>
|
| | | <if test="state != null">bcs_state=#{state,jdbcType=INTEGER},</if>
|
| | | <if test="createTime != null">bcs_create_time=#{createTime,jdbcType=TIMESTAMP},</if>
|
| | | <if test="updateTime != null">bcs_update_time=#{updateTime,jdbcType=TIMESTAMP},</if>
|
| | | </set> where bcs_id = #{id,jdbcType=BIGINT}
|
| | | </update>
|
| | | |
| | | |
| | | <delete id="deleteBatchByClassId" parameterType="java.util.List">
|
| | | delete from yeshi_ec_brand_class_shop WHERE bcs_cid in
|
| | | <foreach collection="list" item="item" open="(" close=")"
|
| | | separator=",">#{item}</foreach>
|
| | | </delete>
|
| | | |
| | | <select id="listEffective" resultMap="BaseResultMap">
|
| | | SELECT * FROM yeshi_ec_brand_class_shop b
|
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON b.`bcs_shop_id` = p.`tsi_id`
|
| | | WHERE b.bcs_state = 1
|
| | | <if test="cid != null and cid !=0 ">
|
| | | AND b.`bcs_cid` = #{cid}
|
| | | </if>
|
| | | ORDER BY b.`bcs_top`,bcs_orderby
|
| | | </select>
|
| | | |
| | | <select id="countEffective" resultType="Long">
|
| | | SELECT IFNULL(COUNT(b.`bcs_cid`),0) FROM yeshi_ec_brand_class_shop b
|
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON b.`bcs_shop_id` = p.`tsi_id`
|
| | | WHERE b.bcs_state = 1 |
| | | <if test="cid != null and cid !=0 ">
|
| | | AND b.`bcs_cid` = #{cid}
|
| | | </if>
|
| | | </select>
|
| | | |
| | | <select id="getExistByShopIds" parameterType="java.util.List" resultMap="BaseResultAllMap">
|
| | | SELECT * FROM yeshi_ec_brand_class_shop cp
|
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON p.`tsi_id` = cp.`bcs_shop_id`
|
| | | LEFT JOIN `yeshi_ec_brand_class` c ON c.`bc_id` = cp.`bcs_cid`
|
| | | WHERE cp.bcs_shop_id in
|
| | | <foreach collection="list" item="item" open="(" close=")"
|
| | | separator=",">#{item}</foreach>
|
| | | </select>
|
| | | |
| | | <select id="getByShopIdAndCid" resultMap="BaseResultAllMap">
|
| | | SELECT * FROM yeshi_ec_brand_class_shop
|
| | | WHERE bcs_shop_id = #{shopId} AND bcs_cid = #{cid}
|
| | | limit 1
|
| | | </select>
|
| | | |
| | | <select id="getByShopId" resultMap="BaseResultAllMap">
|
| | | SELECT * FROM yeshi_ec_brand_class_shop
|
| | | WHERE bcs_shop_id = #{shopId}
|
| | | limit 1
|
| | | </select>
|
| | | |
| | | <select id="getMaxOrder" resultType="Integer">
|
| | | SELECT IFNULL(COUNT(bcs_id),0) FROM yeshi_ec_brand_class_shop
|
| | | WHERE bcs_cid = #{cid}
|
| | | </select>
|
| | | |
| | | |
| | | <select id="getByAdjoinOrder" resultMap="BaseResultMap">
|
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_brand_class_shop
|
| | | WHERE bcs_cid = #{cid}
|
| | | <if test="type == -1">
|
| | | AND bcs_orderby <![CDATA[<]]> #{order} |
| | | ORDER BY bcs_orderby desc
|
| | | </if>
|
| | | |
| | | <if test="type == 1">
|
| | | AND bcs_orderby <![CDATA[>]]> #{order} |
| | | ORDER BY bcs_orderby |
| | | </if>
|
| | | LIMIT 1
|
| | | </select>
|
| | | |
| | | <select id="listQuery" resultMap="BaseResultAllMap">
|
| | | SELECT * FROM `yeshi_ec_brand_class_shop` cp
|
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON p.`tsi_id` = cp.`bcs_shop_id`
|
| | | LEFT JOIN `yeshi_ec_brand_class` c ON c.`bc_id` = cp.`bcs_cid`
|
| | | WHERE 1=1
|
| | | <if test="key != null and key !='' ">
|
| | | AND p.`tsi_shop_name` LIKE '%${key}%' or p.`tsi_seller_nick` LIKE '%${key}%'
|
| | | </if>
|
| | | |
| | | <if test="cid != null">
|
| | | AND cp.`bcs_cid` = #{cid}
|
| | | </if>
|
| | | |
| | | <if test="state != null">
|
| | | AND cp.`bcs_state` = #{state}
|
| | | </if>
|
| | | ORDER BY cp.`bcs_top` DESC,cp.`bcs_orderby`
|
| | | LIMIT ${start},${count}
|
| | | </select>
|
| | | |
| | | <select id="countQuery" resultType="java.lang.Long">
|
| | | SELECT IFNULL(COUNT(cp.bcs_id),0) FROM `yeshi_ec_brand_class_shop` cp
|
| | | LEFT JOIN `yeshi_ec_taobao_shop_info` p ON p.`tsi_id` = cp.`bcs_shop_id`
|
| | | WHERE 1=1
|
| | | <if test="key != null and key !='' ">
|
| | | AND p.`tsi_shop_name` LIKE '%${key}%' or p.`tsi_seller_nick` LIKE '%${key}%'
|
| | | </if>
|
| | | |
| | | <if test="cid != null">
|
| | | AND cp.`bcs_cid` = #{cid}
|
| | | </if>
|
| | | |
| | | <if test="state != null">
|
| | | AND cp.`bcs_state` = #{state}
|
| | | </if>
|
| | | </select>
|
| | | |
| | | |
| | | </mapper>
|
fanli/src/main/java/com/yeshi/fanli/mapping/brand/BrandInfoRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/brand/TaoBaoShopHistoryMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/clazz/GoodsSubClassLabelMapMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/clazz/GoodsSubClassLabelMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/common/DataMonitorMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/common/JumpDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/common/JumpDetailV2Mapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/customerservice/CustomerServiceCommonQuestionMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/customerservice/CustomerServiceHistoryMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/customerservice/CustomerServiceWXXCXHistoryMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/CollectionGoodsV2Mapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/CommonGoodsMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/HotSearchMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/RecommendSpecialMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/RecommendUserGoodsMapMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/RecommendUserGoodsMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/ScanHistoryV2Mapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/SuperHotSearchMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/goods/SuperRecommendSpecialMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/help/AppPageNotificationMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpCenterMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpClassMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/HomeNavbarUserMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/RecommendBannerMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialCardMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialLabelMapMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialLabelMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialPlaceMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperHomeNavbarMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperRecommendBannerMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperSpecialCardMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperSpecialMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SwiperBannerMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SwiperPictureMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/hongbao/HongBaoV2CountMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/integral/CodePublishRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralExchangeMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralExchangeRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskClassMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRankMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/jd/JDGoodsClassMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/jd/JDOrderItemMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/jd/JDOrderMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/lable/BoutiqueAutoRuleMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/lable/LabelClassMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/lable/LabelGoodsMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/lable/LabelMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/lable/MergeClassMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/money/AccountDetailHongBaoMapMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/money/ExtractCheckCompensateMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/money/UserBalanceMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/money/UserMoneyDebtMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/money/UserMoneyDebtReturnHistoryMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/monitor/ClientAPIMonitorMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgDeviceReadStateMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgInviteDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOrderDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOtherDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/SystemZnxMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserSystemMsgMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/order/CommonOrderGoodsMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/order/CommonOrderMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/order/CommonOrderTradeIdMapMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/order/OrderMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/order/OrderRepairHistoryMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/order/ShareGoodsActivityOrderMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/pdd/PDDOrderMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceActiveMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenHWMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenIOSMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushCouponMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushCouponRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsGroupMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushInfoMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushQueueRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackWinInviteMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/share/PidUserMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/share/TBPidMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/share/UserShareGoodsRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoBuyRelationMapMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoCouponMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoGoodsBriefMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoLinkMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoOrderTradeMapMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoPunishOrderMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoShopMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoTokenMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoUnionAuthRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoUnionConfigMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoWeiQuanDrawBackMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaobaoMeterialMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/dataoke/DaTaoKeDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/ConfigTaoLiJinMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinDetailMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinGiveRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinReportMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/DeviceLotteryRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/ForbiddenUserIdentifyCodeMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/MaskKeyMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/ShamUserMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/SpreadImgMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserAccountBindingHistoryMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserActiveLogMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserComplaintMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserCustomSettingsMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserGoodsStorageMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoDeleteRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoExtraMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoModifyRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInviteRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserLotteryRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserRankMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserRankRecordMapper.xml
fanli/src/main/java/com/yeshi/fanli/mapping/user/vip/UserVIPInfoMapper.xml
fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/ShareGoodsTextTemplateServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/impl/order/CommonOrderServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/dataoke/DaTaoKeGoodsDetailV2ServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/impl/user/.gitignore
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoExtraServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPInfoServiceImpl.java
fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java
fanli/src/main/java/com/yeshi/fanli/service/inter/taobao/dataoke/DaTaoKeGoodsDetailV2Service.java
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoExtraService.java
fanli/src/main/java/com/yeshi/fanli/service/inter/user/vip/UserVIPInfoService.java
fanli/src/main/java/com/yeshi/fanli/util/dataoke/DaTaoKeApiUtil.java
fanli/src/main/java/com/yeshi/fanli/util/factory/CommonGoodsFactory.java
fanli/src/main/java/com/yeshi/fanli/util/factory/goods/GoodsDetailVOFactory.java
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java
fanli/src/main/java/com/yeshi/fanli/util/jd/JDApiUtil.java
fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java
fanli/src/main/java/com/yeshi/fanli/util/rocketmq/consumer/redpack/RedPackMessageListener.java
fanli/src/main/java/com/yeshi/fanli/vo/order/CommonOrderVO.java
fanli/src/main/resource/env-dev/redis.properties
fanli/src/main/resource/uml/IOS原生推送.acd
fanli/src/main/resource/uml/IOS广播推送方案.acd
fanli/src/main/resource/uml/weex布局.acd
fanli/src/main/resource/uml/三级分销系统.acd
fanli/src/main/resource/uml/分享赚系统.acd
fanli/src/main/resource/uml/接口兼容.acd
fanli/src/main/resource/uml/推送.acd
fanli/src/main/resource/uml/提现.acd
fanli/src/main/resource/uml/提现逻辑(新).acd
fanli/src/main/resource/uml/支付宝验证流程.acd
fanli/src/main/resource/uml/模块划分.acd
fanli/src/main/resource/uml/淘宝联盟授权流程.acd
fanli/src/main/resource/uml/游客/商品搜索.acd
fanli/src/main/resource/uml/游客/商品浏览.acd
fanli/src/main/resource/uml/用户.acd
fanli/src/main/resource/uml/用户PID返利.acd
fanli/src/main/resource/uml/用户邀请二维码.acd
fanli/src/main/resource/uml/登录逻辑(新).acd
fanli/src/main/resource/uml/站内信(系统对所有).acd
fanli/src/main/resource/uml/系统用例.ucd
fanli/src/main/resource/uml/订单与返利.acd
fanli/src/main/resource/uml/订单处理-详细.acd
fanli/src/main/resource/uml/订单处理逻辑(新).acd
fanli/src/main/resource/uml/购物车转链逻辑.acd
fanli/src/main/resource/uml/页面顶部提示小黄条.acd
fanli/src/main/webapp/admin/new/css/bootstrap-datetimepicker.min.css
fanli/src/main/webapp/admin/new/css/bootstrap-theme.css
fanli/src/main/webapp/admin/new/css/bootstrap-theme.min.css
fanli/src/main/webapp/admin/new/fonts/glyphicons-halflings-regular.svg
fanli/src/main/webapp/admin/new/js/bootstrap-datetimepicker.zh-CN.js
fanli/src/main/webapp/admin/new/js/bootstrap.js
fanli/src/main/webapp/admin/new/js/bootstrap.min.js
fanli/src/main/webapp/admin/new/js/html5shiv.js
fanli/src/main/webapp/admin/new/js/jsp/config.json
fanli/src/main/webapp/admin/new/js/jsp/controller.jsp
fanli/src/main/webapp/admin/new/js/npm.js
fanli/src/main/webapp/admin/new/js/themes/default/css/ueditor.min.css
fanli/src/main/webapp/admin/new/js/third-party/SyntaxHighlighter/shCore.js
fanli/src/main/webapp/admin/new/js/third-party/codemirror/codemirror.css
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/mootools-adapter.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/mootools-adapter.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/prototype-adapter.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/prototype-adapter.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/standalone-framework.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/standalone-framework.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts-more.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts-more.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/annotations.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/annotations.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/canvas-tools.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/canvas-tools.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/data.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/data.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/drilldown.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/drilldown.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/exporting.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/exporting.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/funnel.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/funnel.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/heatmap.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/heatmap.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/map.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/map.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/no-data-to-display.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/no-data-to-display.src.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/dark-blue.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/dark-green.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/gray.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/grid.js
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/skies.js
fanli/src/main/webapp/admin/new/js/third-party/jquery-1.10.2.js
fanli/src/main/webapp/admin/new/js/third-party/jquery-1.10.2.min.js
fanli/src/main/webapp/admin/new/js/third-party/video-js/font/vjs.svg
fanli/src/main/webapp/admin/new/js/third-party/video-js/video-js.css
fanli/src/main/webapp/admin/new/js/third-party/video-js/video-js.min.css
fanli/src/main/webapp/admin/new/js/third-party/video-js/video.dev.js
fanli/src/main/webapp/admin/new/js/third-party/video-js/video.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.css
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.custom.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.custom.min.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.flashonly.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.flashonly.min.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.html5only.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.html5only.min.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.min.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.withoutimage.js
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.withoutimage.min.js
fanli/src/main/webapp/admin/new/js/third-party/zeroclipboard/ZeroClipboard.js
fanli/src/main/webapp/admin/new/js/third-party/zeroclipboard/ZeroClipboard.min.js
fanli/src/main/webapp/admin/new/js/ueditor.all.min.js
fanli/src/main/webapp/admin/new/js/ueditor.config.js
fanli/src/main/webapp/admin/new/layer/layer.js
fanli/src/main/webapp/client/css/mui.min.css
fanli/src/main/webapp/client/css/swiper-3.4.2.min.css
fanli/src/main/webapp/client/fan_client/js/jquery-1.8.3.min.js
fanli/src/main/webapp/client/fan_client/js/vue.js
fanli/src/main/webapp/client/h5/js/clipboard.min.js
fanli/src/main/webapp/client/h5/js/mescroll.min.js
fanli/src/main/webapp/client/html/sharegoods/js/jquery.min.js
fanli/src/main/webapp/client/js/jquery-1.6.1.js
fanli/src/main/webapp/client/js/jquery-2.1.0.js
fanli/src/main/webapp/client/js/jquery-3.1.1.min.js
fanli/src/main/webapp/client/js/jquery.infinitescroll.min.js
fanli/src/main/webapp/client/js/mui.min.js
fanli/src/main/webapp/client/js/swiper-3.4.2.jquery.min.js
fanli/src/main/webapp/client/jsp/share/js/jquery-3.1.0.min.js
fanli/src/main/webapp/client/layer/layer.js
fanli/src/main/webapp/client/manifest.json
fanli/src/main/webapp/client/share/js/jquery-3.1.0.min.js
fanli/src/main/webapp/client/share/js/mescroll.min.js
fanli/src/main/webapp/client/share/js/vue.min.js
fanli/src/main/webapp/client/sharegoods/js/jquery.min.js
fanli/src/test/java/org/fanli/MyBatisProduce.java
fanli/src/test/java/org/fanli/TaoKeTest.java
utils/.classpath
utils/src/main/java/com/qcloud/cmq/Account.java
utils/src/main/java/com/qcloud/cmq/CMQClient.java
utils/src/main/java/com/qcloud/cmq/CMQClientException.java
utils/src/main/java/com/qcloud/cmq/CMQHttp.java
utils/src/main/java/com/qcloud/cmq/CMQServerException.java
utils/src/main/java/com/qcloud/cmq/CMQTool.java
utils/src/main/java/com/qcloud/cmq/Json/JSONArray.java
utils/src/main/java/com/qcloud/cmq/Json/JSONException.java
utils/src/main/java/com/qcloud/cmq/Json/JSONObject.java
utils/src/main/java/com/qcloud/cmq/Json/JSONString.java
utils/src/main/java/com/qcloud/cmq/Json/JSONStringer.java
utils/src/main/java/com/qcloud/cmq/Json/JSONTokener.java
utils/src/main/java/com/qcloud/cmq/Json/JSONWriter.java
utils/src/main/java/com/qcloud/cmq/Message.java
utils/src/main/java/com/qcloud/cmq/Queue.java
utils/src/main/java/com/qcloud/cmq/QueueMeta.java
utils/src/main/java/com/qcloud/cmq/Subscription.java
utils/src/main/java/com/qcloud/cmq/SubscriptionMeta.java
utils/src/main/java/com/qcloud/cmq/Topic.java
utils/src/main/java/com/qcloud/cmq/TopicMeta.java |