|
|
|
@ -456,11 +456,11 @@ public class DmsMobileController extends BaseController {
|
|
|
|
|
public AjaxResult getBillsFaultInstance4Repair(@PathVariable("repairInstanceId") Long repairInstanceId) {
|
|
|
|
|
// DmsBillsFaultInstanceVo billsFaultInstance = dmsBillsFaultInstanceService.queryById(repairInstanceId);
|
|
|
|
|
DmsBillsFaultInstanceVo billsFaultInstance = dmsBillsFaultInstanceService.selectDmsBillsFaultInstanceByRepairInstanceId(repairInstanceId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 【调试日志】输出查询结果
|
|
|
|
|
log.info("PDA获取工单详情,repairInstanceId: {}, outsourcingId: {}",
|
|
|
|
|
log.info("PDA获取工单详情,repairInstanceId: {}, outsourcingId: {}",
|
|
|
|
|
repairInstanceId, billsFaultInstance.getOutsourcingId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 使用MapstructUtils进行高性能对象转换,避免时间字段序列化问题
|
|
|
|
|
DmsBillsFaultInstanceMobile mobileInstance = MapstructUtils.convert(billsFaultInstance, DmsBillsFaultInstanceMobile.class);
|
|
|
|
|
billsFaultInstance.setDeviceCode(mobileInstance.getMachineCode());
|
|
|
|
@ -470,10 +470,10 @@ public class DmsMobileController extends BaseController {
|
|
|
|
|
billsFaultInstance.setDeviceSpec(mobileInstance.getMachineSpec());
|
|
|
|
|
// 手动格式化时间字段,确保PDA客户端兼容性
|
|
|
|
|
formatTimeFields(mobileInstance, billsFaultInstance);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 【调试日志】输出转换后的结果
|
|
|
|
|
log.info("PDA转换后结果,outsrcId: {}", mobileInstance.getOutsrcId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return AjaxResult.success(mobileInstance);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|