|
@@ -16,6 +16,7 @@ import com.ruoyi.gas.domain.vo.GRegulatorBoxVo;
|
|
import com.ruoyi.gas.mapper.GRegulatorBoxMapper;
|
|
import com.ruoyi.gas.mapper.GRegulatorBoxMapper;
|
|
import com.ruoyi.gas.service.IGRegulatorBoxPhotoService;
|
|
import com.ruoyi.gas.service.IGRegulatorBoxPhotoService;
|
|
import com.ruoyi.gas.service.IGRegulatorBoxProcessService;
|
|
import com.ruoyi.gas.service.IGRegulatorBoxProcessService;
|
|
|
|
+import com.ruoyi.gas.service.IGRegulatorBoxRelationService;
|
|
import com.ruoyi.gas.service.IGRegulatorBoxService;
|
|
import com.ruoyi.gas.service.IGRegulatorBoxService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -79,13 +80,17 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
String regex = "^(xx|XX).{2}";
|
|
String regex = "^(xx|XX).{2}";
|
|
if (gTeamProcess.getUserPost().matches(regex)) {
|
|
if (gTeamProcess.getUserPost().matches(regex)) {
|
|
if (gTeamProcess.getProcessStatus().equals("1")){
|
|
if (gTeamProcess.getProcessStatus().equals("1")){
|
|
- obj.setProcessStatus("1");
|
|
|
|
|
|
+ obj.setProcessStatus("2");
|
|
|
|
+ updateById(obj);
|
|
|
|
+ }else if (gTeamProcess.getProcessStatus().equals("0")){
|
|
|
|
+ //队长通过 处事没审核
|
|
|
|
+ obj.setProcessStatus("0");
|
|
updateById(obj);
|
|
updateById(obj);
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
//处事审核通过 即主表状态通过
|
|
//处事审核通过 即主表状态通过
|
|
if (gTeamProcess.getProcessStatus().equals("0")){
|
|
if (gTeamProcess.getProcessStatus().equals("0")){
|
|
- obj.setProcessStatus("0");
|
|
|
|
|
|
+ obj.setProcessStatus("1");
|
|
updateById(obj);
|
|
updateById(obj);
|
|
}
|
|
}
|
|
//处事审核不通过
|
|
//处事审核不通过
|
|
@@ -113,7 +118,7 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
item.setPhotoList(baseMapper.getPhoto(item.getId()));
|
|
item.setPhotoList(baseMapper.getPhoto(item.getId()));
|
|
//按照顺序审核
|
|
//按照顺序审核
|
|
//未审核过队长先展示
|
|
//未审核过队长先展示
|
|
- List<GRegulatorBoxProcess> listed = igRegulatorBoxProcessService.list(new QueryWrapper<GRegulatorBoxProcess>().eq("emr_id", item.getId()).eq("process_status","0"));
|
|
|
|
|
|
+ List<GRegulatorBoxProcess> listed = igRegulatorBoxProcessService.list(new QueryWrapper<GRegulatorBoxProcess>().eq("emr_id", item.getId()).orderByDesc("create_time"));
|
|
if (ObjectUtils.isEmpty(listed)){
|
|
if (ObjectUtils.isEmpty(listed)){
|
|
String regex = "^(xx|XX).{2}";
|
|
String regex = "^(xx|XX).{2}";
|
|
if (bo.getPostNameArias().matches(regex)){
|
|
if (bo.getPostNameArias().matches(regex)){
|
|
@@ -121,15 +126,21 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- //审核过
|
|
|
|
- //该岗位审核过就不显示
|
|
|
|
- listed.forEach(o->{
|
|
|
|
- if (o.getUserPost().equals(bo.getPostNameArias())){
|
|
|
|
- item.setFlag(false);
|
|
|
|
- }else {
|
|
|
|
- item.setFlag(true);
|
|
|
|
|
|
+ String regex = "^(xx|XX).{2}";
|
|
|
|
+ if (bo.getPostNameArias().matches(regex)){
|
|
|
|
+ if ("0".equals(item.getProcessStatus())){ item.setFlag(false); }
|
|
|
|
+ if ("1".equals(item.getProcessStatus())){ item.setFlag(false); }
|
|
|
|
+ if ("2".equals(item.getProcessStatus())){ item.setFlag(false); }
|
|
|
|
+ if ("-1".equals(item.getProcessStatus())){ item.setFlag(true); }
|
|
|
|
+ }else {
|
|
|
|
+ if ("0".equals(item.getProcessStatus())){ item.setFlag(true); }
|
|
|
|
+ if ("1".equals(item.getProcessStatus())){ item.setFlag(false); }
|
|
|
|
+ if ("2".equals(item.getProcessStatus())){ item.setFlag(false); }
|
|
|
|
+ if ("-1".equals(item.getProcessStatus())){
|
|
|
|
+ if (listed.get(0).getProcessStatus().equals("0")){ item.setFlag(true); }
|
|
|
|
+ if (listed.get(0).getProcessStatus().equals("1")){ item.setFlag(false); }
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
return PageUtils.buildDataInfo(result);
|
|
return PageUtils.buildDataInfo(result);
|
|
@@ -190,6 +201,8 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
return lqw;
|
|
return lqw;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Boolean insertByBo(GRegulatorBoxBo bo) {
|
|
public Boolean insertByBo(GRegulatorBoxBo bo) {
|
|
GRegulatorBox add = BeanUtil.toBean(bo, GRegulatorBox.class);
|
|
GRegulatorBox add = BeanUtil.toBean(bo, GRegulatorBox.class);
|
|
@@ -262,4 +275,5 @@ public class GRegulatorBoxServiceImpl extends ServicePlusImpl<GRegulatorBoxMappe
|
|
igRegulatorBoxProcessService.remove(new QueryWrapper<GRegulatorBoxProcess>().in("emr_id", ids));
|
|
igRegulatorBoxProcessService.remove(new QueryWrapper<GRegulatorBoxProcess>().in("emr_id", ids));
|
|
return removeByIds(ids);
|
|
return removeByIds(ids);
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|