巡检计划详情字段添加

master
litao 1 year ago
parent 22b111c8e0
commit 2454ced832
  1. 19
      src/main/java/org/springblade/modules/business/pojo/entity/maintenance/MaintenancePlanDetail.java
  2. 1
      src/main/java/org/springblade/modules/business/service/impl/MaintenancePlanServiceImpl.java
  3. 2
      src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml

@ -23,15 +23,30 @@ public class MaintenancePlanDetail extends BaseEntity {
private Long planId; private Long planId;
/**
* 设备id
*/
private Long deviceId;
/**
* 设备名称
*/
private String deviceName;
/**
* 楼层id
*/
private Long floorId;
/** /**
* 楼层 * 楼层
*/ */
private String floorName; private String floorName;
/** /**
* 房间 * 房间id
*/ */
private Long deptId; private Long deptId;
/**
* 房间名称
*/
private String deptName;
/** /**
* 专业名称 * 专业名称

@ -172,6 +172,7 @@ public class MaintenancePlanServiceImpl extends BaseServiceImpl<MaintenancePlanM
maintenanceTask.setAddress(maintenancePlan.getAddress()); maintenanceTask.setAddress(maintenancePlan.getAddress());
maintenanceTask.setServicemanId(maintenancePlan.getServicemanId()); maintenanceTask.setServicemanId(maintenancePlan.getServicemanId());
maintenanceTask.setTaskContent(maintenancePlan.getPlanContent()); maintenanceTask.setTaskContent(maintenancePlan.getPlanContent());
maintenanceTask.setStartTime(new Date());
taskService.save(maintenanceTask); taskService.save(maintenanceTask);
// 保存任务详情 // 保存任务详情

@ -75,7 +75,7 @@
</select> </select>
<select id="limsTree" resultMap="treeNodeResultMap"> <select id="limsTree" resultMap="treeNodeResultMap">
select id, parent_id, dept_name as title, id as "value", id as "key" from blade_dept where is_deleted = 0 and dept_category in (5,6) select id, parent_id, dept_name as title, id as "value", id as "key" from blade_dept where is_deleted = 0 and dept_category in (5,6,7)
<if test="_parameter!=null and _parameter!=''"> <if test="_parameter!=null and _parameter!=''">
and tenant_id = #{_parameter} and tenant_id = #{_parameter}
</if> </if>

Loading…
Cancel
Save