Bladeren bron

清除废代码

chao 3 jaren geleden
bovenliggende
commit
33bb8a2938

+ 0 - 42
src/main/java/com/caimei/www/controller/ClassificationController.java

@@ -1,42 +0,0 @@
-package com.caimei.www.controller;
-
-import com.caimei.www.mapper.ProductDao;
-import com.caimei.www.pojo.JsonModel;
-import com.caimei.www.pojo.classify.Bigtype;
-import com.caimei.www.pojo.classify.SmallType;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-import javax.annotation.Resource;
-import java.util.List;
-
-/**
- * Description
- *
- * @author : plf
- * @date : 2020/12/23
- */
-@Controller
-@RequestMapping("classification")
-public class ClassificationController extends BaseController {
-    @Resource
-    private ProductDao productDao;
-
-    @GetMapping("/select.html")
-    public String selectUp() {
-        return "help/select";
-    }
-
-    @GetMapping("bigTypeData")
-    @ResponseBody
-    public JsonModel bigTypeData(){
-        List<Bigtype> bigtypeList = productDao.findBigtype();
-        bigtypeList.forEach((bigtype)->{
-            List<SmallType> smallTypes = productDao.findSmalltype();
-            bigtype.setSmallTypes(smallTypes);
-        });
-        return JsonModel.success(bigtypeList);
-    }
-}

+ 1 - 1
src/main/java/com/caimei/www/controller/authorized/document/DocumentAuthController.java → src/main/java/com/caimei/www/controller/authorized/document/DocumentAuthApi.java

@@ -19,7 +19,7 @@ import reactor.core.publisher.Mono;
  */
 @RestController
 @RequestMapping("/document")
-public class DocumentAuthController {
+public class DocumentAuthApi {
 
     private DocumentAuthService documentAuthService;
 

+ 0 - 10
src/main/java/com/caimei/www/controller/unlimited/EquipmentController.java

@@ -55,14 +55,4 @@ public class EquipmentController extends BaseController {
         model.addAttribute("equipment", detail);
         return equipment_DETAIL_PATH;
     }
-
-    /**
-     * 获取项目仪器详情页中层信息(搭配推荐,相似商品)
-     */
-    @GetMapping("/equipment/recommend")
-    @ResponseBody
-    public JsonModel<List<PageFloor>> getEquipmentRecommendById(Integer equipmentId) {
-        return equipmentService.getEquipmentRecommendById(equipmentId);
-    }
-
 }

+ 1 - 1
src/main/java/com/caimei/www/controller/ShortLinkApi.java → src/main/java/com/caimei/www/controller/unlimitedApi/ShortLinkApi.java

@@ -1,4 +1,4 @@
-package com.caimei.www.controller;
+package com.caimei.www.controller.unlimitedApi;
 
 import com.caimei.www.service.link.ShortLinkService;
 import org.springframework.beans.factory.annotation.Autowired;

+ 0 - 6
src/main/java/com/caimei/www/service/page/EquipmentService.java

@@ -21,10 +21,4 @@ public interface EquipmentService {
      */
     PageContent getEquipmentById(Integer equipmentId);
 
-    /**
-     * 获取项目仪器详情页中层信息(搭配推荐,相似商品)
-     * @param equipmentId
-     * @return
-     */
-    JsonModel<List<PageFloor>> getEquipmentRecommendById(Integer equipmentId);
 }

+ 0 - 42
src/main/java/com/caimei/www/service/page/impl/EquipmentServiceImpl.java

@@ -1,20 +1,13 @@
 package com.caimei.www.service.page.impl;
 
 import com.caimei.www.mapper.EquipmentDao;
-import com.caimei.www.mapper.SinglePageDao;
-import com.caimei.www.pojo.JsonModel;
-import com.caimei.www.pojo.page.ImageLink;
 import com.caimei.www.pojo.page.PageContent;
-import com.caimei.www.pojo.page.PageFloor;
 import com.caimei.www.pojo.page.Parameter;
 import com.caimei.www.service.page.EquipmentService;
-import com.caimei.www.utils.ImageUtil;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
-import java.util.ArrayList;
 import java.util.List;
 
 /**
@@ -28,11 +21,6 @@ import java.util.List;
 public class EquipmentServiceImpl implements EquipmentService {
     @Resource
     private EquipmentDao equipmentDao;
-    @Resource
-    SinglePageDao singlePageDao;
-
-    @Value("${caimei.wwwDomain}")
-    private String domain;
 
     /**
      * 项目仪器详情
@@ -49,34 +37,4 @@ public class EquipmentServiceImpl implements EquipmentService {
         }
         return equipment;
     }
-
-    /**
-     * 获取项目仪器详情页中层信息(搭配推荐,相似商品)
-     *
-     * @param equipmentId
-     * @return
-     */
-    @Override
-    public JsonModel<List<PageFloor>> getEquipmentRecommendById(Integer equipmentId) {
-        if (equipmentId == null) { return JsonModel.error("参数异常", null);}
-        List<PageFloor> floorList = singlePageDao.getFloorByPageId(equipmentId);
-        if (floorList.size() > 0) {
-            List<PageFloor> tempList = new ArrayList<>();
-            floorList.forEach(floor -> {
-                List<ImageLink> imageLinks = singlePageDao.getDataByFloorId(floor.getId());
-                if (imageLinks.size() > 0) {
-                    imageLinks.forEach(img -> {
-                        img.setImage(ImageUtil.getImageURL("actType", img.getImage(), 0, domain));
-                    });
-                    floor.setFloorData(imageLinks);
-                } else {
-                    tempList.add(floor);
-                }
-            });
-            if(tempList.size() > 0){
-                floorList.removeAll(tempList);
-            }
-        }
-        return JsonModel.success(floorList);
-    }
 }

+ 0 - 26
src/main/resources/static/css/help/select.css

@@ -1,26 +0,0 @@
-#selectClass{background: #fff}
-.productlist{padding: 30px}
-.select{
-    height: 36px;
-    width: 150px;
-}
-table{
-    width: 100%;
-    margin:auto;
-}
-table tbody tr,table tbody td{
-    line-height: 36px;
-    text-align: center;
-}
-select{
-    width: 100%;
-    height: 36px;
-    border: none;
-    text-align: center;
-    text-align-last: center;
-    cursor: pointer;
-}
-option{
-    text-align:center;
-}
-

+ 0 - 35
src/main/resources/static/js/help/select.js

@@ -1,35 +0,0 @@
-var selectClass = new Vue({
-    el:'#selectClass',
-    data:{
-        commodityType:'',
-
-        List:[
-            {id:'1010',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1011',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1012',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1013',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1014',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1015',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1016',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1017',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1018',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1019',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-            {id:'1020',name:'卡琪紫红色精华油',shop:'供应商',stauts:'已上架',bigName:'会所常用品',smallName:'客装产品',tinyName:'其他'},
-        ],
-        bigList:[]
-    },
-    methods:{
-        changeAttr:function (event) {
-            this.commodityType = event.target.value;
-
-        },
-
-    },
-    mounted:function () {
-        var _this = this;
-        $.getJSON(spiServer+"/classification/bigTypeData").done(function (r) {
-                if (r.code === 0 && r.data) {
-                }
-            });
-    }
-})

+ 0 - 62
src/main/resources/templates/help/select.html

@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-      xsi:schemaLocation="https://www.thymeleaf.org ">
-<head>
-    <title>采美365网</title>
-    <template th:replace="components/head-link"></template>
-    <link th:href="@{/css/help/select.css(v=${version})}" rel="stylesheet" type="text/css">
-    <template th:replace="components/analysis"></template>
-</head>
-	<body>
-	<!-- 引用头部 -->
-<template th:replace="components/header"></template>
-		<div id="selectClass">
-			<div class="productlist">
-				<table width="300" border="1" cellspacing="0">
-					<tr>
-						<th>商品ID</th>
-						<th>名称</th>
-						<th>供应商</th>
-						<th>状态</th>
-						<th>一级分类</th>
-						<th>二级分类</th>
-						<th>三级分类</th>
-						<th>商品属性</th>
-						<th>新一级</th>
-						<th>新二级</th>
-					</tr>
-					<tr v-for="(item,index) in List">
-						<td>{{item.id}}</td>
-						<td>{{item.name}}</td>
-						<td>{{item.shop}}</td>
-						<td>{{item.stauts}}</td>
-						<td>{{item.bigName}}</td>
-						<td>{{item.smallName}}</td>
-						<td>{{item.tinyName}}</td>
-						<td>
-							<select @change="changeAttr($event)">
-								<option value="0">属性</option>
-								<option value="1">产品</option>
-								<option value="2">仪器</option>
-							</select>
-						</td>
-						<td>
-							<select @change="preserve($event)">
-								<option>一级分类</option>
-							</select>
-						</td>
-						<td>
-							<select @change="SeconPreserve($event)">
-								<option>二类分类</option>
-							</select>
-						</td>
-					</tr>
-				</table>
-			</div>
-		</div>
-<!-- 引入底部 -->
-<template th:replace="components/footer"></template>
-<template th:replace="components/foot-link"></template>
-<script charset="utf-8" type="text/javascript" th:src="@{/js/help/select.js(v=${version})}"></script>
-	</body>
-</html>