|
@@ -33,6 +33,7 @@ import com.rongwei.rwadmincommon.system.service.PagePartService;
|
|
import com.rongwei.rwadmincommon.system.service.SysGeneralCRUDService;
|
|
import com.rongwei.rwadmincommon.system.service.SysGeneralCRUDService;
|
|
import com.rongwei.rwadmincommon.system.service.SysUserService;
|
|
import com.rongwei.rwadmincommon.system.service.SysUserService;
|
|
import com.rongwei.rwadmincommon.system.vo.SysUserVo;
|
|
import com.rongwei.rwadmincommon.system.vo.SysUserVo;
|
|
|
|
+import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
@@ -1134,6 +1135,42 @@ public class ZhcxInsideInspectionServiceImpl extends ServiceImpl<ZhcxInsideInspe
|
|
doDeletedPoint(project.getId());
|
|
doDeletedPoint(project.getId());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public R getSeqReportResult(String projectCode, String inspectionPoint) {
|
|
|
|
+ //根据INSPECTIONCOMPLATETIM 取最新的一条数据
|
|
|
|
+ LambdaQueryWrapper<ZhcxInsideInspectionDo> queryWrapper = Wrappers.lambdaQuery();
|
|
|
|
+ queryWrapper.eq(ZhcxInsideInspectionDo::getProjectcode, projectCode)
|
|
|
|
+ .eq(ZhcxInsideInspectionDo::getInspectioncontent, inspectionPoint)
|
|
|
|
+ .eq(ZhcxInsideInspectionDo::getInspectionstatus, "30")
|
|
|
|
+ .orderByDesc(ZhcxInsideInspectionDo::getInspectioncomplatetime)
|
|
|
|
+ .last("limit 1");
|
|
|
|
+
|
|
|
|
+ ZhcxInsideInspectionDo inside = this.getOne(queryWrapper);
|
|
|
|
+
|
|
|
|
+ //如果不是空去获取报验结论
|
|
|
|
+ if (ObjectUtil.isNotEmpty(inside)){
|
|
|
|
+ //根据inside ID 获取报验结论
|
|
|
|
+ LambdaQueryWrapper<ZhcxInsideInspectionDispatchDo> disQueryWrapper = Wrappers.lambdaQuery();
|
|
|
|
+ disQueryWrapper.eq(ZhcxInsideInspectionDispatchDo::getInsideid, inside.getId());
|
|
|
|
+ ZhcxInsideInspectionDispatchDo dispatchDo = dispatchService.getOne(disQueryWrapper);
|
|
|
|
+
|
|
|
|
+ if (ObjectUtil.isNotEmpty(dispatchDo)) {
|
|
|
|
+ Map<String, Object> data = new HashMap<>();
|
|
|
|
+ data.put("projectcode", inside.getProjectcode());
|
|
|
|
+ data.put("inspectionpoint", inside.getInspectioncontent());
|
|
|
|
+ data.put("inspectioncode", inside.getInspectioncode());
|
|
|
|
+ data.put("result", dispatchDo.getInspectionconclusion());
|
|
|
|
+ return R.ok(data);
|
|
|
|
+ }else {
|
|
|
|
+ //如果没有查到完工报验结果 返回-2
|
|
|
|
+ return R.ok("-2","未查到完工报验结果");
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ //如果没有查到inside 返回 -1
|
|
|
|
+ return R.ok("-1","未查到报验内容");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 通过报验点拆单
|
|
* 通过报验点拆单
|
|
*
|
|
*
|