Prechádzať zdrojové kódy

维保项插入时,将status设置为固定的版本2。修改upload的启动类为com.upload.Application

wang-hai-cheng 5 rokov pred
rodič
commit
dd74c2c558

+ 3 - 1
lift-enterprise-service/src/main/java/cn/com/ty/lift/enterprise/option/controller/MaintenanceOptionController.java

@@ -45,7 +45,7 @@ public class MaintenanceOptionController {
                         .in("mt_company_id", 10086L, req.getMtCompanyId())
                         .in(req.getType() != null, "type", type(req))
                         .eq(req.getLiftCategory() != null, "lift_category", req.getLiftCategory())
-                        .eq( "status",2)
+                        .eq("status", 2)
                         .orderByAsc("id"));
         if (page.getRecords().isEmpty()) {
             return RestResponse.success();
@@ -95,6 +95,8 @@ public class MaintenanceOptionController {
         if (option.getLiftCategory() == 3) {
             option.setSort(-1);
         }
+        //当前维保项版本是2
+        option.setStatus(2);
         return RestResponse.success(optionService.save(option));
     }
 

+ 1 - 1
lift-upload/pom.xml

@@ -34,7 +34,7 @@
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
                 <configuration>
-                    <mainClass>com.Application</mainClass>
+                    <mainClass>com.upload.Application</mainClass>
                 </configuration>
                 <executions>
                     <execution>