|
@@ -9,7 +9,10 @@ import com.ruoyi.common.security.utils.SecurityUtils;
|
|
|
import com.ruoyi.system.api.domain.SysDept;
|
|
|
import com.ruoyi.system.api.domain.SysUser;
|
|
|
import com.ruoyi.system.api.model.LoginUser;
|
|
|
+import com.sooka.sponest.data.base.domain.BaseBusinessEntity;
|
|
|
+import com.sooka.sponest.data.base.service.impl.BaseServiceImpl;
|
|
|
import com.sooka.sponest.data.emergency.appmin.base.AppBaseService;
|
|
|
+import com.sooka.sponest.data.emergency.appmin.enterprise.domain.AppEnterpriseVO;
|
|
|
import com.sooka.sponest.data.emergency.appmin.util.ImageUtil;
|
|
|
import com.sooka.sponest.data.emergency.appmin.xunjian.domain.*;
|
|
|
import com.sooka.sponest.data.emergency.appmin.xunjian.mapper.AppXunjianMapper;
|
|
@@ -26,7 +29,7 @@ import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
|
|
|
@Service
|
|
|
-public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianService {
|
|
|
+public class AppXunjianServiceImpl extends BaseServiceImpl implements AppXunjianService {
|
|
|
@Resource
|
|
|
AppXunjianMapper appXunjianMapper;
|
|
|
@Resource
|
|
@@ -125,6 +128,7 @@ public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianS
|
|
|
|
|
|
@Override
|
|
|
public AjaxResult submitXunjian(AppXunjianVO vo) {
|
|
|
+ setSookaDataBase(vo);
|
|
|
Map result = new HashMap();
|
|
|
//是否有限期整改的
|
|
|
Boolean haveXQZG = false;//限期整改
|
|
@@ -236,7 +240,7 @@ public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianS
|
|
|
}
|
|
|
}
|
|
|
tBusLog.setBusEnterpriseId(vo.getBusEnterpriseId());
|
|
|
- TBusEnterprise enterprise = tBusEnterpriseMapper.selectTBusEnterpriseByBusEnterpriseId(vo.getBusEnterpriseId());
|
|
|
+ TBusEnterprise enterprise = tBusEnterpriseMapper.selectTBusEnterpriseByBusEnterpriseId(vo);
|
|
|
tBusLog.setBusEnterpriseName(enterprise.getBusinessName());
|
|
|
tBusLog.setLatitude(vo.getLatitude());
|
|
|
tBusLog.setLongitude(vo.getLongitude());
|
|
@@ -320,7 +324,7 @@ public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianS
|
|
|
ajaxResult.put("items_first", list);
|
|
|
|
|
|
|
|
|
- return ajaxResult;
|
|
|
+ return AjaxResult.success(ajaxResult);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return AjaxResult.error("错误");
|
|
@@ -413,9 +417,11 @@ public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianS
|
|
|
@Override
|
|
|
public AjaxResult saveZGTZS(AppZgtzsVO vo) {
|
|
|
try {
|
|
|
+ AppEnterpriseVO appEnterpriseVO = new AppEnterpriseVO();
|
|
|
+ setSookaDataBase(appEnterpriseVO);
|
|
|
+ appEnterpriseVO.setBusEnterpriseId(vo.getXqzgtzs().getEnterpriseId());
|
|
|
|
|
|
-
|
|
|
- TBusEnterprise enterprise = tBusEnterpriseMapper.selectTBusEnterpriseByBusEnterpriseId(vo.getXqzgtzs().getEnterpriseId());
|
|
|
+ TBusEnterprise enterprise = tBusEnterpriseMapper.selectTBusEnterpriseByBusEnterpriseId(appEnterpriseVO);
|
|
|
SysDept sysDept = remoteSystemBaseService.selectDeptById(enterprise.getDeptId()).getData();
|
|
|
|
|
|
//处理图片
|
|
@@ -472,14 +478,17 @@ public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianS
|
|
|
public AjaxResult saveFCTZS(AppFctzsVO vo) {
|
|
|
try {
|
|
|
String logId = vo.getTzsFcyjgzs().getLogId();
|
|
|
- TBusLog tBusLog = tBusLogMapper.selectTBusLogByBusLogId(logId);
|
|
|
-
|
|
|
+ TBusInspection tBusInspection = new TBusInspection();
|
|
|
+ setSookaDataBase(tBusInspection);
|
|
|
+ tBusInspection.setBusLogId(logId);
|
|
|
+ TBusLog tBusLog = tBusLogMapper.selectTBusLogByBusLogId(tBusInspection);
|
|
|
+ setSookaDataBase(tBusLog);
|
|
|
vo.getTzsFcyjgzs().setEnterpriseId(tBusLog.getBusEnterpriseId());
|
|
|
vo.getTzsFcyjgzs().setEnterpriseName(tBusLog.getBusEnterpriseName());
|
|
|
vo.getTzsFcyjgzs().setTzsId(UUID.fastUUID().toString());
|
|
|
vo.getTzsFcyjgzs().setCreateTime(new Date());
|
|
|
|
|
|
- TBusEnterprise enterprise = tBusEnterpriseMapper.selectTBusEnterpriseByBusEnterpriseId(tBusLog.getBusEnterpriseId()) ;
|
|
|
+ TBusEnterprise enterprise = tBusEnterpriseMapper.selectTBusEnterpriseByBusEnterpriseId(tBusLog) ;
|
|
|
SysDept sysDept = remoteSystemBaseService.selectDeptById(enterprise.getDeptId()).getData();
|
|
|
|
|
|
String pictureBasePath = remoteSystemBaseService.configKeyapp("pictureBasePath").get("code").toString();
|
|
@@ -518,7 +527,10 @@ public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianS
|
|
|
public AjaxResult getFCTZSdetail(AppFctzsVO vo) {
|
|
|
try {
|
|
|
Map map = new HashMap();
|
|
|
- TBusLog tBusLog = tBusLogMapper.selectTBusLogByBusLogId(vo.getLogId());
|
|
|
+ TBusInspection tBusInspection = new TBusInspection();
|
|
|
+ setSookaDataBase(tBusInspection);
|
|
|
+ tBusInspection.setBusLogId(vo.getLogId());
|
|
|
+ TBusLog tBusLog = tBusLogMapper.selectTBusLogByBusLogId(tBusInspection);
|
|
|
TTzsXhxqzggzs tTzsXhxqzggzs = new TTzsXhxqzggzs();
|
|
|
tTzsXhxqzggzs.setLogId(tBusLog.getBusLogId());
|
|
|
List<TTzsXhxqzggzs> tzs = tTzsXhxqzggzsMapper.selectTTzsXhxqzggzsList(tTzsXhxqzggzs);
|
|
@@ -579,7 +591,8 @@ public class AppXunjianServiceImpl extends AppBaseService implements AppXunjianS
|
|
|
TBusInspection tBusInspection = new TBusInspection();
|
|
|
tBusInspection.setBusInspectionId(inp.getBusInspectionId());
|
|
|
List<TBusInspection> log_list = tBusInspectionMapper.selectTBusInspectionList(tBusInspection);
|
|
|
- TBusLog tBusLog = tBusLogMapper.selectTBusLogByBusLogId(inp.getBusLogId());
|
|
|
+ setSookaDataBase(inp);
|
|
|
+ TBusLog tBusLog = tBusLogMapper.selectTBusLogByBusLogId(inp);
|
|
|
String y_risk_status = tBusLog.getRiskStatus();
|
|
|
for(TBusInspection i:log_list){
|
|
|
if(i.getRiskStatus().equals("risk_status_2")){
|