yujian
2019-11-25 59bfbce44674e52aefbe883233ffaea93d750a8f
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
6个文件已添加
493个文件已修改
393813 ■■■■ 已修改文件
fanli/.classpath 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/TestController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ConfigControllerV2.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/h5/H5RecommendController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/goods/taobao/dataoke/DaTaoKeGoodsDetailV2Dao.java 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AccountMessageMapper.java 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AdminUserMapper.java 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AlipayAccountValidNormalHistoryMapper.java 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AppVersionInfoMapper.java 142 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/BindingAccountMapper.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/BusinessSystemMapper.java 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ConfigMapper.java 90 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/CustomerContentMapper.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/CustomerNameMapper.java 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ExtractRecordMapper.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ExtractWeiXinRecordMapper.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsSecondClassMapper.java 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsSubClassMapper.java 154 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HistorySearchMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoManageMapper.java 78 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/PayInfoMapper.java 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/RecommendBannerV2Mapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SMSHistoryMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ScanHistoryMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/StrategyPictureMapper.java 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SuperRecommendBannerV2Mapper.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SystemConfigMapper.java 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SystemCouponMapper.java 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/TaoBaoClassMapper.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/TaoBaoClassRelationMapper.java 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/UserConnectHistoryMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/UserRankingsMapper.java 124 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/UserShareGoodsHistoryMapper.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/ActivityRuleUserMapper.java 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/ActivityUserMapper.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityImgMapper.java 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityInviteInfoMapper.java 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityMapper.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityTaoBaoGoodsMapper.java 66 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassMapper.java 106 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassShopMapper.java 158 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoMapper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoRecordMapper.java 72 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/TaoBaoShopHistoryMapper.java 142 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/clazz/GoodsSubClassLabelMapMapper.java 72 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/clazz/GoodsSubClassLabelMapper.java 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/common/DataMonitorMapper.java 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/common/JumpDetailMapper.java 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/common/JumpDetailV2Mapper.java 146 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/customerservice/CustomerServiceCommonQuestionMapper.java 130 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/customerservice/CustomerServiceHistoryMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/customerservice/CustomerServiceWXXCXHistoryMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/elme/ElmeOrderMapper.java 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CollectionGoodsV2Mapper.java 178 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CommonGoodsMapper.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/RecommendSpecialMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/RecommendUserGoodsMapMapper.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/RecommendUserGoodsMapper.java 136 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/ScanHistoryV2Mapper.java 124 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/ShareGoodsTextTemplateMapper.java 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/SuperHotSearchMapper.java 102 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/SuperRecommendSpecialMapper.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/help/AppPageNotificationMapper.java 90 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/help/HelpClassMapper.java 116 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/HomeNavbarMapper.java 216 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/HomeNavbarUserMapper.java 124 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/RecommendBannerMapper.java 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialCardMapper.java 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialLabelMapMapper.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialLabelMapper.java 78 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialPlaceMapper.java 76 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperHomeNavbarMapper.java 118 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperRecommendBannerMapper.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperSpecialCardMapper.java 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperSpecialMapper.java 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SwiperBannerMapper.java 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SwiperPictureMapper.java 116 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/CodePublishRecordMapper.java 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralDetailMapper.java 156 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralExchangeMapper.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralExchangeRecordMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskClassMapper.java 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskMapper.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskRankMapper.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/jd/JDGoodsClassMapper.java 88 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/jd/JDOrderItemMapper.java 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/jd/JDOrderMapper.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/BoutiqueAutoRuleMapper.java 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelClassMapper.java 170 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelGoodsMapper.java 256 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/MergeClassMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/QualityFactoryMapper.java 722 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/QualityFlashSaleMapper.java 138 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/AccountDetailHongBaoMapMapper.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/ExtractCheckCompensateMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserBalanceMapper.java 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtMapper.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtReturnHistoryMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDetailMapper.java 212 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/monitor/ClientAPIMonitorMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgAccountDetailMapper.java 72 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgDeviceReadStateMapper.java 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgInviteDetailMapper.java 104 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgOrderDetailMapper.java 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgOtherDetailMapper.java 72 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/SystemZnxMapper.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/UserMsgUnReadNumMapper.java 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/UserSystemMsgMapper.java 104 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/CommonOrderGoodsMapper.java 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/CommonOrderTradeIdMapMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/OrderMapper.java 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/OrderRepairHistoryMapper.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/ShareGoodsActivityOrderMapper.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/pdd/PDDOrderMapper.java 98 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceActiveMapper.java 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenHWMapper.java 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenIOSMapper.java 68 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenOPPOMapper.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenVIVOMapper.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushCouponMapper.java 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushCouponRecordMapper.java 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushGoodsGroupMapper.java 140 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushGoodsMapper.java 152 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushGoodsRecordMapper.java 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushInfoMapper.java 70 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushQueueRecordMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushRecordMapper.java 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/share/PidUserMapper.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/share/UserShareGoodsRecordMapper.java 102 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TBPidMapper.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoBuyRelationMapMapper.java 68 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoCouponMapper.java 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java 198 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoLinkMapper.java 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoOrderTradeMapMapper.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoPunishOrderMapper.java 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoShopMapper.java 78 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoTokenMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoUnionAuthRecordMapper.java 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoUnionConfigMapper.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoWeiQuanDrawBackMapper.java 76 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoWeiQuanOrderMapper.java 180 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaobaoMeterialMapper.java 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/dataoke/DaTaoKeDetailMapper.java 210 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/ConfigTaoLiJinMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinDetailMapper.java 180 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinGiveRecordMapper.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinRecordMapper.java 106 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinReportMapper.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/DeviceLotteryRecordMapper.java 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/ForbiddenUserIdentifyCodeMapper.java 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/MaskKeyMapper.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/ShamUserMapper.java 120 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/SpreadImgMapper.java 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserAccountBindingHistoryMapper.java 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserActiveLogMapper.java 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserComplaintMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserCustomSettingsMapper.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserExtraTaoBaoInfoMapper.java 112 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserGoodsStorageMapper.java 162 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInfoDeleteRecordMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInfoExtraMapper.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInfoModifyRecordMapper.java 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInviteRecordMapper.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserLotteryRecordMapper.java 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserRankMapper.java 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserRankRecordMapper.java 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/vip/UserVIPInfoMapper.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/UserInfo.java 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/UserInfoExtra.java 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/vip/UserVIPInfo.java 90 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/entity/jd/JDGoods.java 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/exception/tlj/UserTaoLiJinOriginException.java 64 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/exception/tlj/UserTaoLiJinRecordException.java 64 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/exception/user/vip/UserVIPInfoException.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/AccountMessageMapper.xml 200 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/AdminUserMapper.xml 156 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/AlipayAccountValidNormalHistoryMapper.xml 182 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/AppVersionInfoMapper.xml 246 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/BindingAccountMapper.xml 190 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/BusinessSystemMapper.xml 180 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/ConfigMapper.xml 244 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/CustomerContentMapper.xml 114 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/CustomerNameMapper.xml 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/ExtractRecordMapper.xml 164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/ExtractWeiXinRecordMapper.xml 224 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/GoodsClassMapper.xml 306 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/GoodsSecondClassMapper.xml 146 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/HistorySearchMapper.xml 126 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/HongBaoManageMapper.xml 178 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/PayInfoMapper.xml 180 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/RecommendBannerV2Mapper.xml 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/SMSHistoryMapper.xml 124 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/ScanHistoryMapper.xml 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/StrategyPictureMapper.xml 156 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/SuperGoodsClassMapper.xml 152 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/SuperRecommendBannerV2Mapper.xml 102 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/SystemClientParamsMapper.xml 236 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/SystemConfigMapper.xml 114 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/TaoBaoClassMapper.xml 140 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/TaoBaoClassRelationMapper.xml 246 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/UserConnectHistoryMapper.xml 138 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/UserRankingsMapper.xml 572 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/activity/ActivityRuleUserMapper.xml 200 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/activity/ActivityUserMapper.xml 162 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityImgMapper.xml 192 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityInviteInfoMapper.xml 160 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityMapper.xml 436 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityTaoBaoGoodsMapper.xml 272 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/brand/BrandClassMapper.xml 220 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/brand/BrandClassShopMapper.xml 378 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/brand/BrandInfoRecordMapper.xml 206 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/brand/TaoBaoShopHistoryMapper.xml 228 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/clazz/GoodsSubClassLabelMapMapper.xml 224 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/clazz/GoodsSubClassLabelMapper.xml 268 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/common/DataMonitorMapper.xml 156 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/common/JumpDetailMapper.xml 156 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/common/JumpDetailV2Mapper.xml 256 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/customerservice/CustomerServiceCommonQuestionMapper.xml 324 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/customerservice/CustomerServiceHistoryMapper.xml 176 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/customerservice/CustomerServiceWXXCXHistoryMapper.xml 202 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/CollectionGoodsV2Mapper.xml 282 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/CommonGoodsMapper.xml 394 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/HotSearchMapper.xml 142 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/RecommendSpecialMapper.xml 126 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/RecommendUserGoodsMapMapper.xml 192 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/RecommendUserGoodsMapper.xml 262 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/ScanHistoryV2Mapper.xml 312 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/SuperHotSearchMapper.xml 134 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/goods/SuperRecommendSpecialMapper.xml 104 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/help/AppPageNotificationMapper.xml 274 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpCenterMapper.xml 250 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/help/HelpClassMapper.xml 224 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/HomeNavbarUserMapper.xml 272 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/RecommendBannerMapper.xml 172 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialCardMapper.xml 194 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialLabelMapMapper.xml 92 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialLabelMapper.xml 172 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SpecialPlaceMapper.xml 142 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperHomeNavbarMapper.xml 160 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperRecommendBannerMapper.xml 158 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperSpecialCardMapper.xml 132 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SuperSpecialMapper.xml 116 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SwiperBannerMapper.xml 166 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/homemodule/SwiperPictureMapper.xml 320 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/hongbao/HongBaoV2CountMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/integral/CodePublishRecordMapper.xml 130 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralDetailMapper.xml 268 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralExchangeMapper.xml 202 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralExchangeRecordMapper.xml 90 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskClassMapper.xml 354 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskMapper.xml 280 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/integral/IntegralTaskRankMapper.xml 114 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/jd/JDGoodsClassMapper.xml 166 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/jd/JDOrderItemMapper.xml 574 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/jd/JDOrderMapper.xml 236 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/lable/BoutiqueAutoRuleMapper.xml 260 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/lable/LabelClassMapper.xml 228 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/lable/LabelGoodsMapper.xml 404 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/lable/LabelMapper.xml 452 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/lable/MergeClassMapper.xml 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml 2852 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFlashSaleMapper.xml 324 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/money/AccountDetailHongBaoMapMapper.xml 186 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/money/ExtractCheckCompensateMapper.xml 156 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/money/UserBalanceMapper.xml 98 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/money/UserMoneyDebtMapper.xml 216 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/money/UserMoneyDebtReturnHistoryMapper.xml 164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/monitor/ClientAPIMonitorMapper.xml 168 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgAccountDetailMapper.xml 234 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgDeviceReadStateMapper.xml 254 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgInviteDetailMapper.xml 306 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOrderDetailMapper.xml 282 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgOtherDetailMapper.xml 200 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/SystemZnxMapper.xml 140 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserMsgUnReadNumMapper.xml 246 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/msg/UserSystemMsgMapper.xml 302 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/order/CommonOrderGoodsMapper.xml 246 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/order/CommonOrderMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/order/CommonOrderTradeIdMapMapper.xml 134 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/order/OrderMapper.xml 260 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/order/OrderRepairHistoryMapper.xml 164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/order/ShareGoodsActivityOrderMapper.xml 246 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/pdd/PDDOrderMapper.xml 540 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceActiveMapper.xml 274 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenHWMapper.xml 284 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/DeviceTokenIOSMapper.xml 268 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushCouponMapper.xml 206 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushCouponRecordMapper.xml 120 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsGroupMapper.xml 172 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushGoodsRecordMapper.xml 136 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushInfoMapper.xml 224 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushQueueRecordMapper.xml 126 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/push/PushRecordMapper.xml 216 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackWinInviteMapper.xml 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/share/PidUserMapper.xml 154 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/share/TBPidMapper.xml 162 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/share/UserShareGoodsRecordMapper.xml 214 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoBuyRelationMapMapper.xml 178 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoCouponMapper.xml 376 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoGoodsBriefMapper.xml 1520 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoLinkMapper.xml 120 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoOrderTradeMapMapper.xml 148 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoPunishOrderMapper.xml 268 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoShopMapper.xml 432 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoTokenMapper.xml 158 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoUnionAuthRecordMapper.xml 198 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoUnionConfigMapper.xml 240 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoWeiQuanDrawBackMapper.xml 192 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaobaoMeterialMapper.xml 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/dataoke/DaTaoKeDetailMapper.xml 734 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/ConfigTaoLiJinMapper.xml 146 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinDetailMapper.xml 278 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinGiveRecordMapper.xml 122 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinRecordMapper.xml 258 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/tlj/UserTaoLiJinReportMapper.xml 186 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/DeviceLotteryRecordMapper.xml 98 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/ForbiddenUserIdentifyCodeMapper.xml 198 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/MaskKeyMapper.xml 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/ShamUserMapper.xml 274 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/SpreadImgMapper.xml 152 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserAccountBindingHistoryMapper.xml 180 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserActiveLogMapper.xml 208 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserComplaintMapper.xml 98 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserCustomSettingsMapper.xml 238 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserGoodsStorageMapper.xml 288 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoDeleteRecordMapper.xml 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoExtraMapper.xml 639 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInfoModifyRecordMapper.xml 168 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserInviteRecordMapper.xml 114 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserLotteryRecordMapper.xml 106 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserRankMapper.xml 132 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/UserRankRecordMapper.xml 78 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/mapping/user/vip/UserVIPInfoMapper.xml 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/count/HongBaoV2CountServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/CommonTemplateContentServiceImpl.java 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/ShareGoodsTextTemplateServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/order/CommonOrderServiceImpl.java 161 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/redpack/RedPackWinInviteServiceImpl.java 167 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/dataoke/DaTaoKeGoodsDetailV2ServiceImpl.java 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/.gitignore 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserInfoExtraServiceImpl.java 73 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/user/vip/UserVIPInfoServiceImpl.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/inter/taobao/dataoke/DaTaoKeGoodsDetailV2Service.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserInfoExtraService.java 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/inter/user/vip/UserVIPInfoService.java 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/dataoke/DaTaoKeApiUtil.java 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/factory/CommonGoodsFactory.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/factory/goods/GoodsDetailVOFactory.java 115 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/jd/JDApiUtil.java 93 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/jd/JDUtil.java 121 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/util/rocketmq/consumer/redpack/RedPackMessageListener.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/vo/order/CommonOrderVO.java 203 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/env-dev/redis.properties 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/IOS原生推送.acd 326 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/IOS广播推送方案.acd 588 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/weex布局.acd 3170 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/三级分销系统.acd 2636 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/分享赚系统.acd 3040 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/接口兼容.acd 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/推送.acd 1082 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/提现.acd 1064 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/提现逻辑(新).acd 3364 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/支付宝验证流程.acd 792 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/模块划分.acd 5018 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/淘宝联盟授权流程.acd 3564 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/游客/商品搜索.acd 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/游客/商品浏览.acd 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/用户.acd 4822 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/用户PID返利.acd 2468 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/用户邀请二维码.acd 1298 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/登录逻辑(新).acd 7666 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/站内信(系统对所有).acd 1210 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/系统用例.ucd 1624 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/订单与返利.acd 2752 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/订单处理-详细.acd 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/订单处理逻辑(新).acd 1592 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/购物车转链逻辑.acd 1672 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/resource/uml/页面顶部提示小黄条.acd 1502 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/css/bootstrap-datetimepicker.min.css 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/css/bootstrap-theme.css 1174 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/css/bootstrap-theme.min.css 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/fonts/glyphicons-halflings-regular.svg 574 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/bootstrap-datetimepicker.zh-CN.js 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/bootstrap.js 4726 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/bootstrap.min.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/html5shiv.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/jsp/config.json 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/jsp/controller.jsp 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/npm.js 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/themes/default/css/ueditor.min.css 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/SyntaxHighlighter/shCore.js 7310 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/codemirror/codemirror.css 208 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/mootools-adapter.js 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/mootools-adapter.src.js 626 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/prototype-adapter.js 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/prototype-adapter.src.js 632 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/standalone-framework.js 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/adapters/standalone-framework.src.js 1166 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts-more.js 100 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts-more.src.js 4860 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts.js 566 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/highcharts.src.js 33948 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/annotations.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/annotations.src.js 802 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/canvas-tools.js 266 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/canvas-tools.src.js 6226 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/data.js 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/data.src.js 1164 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/drilldown.js 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/drilldown.src.js 894 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/exporting.js 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/exporting.src.js 1418 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/funnel.js 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/funnel.src.js 578 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/heatmap.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/heatmap.src.js 106 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/map.js 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/map.src.js 2004 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/no-data-to-display.js 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/modules/no-data-to-display.src.js 256 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/dark-blue.js 508 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/dark-green.js 510 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/gray.js 514 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/grid.js 206 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/highcharts/themes/skies.js 178 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/jquery-1.10.2.js 19578 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/jquery-1.10.2.min.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/video-js/font/vjs.svg 128 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/video-js/video-js.css 1532 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/video-js/video-js.min.css 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/video-js/video.dev.js 14216 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/video-js/video.js 258 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.css 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.custom.js 11340 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.custom.min.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.flashonly.js 8352 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.flashonly.min.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.html5only.js 11118 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.html5only.min.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.js 13466 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.min.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.withoutimage.js 9186 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/webuploader/webuploader.withoutimage.min.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/zeroclipboard/ZeroClipboard.js 2510 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/third-party/zeroclipboard/ZeroClipboard.min.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/ueditor.all.min.js 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/js/ueditor.config.js 992 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/admin/new/layer/layer.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/css/mui.min.css 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/css/swiper-3.4.2.min.css 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/fan_client/js/jquery-1.8.3.min.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/fan_client/js/vue.js 20114 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/h5/js/clipboard.min.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/h5/js/mescroll.min.js 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/html/sharegoods/js/jquery.min.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/js/jquery-1.6.1.js 75920 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/js/jquery-2.1.0.js 18222 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/js/jquery-3.1.1.min.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/js/jquery.infinitescroll.min.js 1422 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/js/mui.min.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/js/swiper-3.4.2.jquery.min.js 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/jsp/share/js/jquery-3.1.0.min.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/layer/layer.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/manifest.json 384 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/share/js/jquery-3.1.0.min.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/share/js/mescroll.min.js 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/share/js/vue.min.js 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/webapp/client/sharegoods/js/jquery.min.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/test/java/org/fanli/MyBatisProduce.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/test/java/org/fanli/TaoKeTest.java 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/.classpath 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Account.java 766 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/CMQClient.java 208 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/CMQClientException.java 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/CMQHttp.java 210 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/CMQServerException.java 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/CMQTool.java 148 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Json/JSONArray.java 1954 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Json/JSONException.java 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Json/JSONObject.java 3390 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Json/JSONString.java 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Json/JSONStringer.java 156 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Json/JSONTokener.java 892 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Json/JSONWriter.java 654 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Message.java 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Queue.java 596 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/QueueMeta.java 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Subscription.java 294 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/SubscriptionMeta.java 110 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/Topic.java 486 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/src/main/java/com/qcloud/cmq/TopicMeta.java 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/.classpath
@@ -6,11 +6,15 @@
            <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">
@@ -19,16 +23,6 @@
            <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>
fanli/src/main/java/com/yeshi/fanli/controller/TestController.java
@@ -126,7 +126,7 @@
    @Resource
    private IntegralGetService integralGetService;
    @Resource
    private UserMoneyExtraService userMoneyExtraService;
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserInfoController.java
@@ -89,6 +89,7 @@
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;
@@ -106,6 +107,7 @@
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;
@@ -225,16 +227,21 @@
    @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";
@@ -281,7 +288,7 @@
                userActiveLog.setOsVersion(acceptData.getOsVersion());
                userActiveLog.setDeviceType(acceptData.getDeviceType());
                userActiveLog.setDevice(acceptData.getDevice());
                userActiveLogService.addUserActiveLog(userActiveLog);
                outUserInfo(acceptData, out, remotIP, find, acceptData.getDevice());
@@ -2165,26 +2172,38 @@
            // 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() {
@@ -2299,7 +2318,7 @@
     */
    @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("用户未登录"));
@@ -2352,6 +2371,28 @@
                    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()));
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ConfigControllerV2.java
@@ -196,6 +196,7 @@
        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");
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/GoodsControllerV2.java
@@ -73,6 +73,7 @@
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;
@@ -557,10 +558,16 @@
            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);
        }
@@ -663,9 +670,14 @@
                    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))
                                + ")";
                }
            }
        }
@@ -676,10 +688,17 @@
        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);
@@ -825,10 +844,16 @@
        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);
@@ -1120,12 +1145,13 @@
     * @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;
@@ -1148,13 +1174,17 @@
            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);
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/InviteControllerV2.java
@@ -5,6 +5,7 @@
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
@@ -31,9 +32,11 @@
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;
@@ -46,7 +49,7 @@
    @Resource
    private RedisManager redisManager;
    @Resource
    private ConfigService configService;
@@ -67,6 +70,9 @@
    @Resource
    private ThreeSaleExtraInfoSerivce threeSaleExtraInfoSerivce;
    @Resource
    private UserVIPInfoService userVIPInfoService;
    /**
     * 邀请码验证
@@ -100,17 +106,17 @@
            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());
@@ -124,9 +130,11 @@
    /**
     * 微信激活
     *
     * @param acceptData
     * @param uid
     * @param key 验证返回的key
     * @param key
     *            验证返回的key
     * @param out
     */
    @RequestSerializableByKey(key = "'activeInviteWX-'+#uid")
@@ -136,15 +144,15 @@
            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()));
@@ -153,9 +161,7 @@
            e.printStackTrace();
        }
    }
    /**
     * 用户队员列表查询 1.5.3查询有效队员
     * 
@@ -180,8 +186,12 @@
            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) {
@@ -206,7 +216,7 @@
     * @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();
@@ -215,6 +225,14 @@
        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) {
@@ -230,6 +248,9 @@
            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();
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java
@@ -612,7 +612,7 @@
        // goodsId + "");
        String couponUrl = null;
        JDCouponInfo couponInfo = jdGoods.getCouponInfo();
        JDCouponInfo couponInfo = JDUtil.getShowCouponInfo(jdGoods);
        if (couponInfo != null) {
            couponUrl = couponInfo.getLink();
        }
@@ -1015,7 +1015,7 @@
        }
        String couponUrl = null;
        JDCouponInfo couponInfo = goods.getCouponInfo();
        JDCouponInfo couponInfo = JDUtil.getShowCouponInfo(goods);
        if (couponInfo != null) {
            couponUrl = couponInfo.getLink();
        }
fanli/src/main/java/com/yeshi/fanli/controller/h5/H5RecommendController.java
@@ -449,7 +449,7 @@
        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();
fanli/src/main/java/com/yeshi/fanli/dao/goods/taobao/dataoke/DaTaoKeGoodsDetailV2Dao.java
@@ -18,6 +18,7 @@
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> {
@@ -183,4 +184,31 @@
        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());
    }
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AccountMessageMapper.java
@@ -1,41 +1,41 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AdminUserMapper.java
@@ -1,11 +1,11 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AlipayAccountValidNormalHistoryMapper.java
@@ -1,20 +1,20 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/AppVersionInfoMapper.java
@@ -1,72 +1,72 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/BindingAccountMapper.java
@@ -1,28 +1,28 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/BusinessSystemMapper.java
@@ -1,29 +1,29 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ConfigMapper.java
@@ -1,46 +1,46 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/CustomerContentMapper.java
@@ -1,17 +1,17 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/CustomerNameMapper.java
@@ -1,14 +1,14 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ExtractRecordMapper.java
@@ -1,26 +1,26 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ExtractWeiXinRecordMapper.java
@@ -1,28 +1,28 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsSecondClassMapper.java
@@ -1,31 +1,31 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsSubClassMapper.java
@@ -1,78 +1,78 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HistorySearchMapper.java
@@ -1,8 +1,8 @@
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> {
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoManageMapper.java
@@ -1,40 +1,40 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java
@@ -177,6 +177,7 @@
     * @param endTime 结束时间
     * @return
     */
    BigDecimal getOrderRewardByTeamUid(@Param("uid") Long uid, @Param("teamUid") Long teamUid, @Param("endTime") Date endTime);
    /**
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/PayInfoMapper.java
@@ -1,24 +1,24 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/RecommendBannerV2Mapper.java
@@ -1,8 +1,8 @@
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>{
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SMSHistoryMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ScanHistoryMapper.java
@@ -1,8 +1,8 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/StrategyPictureMapper.java
@@ -1,22 +1,22 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SuperRecommendBannerV2Mapper.java
@@ -1,13 +1,13 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SystemConfigMapper.java
@@ -1,14 +1,14 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/SystemCouponMapper.java
@@ -1,41 +1,41 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/TaoBaoClassMapper.java
@@ -1,26 +1,26 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/TaoBaoClassRelationMapper.java
@@ -1,49 +1,49 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/UserConnectHistoryMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/UserRankingsMapper.java
@@ -1,63 +1,63 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/UserShareGoodsHistoryMapper.java
@@ -1,26 +1,26 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/ActivityRuleUserMapper.java
@@ -1,38 +1,38 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/ActivityUserMapper.java
@@ -1,28 +1,28 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityImgMapper.java
@@ -1,24 +1,24 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityInviteInfoMapper.java
@@ -1,22 +1,22 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityMapper.java
@@ -1,36 +1,36 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/activity/RecommendActivityTaoBaoGoodsMapper.java
@@ -1,34 +1,34 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassMapper.java
@@ -1,54 +1,54 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandClassShopMapper.java
@@ -1,80 +1,80 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoMapper.java
@@ -70,5 +70,5 @@
     * @return
     */
    long countValidByCidToApp(@Param("cid") Long cid);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/BrandInfoRecordMapper.java
@@ -1,37 +1,37 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/brand/TaoBaoShopHistoryMapper.java
@@ -1,72 +1,72 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/clazz/GoodsSubClassLabelMapMapper.java
@@ -1,37 +1,37 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/clazz/GoodsSubClassLabelMapper.java
@@ -1,38 +1,38 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/common/DataMonitorMapper.java
@@ -1,20 +1,20 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/common/JumpDetailMapper.java
@@ -1,29 +1,29 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/common/JumpDetailV2Mapper.java
@@ -1,74 +1,74 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/customerservice/CustomerServiceCommonQuestionMapper.java
@@ -1,66 +1,66 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/customerservice/CustomerServiceHistoryMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/customerservice/CustomerServiceWXXCXHistoryMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/elme/ElmeOrderMapper.java
@@ -1,15 +1,15 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CollectionGoodsV2Mapper.java
@@ -1,90 +1,90 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CommonGoodsMapper.java
@@ -1,44 +1,44 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/RecommendSpecialMapper.java
@@ -1,8 +1,8 @@
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>{
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/RecommendUserGoodsMapMapper.java
@@ -1,16 +1,16 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/RecommendUserGoodsMapper.java
@@ -1,69 +1,69 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/ScanHistoryV2Mapper.java
@@ -1,63 +1,63 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/ShareGoodsTextTemplateMapper.java
@@ -1,15 +1,15 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/SuperHotSearchMapper.java
@@ -1,52 +1,52 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/SuperRecommendSpecialMapper.java
@@ -1,13 +1,13 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/help/AppPageNotificationMapper.java
@@ -1,46 +1,46 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/help/HelpClassMapper.java
@@ -1,59 +1,59 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/HomeNavbarMapper.java
@@ -1,109 +1,109 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/HomeNavbarUserMapper.java
@@ -1,63 +1,63 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/RecommendBannerMapper.java
@@ -1,19 +1,19 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialCardMapper.java
@@ -1,22 +1,22 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialLabelMapMapper.java
@@ -1,17 +1,17 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialLabelMapper.java
@@ -1,40 +1,40 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SpecialPlaceMapper.java
@@ -1,39 +1,39 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperHomeNavbarMapper.java
@@ -1,60 +1,60 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperRecommendBannerMapper.java
@@ -1,17 +1,17 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperSpecialCardMapper.java
@@ -1,30 +1,30 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SuperSpecialMapper.java
@@ -1,30 +1,30 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SwiperBannerMapper.java
@@ -1,25 +1,25 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/homemodule/SwiperPictureMapper.java
@@ -1,59 +1,59 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/CodePublishRecordMapper.java
@@ -1,23 +1,23 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralDetailMapper.java
@@ -1,79 +1,79 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralExchangeMapper.java
@@ -1,26 +1,26 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralExchangeRecordMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskClassMapper.java
@@ -1,27 +1,27 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskMapper.java
@@ -1,28 +1,28 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/integral/IntegralTaskRankMapper.java
@@ -1,17 +1,17 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/jd/JDGoodsClassMapper.java
@@ -1,45 +1,45 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/jd/JDOrderItemMapper.java
@@ -1,38 +1,38 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/jd/JDOrderMapper.java
@@ -1,16 +1,16 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/BoutiqueAutoRuleMapper.java
@@ -1,41 +1,41 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelClassMapper.java
@@ -1,86 +1,86 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/LabelGoodsMapper.java
@@ -1,129 +1,129 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/MergeClassMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/QualityFactoryMapper.java
@@ -1,361 +1,361 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/lable/QualityFlashSaleMapper.java
@@ -1,70 +1,70 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/AccountDetailHongBaoMapMapper.java
@@ -1,16 +1,16 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/ExtractCheckCompensateMapper.java
@@ -1,8 +1,8 @@
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> {
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserBalanceMapper.java
@@ -1,14 +1,14 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtMapper.java
@@ -1,36 +1,36 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDebtReturnHistoryMapper.java
@@ -1,8 +1,8 @@
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> {
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/money/UserMoneyDetailMapper.java
@@ -1,107 +1,107 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/monitor/ClientAPIMonitorMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgAccountDetailMapper.java
@@ -1,37 +1,37 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgDeviceReadStateMapper.java
@@ -1,42 +1,42 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgInviteDetailMapper.java
@@ -1,53 +1,53 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgOrderDetailMapper.java
@@ -1,27 +1,27 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/MsgOtherDetailMapper.java
@@ -1,37 +1,37 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/SystemZnxMapper.java
@@ -1,16 +1,16 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/UserMsgUnReadNumMapper.java
@@ -1,10 +1,10 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/msg/UserSystemMsgMapper.java
@@ -1,53 +1,53 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/CommonOrderGoodsMapper.java
@@ -1,41 +1,41 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/CommonOrderTradeIdMapMapper.java
@@ -1,8 +1,8 @@
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> {
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/OrderMapper.java
@@ -1,41 +1,41 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/OrderRepairHistoryMapper.java
@@ -1,17 +1,17 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/order/ShareGoodsActivityOrderMapper.java
@@ -1,36 +1,36 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/pdd/PDDOrderMapper.java
@@ -1,50 +1,50 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceActiveMapper.java
@@ -1,32 +1,32 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenHWMapper.java
@@ -1,38 +1,38 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenIOSMapper.java
@@ -1,35 +1,35 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenOPPOMapper.java
@@ -1,44 +1,44 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/DeviceTokenVIVOMapper.java
@@ -1,44 +1,44 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushCouponMapper.java
@@ -1,30 +1,30 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushCouponRecordMapper.java
@@ -1,27 +1,27 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushGoodsGroupMapper.java
@@ -1,71 +1,71 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushGoodsMapper.java
@@ -1,77 +1,77 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushGoodsRecordMapper.java
@@ -1,30 +1,30 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushInfoMapper.java
@@ -1,36 +1,36 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushQueueRecordMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/push/PushRecordMapper.java
@@ -1,22 +1,22 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/share/PidUserMapper.java
@@ -1,28 +1,28 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/share/UserShareGoodsRecordMapper.java
@@ -1,52 +1,52 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TBPidMapper.java
@@ -1,17 +1,17 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoBuyRelationMapMapper.java
@@ -1,35 +1,35 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoCouponMapper.java
@@ -1,29 +1,29 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java
@@ -1,100 +1,100 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoLinkMapper.java
@@ -1,12 +1,12 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoOrderTradeMapMapper.java
@@ -1,16 +1,16 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoPunishOrderMapper.java
@@ -1,22 +1,22 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoShopMapper.java
@@ -1,39 +1,39 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoTokenMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoUnionAuthRecordMapper.java
@@ -1,11 +1,11 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoUnionConfigMapper.java
@@ -1,28 +1,28 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoWeiQuanDrawBackMapper.java
@@ -1,39 +1,39 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoWeiQuanOrderMapper.java
@@ -1,91 +1,91 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaobaoMeterialMapper.java
@@ -1,28 +1,28 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/dataoke/DaTaoKeDetailMapper.java
@@ -1,106 +1,106 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/ConfigTaoLiJinMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinDetailMapper.java
@@ -1,91 +1,91 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinGiveRecordMapper.java
@@ -1,17 +1,17 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinRecordMapper.java
@@ -1,54 +1,54 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/tlj/UserTaoLiJinReportMapper.java
@@ -1,26 +1,26 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/DeviceLotteryRecordMapper.java
@@ -1,19 +1,19 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/ForbiddenUserIdentifyCodeMapper.java
@@ -1,23 +1,23 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/MaskKeyMapper.java
@@ -1,16 +1,16 @@
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);
    }
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/ShamUserMapper.java
@@ -1,61 +1,61 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/SpreadImgMapper.java
@@ -1,24 +1,24 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserAccountBindingHistoryMapper.java
@@ -1,19 +1,19 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserActiveLogMapper.java
@@ -1,22 +1,22 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserComplaintMapper.java
@@ -1,8 +1,8 @@
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>{
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserCustomSettingsMapper.java
@@ -1,44 +1,44 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserExtraTaoBaoInfoMapper.java
@@ -1,57 +1,57 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserGoodsStorageMapper.java
@@ -1,82 +1,82 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInfoDeleteRecordMapper.java
@@ -1,8 +1,8 @@
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> {
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInfoExtraMapper.java
@@ -66,4 +66,12 @@
     * @param days
     */
    void updateAutoExtract(@Param("days")Integer days);
    /**
     * 根据邀请码查询
     * @param inviteCode
     * @return
     */
    UserInfoExtra selectByInviteCode(String inviteCode);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInfoModifyRecordMapper.java
@@ -1,29 +1,29 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserInviteRecordMapper.java
@@ -1,26 +1,26 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserLotteryRecordMapper.java
@@ -1,18 +1,18 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserRankMapper.java
@@ -1,12 +1,12 @@
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();
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserRankRecordMapper.java
@@ -1,9 +1,9 @@
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> {
}
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/vip/UserVIPInfoMapper.java
New file
@@ -0,0 +1,27 @@
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);
}
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/UserInfo.java
@@ -148,6 +148,20 @@
    @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;
    }
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/UserInfoExtra.java
@@ -9,11 +9,15 @@
/**
 * 用户附加信息
 *
 * @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;
@@ -22,7 +26,7 @@
    @Expose
    @Column(name = "uie_uid")
    private UserInfo userInfo;
    // 等级id
    @Expose
    @Column(name = "uie_rank_id")
@@ -31,16 +35,16 @@
    // 等级来源:返利、分享、邀请
    @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;
@@ -56,15 +60,15 @@
    // 是否同步导航栏
    @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;
@@ -72,23 +76,27 @@
    // 金币数量
    @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;
@@ -96,7 +104,6 @@
    // 更新时间
    @Column(name = "uie_update_time")
    private Date updateTime;
    public Long getId() {
        return id;
@@ -225,7 +232,6 @@
    public void setGoldCoin(Integer goldCoin) {
        this.goldCoin = goldCoin;
    }
    public Boolean getAutoExtract() {
        return autoExtract;
@@ -258,5 +264,13 @@
    public void setActiveTime(Date activeTime) {
        this.activeTime = activeTime;
    }
    public Integer getInviteCodeState() {
        return inviteCodeState;
    }
    public void setInviteCodeState(Integer inviteCodeState) {
        this.inviteCodeState = inviteCodeState;
    }
}
fanli/src/main/java/com/yeshi/fanli/entity/bus/user/vip/UserVIPInfo.java
New file
@@ -0,0 +1,90 @@
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;
    }
}
fanli/src/main/java/com/yeshi/fanli/entity/jd/JDGoods.java
@@ -16,15 +16,15 @@
 * @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天引单数量
@@ -42,9 +42,9 @@
    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;
    }
@@ -69,12 +69,12 @@
        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() {
fanli/src/main/java/com/yeshi/fanli/exception/tlj/UserTaoLiJinOriginException.java
@@ -1,32 +1,32 @@
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;
    }
}
fanli/src/main/java/com/yeshi/fanli/exception/tlj/UserTaoLiJinRecordException.java
@@ -1,32 +1,32 @@
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;
    }
}
fanli/src/main/java/com/yeshi/fanli/exception/user/vip/UserVIPInfoException.java
New file
@@ -0,0 +1,23 @@
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();
    }
}
fanli/src/main/java/com/yeshi/fanli/mapping/AccountMessageMapper.xml
@@ -1,100 +1,100 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/AdminUserMapper.xml
@@ -1,78 +1,78 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/AlipayAccountValidNormalHistoryMapper.xml
@@ -1,91 +1,91 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/AppVersionInfoMapper.xml
@@ -1,123 +1,123 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/BindingAccountMapper.xml
@@ -1,95 +1,95 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/BusinessSystemMapper.xml
@@ -1,90 +1,90 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/ConfigMapper.xml
@@ -1,122 +1,122 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/CustomerContentMapper.xml
@@ -1,57 +1,57 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/CustomerNameMapper.xml
@@ -1,48 +1,48 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/ExtractRecordMapper.xml
@@ -1,82 +1,82 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/ExtractWeiXinRecordMapper.xml
@@ -1,112 +1,112 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/GoodsClassMapper.xml
@@ -1,153 +1,153 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/GoodsSecondClassMapper.xml
@@ -1,73 +1,73 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/HistorySearchMapper.xml
@@ -1,63 +1,63 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/HongBaoManageMapper.xml
@@ -1,89 +1,89 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/PayInfoMapper.xml
@@ -1,90 +1,90 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/RecommendBannerV2Mapper.xml
@@ -1,23 +1,23 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/SMSHistoryMapper.xml
@@ -1,62 +1,62 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/ScanHistoryMapper.xml
@@ -1,10 +1,10 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/StrategyPictureMapper.xml
@@ -1,78 +1,78 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/SuperGoodsClassMapper.xml
@@ -1,76 +1,76 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/SuperRecommendBannerV2Mapper.xml
@@ -1,51 +1,51 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/SystemClientParamsMapper.xml
@@ -1,118 +1,118 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/SystemConfigMapper.xml
@@ -1,57 +1,57 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/TaoBaoClassMapper.xml
@@ -1,70 +1,70 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/TaoBaoClassRelationMapper.xml
@@ -1,123 +1,123 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/UserConnectHistoryMapper.xml
@@ -1,69 +1,69 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/UserRankingsMapper.xml
@@ -1,286 +1,286 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/activity/ActivityRuleUserMapper.xml
@@ -1,100 +1,100 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/activity/ActivityUserMapper.xml
@@ -1,81 +1,81 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityImgMapper.xml
@@ -1,96 +1,96 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityInviteInfoMapper.xml
@@ -1,80 +1,80 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityMapper.xml
@@ -1,218 +1,218 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/activity/RecommendActivityTaoBaoGoodsMapper.xml
@@ -1,136 +1,136 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/brand/BrandClassMapper.xml
@@ -1,110 +1,110 @@
<?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>
fanli/src/main/java/com/yeshi/fanli/mapping/brand/BrandClassShopMapper.xml
@@ -1,189 +1,189 @@
<?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>
Diff truncated after the above file
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