|
@@ -8,6 +8,8 @@ import com.platform.dao.dto.hidden.HiddenDangerDTO;
|
|
|
import com.platform.dao.dto.repair.RepairApplicationFormDTO;
|
|
|
import com.platform.dao.dto.sb.SbInfoDTO;
|
|
|
import com.platform.dao.dto.store.OutStoreFormDTO;
|
|
|
+import com.platform.dao.entity.repair.RepairApplicationForm;
|
|
|
+import com.platform.dao.entity.store.OutStoreForm;
|
|
|
import com.platform.dao.enums.*;
|
|
|
import com.platform.dao.mapper.fill.FillGatherTaskMapper;
|
|
|
import com.platform.dao.mapper.hidden.HiddenDangerMapper;
|
|
@@ -250,6 +252,45 @@ public class IndexServiceImpl implements IndexService {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<RepairApplicationFormVO> getRepairPrintList() {
|
|
|
+ RepairApplicationFormDTO queryDTO = new RepairApplicationFormDTO();
|
|
|
+ queryDTO.setRepairUserId(SecurityUtils.getUserInfo().getUserId());
|
|
|
+ queryDTO.setStatus(RepairApplicationFormStatusEnum.PROCESSING.getValue());
|
|
|
+ queryDTO.setPrintFlag(YesNoEnum.NO.getValue());
|
|
|
+ return repairApplicationFormService.getCurrentlyListByDTO(queryDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<OutStoreFormVO> getOutStorePrintList() {
|
|
|
+ OutStoreFormDTO queryOutSotre = new OutStoreFormDTO();
|
|
|
+ List<Integer> statusList = ListUtils.newArrayList();
|
|
|
+ statusList.add(OutStoreStatusEnum.PUSH_OK.getValue());
|
|
|
+ statusList.add(OutStoreStatusEnum.FINISH.getValue());
|
|
|
+ queryOutSotre.setStatusList(statusList);
|
|
|
+ queryOutSotre.setPrintFlag(YesNoEnum.NO.getValue());
|
|
|
+ queryOutSotre.setCreatedUserId(SecurityUtils.getUserInfo().getUserId());
|
|
|
+ return outStoreFormMapper.getCurrentlyList(queryOutSotre);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void printedTicket(String type, String id) {
|
|
|
+ switch (type){
|
|
|
+ case CommonConstants.REPAIR_TICKET_PRINT:
|
|
|
+ RepairApplicationForm updForm = new RepairApplicationForm();
|
|
|
+ updForm.setId(id);
|
|
|
+ updForm.setPrintFlag(YesNoEnum.YES.getValue());
|
|
|
+ repairApplicationFormService.modModelByPrimaryKey(updForm);
|
|
|
+ break;
|
|
|
+ case CommonConstants.OUT_STORE_PRINT:
|
|
|
+ OutStoreForm form = new OutStoreForm();
|
|
|
+ form.setId(id);
|
|
|
+ form.setPrintFlag(YesNoEnum.YES.getValue());
|
|
|
+ outStoreFormMapper.updateByPrimaryKeySelective(form);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 处理区域负责人,超级,普通其他人员
|
|
|
* @param result
|
|
@@ -357,6 +398,7 @@ public class IndexServiceImpl implements IndexService {
|
|
|
statusList.add(OutStoreStatusEnum.FINISH.getValue());
|
|
|
outStoreFormDTO.setStatusList(statusList);
|
|
|
outStoreFormDTO.setPrintFlag(YesNoEnum.NO.getValue());
|
|
|
+ outStoreFormDTO.setCreatedUserId(SecurityUtils.getUserInfo().getUserId());
|
|
|
BigDecimal outNum = outStoreFormMapper.getOutStoreFormCount1(outStoreFormDTO);
|
|
|
result.setOutStorePrintNum(outNum == null ? 0 : outNum.intValue());
|
|
|
// 票证打印
|