<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">客户姓名</label>
<div class="layui-input-block">
<input name="workOrderCustomer.name" class="layui-input inputStyle edit " />
</div>
</div>
<div class="layui-inline">
<label class="layui-form-label">客户类型</label>
<div class="layui-input-block">
<input name="workOrderCustomer.khlxId" class="layui-input inputStyle edit " />
</div>
</div>
</div>
后台
@PostMapping("add")
@ResponseBody
public BaseResult add(WorkOrderDto dto){
WorkOrderCustomerVo customer = dto.getWorkOrderCustomer();
System.out.println(customer);
return BaseResult.success();
}
@Data
public class WorkOrderDto extends WorkOrder {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date preTimeBegin;
private WorkOrderCustomerVo workOrderCustomer;
private WoOvertimeSetting woOvertimeSetting;
private RanqibiaoViewVo ranqibiao;
private List<WorkorderDispatchVo> workorderDispatches;//工单派工
private List<WorkorderStuffVo> workorderStuffs;//工单耗材
private List<WorkOrderStep> workOrderSteps;//工单处理步骤
private List<AccidentDetail> accidentDetails;//事故详情
}