提交 1a116bcd authored 作者: zhoushaopan's avatar zhoushaopan

[维修]添加taskId字段

上级 e8d865ed
...@@ -16,10 +16,7 @@ import com.tykj.dev.device.repair.subject.domin.RepairBackBill; ...@@ -16,10 +16,7 @@ import com.tykj.dev.device.repair.subject.domin.RepairBackBill;
import com.tykj.dev.device.repair.subject.domin.RepairBill; import com.tykj.dev.device.repair.subject.domin.RepairBill;
import com.tykj.dev.device.repair.subject.domin.RepairDetail; import com.tykj.dev.device.repair.subject.domin.RepairDetail;
import com.tykj.dev.device.repair.subject.domin.RepairSendBill; import com.tykj.dev.device.repair.subject.domin.RepairSendBill;
import com.tykj.dev.device.repair.subject.vo.RepairBillSelectVo; import com.tykj.dev.device.repair.subject.vo.*;
import com.tykj.dev.device.repair.subject.vo.RepairNum;
import com.tykj.dev.device.repair.subject.vo.RepairTaskSelectVo;
import com.tykj.dev.device.repair.subject.vo.TaskRemark;
import com.tykj.dev.device.task.service.TaskService; import com.tykj.dev.device.task.service.TaskService;
import com.tykj.dev.device.task.subject.bto.TaskBto; import com.tykj.dev.device.task.subject.bto.TaskBto;
import com.tykj.dev.device.task.subject.vo.TaskSelectVo; import com.tykj.dev.device.task.subject.vo.TaskSelectVo;
...@@ -97,14 +94,19 @@ public class RepairBillSelectController { ...@@ -97,14 +94,19 @@ public class RepairBillSelectController {
Page<RepairDetail> repairDetails = (Page)repairController.getRepairList(repairTaskSelectVo).getBody(); Page<RepairDetail> repairDetails = (Page)repairController.getRepairList(repairTaskSelectVo).getBody();
//type=2的记录 //type=2的记录
repairTaskSelectVo.setType(2); repairTaskSelectVo.setType(2);
Page<RepairDetail> repairDetails2 = (Page)repairController.getRepairList(repairTaskSelectVo).getBody(); Page<WaitingRepairEquipmentVo> waitingRepaireEquipmentVos = (Page) repairController.getRepairList(repairTaskSelectVo).getBody();
// Page<RepairDetail> repairDetails2 = (Page)repairController.getRepairList(repairTaskSelectVo).getBody();
//type=3的记录 //type=3的记录
repairTaskSelectVo.setType(3); repairTaskSelectVo.setType(3);
Page<RepairDetail> repairDetails3 = (Page)repairController.getRepairList(repairTaskSelectVo).getBody(); // Page<RepairDetail> repairDetails3 = (Page)repairController.getRepairList(repairTaskSelectVo).getBody();
Page<WaitingRepairEquipmentVo> waitingRepaireEquipmentVos2 = (Page) repairController.getRepairList(repairTaskSelectVo).getBody();
//set数量 //set数量
repairNum.setNum1(Long.valueOf(repairDetails.getTotalElements()).intValue()); repairNum.setNum1(Long.valueOf(repairDetails.getTotalElements()).intValue());
repairNum.setNum2(Long.valueOf(repairDetails2.getTotalElements()).intValue()); // repairNum.setNum2(Long.valueOf(repairDetails2.getTotalElements()).intValue());
repairNum.setNum3(Long.valueOf(repairDetails3.getTotalElements()).intValue()); // repairNum.setNum3(Long.valueOf(repairDetails3.getTotalElements()).intValue());
repairNum.setNum2(Long.valueOf(waitingRepaireEquipmentVos.getTotalElements()).intValue());
repairNum.setNum3(Long.valueOf(waitingRepaireEquipmentVos2.getTotalElements()).intValue());
return ResponseEntity.ok(repairNum); return ResponseEntity.ok(repairNum);
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -18,4 +18,6 @@ public interface RepairBackBillService extends RepairPublicService<RepairBackBil ...@@ -18,4 +18,6 @@ public interface RepairBackBillService extends RepairPublicService<RepairBackBil
void sendHash(List<RepairBackBill> repairBackBills); void sendHash(List<RepairBackBill> repairBackBills);
Page<RepairBackBill> getPage(RepairBillSelectVo deviceRepairBillSelectVo, Pageable pageable); Page<RepairBackBill> getPage(RepairBillSelectVo deviceRepairBillSelectVo, Pageable pageable);
} }
...@@ -26,4 +26,5 @@ public interface RepairSendBillService { ...@@ -26,4 +26,5 @@ public interface RepairSendBillService {
RepairSendBill update(RepairSendBill deviceRepairSendBillEntity); RepairSendBill update(RepairSendBill deviceRepairSendBillEntity);
void delete(Integer id); void delete(Integer id);
} }
...@@ -96,6 +96,7 @@ public class RepairSendBillServiceImpl implements RepairSendBillService { ...@@ -96,6 +96,7 @@ public class RepairSendBillServiceImpl implements RepairSendBillService {
deviceRepairSendBillDao.deleteById(id); deviceRepairSendBillDao.deleteById(id);
} }
private Specification<RepairSendBill> getSelectSpecification(RepairBillSelectVo deviceRepairBillSelectVo) { private Specification<RepairSendBill> getSelectSpecification(RepairBillSelectVo deviceRepairBillSelectVo) {
PredicateBuilder<RepairSendBill> predicateBuilder = Specifications.and(); PredicateBuilder<RepairSendBill> predicateBuilder = Specifications.and();
if (deviceRepairBillSelectVo != null) { if (deviceRepairBillSelectVo != null) {
......
...@@ -78,4 +78,10 @@ public class RepairReceiveVo { ...@@ -78,4 +78,10 @@ public class RepairReceiveVo {
@ApiModelProperty(value = "单据保存vo") @ApiModelProperty(value = "单据保存vo")
private List<ScriptSaveVo> scriptSaveVos; private List<ScriptSaveVo> scriptSaveVos;
@ApiModelProperty(value = "应出库装备数量")
private Integer sendingCount;
@ApiModelProperty(value = "已出库装备数量")
private Integer sendedCount;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论