소스 검색

no message

FengChaoYu 5 달 전
부모
커밋
fd18b650e9

+ 0 - 10
mall-server-api/src/main/java/com/gree/mall/manager/controller/contract/ContractTemplateController.java

@@ -9,14 +9,11 @@ import com.gree.mall.manager.bean.contract.ContractWebsitBean;
 import com.gree.mall.manager.exception.RemoteServiceException;
 import com.gree.mall.manager.helper.ResponseHelper;
 import com.gree.mall.manager.logic.contract.ContractTemplateLogic;
-import com.gree.mall.manager.plus.entity.AdminWebsit;
 import com.gree.mall.manager.zfire.bean.ZfireParamBean;
 import com.gree.mall.manager.zfire.util.FieldUtils;
-import com.zfire.framework.common.enums.StatusEnum;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
-import io.swagger.v3.oas.annotations.Parameter;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.web.bind.annotation.*;
 
@@ -88,13 +85,6 @@ public class ContractTemplateController {
         return ResponseHelper.success();
     }
 
-    @PostMapping("status")
-    @ApiOperation(value = "合同模板-有效/无效")
-    public ResponseHelper status(@RequestParam String contractTemplateId, @Parameter(description = "ON=有效 OFF=无效") @RequestParam StatusEnum status) {
-        contractTemplateLogic.updateStatus(contractTemplateId, status);
-        return ResponseHelper.success();
-    }
-
     @PostMapping("del")
     @ApiOperation(value = "合同模板-删除")
     public ResponseHelper delete(@RequestParam String contractTemplateId) {

+ 7 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/contract/ContractTemplateLogic.java

@@ -73,7 +73,13 @@ public class ContractTemplateLogic {
             throw new RemoteServiceException("合同类型不能为空");
         }
         if (contractTemplate.getContractType().equals(ContractTypeEnum.FOLLOW.getKey())) {
-            contractTemplate.
+
         }
     }
+
+    public void update(ContractTemplateBean contractTemplate) {
+    }
+
+    public void delete(String contractTemplateId) {
+    }
 }