Jelajahi Sumber

:white_check_mark: 安检列表增加上次交出/接收选择的部门,完善部分逻辑

Twelve615 1 tahun lalu
induk
melakukan
e48eea3f20

+ 3 - 0
airport/jeecg-boot-module-system/src/main/java/org/jeecg/modules/admin_security_check/entity/AdminSecurityCheck.java

@@ -5,6 +5,7 @@ import java.io.UnsupportedEncodingException;
 import java.util.Date;
 import java.math.BigDecimal;
 import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 import lombok.Data;
@@ -89,8 +90,10 @@ public class AdminSecurityCheck implements Serializable {
     private String flightAfid;
 
     @ApiModelProperty(value = "转到的部门")
+    @TableField(exist = false)
     private String toDepartment;
 
     @ApiModelProperty(value = "转到的部门编码")
+    @TableField(exist = false)
     private String toDepartmentId;
 }

+ 16 - 0
airport/jeecg-boot-module-system/src/test/java/org/jeecg/modules/admin_aircraft_position/service/impl/AdminAircraftPositionServiceImplTest.java

@@ -1,15 +1,21 @@
 package org.jeecg.modules.admin_aircraft_position.service.impl;
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import org.jeecg.JeecgSystemApplication;
 import org.jeecg.boot.starter.rabbitmq.client.RabbitMqClient;
 import org.jeecg.common.base.BaseMap;
 import org.jeecg.modules.admin_aircraft_position.service.IAdminAircraftPositionService;
+import org.jeecg.modules.admin_order.entity.AdminOrder;
+import org.jeecg.modules.admin_security_check.entity.AdminSecurityCheck;
+import org.jeecg.modules.admin_security_check.service.IAdminSecurityCheckService;
 import org.junit.jupiter.api.Test;
 import org.junit.runner.RunWith;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.test.context.junit4.SpringRunner;
 
+import java.util.List;
+
 import static org.junit.jupiter.api.Assertions.*;
 
 /**
@@ -30,6 +36,10 @@ class AdminAircraftPositionServiceImplTest {
     @Autowired
     RabbitMqClient rabbitMqClient;
 
+    @Autowired
+    IAdminSecurityCheckService adminSecurityCheckService;
+
+
     @Test
     void dept() {
         adminAircraftPositionService.dept("1677475604918702082");
@@ -46,4 +56,10 @@ class AdminAircraftPositionServiceImplTest {
         params.put("xml", xml);
         rabbitMqClient.sendMessage("Test3HandlerEvent", params);
     }
+
+    @Test
+    void testadminSecurityCheckService(){
+        List<AdminSecurityCheck> list = adminSecurityCheckService.list();
+        System.out.println(list);
+    }
 }