配件是否可见
This commit is contained in:
parent
18dc48a103
commit
7f1ff44d0c
@ -233,5 +233,20 @@ public class DlRepairTicketsController {
|
|||||||
dlRepairTicketsService.updateStatus(respVO);
|
dlRepairTicketsService.updateStatus(respVO);
|
||||||
return CommonResult.ok();
|
return CommonResult.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配件客户是否可见
|
||||||
|
*
|
||||||
|
* @author 小李
|
||||||
|
* @date 21:52 2024/10/18
|
||||||
|
* @param id 工单ID
|
||||||
|
* @param show 是否可见
|
||||||
|
**/
|
||||||
|
@GetMapping("/show")
|
||||||
|
@Operation(summary = "配件客户是否可见")
|
||||||
|
public CommonResult<?> updateShow(@RequestParam("id") String id, @RequestParam("show") String show){
|
||||||
|
dlRepairTicketsService.updateShow(id, show);
|
||||||
|
return CommonResult.ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,4 +184,7 @@ public class DlRepairTickets extends TenantBaseDO {
|
|||||||
|
|
||||||
/** 工单当前施工人name */
|
/** 工单当前施工人name */
|
||||||
private String nowRepairName;
|
private String nowRepairName;
|
||||||
|
|
||||||
|
/** 配件是否可见(yes_no,1:可见,0:不可见) */
|
||||||
|
private String partShow;
|
||||||
}
|
}
|
||||||
|
@ -126,4 +126,13 @@ public interface DlRepairTicketsService extends IService<DlRepairTickets> {
|
|||||||
**/
|
**/
|
||||||
void updateStatus(DlRepairTicketsRespVO respVO);
|
void updateStatus(DlRepairTicketsRespVO respVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配件客户是否可见
|
||||||
|
*
|
||||||
|
* @author 小李
|
||||||
|
* @date 21:52 2024/10/18
|
||||||
|
* @param id 工单ID
|
||||||
|
* @param show 是否可见
|
||||||
|
**/
|
||||||
|
void updateShow(String id, String show);
|
||||||
}
|
}
|
||||||
|
@ -565,6 +565,22 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
// 记录日志
|
// 记录日志
|
||||||
recordsService.saveRepairRecord(respVO.getId(), respVO.getItem().getId(), respVO.getRecordType(), respVO.getRemark(), respVO.getImage());
|
recordsService.saveRepairRecord(respVO.getId(), respVO.getItem().getId(), respVO.getRecordType(), respVO.getRemark(), respVO.getImage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 配件客户是否可见
|
||||||
|
*
|
||||||
|
* @author 小李
|
||||||
|
* @date 21:52 2024/10/18
|
||||||
|
* @param id 工单ID
|
||||||
|
* @param show 是否可见
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void updateShow(String id, String show){
|
||||||
|
DlRepairTickets dlRepairTickets = new DlRepairTickets();
|
||||||
|
dlRepairTickets.setId(id);
|
||||||
|
dlRepairTickets.setPartShow(show);
|
||||||
|
baseMapper.updateById(dlRepairTickets);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
<result property="isFinish" column="is_finish" />
|
<result property="isFinish" column="is_finish" />
|
||||||
<result property="nowRepairId" column="now_repair_id" />
|
<result property="nowRepairId" column="now_repair_id" />
|
||||||
<result property="nowRepairName" column="now_repair_name" />
|
<result property="nowRepairName" column="now_repair_name" />
|
||||||
|
<result property="partShow" column="part_show" />
|
||||||
<association property="booking" javaType="cn.iocoder.yudao.module.booking.entity.DlRepairBooking" select="selectBookingById" column="id"/>
|
<association property="booking" javaType="cn.iocoder.yudao.module.booking.entity.DlRepairBooking" select="selectBookingById" column="id"/>
|
||||||
<collection property="itemList" column="id" ofType="cn.iocoder.yudao.module.tickets.entity.DlRepairTitem" columnPrefix="item_">
|
<collection property="itemList" column="id" ofType="cn.iocoder.yudao.module.tickets.entity.DlRepairTitem" columnPrefix="item_">
|
||||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||||
@ -109,7 +110,8 @@
|
|||||||
tickets_work_status,
|
tickets_work_status,
|
||||||
is_finish,
|
is_finish,
|
||||||
now_repair_id,
|
now_repair_id,
|
||||||
now_repair_name
|
now_repair_name,
|
||||||
|
part_show
|
||||||
from dl_repair_tickets drt
|
from dl_repair_tickets drt
|
||||||
where drt.deleted = '0'
|
where drt.deleted = '0'
|
||||||
</sql>
|
</sql>
|
||||||
|
Loading…
Reference in New Issue
Block a user