Showing
5 changed files
with
19 additions
and
6 deletions
... | ... | @@ -465,5 +465,5 @@ COMMENT ON COLUMN "public"."qg_brain_device"."service_dep" IS '维保部门id'; |
465 | 465 | COMMENT ON COLUMN "public"."qg_brain_device"."contact_info" IS '联系方式'; |
466 | 466 | COMMENT ON COLUMN "public"."qg_brain_device"."enable_time" IS '启用日期'; |
467 | 467 | COMMENT ON COLUMN "public"."qg_brain_device"."pictures" IS '图片ids'; |
468 | -COMMENT ON COLUMN "public"."qg_brain_device"."pictures" IS '文件ids'; | |
468 | +COMMENT ON COLUMN "public"."qg_brain_device"."files" IS '文件ids'; | |
469 | 469 | ... | ... |
application/src/main/java/org/thingsboard/server/controller/yunteng/BrainDeviceController.java
renamed from
application/src/main/java/org/thingsboard/server/controller/BrainDeviceController.java
1 | -package org.thingsboard.server.controller; | |
1 | +package org.thingsboard.server.controller.yunteng; | |
2 | 2 | |
3 | 3 | import io.swagger.annotations.Api; |
4 | 4 | import io.swagger.annotations.ApiOperation; |
... | ... | @@ -14,6 +14,7 @@ import org.thingsboard.server.common.data.yunteng.common.DeleteGroup; |
14 | 14 | import org.thingsboard.server.common.data.yunteng.dto.BrainDeviceDTO; |
15 | 15 | import org.thingsboard.server.common.data.yunteng.utils.tools.ResponseResult; |
16 | 16 | import org.thingsboard.server.common.data.yunteng.utils.tools.TkPageData; |
17 | +import org.thingsboard.server.controller.BaseController; | |
17 | 18 | import org.thingsboard.server.dao.yunteng.service.BrainDeviceService; |
18 | 19 | import org.thingsboard.server.queue.util.TbCoreComponent; |
19 | 20 | ... | ... |
... | ... | @@ -26,12 +26,20 @@ public class BrainDeviceDTO extends TenantDTO { |
26 | 26 | private String model; |
27 | 27 | @ApiModelProperty(value = "备注") |
28 | 28 | private String notes; |
29 | + @ApiModelProperty(value = "设备类型id") | |
30 | + private String categoryId; | |
29 | 31 | @ApiModelProperty(value = "设备类型") |
30 | 32 | private String categoryName; |
33 | + @ApiModelProperty(value = "存放位置id") | |
34 | + private String positionId; | |
31 | 35 | @ApiModelProperty(value = "存放位置") |
32 | 36 | private String positionName; |
37 | + @ApiModelProperty(value = "使用部门id") | |
38 | + private String useDep; | |
33 | 39 | @ApiModelProperty(value = "使用部门") |
34 | 40 | private String useDepName; |
41 | + @ApiModelProperty(value = "维保部门id") | |
42 | + private String serviceDep; | |
35 | 43 | @ApiModelProperty(value = "维保部门") |
36 | 44 | private String serviceDepName; |
37 | 45 | @ApiModelProperty(value = "联系方式") |
... | ... | @@ -40,6 +48,10 @@ public class BrainDeviceDTO extends TenantDTO { |
40 | 48 | @ApiModelProperty(value = "启用时间") |
41 | 49 | @JsonSerialize(using = LocalDateTimeSerializer.class) |
42 | 50 | private String enableTime; |
51 | + @ApiModelProperty(value = "图片") | |
52 | + private String pictures; | |
53 | + @ApiModelProperty(value = "文件") | |
54 | + private String files; | |
43 | 55 | @ApiModelProperty(value = "创建人") |
44 | 56 | private String creatorName; |
45 | 57 | ... | ... |
... | ... | @@ -700,7 +700,7 @@ public class ModelConstants { |
700 | 700 | */ |
701 | 701 | public static final String BRAINDEVICECAGEGORY_TABLE_NAME = "qg_brain_device_category";//设备类型 |
702 | 702 | public static final String BRAINDEVICEPOSITION_TABLE_NAME = "qg_brain_device_position";//存放位置 |
703 | - public static final String BRAINDEVICE_TABLE_NAME = "qg_brain_device_position";//设备台账 | |
703 | + public static final String BRAINDEVICE_TABLE_NAME = "qg_brain_device";//设备台账 | |
704 | 704 | |
705 | 705 | protected static final String[] NONE_AGGREGATION_COLUMNS = new String[]{LONG_VALUE_COLUMN, DOUBLE_VALUE_COLUMN, BOOLEAN_VALUE_COLUMN, STRING_VALUE_COLUMN, JSON_VALUE_COLUMN, KEY_COLUMN, TS_COLUMN}; |
706 | 706 | ... | ... |
... | ... | @@ -23,11 +23,11 @@ |
23 | 23 | </resultMap> |
24 | 24 | <select id="getDataPage" resultMap="brainDeviceMap"> |
25 | 25 | SELECT |
26 | - o.id,o.name,o.code,o.model,o.status,o.notes,o.contact_info,o.enable_time,o.create_time,o.updater,o.update_time,o.creator,c.name as categoryName,p.name as positionName,u.name as useDepName,s.name as serviceDepName | |
26 | + o.id,o.name,o.code,o.model,o.status,o.notes,o.contact_info,o.enable_time,o.create_time,o.updater,o.update_time,o.creator,c.name as categoryName,p.position as positionName,u.name as useDepName,s.name as serviceDepName | |
27 | 27 | from qg_brain_device o |
28 | - left join qg_barin_device_category c on o.category_id = c.id | |
28 | + left join qg_brain_device_category c on o.category_id = c.id | |
29 | 29 | left join qg_brain_device_position p on o.position_id = p.id |
30 | - left join tk_organization u on o.use_dep = t.id | |
30 | + left join tk_organization u on o.use_dep = u.id | |
31 | 31 | left join tk_organization s on o.service_dep = s.id |
32 | 32 | <where> |
33 | 33 | <if test="queryMap.tenantId !=null and queryMap.tenantId !=''"> | ... | ... |