工单管理打印功能

highway
wws 1 year ago
parent 17a42de771
commit d8b6bedcbd

@ -43,6 +43,16 @@ public class ProOrderWorkorderController extends BaseController {
@Autowired
private IProWetMaterialPlanDetailService proWetMaterialPlanDetailService;
/**
* code
* @param code
* @return
*/
@GetMapping("/getWorkOrders/{code}")
public AjaxResult getWorkOrders(@PathVariable("code") String code) {
return proOrderWorkorderService.getWorkOrders(code);
}
/**
*
* 湿

@ -109,4 +109,10 @@ public interface IProOrderWorkorderService {
*/
public List<ProOrderWorkorder> selectProOrderWorkorderByWorkIds(String[] workerIds);
/**
* id
* @param code
* @return
*/
AjaxResult getWorkOrders(String code);
}

@ -528,6 +528,31 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
return proOrderWorkorderMapper.selectProOrderWorkerderByWorkerIds(workerIds);
}
/**
* code
* @param code
* @return
*/
@Override
@DS("#header.poolName")
public AjaxResult getWorkOrders(String code) {
// 创建返回工单列表
List<ProOrderWorkorder> proOrderWorkorderList = new ArrayList<ProOrderWorkorder>();
// 查询该工单信息
ProOrderWorkorder proOrderWorkorder = proOrderWorkorderMapper.selectWorkOrderByCode(code);
boolean flag = true;
while (flag) {
proOrderWorkorderList.add(proOrderWorkorder);
ProOrderWorkorder workorder = proOrderWorkorderMapper.selectWorkOrderByCode(proOrderWorkorder.getParentOrder());
if (workorder != null) {
BeanUtils.copyProperties(workorder,proOrderWorkorder);
} else {
flag = false;
}
}
return success(proOrderWorkorderList);
}
/**
*
*

Loading…
Cancel
Save