|
|
|
@ -4,10 +4,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.zdxt.auth.dto.DictDataBean; |
|
|
|
import com.zdxt.auth.feign.DictDataApi; |
|
|
|
import com.zdxt.auth.feign.ZdxtFileCommonApi; |
|
|
|
import com.zdxt.code.domain.EnforcementRegistration; |
|
|
|
import com.zdxt.code.domain.EnterpriseComplaint; |
|
|
|
import com.zdxt.code.domain.EnterpriseLawEnforcement; |
|
|
|
import com.zdxt.code.domain.MssqAddOrder; |
|
|
|
import com.zdxt.code.domain.*; |
|
|
|
import com.zdxt.code.service.IEnforcementRegistrationService; |
|
|
|
import com.zdxt.code.service.IEnterpriseComplaintService; |
|
|
|
import com.zdxt.code.service.IEnterpriseLawEnforcementService; |
|
|
|
@ -154,42 +151,55 @@ public class AppEnterpriseComplaintController extends BaseController { |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> resMap = new HashMap<>(); |
|
|
|
if (StringUtils.isNotEmpty(enterpriseComplaint.getProWoCode())) { |
|
|
|
MssqAddOrder mparams = new MssqAddOrder(); |
|
|
|
mparams.setProWoCode(enterpriseComplaint.getProWoCode()); |
|
|
|
String resStr = null; |
|
|
|
try { |
|
|
|
resStr = mssqApiService.mssqQueryEndInfo(mparams); |
|
|
|
JSONObject resObj = JSONObject.parseObject(resStr); |
|
|
|
if ("0".equals(resObj.getString("resultCode"))) { |
|
|
|
// 再判断是否超过5天 (超过5天也不让评价)
|
|
|
|
JSONObject endData = resObj.getJSONObject("endData"); |
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
Date date = format.parse(endData.getString("endTime")); |
|
|
|
Instant instant = date.toInstant(); |
|
|
|
ZoneId zoneId = ZoneId.systemDefault(); |
|
|
|
LocalDate calDate = instant.atZone(zoneId).toLocalDate(); |
|
|
|
long daysBetween = ChronoUnit.DAYS.between(calDate, LocalDate.now()); |
|
|
|
if (daysBetween <= 4) { |
|
|
|
resMap.put("res", endData); |
|
|
|
} else { |
|
|
|
resMap.put("res", "0"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
resMap.put("res", "0"); |
|
|
|
} |
|
|
|
enterpriseComplaint.setParams(resMap); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
resMap.put("res", "0"); |
|
|
|
} |
|
|
|
} |
|
|
|
//TODO 客户要求删除投诉的评价入口 2024年8月27日20:41:36
|
|
|
|
// if (StringUtils.isNotEmpty(enterpriseComplaint.getProWoCode())) {
|
|
|
|
// MssqAddOrder mparams = new MssqAddOrder();
|
|
|
|
// mparams.setProWoCode(enterpriseComplaint.getProWoCode());
|
|
|
|
// String resStr = null;
|
|
|
|
// try {
|
|
|
|
// resStr = mssqApiService.mssqQueryEndInfo(mparams);
|
|
|
|
// JSONObject resObj = JSONObject.parseObject(resStr);
|
|
|
|
// if ("0".equals(resObj.getString("resultCode"))) {
|
|
|
|
// // 再判断是否超过5天 (超过5天也不让评价)
|
|
|
|
// JSONObject endData = resObj.getJSONObject("endData");
|
|
|
|
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
// Date date = format.parse(endData.getString("endTime"));
|
|
|
|
// Instant instant = date.toInstant();
|
|
|
|
// ZoneId zoneId = ZoneId.systemDefault();
|
|
|
|
// LocalDate calDate = instant.atZone(zoneId).toLocalDate();
|
|
|
|
// long daysBetween = ChronoUnit.DAYS.between(calDate, LocalDate.now());
|
|
|
|
// if (daysBetween <= 4) {
|
|
|
|
// resMap.put("res", endData);
|
|
|
|
// } else {
|
|
|
|
// resMap.put("res", "0");
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// resMap.put("res", "0");
|
|
|
|
// }
|
|
|
|
// enterpriseComplaint.setParams(resMap);
|
|
|
|
// } catch (Exception e) {
|
|
|
|
// e.printStackTrace();
|
|
|
|
// resMap.put("res", "0");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// 获取图片
|
|
|
|
List<ZdxtFileCommon> files = zdxtFileCommonApi.selectZdxtFileById(id); |
|
|
|
resMap.put("file", files); |
|
|
|
return ZDResponse.success("投诉详情查询", enterpriseComplaint); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询在线投诉详情 |
|
|
|
*/ |
|
|
|
@GetMapping("/queryProcessById") |
|
|
|
@ResponseBody |
|
|
|
public ZDResponse queryProcessById(String id) { |
|
|
|
|
|
|
|
List<MssqOrderFlow> mssqOrderFlows = |
|
|
|
enterpriseComplaintService.selectEnterpriseComplaintProcess(id); |
|
|
|
return ZDResponse.success("投诉进度查询", mssqOrderFlows); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除企业执法-在线投诉 |
|
|
|
*/ |
|
|
|
|