tremble vor 4 Jahren
Ursprung
Commit
b0c5853d1f
100 geänderte Dateien mit 2747 neuen und 0 gelöschten Zeilen
  1. 5 0
      backstage-yongnianting/META-INF/MANIFEST.MF
  2. 5 0
      backstage-yongnianting/META-INF/maven/com.platform/platform-framework/pom.properties
  3. 97 0
      backstage-yongnianting/META-INF/maven/com.platform/platform-framework/pom.xml
  4. 7 0
      backstage-yongnianting/WEB-INF/classes/caffeine.properties
  5. 20 0
      backstage-yongnianting/WEB-INF/classes/cert/证书使用说明.txt
  6. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/SysDeptVo.class
  7. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/aop/DataFilterAspect.class
  8. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/aop/RedisCacheAspect.class
  9. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/aop/SysLogAspect.class
  10. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/AdController.class
  11. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/AdPositionController.class
  12. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/AddressController.class
  13. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/AppCensusController.class
  14. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/AttributeCategoryController.class
  15. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/AttributeController.class
  16. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/BrandController.class
  17. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/CartController.class
  18. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/CategoryController.class
  19. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/ChannelController.class
  20. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/CollectController.class
  21. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/CommentController.class
  22. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/CommentPictureController.class
  23. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/CouponController.class
  24. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/CouponGoodsController.class
  25. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/FeedbackController.class
  26. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/FootprintController.class
  27. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsAttributeController.class
  28. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsController$1.class
  29. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsController.class
  30. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsGalleryController.class
  31. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsIssueController.class
  32. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsSpecificationController.class
  33. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/HelpIssueController.class
  34. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/HelpTypeController.class
  35. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/KeywordsController.class
  36. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/OrderController.class
  37. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/OrderGoodsController.class
  38. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/ProductController.class
  39. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/RelatedGoodsController.class
  40. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SearchHistoryController.class
  41. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/ShippingController.class
  42. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SpecificationController.class
  43. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysConfigController.class
  44. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysDeptController.class
  45. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysLogController.class
  46. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysMacroController.class
  47. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysOssController.class
  48. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysPageController.class
  49. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysRegionController.class
  50. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysSmsLogController.class
  51. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxController.class
  52. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxOrderController.class
  53. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxPositionController.class
  54. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxUserController.class
  55. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmLiveRoomController.class
  56. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmSlideShowController.class
  57. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TopicCategoryController.class
  58. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/TopicController.class
  59. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/UserController.class
  60. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/UserCouponController.class
  61. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/controller/UserLevelController.class
  62. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdDao.class
  63. 118 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdDao.xml
  64. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdPositionDao.class
  65. 93 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdPositionDao.xml
  66. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AddressDao.class
  67. 131 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AddressDao.xml
  68. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeCategoryDao.class
  69. 83 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeCategoryDao.xml
  70. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeDao.class
  71. 104 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeDao.xml
  72. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/BrandDao.class
  73. 234 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/BrandDao.xml
  74. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CartDao.class
  75. 136 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CartDao.xml
  76. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CategoryDao.class
  77. 188 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CategoryDao.xml
  78. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/ChannelDao.class
  79. 93 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/ChannelDao.xml
  80. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CollectDao.class
  81. 106 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CollectDao.xml
  82. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentDao.class
  83. 127 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentDao.xml
  84. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentPictureDao.class
  85. 90 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentPictureDao.xml
  86. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponDao.class
  87. 303 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponDao.xml
  88. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponGoodsDao.class
  89. 81 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponGoodsDao.xml
  90. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/FeedbackDao.class
  91. 113 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/FeedbackDao.xml
  92. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/FootprintDao.class
  93. 98 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/FootprintDao.xml
  94. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsAttributeDao.class
  95. 81 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsAttributeDao.xml
  96. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsCustomDao.class
  97. 55 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsCustomDao.xml
  98. BIN
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsDao.class
  99. 379 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsDao.xml
  100. 0 0
      backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsGalleryDao.class

+ 5 - 0
backstage-yongnianting/META-INF/MANIFEST.MF

@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Created-By: IntelliJ IDEA
+Built-By: 4dage
+Build-Jdk: 1.8.0_241
+

+ 5 - 0
backstage-yongnianting/META-INF/maven/com.platform/platform-framework/pom.properties

@@ -0,0 +1,5 @@
+#Generated by Apache Maven
+#Wed Oct 14 18:28:32 CST 2020
+version=1.0.0
+groupId=com.platform
+artifactId=platform-framework

+ 97 - 0
backstage-yongnianting/META-INF/maven/com.platform/platform-framework/pom.xml

@@ -0,0 +1,97 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <artifactId>platform</artifactId>
+        <groupId>com.platform</groupId>
+        <version>1.0.0</version>
+    </parent>
+
+    <artifactId>platform-framework</artifactId>
+    <packaging>war</packaging>
+    <name>platform-framework</name>
+    <description>
+        此项目为系统WEB合并,
+        合并项目可以根据需要自己配置。
+        最终打包的项目也根据此配置进行打包。
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.platform</groupId>
+            <artifactId>platform-common</artifactId>
+            <version>1.0.0</version>
+        </dependency>
+   <!--     <dependency>
+            <groupId>com.platform</groupId>
+            <artifactId>platform-gen</artifactId>
+            <version>1.0.0</version>
+        </dependency>-->
+   <!--     <dependency>
+            <groupId>com.platform</groupId>
+            <artifactId>platform-schedule</artifactId>
+            <version>1.0.0</version>
+        </dependency>-->
+        <dependency>
+            <groupId>com.platform</groupId>
+            <artifactId>platform-api</artifactId>
+            <version>1.0.0</version>
+        </dependency>
+        <dependency>
+            <groupId>com.platform</groupId>
+            <artifactId>platform-admin</artifactId>
+            <version>1.0.0</version>
+            <type>war</type>
+        </dependency>
+        <dependency>
+            <groupId>com.platform</groupId>
+            <artifactId>platform-shop</artifactId>
+            <version>1.0.0</version>
+            <type>war</type>
+        </dependency>
+   <!--     <dependency>
+            <groupId>com.platform</groupId>
+            <artifactId>platform-mp</artifactId>
+            <version>1.0.0</version>
+        </dependency>-->
+    </dependencies>
+
+    <build>
+        <sourceDirectory>src/main/java</sourceDirectory>
+        <finalName>platform</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <version>2.18.1</version>
+                <configuration>
+                    <skipTests>true</skipTests>
+                </configuration>
+            </plugin>
+            <!-- 合并多个war -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.6</version>
+                <configuration>
+                    <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
+                    <failOnMissingWebXml>false</failOnMissingWebXml>
+
+                    <overlays>
+                        <overlay>
+                            <groupId>com.platform</groupId>
+                            <artifactId>platform-admin</artifactId>
+                        </overlay>
+                        <overlay>
+                            <groupId>com.platform</groupId>
+                            <artifactId>platform-shop</artifactId>
+                        </overlay>
+
+                        <!-- 待添加其他要合并的 web 模块 -->
+                    </overlays>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

+ 7 - 0
backstage-yongnianting/WEB-INF/classes/caffeine.properties

@@ -0,0 +1,7 @@
+#########################################
+# Caffeine configuration
+# [name] = size, xxxx[s|m|h|d]
+#########################################
+default=1000, 60m
+sysCache=1000, 60m
+shopCache= 1000, 60m

+ 20 - 0
backstage-yongnianting/WEB-INF/classes/cert/证书使用说明.txt

@@ -0,0 +1,20 @@
+欢迎使用微信支付!
+微信支付API共四份(证书pkcs12格式、证书pem格式、证书密钥pem格式、CA证书),为接口中强制要求时需携带的证书文件。
+证书属于敏感信息,请妥善保管不要泄露和被他人复制。
+不同开发语言下的证书格式不同,以下为说明指引:
+	证书pkcs12格式(apiclient_cert.p12)
+		包含了私钥信息的证书文件,为p12(pfx)格式,由微信支付签发给您用来标识和界定您的身份
+		部分安全性要求较高的API需要使用该证书来确认您的调用身份
+		windows上可以直接双击导入系统,导入过程中会提示输入证书密码,证书密码默认为您的商户ID(如:10010000)
+	证书pem格式(apiclient_cert.pem)
+		从apiclient_cert.p12中导出证书部分的文件,为pem格式,请妥善保管不要泄漏和被他人复制
+		部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
+		您也可以使用openssl命令来自己导出:openssl pkcs12 -clcerts -nokeys -in apiclient_cert.p12 -out apiclient_cert.pem
+	证书密钥pem格式(apiclient_key.pem)
+		从apiclient_cert.p12中导出密钥部分的文件,为pem格式
+		部分开发语言和环境,不能直接使用p12文件,而需要使用pem,所以为了方便您使用,已为您直接提供
+		您也可以使用openssl命令来自己导出:openssl pkcs12 -nocerts -in apiclient_cert.p12 -out apiclient_key.pem
+	CA证书(rootca.pem)
+		微信支付api服务器上也部署了证明微信支付身份的服务器证书,您在使用api进行调用时也需要验证所调用服务器及域名的真实性
+		该文件为签署微信支付证书的权威机构的根证书,可以用来验证微信支付服务器证书的真实性
+		某些环境和工具已经内置了若干权威机构的根证书,无需引用该证书也可以正常进行验证,这里提供给您在未内置所必须根证书的环境中载入使用

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/SysDeptVo.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/aop/DataFilterAspect.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/aop/RedisCacheAspect.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/aop/SysLogAspect.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/AdController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/AdPositionController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/AddressController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/AppCensusController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/AttributeCategoryController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/AttributeController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/BrandController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/CartController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/CategoryController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/ChannelController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/CollectController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/CommentController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/CommentPictureController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/CouponController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/CouponGoodsController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/FeedbackController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/FootprintController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsAttributeController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsController$1.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsGalleryController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsIssueController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/GoodsSpecificationController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/HelpIssueController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/HelpTypeController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/KeywordsController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/OrderController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/OrderGoodsController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/ProductController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/RelatedGoodsController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SearchHistoryController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/ShippingController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SpecificationController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysConfigController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysDeptController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysLogController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysMacroController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysOssController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysPageController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysRegionController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/SysSmsLogController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxOrderController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxPositionController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmBoxUserController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmLiveRoomController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TmSlideShowController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TopicCategoryController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/TopicController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/UserController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/UserCouponController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/controller/UserLevelController.class


BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdDao.class


+ 118 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdDao.xml

@@ -0,0 +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.platform.dao.AdDao">
+
+    <resultMap type="com.platform.entity.AdEntity" id="adMap">
+        <result property="id" column="id"/>
+        <result property="adPositionId" column="ad_position_id"/>
+        <result property="mediaType" column="media_type"/>
+        <result property="name" column="name"/>
+        <result property="link" column="link"/>
+        <result property="imageUrl" column="image_url"/>
+        <result property="content" column="content"/>
+        <result property="endTime" column="end_time"/>
+        <result property="enabled" column="enabled"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.AdEntity">
+		select
+			id,
+			ad_position_id,
+			media_type,
+			name,
+			link,
+			image_url,
+			content,
+			end_time,
+			enabled
+		from nideshop_ad
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.AdEntity">
+        select
+        nideshop_ad.id,
+        nideshop_ad.ad_position_id,
+        nideshop_ad.media_type,
+        nideshop_ad.name,
+        nideshop_ad.link,
+        nideshop_ad.image_url,
+        nideshop_ad.content,
+        nideshop_ad.end_time,
+        nideshop_ad.enabled,
+        nideshop_ad_position.name ad_Position_Name
+        from nideshop_ad LEFT JOIN nideshop_ad_position on nideshop_ad.ad_position_id = nideshop_ad_position.id
+        where 1=1
+        <if test="name != null and name.trim() != ''">
+            AND nideshop_ad.name LIKE concat('%',#{name},'%')
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by nideshop_ad.id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*) from nideshop_ad
+		WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.AdEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_ad(
+			`ad_position_id`,
+			`media_type`,
+			`name`,
+			`link`,
+			`image_url`,
+			`content`,
+			`end_time`,
+			`enabled`)
+		values(
+			#{adPositionId},
+			#{mediaType},
+			#{name},
+			#{link},
+			#{imageUrl},
+			#{content},
+			#{endTime},
+			#{enabled})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.AdEntity">
+        update nideshop_ad
+        <set>
+            <if test="adPositionId != null">`ad_position_id` = #{adPositionId},</if>
+            <if test="mediaType != null">`media_type` = #{mediaType},</if>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="link != null">`link` = #{link},</if>
+            <if test="imageUrl != null">`image_url` = #{imageUrl},</if>
+            <if test="content != null">`content` = #{content},</if>
+            <if test="endTime != null">`end_time` = #{endTime},</if>
+            <if test="enabled != null">`enabled` = #{enabled}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_ad where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_ad where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdPositionDao.class


+ 93 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AdPositionDao.xml

@@ -0,0 +1,93 @@
+<?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.platform.dao.AdPositionDao">
+
+    <resultMap type="com.platform.entity.AdPositionEntity" id="adPositionMap">
+        <result property="id" column="id"/>
+        <result property="name" column="name"/>
+        <result property="width" column="width"/>
+        <result property="height" column="height"/>
+        <result property="desc" column="desc"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.AdPositionEntity">
+		select
+			`id`,
+			`name`,
+			`width`,
+			`height`,
+			`desc`
+		from nideshop_ad_position
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.AdPositionEntity">
+        select
+        `id`,
+        `name`,
+        `width`,
+        `height`,
+        `desc`
+        from nideshop_ad_position
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*) from nideshop_ad_position
+		WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.AdPositionEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_ad_position(
+			`name`,
+			`width`,
+			`height`,
+			`desc`)
+		values(
+			#{name},
+			#{width},
+			#{height},
+			#{desc})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.AdPositionEntity">
+        update nideshop_ad_position
+        <set>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="width != null">`width` = #{width},</if>
+            <if test="height != null">`height` = #{height},</if>
+            <if test="desc != null">`desc` = #{desc}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_ad_position where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_ad_position where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AddressDao.class


+ 131 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AddressDao.xml

@@ -0,0 +1,131 @@
+<?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.platform.dao.AddressDao">
+
+    <resultMap type="com.platform.entity.AddressEntity" id="addressMap">
+        <result property="id" column="id"/>
+        <result property="userId" column="user_id"/>
+        <result property="userName" column="user_name"/>
+        <result property="telNumber" column="tel_number"/>
+        <result property="postalCode" column="postal_Code"/>
+        <result property="nationalCode" column="national_Code"/>
+        <result property="provinceName" column="province_Name"/>
+        <result property="cityName" column="city_Name"/>
+        <result property="countyName" column="county_Name"/>
+        <result property="detailInfo" column="detail_Info"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.AddressEntity">
+		select
+        nideshop_address.id,
+		nideshop_address.user_id,
+		nideshop_address.user_name,
+		nideshop_address.tel_number,
+		nideshop_address.postal_Code,
+		nideshop_address.national_Code,
+		nideshop_address.province_Name,
+		nideshop_address.city_Name,
+		nideshop_address.county_Name,
+		nideshop_address.detail_Info,
+        nideshop_user.username shop_user_name
+        from nideshop_address LEFT JOIN nideshop_user ON nideshop_address.user_id = nideshop_user.id
+		where nideshop_address.id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.AddressEntity">
+        select
+        nideshop_address.id,
+        nideshop_address.user_id,
+        nideshop_address.user_name,
+        nideshop_address.tel_number,
+        nideshop_address.postal_Code,
+        nideshop_address.national_Code,
+        nideshop_address.province_Name,
+        nideshop_address.city_Name,
+        nideshop_address.county_Name,
+        nideshop_address.detail_Info,
+        nideshop_user.username shop_user_name
+        from nideshop_address LEFT JOIN nideshop_user ON nideshop_address.user_id = nideshop_user.id
+        WHERE 1=1
+        <if test="userName != null and userName != ''">
+            AND nideshop_address.user_name LIKE concat('%', #{userName},'%')
+        </if>
+        <if test="telNumber != null and telNumber != ''">
+            AND nideshop_address.tel_number LIKE concat('%', #{telNumber},'%')
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+        select count(*) from nideshop_address
+        WHERE 1=1
+        <if test="userName != null and userName != ''">
+            AND nideshop_address.user_name LIKE concat('%', #{userName},'%')
+        </if>
+        <if test="telNumber != null and telNumber != ''">
+            AND nideshop_address.tel_number LIKE concat('%', #{telNumber},'%')
+        </if>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.AddressEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_address(
+			`user_id`,
+			`user_name`,
+			`tel_number`,
+			`postal_Code`,
+			`national_Code`,
+			`province_Name`,
+			`city_Name`,
+			`county_Name`,
+			`detail_Info`)
+		values(
+			#{userId},
+			#{userName},
+			#{telNumber},
+			#{postalCode},
+			#{nationalCode},
+			#{provinceName},
+			#{cityName},
+			#{countyName},
+			#{detailInfo})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.AddressEntity">
+        update nideshop_address
+        <set>
+            <if test="userId != null">`user_id` = #{userId}, </if>
+            <if test="userName != null">`user_name` = #{userName}, </if>
+            <if test="telNumber != null">`tel_number` = #{telNumber}, </if>
+            <if test="postalCode != null">`postal_Code` = #{postalCode}, </if>
+            <if test="nationalCode != null">`national_Code` = #{nationalCode}, </if>
+            <if test="provinceName != null">`province_Name` = #{provinceName}, </if>
+            <if test="cityName != null">`city_Name` = #{cityName}, </if>
+            <if test="countyName != null">`county_Name` = #{countyName}, </if>
+            <if test="detailInfo != null">`detail_Info` = #{detailInfo}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_address where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_address where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeCategoryDao.class


+ 83 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeCategoryDao.xml

@@ -0,0 +1,83 @@
+<?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.platform.dao.AttributeCategoryDao">
+
+    <resultMap type="com.platform.entity.AttributeCategoryEntity" id="attributeCategoryMap">
+        <result property="id" column="id"/>
+        <result property="name" column="name"/>
+        <result property="enabled" column="enabled"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.AttributeCategoryEntity">
+		select
+			id,
+			name,
+			enabled
+		from nideshop_attribute_category
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.AttributeCategoryEntity">
+        select
+        id,
+        name,
+        enabled
+        from nideshop_attribute_category
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%', #{name},'%')
+        </if>
+        <if test="enabled != null and enabled.trim() != ''">
+            AND enabled = #{enabled}
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*) from nideshop_attribute_category
+		WHERE 1=1
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.AttributeCategoryEntity">
+		insert into nideshop_attribute_category(
+			`id`,
+			`name`,
+			`enabled`)
+		values(
+			#{id},
+			#{name},
+			#{enabled})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.AttributeCategoryEntity">
+        update nideshop_attribute_category
+        <set>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="enabled != null">`enabled` = #{enabled}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_attribute_category where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_attribute_category where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeDao.class


+ 104 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/AttributeDao.xml

@@ -0,0 +1,104 @@
+<?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.platform.dao.AttributeDao">
+
+    <resultMap type="com.platform.entity.AttributeEntity" id="attributeMap">
+        <result property="id" column="id"/>
+        <result property="attributeCategoryId" column="attribute_category_id"/>
+        <result property="name" column="name"/>
+        <result property="inputType" column="input_type"/>
+        <result property="value" column="value"/>
+        <result property="sortOrder" column="sort_order"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.AttributeEntity">
+		select
+			id,
+			attribute_category_id,
+			name,
+			input_type,
+			value,
+			sort_order
+		from nideshop_attribute
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.AttributeEntity">
+        select
+        a.id,
+        a.attribute_category_id,
+        a.name,
+        a.input_type,
+        a.value,
+        a.sort_order,
+        ac.name category_name
+        from nideshop_attribute a LEFT JOIN nideshop_attribute_category ac
+        ON a.attribute_category_id = ac.id
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND a.name LIKE concat('%', #{name},'%')
+        </if>
+        <if test="categoryName != null and categoryName.trim() != ''">
+            AND ac.name LIKE concat('%', #{categoryName},'%')
+        </if>
+        <if test="attributeCategoryId != null and attributeCategoryId.trim() != ''">
+            AND a.attribute_category_id = #{attributeCategoryId}
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by a.attribute_category_id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*) from nideshop_attribute
+		WHERE 1=1
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.AttributeEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_attribute(
+			`attribute_category_id`,
+			`name`,
+			`input_type`,
+			`value`,
+			`sort_order`)
+		values(
+			#{attributeCategoryId},
+			#{name},
+			#{inputType},
+			#{value},
+			#{sortOrder})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.AttributeEntity">
+        update nideshop_attribute
+        <set>
+            <if test="attributeCategoryId != null">`attribute_category_id` = #{attributeCategoryId},</if>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="inputType != null">`input_type` = #{inputType},</if>
+            <if test="value != null">`value` = #{value},</if>
+            <if test="sortOrder != null">`sort_order` = #{sortOrder}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_attribute where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_attribute where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/BrandDao.class


+ 234 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/BrandDao.xml

@@ -0,0 +1,234 @@
+<?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.platform.dao.BrandDao">
+
+    <resultMap type="com.platform.entity.BrandEntity" id="brandMap">
+        <result property="id" column="id"/>
+        <result property="name" column="name"/>
+        <result property="listPicUrl" column="list_pic_url"/>
+        <result property="simpleDesc" column="simple_desc"/>
+        <result property="picUrl" column="pic_url"/>
+        <result property="sortOrder" column="sort_order"/>
+        <result property="isShow" column="is_show"/>
+        <result property="floorPrice" column="floor_price"/>
+        <result property="appListPicUrl" column="app_list_pic_url"/>
+        <result property="isNew" column="is_new"/>
+        <result property="newPicUrl" column="new_pic_url"/>
+        <result property="newSortOrder" column="new_sort_order"/>
+        <result property="type" column="type"/>
+        <result property="sceneUrl" column="scene_url"/>
+        <result property="sceneNum" column="scene_num"/>
+        <result property="shareWxQrCode" column="share_wx_qr_code"/>
+        <result property="sceneName" column="scene_name"/>
+        <result property="address" column="address"/>
+        <result property="picList" column="pic_list"/>
+        <result property="longitude" column="longitude"/>
+        <result property="latitude" column="latitude"/>
+        <result property="introduceVideo" column="introduce_video"/>
+        <result property="introduceVideoCover" column="introduce_video_cover"/>
+        <result property="adminId" column="admin_id"/>
+        <result property="adminName" column="admin_name"/>
+        <result property="createUserId" column="create_user_id"/>
+        <result property="createUserDeptId" column="create_user_dept_id"/>
+        <result property="updateUserId" column="update_user_id"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.BrandEntity">
+		select *  from nideshop_brand
+		where id = #{id}
+	</select>
+
+    <select id="findByBrandName" resultType="com.platform.entity.BrandEntity">
+        select * from nideshop_brand
+        where name = #{brandName}
+    </select>
+
+    <select id="findByBrandAdminId" resultType="com.platform.entity.BrandEntity">
+        select * from nideshop_brand
+        where admin_id = #{adminId}
+    </select>
+
+    <select id="queryIdByScene" resultType="java.lang.Integer">
+        select
+        `id`
+        from nideshop_brand
+        where scene_num = #{sceneNum}
+    </select>
+
+    <select id="queryByScene" resultType="com.platform.entity.BrandEntity">
+        select
+        *
+        from nideshop_brand
+        where scene_num = #{sceneNum}
+    </select>
+
+    <select id="getBrandListWithPage" resultType="com.platform.entity.BrandEntity">
+        select
+         *
+        from nideshop_brand
+
+         ${ew.customSqlSegment}
+    </select>
+
+    <select id="queryList" resultType="com.platform.entity.BrandEntity">
+        select * from nideshop_brand
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+        <if test="type != null and type.trim() != ''">
+            AND type LIKE concat('%',#{type},'%')
+        </if>
+        <if test="idList != null and idList.size() > 0">
+            AND id in
+            <foreach item="id" collection="idList" open="(" separator="," close=")">
+                #{id}
+            </foreach>
+        </if>
+        <if test="deptIdList != null and deptIdList.size() > 0">
+            AND create_user_dept_id in
+            <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
+                #{id}
+            </foreach>
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by sort_order asc,id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+        select count(*) from nideshop_brand
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+        <if test="idList != null and idList.size() > 0">
+            AND id in
+            <foreach item="id" collection="idList" open="(" separator="," close=")">
+                #{id}
+            </foreach>
+        </if>
+        <if test="deptIdList != null and deptIdList.size() > 0">
+            AND create_user_dept_id in
+            <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
+                #{id}
+            </foreach>
+        </if>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.BrandEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_brand(
+			`name`,
+			`list_pic_url`,
+			`simple_desc`,
+			`pic_url`,
+			`sort_order`,
+			`is_show`,
+			`floor_price`,
+			`app_list_pic_url`,
+			`is_new`,
+			`new_pic_url`,
+			`new_sort_order`,
+			`type`,
+			`scene_url`,
+			`scene_num`,
+			`share_wx_qr_code`,
+			`scene_name`,
+			`address`,
+			`pic_list`,
+			`longitude`,
+			`latitude`,
+			`introduce_video`,
+			`introduce_video_cover`,
+			`admin_id`,
+			`admin_name`,
+			`create_user_dept_id`,
+			`create_user_id`,
+			`update_user_id`
+			)
+		values(
+			#{name},
+			#{listPicUrl},
+			#{simpleDesc},
+			#{picUrl},
+			#{sortOrder},
+			#{isShow},
+			#{floorPrice},
+			#{appListPicUrl},
+			#{isNew},
+			#{newPicUrl},
+			#{newSortOrder},
+			#{type},
+			#{sceneUrl},
+			#{sceneNum},
+			#{shareWxQrCode},
+			#{sceneName},
+			#{address},
+			#{picList},
+			#{longitude},
+			#{latitude},
+			#{introduceVideo},
+			#{introduceVideoCover},
+			#{adminId},
+			#{adminName},
+			#{createUserDeptId},
+			#{createUserId},
+			#{updateUserId}
+			)
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.BrandEntity">
+        update nideshop_brand
+        <set>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="listPicUrl != null">`list_pic_url` = #{listPicUrl},</if>
+            <if test="simpleDesc != null">`simple_desc` = #{simpleDesc},</if>
+            <if test="picUrl != null">`pic_url` = #{picUrl},</if>
+            <if test="sortOrder != null">`sort_order` = #{sortOrder},</if>
+            <if test="isShow != null">`is_show` = #{isShow},</if>
+            <if test="floorPrice != null">`floor_price` = #{floorPrice},</if>
+            <if test="appListPicUrl != null">`app_list_pic_url` = #{appListPicUrl},</if>
+            <if test="isNew != null">`is_new` = #{isNew},</if>
+            <if test="newPicUrl != null">`new_pic_url` = #{newPicUrl},</if>
+            <if test="newSortOrder != null">`new_sort_order` = #{newSortOrder},</if>
+            <if test="type != null">`type` = #{type},</if>
+            <if test="sceneUrl != null">`scene_url` = #{sceneUrl},</if>
+            <if test="sceneNum != null">`scene_num` = #{sceneNum},</if>
+            <if test="shareWxQrCode != null">`share_wx_qr_code` = #{shareWxQrCode},</if>
+            <if test="sceneName != null">`scene_name` = #{sceneName},</if>
+            <if test="address != null">`address` = #{address},</if>
+            <if test="picList != null">`pic_list` = #{picList},</if>
+            <if test="longitude != null">`longitude` = #{longitude},</if>
+            <if test="latitude != null">`latitude` = #{latitude},</if>
+            <if test="introduceVideo != null">`introduce_video` = #{introduceVideo},</if>
+            <if test="introduceVideoCover != null">`introduce_video_cover` = #{introduceVideoCover},</if>
+            <if test="adminId != null">`admin_id` = #{adminId},</if>
+            <if test="adminName != null">`admin_name` = #{adminName},</if>
+            <if test="createUserDeptId != null">`create_user_dept_id` = #{createUserDeptId},</if>
+            <if test="createUserId != null">`create_user_id` = #{createUserId},</if>
+            <if test="updateUserId != null">`update_user_id` = #{updateUserId}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_brand where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_brand where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CartDao.class


+ 136 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CartDao.xml

@@ -0,0 +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.platform.dao.CartDao">
+
+    <!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.platform.entity.CartEntity" id="cartMap">
+        <result property="id" column="id"/>
+        <result property="userName" column="user_name"/>
+        <result property="nickName" column="nick_name"/>
+        <result property="userId" column="user_id"/>
+        <result property="sessionId" column="session_id"/>
+        <result property="goodsId" column="goods_id"/>
+        <result property="goodsSn" column="goods_sn"/>
+        <result property="productId" column="product_id"/>
+        <result property="goodsName" column="goods_name"/>
+        <result property="marketPrice" column="market_price"/>
+        <result property="retailPrice" column="retail_price"/>
+        <result property="number" column="number"/>
+        <result property="goodsSpecifitionNameValue" column="goods_specifition_name_value"/>
+        <result property="goodsSpecifitionIds" column="goods_specifition_ids"/>
+        <result property="checked" column="checked"/>
+        <result property="listPicUrl" column="list_pic_url"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.CartEntity">
+		select * from nideshop_cart where id = #{value}
+	</select>
+
+    <select id="queryList" resultMap="cartMap">
+        select a.* ,b.username as user_name, b.nickname as nick_name
+        from nideshop_cart a
+        left join nideshop_user b on a.user_id = b.id
+        where 1 = 1
+        <if test="name != null and name.trim() != ''">
+            and (
+            b.username LIKE concat('%',#{name},'%') or
+            b.nickname LIKE concat('%',#{name},'%') or
+            a.goods_name LIKE concat('%',#{name},'%')
+            )
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*) from nideshop_cart a
+        left join nideshop_user b on a.user_id = b.id
+        where 1 = 1
+        <if test="name != null and name.trim() != ''">
+        and (
+        b.username LIKE concat('%',#{name},'%') or
+        b.nickname LIKE concat('%',#{name},'%') or
+        a.goods_name LIKE concat('%',#{name},'%')
+        )
+        </if>
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.CartEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_cart
+		(
+			`user_id`, 
+			`session_id`, 
+			`goods_id`, 
+			`goods_sn`, 
+			`product_id`, 
+			`goods_name`, 
+			`market_price`, 
+			`retail_price`, 
+			`number`, 
+			`goods_specifition_name_value`, 
+			`goods_specifition_ids`, 
+			`checked`, 
+			`list_pic_url`
+		)
+		values
+		(
+			#{userId}, 
+			#{sessionId}, 
+			#{goodsId}, 
+			#{goodsSn}, 
+			#{productId}, 
+			#{goodsName}, 
+			#{marketPrice}, 
+			#{retailPrice}, 
+			#{number}, 
+			#{goodsSpecifitionNameValue}, 
+			#{goodsSpecifitionIds}, 
+			#{checked}, 
+			#{listPicUrl}
+		)
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.CartEntity">
+        update nideshop_cart
+        <set>
+            <if test="userId != null">`user_id` = #{userId},</if>
+            <if test="sessionId != null">`session_id` = #{sessionId},</if>
+            <if test="goodsId != null">`goods_id` = #{goodsId},</if>
+            <if test="goodsSn != null">`goods_sn` = #{goodsSn},</if>
+            <if test="productId != null">`product_id` = #{productId},</if>
+            <if test="goodsName != null">`goods_name` = #{goodsName},</if>
+            <if test="marketPrice != null">`market_price` = #{marketPrice},</if>
+            <if test="retailPrice != null">`retail_price` = #{retailPrice},</if>
+            <if test="number != null">`number` = #{number},</if>
+            <if test="goodsSpecifitionNameValue != null">`goods_specifition_name_value` =
+                #{goodsSpecifitionNameValue},
+            </if>
+            <if test="goodsSpecifitionIds != null">`goods_specifition_ids` = #{goodsSpecifitionIds},</if>
+            <if test="checked != null">`checked` = #{checked},</if>
+            <if test="listPicUrl != null">`list_pic_url` = #{listPicUrl}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_cart where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_cart where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CategoryDao.class


+ 188 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CategoryDao.xml

@@ -0,0 +1,188 @@
+<?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.platform.dao.CategoryDao">
+
+    <resultMap type="com.platform.entity.CategoryEntity" id="categoryMap">
+        <result property="id" column="id"/>
+        <result property="name" column="name"/>
+        <result property="keywords" column="keywords"/>
+        <result property="frontDesc" column="front_desc"/>
+        <result property="parentId" column="parent_id"/>
+        <result property="sortOrder" column="sort_order"/>
+        <result property="showIndex" column="show_index"/>
+        <result property="isShow" column="is_show"/>
+        <result property="bannerUrl" column="banner_url"/>
+        <result property="iconUrl" column="icon_url"/>
+        <result property="imgUrl" column="img_url"/>
+        <result property="wapBannerUrl" column="wap_banner_url"/>
+        <result property="level" column="level"/>
+        <result property="type" column="type"/>
+        <result property="frontName" column="front_name"/>
+    </resultMap>
+
+	<select id="queryObject" resultType="com.platform.entity.CategoryEntity">
+		select
+			`id`,
+			`name`,
+			`keywords`,
+			`front_desc`,
+			`parent_id`,
+			`sort_order`,
+			`show_index`,
+			`is_show`,
+			`banner_url`,
+			`icon_url`,
+			`img_url`,
+			`wap_banner_url`,
+			`level`,
+			`type`,
+			`front_name`,
+			`is_show` as `show`
+		from nideshop_category
+		where id = #{id}
+	</select>
+
+	<select id="queryByNameAndLevel" resultType="com.platform.entity.CategoryEntity">
+		select
+		`id`,
+		`name`,
+		`keywords`,
+		`front_desc`,
+		`parent_id`,
+		`sort_order`,
+		`show_index`,
+		`is_show`,
+		`banner_url`,
+		`icon_url`,
+		`img_url`,
+		`wap_banner_url`,
+		`level`,
+		`type`,
+		`front_name`,
+		`is_show` as `show`
+		from nideshop_category
+		where level = #{level} and name = #{name}
+	</select>
+
+	<select id="queryList" resultType="com.platform.entity.CategoryEntity">
+		select
+    		`id`,
+    		`name`,
+    		`keywords`,
+    		`front_desc`,
+    		`parent_id`,
+    		`sort_order`,
+    		`show_index`,
+    		`is_show`,
+    		`banner_url`,
+    		`icon_url`,
+    		`img_url`,
+    		`wap_banner_url`,
+    		`level`,
+    		`type`,
+    		`front_name`,
+			`is_show` as `show`
+		from nideshop_category
+		WHERE 1=1
+		<if test="name != null and name.trim() != ''">
+			AND `name` LIKE concat('%',#{name},'%')
+		</if>
+		<if test="parentId != null and parentId != ''">
+			AND `parent_id` = #{parentId}
+		</if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+			<otherwise>
+                order by id desc
+			</otherwise>
+        </choose>
+		<if test="offset != null and limit != null">
+			limit #{offset}, #{limit}
+		</if>
+	</select>
+	
+ 	<select id="queryTotal" resultType="int">
+		select count(*) from nideshop_category
+		WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+	</select>
+	 
+	<insert id="save" parameterType="com.platform.entity.CategoryEntity">
+		insert into nideshop_category(
+			`id`,
+			`name`,
+			`keywords`,
+			`front_desc`,
+			`parent_id`,
+			`sort_order`,
+			`show_index`,
+			`is_show`,
+			`banner_url`,
+			`icon_url`,
+			`img_url`,
+			`wap_banner_url`,
+			`level`,
+			`type`,
+			`front_name`)
+		values(
+			#{id},
+			#{name},
+			#{keywords},
+			#{frontDesc},
+			#{parentId},
+			#{sortOrder},
+			#{showIndex},
+			#{isShow},
+			#{bannerUrl},
+			#{iconUrl},
+			#{imgUrl},
+			#{wapBannerUrl},
+			#{level},
+			#{type},
+			#{frontName})
+	</insert>
+	 
+	<update id="update" parameterType="com.platform.entity.CategoryEntity">
+		update nideshop_category 
+		<set>
+			<if test="name != null">`name` = #{name}, </if>
+			<if test="keywords != null">`keywords` = #{keywords}, </if>
+			<if test="frontDesc != null">`front_desc` = #{frontDesc}, </if>
+			<if test="parentId != null">`parent_id` = #{parentId}, </if>
+			<if test="sortOrder != null">`sort_order` = #{sortOrder}, </if>
+			<if test="showIndex != null">`show_index` = #{showIndex}, </if>
+			<if test="isShow != null">`is_show` = #{isShow}, </if>
+			<if test="bannerUrl != null">`banner_url` = #{bannerUrl}, </if>
+			<if test="iconUrl != null">`icon_url` = #{iconUrl}, </if>
+			<if test="imgUrl != null">`img_url` = #{imgUrl}, </if>
+			<if test="wapBannerUrl != null">`wap_banner_url` = #{wapBannerUrl}, </if>
+			<if test="level != null">`level` = #{level}, </if>
+			<if test="type != null">`type` = #{type}, </if>
+			<if test="frontName != null">`front_name` = #{frontName}</if>
+		</set>
+		where id = #{id}
+	</update>
+	
+	<delete id="delete">
+		delete from nideshop_category where id = #{value}
+	</delete>
+	
+	<delete id="deleteBatch">
+		delete from nideshop_category where id in 
+		<foreach item="id" collection="array" open="(" separator="," close=")">
+			#{id}
+		</foreach>
+	</delete>
+
+	<delete id="deleteByParentBatch">
+		delete from nideshop_category where parent_id in
+		<foreach item="id" collection="array" open="(" separator="," close=")">
+			#{id}
+		</foreach>
+	</delete>
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/ChannelDao.class


+ 93 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/ChannelDao.xml

@@ -0,0 +1,93 @@
+<?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.platform.dao.ChannelDao">
+
+    <resultMap type="com.platform.entity.ChannelEntity" id="channelMap">
+        <result property="id" column="id"/>
+        <result property="name" column="name"/>
+        <result property="url" column="url"/>
+        <result property="iconUrl" column="icon_url"/>
+        <result property="sortOrder" column="sort_order"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.ChannelEntity">
+		select
+			`id`,
+			`name`,
+			`url`,
+			`icon_url`,
+			`sort_order`
+		from nideshop_channel
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.ChannelEntity">
+        select
+        `id`,
+        `name`,
+        `url`,
+        `icon_url`,
+        `sort_order`
+        from nideshop_channel
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+        select count(*) from nideshop_channel
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.ChannelEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_channel(
+			`name`,
+			`url`,
+			`icon_url`,
+			`sort_order`)
+		values(
+			#{name},
+			#{url},
+			#{iconUrl},
+			#{sortOrder})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.ChannelEntity">
+        update nideshop_channel
+        <set>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="url != null">`url` = #{url},</if>
+            <if test="iconUrl != null">`icon_url` = #{iconUrl},</if>
+            <if test="sortOrder != null">`sort_order` = #{sortOrder}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_channel where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_channel where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CollectDao.class


+ 106 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CollectDao.xml

@@ -0,0 +1,106 @@
+<?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.platform.dao.CollectDao">
+
+    <!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.platform.entity.CollectEntity" id="collectMap">
+        <result property="id" column="id"/>
+        <result property="userId" column="user_id"/>
+        <result property="userName" column="user_name"/>
+        <result property="nickName" column="nick_name"/>
+        <result property="valueId" column="value_id"/>
+        <result property="valueName" column="value_name"/>
+        <result property="addTime" column="add_time"/>
+        <result property="isAttention" column="is_attention"/>
+        <result property="typeId" column="type_id"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.CollectEntity">
+		select * from nideshop_collect where id = #{value}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.CollectEntity">
+        select a.* , b.username as user_name, b.nickname as nick_name,c.name as value_name
+        from nideshop_collect a
+        left join nideshop_user b on a.user_id = b.id
+        left join nideshop_goods c on a.value_id = c.id
+        where 1 = 1
+        <if test="name != null and name.trim() != ''">
+            and (
+            b.username LIKE concat('%',#{name},'%') or
+            b.nickname LIKE concat('%',#{name},'%') or
+            c.name LIKE concat('%',#{name},'%')
+            )
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by a.id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*)
+        from nideshop_collect a
+        left join nideshop_user b on a.user_id = b.id
+        left join nideshop_goods c on a.value_id = c.id
+        where 1 = 1
+        <if test="name != null and name.trim() != ''">
+            and (
+            b.username LIKE concat('%',#{name},'%') or
+            b.nickname LIKE concat('%',#{name},'%') or
+            c.name LIKE concat('%',#{name},'%')
+            )
+        </if>
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.CollectEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_collect
+		(
+			`user_id`, 
+			`value_id`, 
+			`add_time`, 
+			`is_attention`, 
+			`type_id`
+		)
+		values
+		(
+			#{userId}, 
+			#{valueId}, 
+			#{addTime}, 
+			#{isAttention}, 
+			#{typeId}
+		)
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.CollectEntity">
+        update nideshop_collect
+        <set>
+            <if test="userId != null">`user_id` = #{userId},</if>
+            <if test="valueId != null">`value_id` = #{valueId},</if>
+            <if test="addTime != null">`add_time` = #{addTime},</if>
+            <if test="isAttention != null">`is_attention` = #{isAttention},</if>
+            <if test="typeId != null">`type_id` = #{typeId}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_collect where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_collect where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentDao.class


+ 127 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentDao.xml

@@ -0,0 +1,127 @@
+<?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.platform.dao.CommentDao">
+
+    <resultMap type="com.platform.entity.CommentEntity" id="commentMap">
+        <result property="id" column="id"/>
+        <result property="typeId" column="type_id"/>
+        <result property="valueId" column="value_id"/>
+        <result property="content" column="content"/>
+        <result property="addTime" column="add_time"/>
+        <result property="status" column="status"/>
+        <result property="userId" column="user_id"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.CommentEntity">
+		select
+			`id`,
+			`type_id`,
+			`value_id`,
+			`content`,
+			`add_time`,
+			`status`,
+			`user_id`
+		from nideshop_comment
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.CommentEntity">
+        select
+        nideshop_comment.id,
+        nideshop_comment.type_id,
+        nideshop_comment.value_id,
+        nideshop_comment.content,
+        nideshop_comment.add_time,
+        nideshop_comment.status,
+        nideshop_comment.user_id,
+        nideshop_user.username user_name,
+        nideshop_goods.name value_name
+        from nideshop_comment LEFT JOIN nideshop_user ON nideshop_comment.user_id = nideshop_user.id
+        LEFT JOIN nideshop_goods ON nideshop_comment.value_id = nideshop_goods.id
+        WHERE 1=1
+        <if test="userName != null and userName.trim() != ''">
+            AND nideshop_user.username LIKE concat('%',#{userName},'%')
+        </if>
+        <if test="valueName != null and valueName.trim() != ''">
+            AND nideshop_goods.name LIKE concat('%',#{valueName},'%')
+        </if>
+        <if test="status != null">
+            AND nideshop_comment.status = #{status}
+        </if>
+        <if test="picUrl == 'true'">
+            AND EXISTS(SELECT 1 FROM nideshop_comment_picture WHERE nideshop_comment.id = nideshop_comment_picture.comment_id)
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by nideshop_comment.id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+        select count(*) from nideshop_comment LEFT JOIN nideshop_user ON nideshop_comment.user_id = nideshop_user.id
+        LEFT JOIN nideshop_goods ON nideshop_comment.value_id = nideshop_goods.id
+        WHERE 1=1
+        <if test="userName != null and userName.trim() != ''">
+            AND nideshop_user.username LIKE concat('%',#{userName},'%')
+        </if>
+        <if test="valueName != null and valueName.trim() != ''">
+            AND nideshop_goods.name LIKE concat('%',#{valueName},'%')
+        </if>
+        <if test="status != null">
+            AND nideshop_comment.status = #{status}
+        </if>
+        <if test="picUrl == 'true'">
+            AND EXISTS(SELECT 1 FROM nideshop_comment_picture WHERE nideshop_comment.id = nideshop_comment_picture.comment_id)
+        </if>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.CommentEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_comment(
+			`type_id`,
+			`value_id`,
+			`content`,
+			`add_time`,
+			`status`,
+			`user_id`)
+		values(
+			#{typeId},
+			#{valueId},
+			#{content},
+			#{addTime},
+			#{status},
+			#{userId})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.CommentEntity">
+        update nideshop_comment
+        <set>
+            <if test="typeId != null">`type_id` = #{typeId},</if>
+            <if test="valueId != null">`value_id` = #{valueId},</if>
+            <if test="content != null">`content` = #{content},</if>
+            <if test="addTime != null">`add_time` = #{addTime},</if>
+            <if test="status != null">`status` = #{status},</if>
+            <if test="userId != null">`user_id` = #{userId}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_comment where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_comment where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentPictureDao.class


+ 90 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CommentPictureDao.xml

@@ -0,0 +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.platform.dao.CommentPictureDao">
+
+    <resultMap type="com.platform.entity.CommentPictureEntity" id="commentPictureMap">
+        <result property="id" column="id"/>
+        <result property="commentId" column="comment_id"/>
+        <result property="picUrl" column="pic_url"/>
+        <result property="sortOrder" column="sort_order"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.CommentPictureEntity">
+		select
+			`id`,
+			`comment_id`,
+			`pic_url`,
+			`sort_order`
+		from nideshop_comment_picture
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.CommentPictureEntity">
+        select
+        `id`,
+        `comment_id`,
+        `pic_url`,
+        `sort_order`
+        from nideshop_comment_picture
+        WHERE 1=1
+        <if test="commentId != null and commentId.trim() != ''">
+            AND comment_id = #{commentId}
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+        select count(*) from nideshop_comment_picture
+        WHERE 1=1
+        <if test="commentId != null and commentId.trim() != ''">
+            AND comment_id = #{commentId}
+        </if>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.CommentPictureEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_comment_picture(
+			`comment_id`,
+			`pic_url`,
+			`sort_order`)
+		values(
+			#{commentId},
+			#{picUrl},
+			#{sortOrder})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.CommentPictureEntity">
+        update nideshop_comment_picture
+        <set>
+            <if test="commentId != null">`comment_id` = #{commentId},</if>
+            <if test="picUrl != null">`pic_url` = #{picUrl},</if>
+            <if test="sortOrder != null">`sort_order` = #{sortOrder}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_comment_picture where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_comment_picture where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+    <delete id="deleteByCommentId">
+        delete from nideshop_comment_picture where comment_id = #{commentId}
+    </delete>
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponDao.class


+ 303 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponDao.xml

@@ -0,0 +1,303 @@
+<?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.platform.dao.CouponDao">
+
+    <resultMap type="com.platform.entity.CouponEntity" id="couponMap">
+        <result property="id" column="id"/>
+        <result property="name" column="name"/>
+        <result property="typeMoney" column="type_money"/>
+        <result property="sendType" column="send_type"/>
+        <result property="minAmount" column="min_amount"/>
+        <result property="maxAmount" column="max_amount"/>
+        <result property="sendStartDate" column="send_start_date"/>
+        <result property="sendEndDate" column="send_end_date"/>
+        <result property="useDesc" column="use_desc"/>
+        <result property="useStartDate" column="use_start_date"/>
+        <result property="useEndDate" column="use_end_date"/>
+        <result property="minGoodsAmount" column="min_goods_amount"/>
+        <result property="minTransmitNum" column="min_transmit_num"/>
+        <result property="brandId" column="brand_id"/>
+        <result property="brandName" column="brand_name"/>
+        <result property="couponStatus" column="coupon_status"/>
+        <result property="enable" column="enable"/>
+        <result property="createTime" column="create_time"/>
+        <result property="updateTime" column="update_time"/>
+        <result property="number" column="number"/>
+        <result property="receiveNumber" column="receive_number"/>
+        <result property="usedNumber" column="used_number"/>
+        <result property="orderSn" column="order_sn"/>
+        <result property="couponSn" column="coupon_sn"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.CouponEntity">
+		select * from nideshop_coupon
+		where id = #{id} and enable = 1
+	</select>
+
+
+    <select id="queryTotal" resultType="java.lang.Integer">
+        select count(*) from nideshop_coupon
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+        <if test="brandName != null and brandName.trim() != ''">
+            AND brand_name LIKE concat('%',#{brandName},'%')
+        </if>
+        <if test="couponStatus != null  and couponStatus.trim() != ''">
+            AND coupon_status = #{couponStatus}
+        </if>
+
+        AND enable = 1
+    </select>
+
+
+    <select id="queryList" resultType="com.platform.entity.CouponEntity">
+        select * from nideshop_coupon
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+        <if test="brandName != null and brandName.trim() != ''">
+            AND brand_name LIKE concat('%',#{brandName},'%')
+        </if>
+        <if test="couponStatus != null  and couponStatus.trim() != ''">
+            AND coupon_status = #{couponStatus}
+        </if>
+        <if test="deptIdList != null and deptIdList.size() > 0">
+            AND create_user_dept_id in
+            <foreach item="id" collection="deptIdList" open="(" separator="," close=")">
+                #{id}
+            </foreach>
+        </if>
+
+        AND enable = 1
+
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+    </select>
+
+
+    <select id="queryUseDetailTotal" resultType="java.lang.Integer">
+        select count(*)
+        from  nideshop_user_coupon relation
+        inner join nideshop_coupon coupon on (relation.coupon_id = coupon.id  and relation.user_id is not null)
+        left join nideshop_user user on user.id = relation.user_id
+        left join nideshop_order sorder on relation.order_id = sorder.id
+        WHERE 1=1
+        <if test="orderId != null and orderId.trim() != ''">
+            AND sorder.order_sn LIKE concat(#{orderSn},'%')
+        </if>
+        <if test="userName != null and userName.trim() != ''">
+            AND user.username LIKE concat(#{userName},'%')
+        </if>
+        <if test="couponStatus != null and couponStatus.trim() != ''">
+            AND relation.coupon_status = #{couponStatus}
+        </if>
+        AND coupon.id = #{couponId}
+        AND enable = 1
+        order by relation.used_time desc
+
+    </select>
+
+    <select id="queryUseDetailList" resultType="com.platform.entity.CouponEntity">
+        select
+        coupon.*,
+        sorder.order_sn as order_sn,
+        relation.coupon_status as use_status ,
+        relation.used_time as use_time ,
+        user.username as user_name ,
+        user.id as user_id
+        from  nideshop_user_coupon relation
+        inner join nideshop_coupon coupon on (relation.coupon_id = coupon.id  and relation.user_id is not null)
+        left join nideshop_user user on user.id = relation.user_id
+        left join nideshop_order sorder on relation.order_id = sorder.id
+        WHERE 1=1
+        <if test="orderId != null and orderId.trim() != ''">
+            AND sorder.order_sn LIKE concat(#{orderSn},'%')
+        </if>
+        <if test="userName != null and userName.trim() != ''">
+            AND user.username LIKE concat(#{userName},'%')
+        </if>
+        <if test="couponStatus != null and couponStatus.trim() != ''">
+            AND relation.coupon_status = #{couponStatus}
+        </if>
+        AND coupon.id = #{couponId}
+        AND enable = 1
+        order by relation.used_time desc
+
+    </select>
+
+    <insert id="addCoupon" parameterType="com.platform.entity.CouponEntity">
+		insert into nideshop_coupon(
+			`id`,
+			`name`,
+			`type_money`,
+			`send_type`,
+			`min_amount`,
+			`max_amount`,
+			`send_start_date`,
+			`send_end_date`,
+			`use_start_date`,
+			`use_end_date`,
+			`use_desc`,
+			`min_goods_amount`,
+			`min_transmit_num`,
+			`coupon_status`,
+			`brand_id`,
+			`brand_name`,
+			`enable`,
+			`create_time`,
+			`update_time`,
+			`number`,
+			`receive_number`,
+			`coupon_sn`,
+			`used_number`,
+			`create_user_id`,
+			`update_user_id`,
+			`create_user_dept_id`
+			)
+		values(#{id},
+			#{name},
+			#{typeMoney},
+			#{sendType},
+			#{minAmount},
+			#{maxAmount},
+			#{sendStartDate},
+			#{sendEndDate},
+			#{useStartDate},
+			#{useEndDate},
+			#{useDesc},
+			#{minGoodsAmount},
+			#{minTransmitNum},
+			#{couponStatus},
+			#{brandId},
+			#{brandName},
+			#{enable},
+			#{createTime},
+			#{updateTime},
+			#{number},
+			#{receiveNumber},
+			#{couponSn},
+			#{usedNumber},
+			#{createUserId},
+			#{updateUserId},
+			#{createUserDeptId}
+			)
+	</insert>
+
+    <insert id="save" parameterType="com.platform.entity.CouponEntity">
+		insert into nideshop_coupon(
+			`id`,
+			`name`,
+			`type_money`,
+			`send_type`,
+			`min_amount`,
+			`max_amount`,
+			`send_start_date`,
+			`send_end_date`,
+			`use_start_date`,
+			`use_end_date`,
+			`use_desc`,
+			`min_goods_amount`,
+			`min_transmit_num`,
+			`coupon_status`,
+			`brand_id`,
+			`brand_name`,
+			`enable`,
+			`create_time`,
+			`update_time`,
+			`number`,
+			`receive_number`,
+			`coupon_sn`,
+			`used_number`,
+			`create_user_id`,
+			`update_user_id`,
+			`create_user_dept_id`
+			)
+		values(
+			#{id},
+			#{name},
+			#{typeMoney},
+			#{sendType},
+			#{minAmount},
+			#{maxAmount},
+			#{sendStartDate},
+			#{sendEndDate},
+			#{useStartDate},
+			#{useEndDate},
+			#{useDesc},
+			#{minGoodsAmount},
+			#{minTransmitNum},
+			#{couponStatus},
+			#{brandId},
+			#{brandName},
+			#{enable},
+			#{createTime},
+			#{updateTime},
+			#{number},
+			#{receiveNumber},
+			#{couponSn},
+			#{usedNumber},
+			#{createUserId},
+			#{updateUserId},
+			#{createUserDeptId}
+			)
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.CouponEntity">
+        update nideshop_coupon
+        <set>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="typeMoney != null">`type_money` = #{typeMoney},</if>
+            <if test="sendType != null">`send_type` = #{sendType},</if>
+            <if test="minAmount != null">`min_amount` = #{minAmount},</if>
+            <if test="maxAmount != null">`max_amount` = #{maxAmount},</if>
+            <if test="sendStartDate != null">`send_start_date` = #{sendStartDate},</if>
+            <if test="sendEndDate != null">`send_end_date` = #{sendEndDate},</if>
+            <if test="useStartDate != null">`use_start_date` = #{useStartDate},</if>
+            <if test="useEndDate != null">`use_end_date` = #{useEndDate},</if>
+            <if test="useDesc != null">`use_desc` = #{useDesc},</if>
+            <if test="minGoodsAmount != null">`min_goods_amount` = #{minGoodsAmount},</if>
+            <if test="minTransmitNum != null">`min_transmit_num` = #{minTransmitNum},</if>
+            <if test="couponStatus != null">`coupon_status` = #{couponStatus},</if>
+            <if test="brandId != null">`brand_id` = #{brandId},</if>
+            <if test="brandName != null">`brand_name` = #{brandName},</if>
+            <if test="enable != null">`enable` = #{enable},</if>
+            <if test="createTime != null">`create_time` = #{createTime},</if>
+            <if test="updateTime != null">`update_time` = #{updateTime},</if>
+            <if test="number != null">`number` = #{number},</if>
+            <if test="receiveNumber != null">`receive_number` = #{receiveNumber},</if>
+            <if test="usedNumber != null">`used_number` = #{usedNumber},</if>
+            <if test="couponSn != null">`coupon_sn` = #{couponSn},</if>
+            <if test="createUserId != null">`create_user_id` = #{createUserId},</if>
+            <if test="updateUserId != null">`update_user_id` = #{updateUserId},</if>
+            <if test="createUserDeptId != null">`create_user_dept_id` = #{createUserDeptId}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <update id="updateStatus">
+        update nideshop_coupon
+        set coupon_status = #{couponStatus} , `update_time` = now()
+        where id = #{id}
+    </update>
+
+    <update id="deleteCouponBatch">
+        update nideshop_coupon
+        set enable = 0 , `update_time` = now()
+        where id in
+        <foreach item="id" collection="idList" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponGoodsDao.class


+ 81 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/CouponGoodsDao.xml

@@ -0,0 +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.platform.dao.CouponGoodsDao">
+
+    <resultMap type="com.platform.entity.CouponGoodsEntity" id="couponGoodsMap">
+        <result property="id" column="id"/>
+        <result property="couponId" column="coupon_id"/>
+        <result property="goodsId" column="goods_id"/>
+    </resultMap>
+
+	<select id="queryObject" resultType="com.platform.entity.CouponGoodsEntity">
+		select
+			`id`,
+			`coupon_id`,
+			`goods_id`
+		from nideshop_coupon_goods
+		where id = #{id}
+	</select>
+
+	<select id="queryList" resultType="com.platform.entity.CouponGoodsEntity">
+		select
+    		`id`,
+    		`coupon_id`,
+    		`goods_id`
+		from nideshop_coupon_goods
+		WHERE 1=1
+		<if test="name != null and name.trim() != ''">
+			AND name LIKE concat('%',#{name},'%')
+		</if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+			<otherwise>
+                order by id desc
+			</otherwise>
+        </choose>
+		<if test="offset != null and limit != null">
+			limit #{offset}, #{limit}
+		</if>
+	</select>
+	
+ 	<select id="queryTotal" resultType="int">
+		select count(*) from nideshop_coupon_goods
+		WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+	</select>
+	 
+	<insert id="save" parameterType="com.platform.entity.CouponGoodsEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_coupon_goods(
+			`coupon_id`,
+			`goods_id`)
+		values(
+			#{couponId},
+			#{goodsId})
+	</insert>
+	 
+	<update id="update" parameterType="com.platform.entity.CouponGoodsEntity">
+		update nideshop_coupon_goods 
+		<set>
+			<if test="couponId != null">`coupon_id` = #{couponId}, </if>
+			<if test="goodsId != null">`goods_id` = #{goodsId}</if>
+		</set>
+		where id = #{id}
+	</update>
+	
+	<delete id="delete">
+		delete from nideshop_coupon_goods where id = #{value}
+	</delete>
+	
+	<delete id="deleteBatch">
+		delete from nideshop_coupon_goods where id in 
+		<foreach item="id" collection="array" open="(" separator="," close=")">
+			#{id}
+		</foreach>
+	</delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/FeedbackDao.class


+ 113 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/FeedbackDao.xml

@@ -0,0 +1,113 @@
+<?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.platform.dao.FeedbackDao">
+
+    <resultMap type="com.platform.entity.FeedbackEntity" id="feedbackMap">
+        <result property="msgId" column="msg_id"/>
+        <result property="userId" column="user_id"/>
+        <result property="userName" column="user_name"/>
+		<result property="nickName" column="nick_name"/>
+        <result property="mobile" column="mobile"/>
+        <result property="feedType" column="feed_Type"/>
+        <result property="content" column="content"/>
+        <result property="addTime" column="add_time"/>
+        <result property="status" column="status"/>
+    </resultMap>
+
+	<select id="queryObject" resultType="com.platform.entity.FeedbackEntity">
+		select
+			`msg_id`,
+			`user_id`,
+			`user_name`,
+			`mobile`,
+			`feed_Type`,
+			`content`,
+			`add_time`,
+			`status`
+		from nideshop_feedback
+		where msg_id = #{id}
+	</select>
+
+	<select id="queryList" resultType="com.platform.entity.FeedbackEntity">
+		select
+		a.`msg_id`,
+		a.`user_id`,
+		a.`user_name`,
+		a.`mobile`,
+		a.`feed_Type`,
+		a.`content`,
+		a.`add_time`,
+		a.`status`,
+		b.nickname as nick_name
+		from nideshop_feedback a LEFT JOIN nideshop_user b on a.user_id = b.id
+		WHERE 1=1
+		<if test="name != null and name.trim() != ''">
+			AND a.user_name LIKE concat('%',#{name},'%')
+		</if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+			<otherwise>
+                order by a.msg_id desc
+			</otherwise>
+        </choose>
+		<if test="offset != null and limit != null">
+			limit #{offset}, #{limit}
+		</if>
+	</select>
+	
+ 	<select id="queryTotal" resultType="int">
+		select count(*) from nideshop_feedback
+		WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND user_name LIKE concat('%',#{name},'%')
+        </if>
+	</select>
+	 
+	<insert id="save" parameterType="com.platform.entity.FeedbackEntity" useGeneratedKeys="true" keyProperty="msgId">
+		insert into nideshop_feedback(
+			`user_id`,
+			`user_name`,
+			`mobile`,
+			`feed_Type`,
+			`content`,
+			`add_time`,
+			`status` )
+		values(
+			#{userId},
+			#{userName},
+			#{mobile},
+			#{feedType},
+			#{content},
+			#{addTime},
+			#{status})
+	</insert>
+	 
+	<update id="update" parameterType="com.platform.entity.FeedbackEntity">
+		update nideshop_feedback 
+		<set>
+			<if test="userId != null">`user_id` = #{userId}, </if>
+			<if test="userName != null">`user_name` = #{userName}, </if>
+			<if test="mobile != null">`mobile` = #{mobile}, </if>
+			<if test="feedType != null">`feed_Type` = #{feedType}, </if>
+			<if test="content != null">`content` = #{content}, </if>
+			<if test="addTime != null">`add_time` = #{addTime}, </if>
+			<if test="status != null">`status` = #{status}, </if>
+		</set>
+		where msg_id = #{msgId}
+	</update>
+	
+	<delete id="delete">
+		delete from nideshop_feedback where msg_id = #{value}
+	</delete>
+	
+	<delete id="deleteBatch">
+		delete from nideshop_feedback where msg_id in 
+		<foreach item="msgId" collection="array" open="(" separator="," close=")">
+			#{msgId}
+		</foreach>
+	</delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/FootprintDao.class


+ 98 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/FootprintDao.xml

@@ -0,0 +1,98 @@
+<?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.platform.dao.FootprintDao">
+
+    <!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.platform.entity.FootprintEntity" id="footprintMap">
+        <result property="id" column="id"/>
+        <result property="userId" column="user_id"/>
+        <result property="userName" column="user_name"/>
+        <result property="nickName" column="nick_name"/>
+        <result property="goodsId" column="goods_id"/>
+        <result property="goodsName" column="goods_name"/>
+        <result property="addTime" column="add_time"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.FootprintEntity">
+		select * from nideshop_footprint where id = #{value}
+	</select>
+
+    <select id="queryList" resultMap="footprintMap">
+        select a.* ,b.username as user_name, b.nickname as nick_name,c.name as goods_name
+        from nideshop_footprint a
+        left join nideshop_user b on a.user_id = b.id
+        left join nideshop_goods c on a.goods_id = c.id
+        where 1 = 1
+        <if test="name != null and name.trim() != ''">
+            and (
+            b.username LIKE concat('%',#{name},'%') or
+            b.nickname LIKE concat('%',#{name},'%') or
+            c.name LIKE concat('%',#{name},'%')
+            )
+        </if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by a.id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*)
+        from nideshop_footprint a
+        left join nideshop_user b on a.user_id = b.id
+        left join nideshop_goods c on a.goods_id = c.id
+        where 1 = 1
+        <if test="name != null and name.trim() != ''">
+            and (
+            b.username LIKE concat('%',#{name},'%') or
+            b.nickname LIKE concat('%',#{name},'%') or
+            c.name LIKE concat('%',#{name},'%')
+            )
+        </if>
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.FootprintEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_footprint
+		(
+			`user_id`, 
+			`goods_id`, 
+			`add_time`
+		)
+		values
+		(
+			#{userId}, 
+			#{goodsId}, 
+			#{addTime}
+		)
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.FootprintEntity">
+        update nideshop_footprint
+        <set>
+            <if test="userId != null">`user_id` = #{userId},</if>
+            <if test="goodsId != null">`goods_id` = #{goodsId},</if>
+            <if test="addTime != null">`add_time` = #{addTime}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_footprint where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_footprint where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsAttributeDao.class


+ 81 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsAttributeDao.xml

@@ -0,0 +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.platform.dao.GoodsAttributeDao">
+
+    <!-- 可根据自己的需求,是否要使用 -->
+    <resultMap type="com.platform.entity.GoodsAttributeEntity" id="goodsAttributeMap">
+        <result property="id" column="id"/>
+        <result property="goodsId" column="goods_id"/>
+        <result property="attributeId" column="attribute_id"/>
+        <result property="value" column="value"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.GoodsAttributeEntity">
+		select * from nideshop_goods_attribute where id = #{value}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.GoodsAttributeEntity">
+        select * from nideshop_goods_attribute
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotal" resultType="int">
+		select count(*) from nideshop_goods_attribute 
+	</select>
+
+    <insert id="save" parameterType="com.platform.entity.GoodsAttributeEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_goods_attribute
+		(
+			`goods_id`, 
+			`attribute_id`, 
+			`value`
+		)
+		values
+		(
+			#{goodsId}, 
+			#{attributeId}, 
+			#{value}
+		)
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.GoodsAttributeEntity">
+        update nideshop_goods_attribute
+        <set>
+            <if test="goodsId != null">`goods_id` = #{goodsId},</if>
+            <if test="attributeId != null">`attribute_id` = #{attributeId},</if>
+            <if test="value != null">`value` = #{value}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <update id="updateByGoodsIdAttributeId" parameterType="com.platform.entity.GoodsAttributeEntity">
+        update nideshop_goods_attribute
+        <set>
+            <if test="value != null">`value` = #{value}</if>
+        </set>
+        where goods_id = #{goodsId} AND attribute_id = #{attributeId}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_goods_attribute where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_goods_attribute where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsCustomDao.class


+ 55 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsCustomDao.xml

@@ -0,0 +1,55 @@
+<?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.platform.dao.GoodsCustomDao">
+
+    <select id="getGoodsCategory" resultType="java.util.Map">
+        select
+         goods.category_id , category.name
+        from nideshop_goods goods
+        LEFT JOIN nideshop_category category
+        ON goods.category_id = category.id
+        ${ew.customSqlSegment}
+        group by goods.category_id
+    </select>
+
+
+    <select id="queryGoodsByBrandId" resultType="java.util.Map">
+        select
+        goods.id,
+        goods.category_id categoryId,
+        goods.name,
+        goods.goods_number goodsNumber,
+        goods.goods_desc goodsDesc,
+        goods.is_on_sale isOnSale,
+        goods.add_time addTime,
+        goods.update_time updateTime,
+        goods.primary_pic_url primaryPicUrl,
+        goods.list_pic_url listPicUrl,
+        goods.retail_price retailPrice,
+        goods.is_hot isHot,
+        goods.market_price marketPrice,
+        category.name categoryName,
+        attribute.name attributeCategoryName,
+        brand.id brandId,
+        brand.name brandName
+        from nideshop_goods goods
+        LEFT JOIN nideshop_category category
+        ON goods.category_id = category.id
+        LEFT JOIN nideshop_attribute_category attribute ON goods.attribute_category = attribute.id
+        LEFT JOIN nideshop_brand brand ON brand.id = goods.brand_id
+        WHERE 1=1
+        <if test="goodsName != null and goodsName.trim() != ''">
+            AND goods.name LIKE concat('%',#{goodsName},'%')
+        </if>
+        <if test="brandId != null">
+            AND goods.brand_id = #{brandId}
+        </if>
+        <if test="categoryId != null">
+            AND goods.category_id = #{categoryId}
+        </if>
+        AND goods.is_Delete = 0
+
+       order by goods.id desc
+        <!--${ew.customSqlSegment}-->
+    </select>
+</mapper>

BIN
backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsDao.class


+ 379 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsDao.xml

@@ -0,0 +1,379 @@
+<?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.platform.dao.GoodsDao">
+
+    <resultMap type="com.platform.entity.GoodsEntity" id="goodsMap">
+        <result property="id" column="id"/>
+        <result property="categoryId" column="category_id"/>
+        <result property="goodsSn" column="goods_sn"/>
+        <result property="name" column="name"/>
+        <result property="brandId" column="brand_id"/>
+        <result property="goodsNumber" column="goods_number"/>
+        <result property="keywords" column="keywords"/>
+        <result property="goodsBrief" column="goods_brief"/>
+        <result property="goodsDesc" column="goods_desc"/>
+        <result property="goodsSimpleDesc" column="goods_simple_desc"/>
+        <result property="realShopUrl" column="real_shop_url"/>
+        <result property="isOnSale" column="is_on_sale"/>
+        <result property="addTime" column="add_time"/>
+        <result property="updateTime" column="update_time"/>
+        <result property="sortOrder" column="sort_order"/>
+        <result property="isDelete" column="is_delete"/>
+        <result property="attributeCategory" column="attribute_category"/>
+        <result property="counterPrice" column="counter_price"/>
+        <result property="extraPrice" column="extra_price"/>
+        <result property="isNew" column="is_new"/>
+        <result property="goodsUnit" column="goods_unit"/>
+        <result property="primaryPicUrl" column="primary_pic_url"/>
+        <result property="listPicUrl" column="list_pic_url"/>
+        <result property="retailPrice" column="retail_price"/>
+        <result property="sellVolume" column="sell_volume"/>
+        <result property="primaryProductId" column="primary_product_id"/>
+        <result property="unitPrice" column="unit_price"/>
+        <result property="promotionDesc" column="promotion_desc"/>
+        <result property="promotionTag" column="promotion_tag"/>
+        <result property="appExclusivePrice" column="app_exclusive_price"/>
+        <result property="isAppExclusive" column="is_app_exclusive"/>
+        <result property="isLimited" column="is_limited"/>
+        <result property="isHot" column="is_hot"/>
+        <result property="marketPrice" column="market_price"/>
+        <result property="createUserId" column="create_user_id"/>
+        <result property="createUserDeptId" column="create_user_dept_id"/>
+        <result property="updateUserId" column="update_user_id"/>
+        <result property="guigeArr" column="guige_arr"/>
+        <result property="ggContent" column="gg_content"/>
+
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.GoodsEntity">
+		select * from nideshop_goods where id = #{value}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.GoodsEntity">
+        select
+        nideshop_goods.id,
+        nideshop_goods.category_id,
+        nideshop_goods.goods_sn,
+        nideshop_goods.name,
+        nideshop_goods.brand_id,
+        nideshop_goods.goods_number,
+        nideshop_goods.keywords,
+        nideshop_goods.goods_brief,
+        nideshop_goods.goods_desc,
+        nideshop_goods.goods_simple_desc,
+        nideshop_goods.real_shop_url,
+        nideshop_goods.is_on_sale,
+        nideshop_goods.add_time,
+        nideshop_goods.update_time,
+        nideshop_goods.sort_order,
+        nideshop_goods.is_delete,
+        nideshop_goods.attribute_category,
+        nideshop_goods.counter_price,
+        nideshop_goods.extra_price,
+        nideshop_goods.is_new,
+        nideshop_goods.goods_unit,
+        nideshop_goods.primary_pic_url,
+        nideshop_goods.list_pic_url,
+        nideshop_goods.retail_price,
+        nideshop_goods.sell_volume,
+        nideshop_goods.primary_product_id,
+        nideshop_goods.unit_price,
+        nideshop_goods.promotion_desc,
+        nideshop_goods.promotion_tag,
+        nideshop_goods.app_exclusive_price,
+        nideshop_goods.is_app_exclusive,
+        nideshop_goods.is_limited,
+        nideshop_goods.is_hot,
+        nideshop_goods.market_price,
+        nideshop_goods.create_user_id,
+        nideshop_goods.create_user_dept_id,
+        nideshop_goods.update_user_id,
+        nideshop_goods.guige_arr,
+        nideshop_goods.gg_content,
+        nideshop_category.name category_name,
+        nideshop_attribute_category.name attribute_category_name,
+        nideshop_brand.name brand_name
+        from nideshop_goods
+        LEFT JOIN nideshop_category
+        ON nideshop_goods.category_id = nideshop_category.id
+        LEFT JOIN nideshop_attribute_category ON nideshop_goods.attribute_category = nideshop_attribute_category.id
+        LEFT JOIN nideshop_brand ON nideshop_brand.id = nideshop_goods.brand_id
+        WHERE 1=1
+        <!--  数据过滤  -->
+        ${filterSql}
+        <if test="name != null and name != ''">
+            AND nideshop_goods.name LIKE concat('%',#{name},'%')
+        </if>
+        <if test="brandId != null and brandId.trim() != ''">
+            AND nideshop_goods.brand_id = #{brandId}
+        </if>
+        <if test="brandIdList != null and brandIdList.size() > 0">
+            AND nideshop_goods.brand_id in
+            <foreach item="brandId" collection="brandIdList" open="(" separator="," close=")">
+                #{brandId}
+            </foreach>
+        </if>
+
+        <if test="deptIdList != null and deptIdList.size() > 0">
+            AND nideshop_goods.create_user_dept_id in
+            <foreach item="deptId" collection="deptIdList" open="(" separator="," close=")">
+                #{deptId}
+            </foreach>
+        </if>
+        AND nideshop_goods.is_Delete = #{isDelete}
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by nideshop_goods.id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryListCustom" resultType="com.platform.entity.GoodsEntity">
+        select
+        nideshop_goods.id,
+        nideshop_goods.category_id,
+        nideshop_goods.goods_sn,
+        nideshop_goods.name,
+        nideshop_goods.brand_id,
+        nideshop_goods.goods_number,
+        nideshop_goods.keywords,
+        nideshop_goods.goods_brief,
+        nideshop_goods.goods_desc,
+        nideshop_goods.goods_simple_desc,
+        nideshop_goods.real_shop_url,
+        nideshop_goods.is_on_sale,
+        nideshop_goods.add_time,
+        nideshop_goods.update_time,
+        nideshop_goods.sort_order,
+        nideshop_goods.is_delete,
+        nideshop_goods.attribute_category,
+        nideshop_goods.counter_price,
+        nideshop_goods.extra_price,
+        nideshop_goods.is_new,
+        nideshop_goods.goods_unit,
+        nideshop_goods.primary_pic_url,
+        nideshop_goods.list_pic_url,
+        nideshop_goods.retail_price,
+        nideshop_goods.sell_volume,
+        nideshop_goods.primary_product_id,
+        nideshop_goods.unit_price,
+        nideshop_goods.promotion_desc,
+        nideshop_goods.promotion_tag,
+        nideshop_goods.app_exclusive_price,
+        nideshop_goods.is_app_exclusive,
+        nideshop_goods.is_limited,
+        nideshop_goods.is_hot,
+        nideshop_goods.market_price,
+        nideshop_goods.create_user_id,
+        nideshop_goods.create_user_dept_id,
+        nideshop_goods.update_user_id,
+        nideshop_goods.guige_arr,
+        nideshop_goods.gg_content,
+        nideshop_category.name category_name,
+        nideshop_attribute_category.name attribute_category_name,
+        nideshop_brand.name brand_name
+        from nideshop_goods
+        LEFT JOIN nideshop_category
+        ON nideshop_goods.category_id = nideshop_category.id
+        LEFT JOIN nideshop_attribute_category ON nideshop_goods.attribute_category = nideshop_attribute_category.id
+        LEFT JOIN nideshop_brand ON nideshop_brand.id = nideshop_goods.brand_id
+        WHERE 1=1
+
+        AND  nideshop_goods.brand_id = #{brandId}
+
+        AND nideshop_goods.is_Delete = #{isDelete}
+
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by nideshop_goods.id desc
+            </otherwise>
+        </choose>
+        <if test="offset != null and limit != null">
+            limit #{offset}, #{limit}
+        </if>
+    </select>
+
+    <select id="queryTotalCustom" resultType="int">
+        select count(*) from nideshop_goods WHERE 1=1
+
+        AND nideshop_goods.brand_id = #{brandId}
+
+        AND nideshop_goods.is_Delete = #{isDelete}
+    </select>
+
+    <select id="queryTotal" resultType="int">
+        select count(*) from nideshop_goods WHERE 1=1
+        <!--  数据过滤  -->
+        ${filterSql}
+        <if test="name != null and name != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+        <if test="brandId != null and brandId.trim() != ''">
+            AND nideshop_goods.brand_id = #{brandId}
+        </if>
+        <if test="brandIdList != null and brandIdList.size() > 0">
+            AND nideshop_goods.brand_id in
+            <foreach item="brandId" collection="brandIdList" open="(" separator="," close=")">
+                #{brandId}
+            </foreach>
+        </if>
+        AND nideshop_goods.is_Delete = #{isDelete}
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.GoodsEntity">
+        insert into nideshop_goods
+        (
+        `id`,
+        `category_id`,
+        `goods_sn`,
+        `name`,
+        `brand_id`,
+        `goods_number`,
+        `keywords`,
+        `goods_brief`,
+        `goods_desc`,
+        goods_simple_desc,
+        real_shop_url,
+        `is_on_sale`,
+        `add_time`,
+        `update_time`,
+        `sort_order`,
+        `is_delete`,
+        `attribute_category`,
+        `counter_price`,
+        `extra_price`,
+        `is_new`,
+        `goods_unit`,
+        `primary_pic_url`,
+        `list_pic_url`,
+        `retail_price`,
+        `sell_volume`,
+        `primary_product_id`,
+        `unit_price`,
+        `promotion_desc`,
+        `promotion_tag`,
+        `app_exclusive_price`,
+        `is_app_exclusive`,
+        `is_limited`,
+        `is_hot`,
+        `market_price`,
+        `create_user_id`,
+        `create_user_dept_id`,
+        `update_user_id`,
+        guige_arr,
+        gg_content
+        )
+        values
+        (
+        #{id},
+        #{categoryId},
+        #{goodsSn},
+        #{name},
+        #{brandId},
+        #{goodsNumber},
+        #{keywords},
+        #{goodsBrief},
+        #{goodsDesc},
+        #{goodsSimpleDesc},
+        #{realShopUrl},
+        #{isOnSale},
+        #{addTime},
+        #{updateTime},
+        #{sortOrder},
+        #{isDelete},
+        #{attributeCategory},
+        #{counterPrice},
+        #{extraPrice},
+        #{isNew},
+        #{goodsUnit},
+        #{primaryPicUrl},
+        #{listPicUrl},
+        #{retailPrice},
+        #{sellVolume},
+        #{primaryProductId},
+        #{unitPrice},
+        #{promotionDesc},
+        #{promotionTag},
+        #{appExclusivePrice},
+        #{isAppExclusive},
+        #{isLimited},
+        #{isHot},
+        #{marketPrice},
+        #{createUserId},
+        #{createUserDeptId},
+        #{updateUserId},
+        #{guigeArr},
+        #{ggContent}
+        )
+    </insert>
+
+    <update id="update" parameterType="com.platform.entity.GoodsEntity">
+        update nideshop_goods
+        <set>
+            <if test="categoryId != null">`category_id` = #{categoryId},</if>
+            <if test="goodsSn != null">`goods_sn` = #{goodsSn},</if>
+            <if test="name != null">`name` = #{name},</if>
+            <if test="brandId != null">`brand_id` = #{brandId},</if>
+            <if test="goodsNumber != null">`goods_number` = #{goodsNumber},</if>
+            <if test="keywords != null">`keywords` = #{keywords},</if>
+            <if test="goodsBrief != null">`goods_brief` = #{goodsBrief},</if>
+            <if test="goodsDesc != null">`goods_desc` = #{goodsDesc},</if>
+            <if test="goodsSimpleDesc != null">`goods_simple_desc` = #{goodsSimpleDesc},</if>
+            <if test="realShopUrl != null">`real_shop_url` = #{realShopUrl},</if>
+            <if test="isOnSale != null">`is_on_sale` = #{isOnSale},</if>
+            <if test="addTime != null">`add_time` = #{addTime},</if>
+            <if test="updateTime != null">`update_time` = #{updateTime},</if>
+            <if test="sortOrder != null">`sort_order` = #{sortOrder},</if>
+            <if test="isDelete != null">`is_delete` = #{isDelete},</if>
+            <if test="attributeCategory != null">`attribute_category` = #{attributeCategory},</if>
+            <if test="counterPrice != null">`counter_price` = #{counterPrice},</if>
+            <if test="extraPrice != null">`extra_price` = #{extraPrice},</if>
+            <if test="isNew != null">`is_new` = #{isNew},</if>
+            <if test="goodsUnit != null">`goods_unit` = #{goodsUnit},</if>
+            <if test="primaryPicUrl != null">`primary_pic_url` = #{primaryPicUrl},</if>
+            <if test="listPicUrl != null">`list_pic_url` = #{listPicUrl},</if>
+            <if test="retailPrice != null">`retail_price` = #{retailPrice},</if>
+            <if test="sellVolume != null">`sell_volume` = #{sellVolume},</if>
+            <if test="primaryProductId != null">`primary_product_id` = #{primaryProductId},</if>
+            <if test="unitPrice != null">`unit_price` = #{unitPrice},</if>
+            <if test="promotionDesc != null">`promotion_desc` = #{promotionDesc},</if>
+            <if test="promotionTag != null">`promotion_tag` = #{promotionTag},</if>
+            <if test="appExclusivePrice != null">`app_exclusive_price` = #{appExclusivePrice},</if>
+            <if test="isAppExclusive != null">`is_app_exclusive` = #{isAppExclusive},</if>
+            <if test="isLimited != null">`is_limited` = #{isLimited},</if>
+            <if test="isHot != null">`is_hot` = #{isHot},</if>
+            <if test="marketPrice != null">`market_price` = #{marketPrice},</if>
+            <if test="createUserId != null">`create_user_id` = #{createUserId},</if>
+            <if test="createUserId != null">`create_user_dept_id` = #{createUserDeptId},</if>
+            <if test="updateUserId != null">`update_user_id` = #{updateUserId},</if>
+            <if test="guigeArr != null">`guige_arr` = #{guigeArr},</if>
+            <if test="ggContent != null">`gg_content` = #{ggContent},</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+        delete from nideshop_goods where id = #{value}
+    </delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_goods where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+    <select id="queryMaxId" resultType="java.lang.Integer" parameterType="map">
+        SELECT MAX(id) FROM nideshop_goods
+    </select>
+</mapper>

+ 0 - 0
backstage-yongnianting/WEB-INF/classes/com/platform/dao/GoodsGalleryDao.class


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.