| | |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.LongUtil; |
| | | import com.ruoyi.common.utils.MapValueUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.*; |
| | | import com.ruoyi.system.domain.SysTaskEmergency; |
| | | import com.ruoyi.system.domain.VehicleInfo; |
| | | import com.ruoyi.system.domain.enums.TaskStatus; |
| | |
| | | createTaskVo.setTaskType("EMERGENCY_TRANSFER"); // 急救转运任务 |
| | | |
| | | // 设置单据类型和任务类型ID(从旧系统字段映射) |
| | | |
| | | if (StringUtils.isNotEmpty(serviceOrdClass)) { |
| | | createTaskVo.setDocumentTypeId(serviceOrdClass); |
| | | String ServiceOrdAreaType = MapValueUtils.getStringValue(order, "ServiceOrdAreaType"); |
| | | if (StringUtils.isNotEmpty(ServiceOrdAreaType)) { |
| | | createTaskVo.setDocumentTypeId(ServiceOrdAreaType); |
| | | } |
| | | |
| | | String serviceOrdType = MapValueUtils.getStringValue(order, "ServiceOrdType"); |
| | |
| | | createTaskVo.setTaskTypeId(serviceOrdType); |
| | | } |
| | | |
| | | // 设置区域类型 |
| | | String serviceOrdAreaType = MapValueUtils.getStringValue(order, "ServiceOrdAreaType"); |
| | | |
| | | |
| | | String serviceOrdVIP = MapValueUtils.getStringValue(order, "ServiceOrdVIP"); |
| | | if(serviceOrdVIP!=null){ |
| | | createTaskVo.setServiceOrdVIP(serviceOrdVIP); |
| | | }else{ |
| | | createTaskVo.setServiceOrdVIP("0"); |
| | | } |
| | | |
| | | Integer FromHQ2_is = MapValueUtils.getIntegerValue(order, "FromHQ2_is"); |
| | | if(IntegerUtil.isNotEmpty(FromHQ2_is)){ |
| | | createTaskVo.setFromHQ2_is("1"); |
| | | }else{ |
| | | createTaskVo.setFromHQ2_is("0"); |
| | | } |
| | | |
| | | // 设置用户ID |
| | | Long serviceOrdUserID = MapValueUtils.getLongValue(order, "ServiceOrdUserID"); |