Просмотр исходного кода

设备作业记录增加字段

lamphua 2 дней назад
Родитель
Сommit
edc4ad87d9

+ 13
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDeviceLog.java Просмотреть файл

62
     @Excel(name = "高值类型")
62
     @Excel(name = "高值类型")
63
     private String heightType;
63
     private String heightType;
64
 
64
 
65
+    /** 高值 */
66
+    @Excel(name = "高值")
67
+    private Double height;
68
+
65
     /** 干温 */
69
     /** 干温 */
66
     @Excel(name = "干温")
70
     @Excel(name = "干温")
67
     private String dryTemperature;
71
     private String dryTemperature;
194
     {
198
     {
195
         return heightType;
199
         return heightType;
196
     }
200
     }
201
+    public void setHeight(Double height)
202
+    {
203
+        this.height = height;
204
+    }
205
+
206
+    public Double getHeight()
207
+    {
208
+        return height;
209
+    }
197
     public void setDryTemperature(String dryTemperature) 
210
     public void setDryTemperature(String dryTemperature) 
198
     {
211
     {
199
         this.dryTemperature = dryTemperature;
212
         this.dryTemperature = dryTemperature;

+ 7
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceLogMapper.xml Просмотреть файл

13
         <result property="weather"    column="weather"    />
13
         <result property="weather"    column="weather"    />
14
         <result property="position"    column="position"    />
14
         <result property="position"    column="position"    />
15
         <result property="heightType"    column="height_type"    />
15
         <result property="heightType"    column="height_type"    />
16
+        <result property="height"    column="height"    />
16
         <result property="dryTemperature"    column="dry_temperature"    />
17
         <result property="dryTemperature"    column="dry_temperature"    />
17
         <result property="wetTemperature"    column="wet_temperature"    />
18
         <result property="wetTemperature"    column="wet_temperature"    />
18
         <result property="airPressure"    column="air_pressure"    />
19
         <result property="airPressure"    column="air_pressure"    />
45
     </resultMap>
46
     </resultMap>
46
 
47
 
47
     <sql id="selectCmcDeviceLogVo">
48
     <sql id="selectCmcDeviceLogVo">
48
-        select dl.log_id, dl.device_id, dl.project_id, dl.usage_type, dl.use_date, dl.weather, dl.position, dl.height_type, dl.dry_temperature, dl.wet_temperature, dl.air_pressure, dl.power_on, dl.power_off, dl.user_id from cmc_device_log as dl
49
+        select dl.log_id, dl.device_id, d.device_number, d.code, d.name, d.series, d.brand, dl.project_id, p.project_name, p.project_number, dl.usage_type, dl.use_date,
50
+               dl.weather, dl.position, dl.height_type, dl.height, dl.dry_temperature, dl.wet_temperature, dl.air_pressure, dl.power_on, dl.power_off, dl.user_id, u.nick_name from cmc_device_log as dl
49
         left join sys_user as u on u.user_id = dl.user_id
51
         left join sys_user as u on u.user_id = dl.user_id
50
         left join cmc_device as d on d.device_id = dl.device_id
52
         left join cmc_device as d on d.device_id = dl.device_id
51
         left join cmc_project as p on p.project_id = dl.project_id
53
         left join cmc_project as p on p.project_id = dl.project_id
61
             <if test="weather != null  and weather != ''"> and dl.weather = #{weather}</if>
63
             <if test="weather != null  and weather != ''"> and dl.weather = #{weather}</if>
62
             <if test="position != null  and position != ''"> and dl.position = #{position}</if>
64
             <if test="position != null  and position != ''"> and dl.position = #{position}</if>
63
             <if test="heightType != null  and heightType != ''"> and dl.height_type = #{heightType}</if>
65
             <if test="heightType != null  and heightType != ''"> and dl.height_type = #{heightType}</if>
66
+            <if test="height != null "> and dl.height = #{height}</if>
64
             <if test="dryTemperature != null  and dryTemperature != ''"> and dl.dry_temperature = #{dryTemperature}</if>
67
             <if test="dryTemperature != null  and dryTemperature != ''"> and dl.dry_temperature = #{dryTemperature}</if>
65
             <if test="wetTemperature != null  and wetTemperature != ''"> and dl.wet_temperature = #{wetTemperature}</if>
68
             <if test="wetTemperature != null  and wetTemperature != ''"> and dl.wet_temperature = #{wetTemperature}</if>
66
             <if test="airPressure != null  and airPressure != ''"> and dl.air_pressure = #{airPressure}</if>
69
             <if test="airPressure != null  and airPressure != ''"> and dl.air_pressure = #{airPressure}</if>
85
             <if test="weather != null">weather,</if>
88
             <if test="weather != null">weather,</if>
86
             <if test="position != null">position,</if>
89
             <if test="position != null">position,</if>
87
             <if test="heightType != null">height_type,</if>
90
             <if test="heightType != null">height_type,</if>
91
+            <if test="height != null">height,</if>
88
             <if test="dryTemperature != null">dry_temperature,</if>
92
             <if test="dryTemperature != null">dry_temperature,</if>
89
             <if test="wetTemperature != null">wet_temperature,</if>
93
             <if test="wetTemperature != null">wet_temperature,</if>
90
             <if test="airPressure != null">air_pressure,</if>
94
             <if test="airPressure != null">air_pressure,</if>
100
             <if test="weather != null">#{weather},</if>
104
             <if test="weather != null">#{weather},</if>
101
             <if test="position != null">#{position},</if>
105
             <if test="position != null">#{position},</if>
102
             <if test="heightType != null">#{heightType},</if>
106
             <if test="heightType != null">#{heightType},</if>
107
+            <if test="height != null">#{height},</if>
103
             <if test="dryTemperature != null">#{dryTemperature},</if>
108
             <if test="dryTemperature != null">#{dryTemperature},</if>
104
             <if test="wetTemperature != null">#{wetTemperature},</if>
109
             <if test="wetTemperature != null">#{wetTemperature},</if>
105
             <if test="airPressure != null">#{airPressure},</if>
110
             <if test="airPressure != null">#{airPressure},</if>
119
             <if test="weather != null">weather = #{weather},</if>
124
             <if test="weather != null">weather = #{weather},</if>
120
             <if test="position != null">position = #{position},</if>
125
             <if test="position != null">position = #{position},</if>
121
             <if test="heightType != null">height_type = #{heightType},</if>
126
             <if test="heightType != null">height_type = #{heightType},</if>
127
+            <if test="height != null">height = #{height},</if>
122
             <if test="dryTemperature != null">dry_temperature = #{dryTemperature},</if>
128
             <if test="dryTemperature != null">dry_temperature = #{dryTemperature},</if>
123
             <if test="wetTemperature != null">wet_temperature = #{wetTemperature},</if>
129
             <if test="wetTemperature != null">wet_temperature = #{wetTemperature},</if>
124
             <if test="airPressure != null">air_pressure = #{airPressure},</if>
130
             <if test="airPressure != null">air_pressure = #{airPressure},</if>

+ 3
- 2
oa-back/sql/sq.sql Просмотреть файл

8
   `weather` varchar(5) DEFAULT NULL COMMENT '天气',
8
   `weather` varchar(5) DEFAULT NULL COMMENT '天气',
9
   `position` varchar(30) DEFAULT NULL COMMENT '点号',
9
   `position` varchar(30) DEFAULT NULL COMMENT '点号',
10
   `height_type` varchar(10) DEFAULT NULL COMMENT '高值类型',
10
   `height_type` varchar(10) DEFAULT NULL COMMENT '高值类型',
11
+  `height` double DEFAULT NULL COMMENT '高值',
11
   `dry_temperature` varchar(5) DEFAULT NULL COMMENT '干温',
12
   `dry_temperature` varchar(5) DEFAULT NULL COMMENT '干温',
12
   `wet_temperature` varchar(5) DEFAULT NULL COMMENT '湿温',
13
   `wet_temperature` varchar(5) DEFAULT NULL COMMENT '湿温',
13
   `air_pressure` varchar(10) DEFAULT NULL COMMENT '气压',
14
   `air_pressure` varchar(10) DEFAULT NULL COMMENT '气压',
16
   `user_id` bigint DEFAULT NULL COMMENT '记录员',
17
   `user_id` bigint DEFAULT NULL COMMENT '记录员',
17
   PRIMARY KEY (`log_id`)
18
   PRIMARY KEY (`log_id`)
18
 ) ENGINE = InnoDB comment 'cmc仪器记录表';
19
 ) ENGINE = InnoDB comment 'cmc仪器记录表';
19
-INSERT INTO `cmc_oa`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (176, '作业记录', 8, 7, 'deviceLog', 'oa/device/log', NULL, 1, 0, 'C', '0', '0', 'oa:deviceLog:list', 'form', 'admin', '2025-06-10 10:30:41', '', NULL, '作业记录菜单');
20
+INSERT INTO `cmc_oa`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (176, '作业记录', 19, 2, 'deviceLog', 'oa/device/log', NULL, 1, 0, 'C', '0', '0', 'oa:deviceLog:list', 'form', 'admin', '2025-06-10 10:30:41', '', NULL, '作业记录菜单');
20
 INSERT INTO `cmc_oa`.`sys_role_menu` values (2,176);
21
 INSERT INTO `cmc_oa`.`sys_role_menu` values (2,176);
21
-INSERT INTO `cmc_oa`.`sys_role_menu` values (2,8);
22
+INSERT INTO `cmc_oa`.`sys_role_menu` values (2,19);

Загрузка…
Отмена
Сохранить