徐志豪 5 years ago
commit
0825a1a573
100 changed files with 2758 additions and 0 deletions
  1. 2 0
      .gitignore
  2. 4 0
      fd-mall-backstage/.gitignore
  3. 5 0
      fd-mall-backstage/META-INF/MANIFEST.MF
  4. 7 0
      fd-mall-backstage/WEB-INF/classes/caffeine.properties
  5. 20 0
      fd-mall-backstage/WEB-INF/classes/cert/证书使用说明.txt
  6. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/aop/DataFilterAspect.class
  7. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/aop/RedisCacheAspect.class
  8. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/aop/SysLogAspect.class
  9. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/AdController.class
  10. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/AdPositionController.class
  11. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/AddressController.class
  12. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/AttributeCategoryController.class
  13. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/AttributeController.class
  14. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/BrandController.class
  15. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/CartController.class
  16. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/CategoryController.class
  17. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/ChannelController.class
  18. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/CollectController.class
  19. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/CommentController.class
  20. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/CommentPictureController.class
  21. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/CouponController.class
  22. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/CouponGoodsController.class
  23. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/FeedbackController.class
  24. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/FootprintController.class
  25. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/GoodsAttributeController.class
  26. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/GoodsController.class
  27. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/GoodsGalleryController.class
  28. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/GoodsIssueController.class
  29. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/GoodsSpecificationController.class
  30. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/HelpIssueController.class
  31. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/HelpTypeController.class
  32. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/KeywordsController.class
  33. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/OrderController.class
  34. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/OrderGoodsController.class
  35. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/ProductController.class
  36. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/RelatedGoodsController.class
  37. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SearchHistoryController.class
  38. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/ShippingController.class
  39. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SpecificationController.class
  40. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysConfigController.class
  41. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysDeptController.class
  42. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysLogController.class
  43. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysMacroController.class
  44. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysOssController.class
  45. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysPageController.class
  46. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysRegionController.class
  47. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/SysSmsLogController.class
  48. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/TopicCategoryController.class
  49. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/TopicController.class
  50. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/UserController.class
  51. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/UserCouponController.class
  52. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/controller/UserLevelController.class
  53. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AdDao.class
  54. 118 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AdDao.xml
  55. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AdPositionDao.class
  56. 93 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AdPositionDao.xml
  57. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AddressDao.class
  58. 131 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AddressDao.xml
  59. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AttributeCategoryDao.class
  60. 83 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AttributeCategoryDao.xml
  61. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AttributeDao.class
  62. 104 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/AttributeDao.xml
  63. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/BrandDao.class
  64. 182 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/BrandDao.xml
  65. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CartDao.class
  66. 136 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CartDao.xml
  67. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CategoryDao.class
  68. 166 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CategoryDao.xml
  69. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/ChannelDao.class
  70. 93 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/ChannelDao.xml
  71. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CollectDao.class
  72. 106 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CollectDao.xml
  73. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CommentDao.class
  74. 127 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CommentDao.xml
  75. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CommentPictureDao.class
  76. 90 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CommentPictureDao.xml
  77. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CouponDao.class
  78. 118 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CouponDao.xml
  79. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CouponGoodsDao.class
  80. 81 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/CouponGoodsDao.xml
  81. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/FeedbackDao.class
  82. 113 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/FeedbackDao.xml
  83. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/FootprintDao.class
  84. 98 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/FootprintDao.xml
  85. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsAttributeDao.class
  86. 81 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsAttributeDao.xml
  87. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsDao.class
  88. 286 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsDao.xml
  89. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsGalleryDao.class
  90. 103 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsGalleryDao.xml
  91. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsIssueDao.class
  92. 81 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsIssueDao.xml
  93. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsSpecificationDao.class
  94. 153 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsSpecificationDao.xml
  95. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpIssueDao.class
  96. 96 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpIssueDao.xml
  97. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpTypeDao.class
  98. 81 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpTypeDao.xml
  99. BIN
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/KeywordsDao.class
  100. 0 0
      fd-mall-backstage/WEB-INF/classes/com/platform/dao/KeywordsDao.xml

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+node_modules
+dist

+ 4 - 0
fd-mall-backstage/.gitignore

@@ -0,0 +1,4 @@
+node_moudles/
+*/node_moudles/
+node_modules
+dist

+ 5 - 0
fd-mall-backstage/META-INF/MANIFEST.MF

@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Built-By: Hb_zzZ
+Created-By: IntelliJ IDEA
+Build-Jdk: 1.8.0_121
+

+ 7 - 0
fd-mall-backstage/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
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/aop/DataFilterAspect.class


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


+ 118 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/AdPositionDao.class


+ 93 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/AddressDao.class


+ 131 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/AttributeCategoryDao.class


+ 83 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/AttributeDao.class


+ 104 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/BrandDao.class


+ 182 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/BrandDao.xml

@@ -0,0 +1,182 @@
+<?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"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.BrandEntity">
+		select
+			`id`,
+			`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`
+		from nideshop_brand
+		where id = #{id}
+	</select>
+
+    <select id="findByBrandName" resultType="com.platform.entity.BrandEntity">
+        select
+        `id`,
+        `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`
+        from nideshop_brand
+        where name = #{brandName}
+    </select>
+
+    <select id="queryList" resultType="com.platform.entity.BrandEntity">
+        select
+        `id`,
+        `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`
+        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>
+        <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_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>
+    </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`)
+		values(
+			#{name},
+			#{listPicUrl},
+			#{simpleDesc},
+			#{picUrl},
+			#{sortOrder},
+			#{isShow},
+			#{floorPrice},
+			#{appListPicUrl},
+			#{isNew},
+			#{newPicUrl},
+			#{newSortOrder},
+			#{type},
+			#{sceneUrl})
+	</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>
+        </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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CartDao.class


+ 136 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CategoryDao.class


+ 166 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CategoryDao.xml

@@ -0,0 +1,166 @@
+<?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="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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/ChannelDao.class


+ 93 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CollectDao.class


+ 106 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CommentDao.class


+ 127 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CommentPictureDao.class


+ 90 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CouponDao.class


+ 118 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/CouponDao.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.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="useStartDate" column="use_start_date"/>
+        <result property="useEndDate" column="use_end_date"/>
+        <result property="minGoodsAmount" column="min_goods_amount"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.CouponEntity">
+		select
+			`id`,
+			`name`,
+			`type_money`,
+			`send_type`,
+			`min_amount`,
+			`max_amount`,
+			`send_start_date`,
+			`send_end_date`,
+			`use_start_date`,
+			`use_end_date`,
+			`min_goods_amount`
+		from nideshop_coupon
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.CouponEntity">
+        select
+        `id`,
+        `name`,
+        `type_money`,
+        `send_type`,
+        `min_amount`,
+        `max_amount`,
+        `send_start_date`,
+        `send_end_date`,
+        `use_start_date`,
+        `use_end_date`,
+        `min_goods_amount`
+        from nideshop_coupon
+        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>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.CouponEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_coupon(
+			`name`,
+			`type_money`,
+			`send_type`,
+			`min_amount`,
+			`max_amount`,
+			`send_start_date`,
+			`send_end_date`,
+			`use_start_date`,
+			`use_end_date`,
+			`min_goods_amount`)
+		values(
+			#{name},
+			#{typeMoney},
+			#{sendType},
+			#{minAmount},
+			#{maxAmount},
+			#{sendStartDate},
+			#{sendEndDate},
+			#{useStartDate},
+			#{useEndDate},
+			#{minGoodsAmount})
+	</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="minGoodsAmount != null">`min_goods_amount` = #{minGoodsAmount}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_coupon where id = #{value}
+	</delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_coupon where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

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


+ 81 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/FeedbackDao.class


+ 113 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/FootprintDao.class


+ 98 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsAttributeDao.class


+ 81 - 0
fd-mall-backstage/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
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsDao.class


+ 286 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsDao.xml

@@ -0,0 +1,286 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.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="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.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>
+        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="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`,
+        `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},
+        #{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="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>

BIN
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsGalleryDao.class


+ 103 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsGalleryDao.xml

@@ -0,0 +1,103 @@
+<?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.GoodsGalleryDao">
+
+    <resultMap type="com.platform.entity.GoodsGalleryEntity" id="goodsGalleryMap">
+        <result property="id" column="id"/>
+        <result property="goodsId" column="goods_id"/>
+        <result property="imgUrl" column="img_url"/>
+        <result property="imgDesc" column="img_desc"/>
+        <result property="sortOrder" column="sort_order"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.GoodsGalleryEntity">
+        select
+        `id`,
+        `goods_id`,
+        `img_url`,
+        `img_desc`,
+        `sort_order`
+        from nideshop_goods_gallery
+        where id = #{id}
+    </select>
+
+    <select id="queryList" resultType="com.platform.entity.GoodsGalleryEntity">
+        select
+        nideshop_goods_gallery.id,
+        nideshop_goods_gallery.goods_id,
+        nideshop_goods_gallery.img_url,
+        nideshop_goods_gallery.img_desc,
+        nideshop_goods_gallery.sort_order,
+        nideshop_goods.name goods_name
+        from nideshop_goods_gallery
+        LEFT JOIN nideshop_goods ON nideshop_goods_gallery.goods_id = nideshop_goods.id
+        WHERE 1=1
+        <if test="goodsName != null and goodsName.trim() != ''">
+            AND nideshop_goods.name LIKE concat('%',#{goodsName},'%')
+        </if>
+        <if test="goodsId != null">
+            AND nideshop_goods_gallery.goods_id = #{goodsId}
+        </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_goods_gallery
+        LEFT JOIN nideshop_goods ON nideshop_goods_gallery.goods_id = nideshop_goods.id
+        WHERE 1=1
+        <if test="goodsName != null and goodsName.trim() != ''">
+            AND nideshop_goods.name LIKE concat('%',#{goodsName},'%')
+        </if>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.GoodsGalleryEntity" useGeneratedKeys="true" keyProperty="id">
+        insert into nideshop_goods_gallery(
+        `goods_id`,
+        `img_url`,
+        `img_desc`,
+        `sort_order`)
+        values(
+        #{goodsId},
+        #{imgUrl},
+        #{imgDesc},
+        #{sortOrder})
+    </insert>
+
+    <update id="update" parameterType="com.platform.entity.GoodsGalleryEntity">
+        update nideshop_goods_gallery
+        <set>
+            <if test="goodsId != null">`goods_id` = #{goodsId},</if>
+            <if test="imgUrl != null">`img_url` = #{imgUrl},</if>
+            <if test="imgDesc != null">`img_desc` = #{imgDesc},</if>
+            <if test="sortOrder != null">`sort_order` = #{sortOrder}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+        delete from nideshop_goods_gallery where id = #{value}
+    </delete>
+
+    <delete id="deleteByGoodsId">
+        delete from nideshop_goods_gallery where goods_id = #{goodsId}
+    </delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_goods_gallery where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsIssueDao.class


+ 81 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsIssueDao.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.GoodsIssueDao">
+
+    <resultMap type="com.platform.entity.GoodsIssueEntity" id="goodsIssueMap">
+        <result property="id" column="id"/>
+        <result property="question" column="question"/>
+        <result property="answer" column="answer"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.GoodsIssueEntity">
+		select
+			`id`,
+			`question`,
+			`answer`
+		from nideshop_goods_issue
+		where id = #{id}
+	</select>
+
+    <select id="queryList" resultType="com.platform.entity.GoodsIssueEntity">
+        select
+        nideshop_goods_issue.id,
+        nideshop_goods_issue.question,
+        nideshop_goods_issue.answer
+        from nideshop_goods_issue
+        WHERE 1=1
+        <if test="question != null and question.trim() != ''">
+            AND nideshop_goods_issue.question LIKE concat('%',#{question},'%')
+        </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_goods_issue
+        WHERE 1=1
+        <if test="question != null and question.trim() != ''">
+            AND nideshop_goods_issue.question LIKE concat('%',#{question},'%')
+        </if>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.GoodsIssueEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_goods_issue(
+			`question`,
+			`answer`)
+		values(
+			#{question},
+			#{answer})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.GoodsIssueEntity">
+        update nideshop_goods_issue
+        <set>
+            <if test="question != null">`question` = #{question},</if>
+            <if test="answer != null">`answer` = #{answer}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+        delete from nideshop_goods_issue where id = #{value}
+    </delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_goods_issue where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsSpecificationDao.class


+ 153 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/GoodsSpecificationDao.xml

@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.platform.dao.GoodsSpecificationDao">
+
+    <resultMap type="com.platform.entity.GoodsSpecificationEntity" id="goodsSpecificationMap">
+        <result property="id" column="id"/>
+        <result property="goodsId" column="goods_id"/>
+        <result property="specificationId" column="specification_id"/>
+        <result property="value" column="value"/>
+        <result property="picUrl" column="pic_url"/>
+        <result property="uuid" column="uuid"/>
+    </resultMap>
+
+    <select id="queryObject" resultType="com.platform.entity.GoodsSpecificationEntity">
+		select
+			`id`,
+			`goods_id`,
+			`specification_id`,
+			`value`,
+			`pic_url`,
+			uuid
+		from nideshop_goods_specification
+		where id = #{id}
+	</select>
+
+    <select id="queryObjectBykeyAndGoodsId" resultType="com.platform.entity.GoodsSpecificationEntity">
+        select
+        `id`,
+        `goods_id`,
+        `specification_id`,
+        `value`,
+        `pic_url`,
+        uuid
+        from nideshop_goods_specification
+        where uuid = #{uuid} AND goods_id = #{goodsId}
+    </select>
+
+    <select id="queryList" resultType="com.platform.entity.GoodsSpecificationEntity">
+        select
+        nideshop_goods_specification.id,
+        nideshop_goods_specification.goods_id,
+        nideshop_goods_specification.specification_id,
+        nideshop_goods_specification.value,
+        nideshop_goods_specification.pic_url,
+        nideshop_goods_specification.uuid,
+        nideshop_goods.name goods_name,
+        nideshop_specification.name specification_name,
+        nideshop_brand.name brandName
+        from nideshop_goods_specification
+        LEFT JOIN nideshop_goods ON nideshop_goods.id = nideshop_goods_specification.goods_id
+        LEFT JOIN nideshop_specification ON nideshop_specification.id = nideshop_goods_specification.specification_id
+        LEFT JOIN nideshop_brand ON nideshop_brand.id = nideshop_goods.brand_id
+        WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND nideshop_goods.name LIKE concat('%',#{name},'%')
+        </if>
+        <if test="goodsId != null">
+            AND nideshop_goods_specification.goods_id = #{goodsId}
+        </if>
+        <if test="specificationId != null">
+            AND nideshop_goods_specification.specification_id = #{specificationId}
+        </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>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+            <otherwise>
+                order by nideshop_goods_specification.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_specification
+        LEFT JOIN nideshop_goods ON nideshop_goods.id = nideshop_goods_specification.goods_id
+        WHERE 1=1
+        <if test="goodsName != null and goodsName.trim() != ''">
+            AND nideshop_goods.name LIKE concat('%',#{goodsName},'%')
+        </if>
+        <if test="goodsId != null">
+            AND nideshop_goods_specification.goods_id = #{goodsId}
+        </if>
+        <if test="specificationId != null">
+            AND nideshop_goods_specification.specification_id = #{specificationId}
+        </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>
+    </select>
+
+    <insert id="save" parameterType="com.platform.entity.GoodsSpecificationEntity" useGeneratedKeys="true"
+            keyProperty="id">
+		insert into nideshop_goods_specification(
+			`goods_id`,
+			`specification_id`,
+			`value`,
+			`pic_url`,
+			uuid)
+		values(
+			#{goodsId},
+			#{specificationId},
+			#{value},
+			#{picUrl},
+			#{uuid})
+	</insert>
+
+    <update id="update" parameterType="com.platform.entity.GoodsSpecificationEntity">
+        update nideshop_goods_specification
+        <set>
+            <if test="goodsId != null">`goods_id` = #{goodsId},</if>
+            <if test="specificationId != null">`specification_id` = #{specificationId},</if>
+            <if test="value != null">`value` = #{value},</if>
+            <if test="picUrl != null">`pic_url` = #{picUrl}</if>
+            <if test="uuid != null">`uuid` = #{uuid}</if>
+        </set>
+        where id = #{id}
+    </update>
+
+    <delete id="delete">
+		delete from nideshop_goods_specification where id = #{value}
+	</delete>
+
+    <delete id="deleteByGoodsId">
+        delete from nideshop_goods_specification where goods_id = #{value}
+    </delete>
+
+    <delete id="deleteBatch">
+        delete from nideshop_goods_specification where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+
+</mapper>

BIN
fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpIssueDao.class


+ 96 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpIssueDao.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+
+<mapper namespace="com.platform.dao.HelpIssueDao">
+
+    <resultMap type="com.platform.entity.HelpIssueEntity" id="helpIssueMap">
+        <result property="id" column="id"/>
+        <result property="typeId" column="type_id"/>
+        <result property="question" column="question"/>
+        <result property="answer" column="answer"/>
+        <result property="sort" column="sort"/>
+    </resultMap>
+
+	<select id="queryObject" resultType="com.platform.entity.HelpIssueEntity">
+		select
+			`id`,
+			`type_id`,
+			`question`,
+			`answer`,
+			`sort`
+		from nideshop_help_issue
+		where id = #{id}
+	</select>
+
+	<select id="queryList" resultType="com.platform.entity.HelpIssueEntity">
+		select
+		nideshop_help_issue.id,
+		nideshop_help_issue.type_id,
+		nideshop_help_issue.question,
+		nideshop_help_issue.answer,
+		nideshop_help_issue.sort,
+		nideshop_help_type.type_name
+		from nideshop_help_issue
+		LEFT JOIN nideshop_help_type ON nideshop_help_issue.type_id = nideshop_help_type.id
+		WHERE 1=1
+		<if test="typeName != null and typeName.trim() != ''">
+			AND nideshop_help_type.type_name LIKE concat('%',#{typeName},'%')
+		</if>
+        <choose>
+            <when test="sidx != null and sidx.trim() != ''">
+                order by ${sidx} ${order}
+            </when>
+			<otherwise>
+                order by type_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_help_issue
+		LEFT JOIN nideshop_help_type on nideshop_help_issue.type_id = nideshop_help_type.id
+		WHERE 1=1
+		<if test="typeName != null and typeName.trim() != ''">
+			AND nideshop_help_type.type_name LIKE concat('%',#{typeName},'%')
+		</if>
+	</select>
+	 
+	<insert id="save" parameterType="com.platform.entity.HelpIssueEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_help_issue(
+			`type_id`,
+			`question`,
+			`answer`,
+			`sort`)
+		values(
+			#{typeId},
+			#{question},
+			#{answer},
+			#{sort})
+	</insert>
+	 
+	<update id="update" parameterType="com.platform.entity.HelpIssueEntity">
+		update nideshop_help_issue
+		<set>
+			<if test="typeId != null">`type_id` = #{typeId}, </if>
+			<if test="question != null">`question` = #{question}, </if>
+			<if test="answer != null">`answer` = #{answer}, </if>
+			<if test="sort != null">`sort` = #{sort}</if>
+		</set>
+		where id = #{id}
+	</update>
+	
+	<delete id="delete">
+		delete from nideshop_help_issue where id = #{value}
+	</delete>
+	
+	<delete id="deleteBatch">
+		delete from nideshop_help_issue where id in
+		<foreach item="id" collection="array" open="(" separator="," close=")">
+			#{id}
+		</foreach>
+	</delete>
+
+</mapper>

BIN
fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpTypeDao.class


+ 81 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/HelpTypeDao.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.HelpTypeDao">
+
+    <resultMap type="com.platform.entity.HelpTypeEntity" id="helpTypeMap">
+        <result property="id" column="id"/>
+        <result property="typeName" column="type_name"/>
+        <result property="sort" column="sort"/>
+    </resultMap>
+
+	<select id="queryObject" resultType="com.platform.entity.HelpTypeEntity">
+		select
+			`id`,
+			`type_name`,
+			`sort`
+		from nideshop_help_type
+		where id = #{id}
+	</select>
+
+	<select id="queryList" resultType="com.platform.entity.HelpTypeEntity">
+		select
+    		`id`,
+    		`type_name`,
+    		`sort`
+		from nideshop_help_type
+		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_help_type
+		WHERE 1=1
+        <if test="name != null and name.trim() != ''">
+            AND name LIKE concat('%',#{name},'%')
+        </if>
+	</select>
+	 
+	<insert id="save" parameterType="com.platform.entity.HelpTypeEntity" useGeneratedKeys="true" keyProperty="id">
+		insert into nideshop_help_type(
+			`type_name`,
+			`sort`)
+		values(
+			#{typeName},
+			#{sort})
+	</insert>
+	 
+	<update id="update" parameterType="com.platform.entity.HelpTypeEntity">
+		update nideshop_help_type
+		<set>
+			<if test="typeName != null">`type_name` = #{typeName}, </if>
+			<if test="sort != null">`sort` = #{sort}</if>
+		</set>
+		where id = #{id}
+	</update>
+	
+	<delete id="delete">
+		delete from nideshop_help_type where id = #{value}
+	</delete>
+	
+	<delete id="deleteBatch">
+		delete from nideshop_help_type where id in
+		<foreach item="id" collection="array" open="(" separator="," close=")">
+			#{id}
+		</foreach>
+	</delete>
+
+</mapper>

BIN
fd-mall-backstage/WEB-INF/classes/com/platform/dao/KeywordsDao.class


+ 0 - 0
fd-mall-backstage/WEB-INF/classes/com/platform/dao/KeywordsDao.xml


Some files were not shown because too many files changed in this diff