|  |  |  | 
|---|
|  |  |  | import java.text.SimpleDateFormat; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.asrs.wcs.core.entity.DeviceCtg; | 
|---|
|  |  |  | import com.zy.asrs.wcs.core.service.DeviceCtgService; | 
|---|
|  |  |  | import com.zy.asrs.wcs.rcs.entity.DeviceType; | 
|---|
|  |  |  | import com.zy.asrs.wcs.rcs.service.DeviceTypeService; | 
|---|
|  |  |  | import com.zy.asrs.wcs.system.entity.Host; | 
|---|
|  |  |  | import com.zy.asrs.wcs.system.entity.User; | 
|---|
|  |  |  | 
|---|
|  |  |  | //    ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeviceCtg$(){ | 
|---|
|  |  |  | DeviceCtgService service = SpringUtils.getBean(DeviceCtgService.class); | 
|---|
|  |  |  | DeviceCtg deviceCtg = service.getById(this.deviceCtg); | 
|---|
|  |  |  | DeviceTypeService service = SpringUtils.getBean(DeviceTypeService.class); | 
|---|
|  |  |  | DeviceType deviceCtg = service.getById(this.deviceCtg); | 
|---|
|  |  |  | if (!Cools.isEmpty(deviceCtg)){ | 
|---|
|  |  |  | return String.valueOf(deviceCtg.getId()); | 
|---|
|  |  |  | } | 
|---|