|
|
@@ -1,6 +1,7 @@
|
|
|
|
|
|
package platform.modules.company.service;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.aliyuncs.dysmsapi.model.v20170525.QuerySendDetailsResponse;
|
|
|
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
|
|
import com.aliyuncs.exceptions.ClientException;
|
|
|
@@ -22,6 +23,7 @@ import platform.common.exception.BaseException;
|
|
|
import platform.common.util.AlibabaSMSUtil;
|
|
|
import platform.common.util.DateUtil;
|
|
|
import platform.common.util.ShiroUtils;
|
|
|
+import platform.modules.api.dto.CompanyInfoDto;
|
|
|
import platform.modules.build.entity.BuildFloor;
|
|
|
import platform.modules.build.entity.Company;
|
|
|
import platform.modules.build.entity.CompanyContact;
|
|
|
@@ -44,7 +46,9 @@ import platform.modules.company.entity.StockLand;
|
|
|
import platform.modules.company.entity.StockLandOutPark;
|
|
|
import platform.modules.government.dao.AttachmentDao;
|
|
|
import platform.modules.government.entity.FileDown;
|
|
|
+import platform.modules.government.entity.Street;
|
|
|
import platform.modules.government.entity.User;
|
|
|
+import platform.modules.government.service.StreetService;
|
|
|
import platform.modules.government.service.UserService;
|
|
|
import platform.modules.home.request.FindRequest;
|
|
|
import platform.modules.sys.dao.UserGroupDao;
|
|
|
@@ -135,6 +139,9 @@ public class StockLandApproveService extends BaseService<StockLand> {
|
|
|
@Autowired
|
|
|
private StockLandOutParkService stockLandOutParkService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private StreetService streetService;
|
|
|
+
|
|
|
/**
|
|
|
* 审核列表数据
|
|
|
*
|
|
|
@@ -272,7 +279,7 @@ public class StockLandApproveService extends BaseService<StockLand> {
|
|
|
|
|
|
StockLand stockland = stockLandService.findLandApplyById(approval.getApply_id());
|
|
|
Company company = companyService.findCompanyInfo(stockland.getCompany_id());
|
|
|
- if(stockland.getContract_id()!=null){
|
|
|
+ if (stockland.getContract_id() != null) {
|
|
|
contractService.batchDeleteByContractId(stockland.getContract_id());
|
|
|
}
|
|
|
|
|
|
@@ -601,6 +608,34 @@ public class StockLandApproveService extends BaseService<StockLand> {
|
|
|
waitToDoService.newTODO("存量用地审核", "/areaManager/approval?id=" + apply.getId(), Constant.WaitToDo_OperType.AUDIT, apply.getId(),
|
|
|
Constant.DictionaryType.STOCKLAND, apply.getApply_no(), handler, Constant.WaitToDo_IsSerial.IS_SERIAL);
|
|
|
}
|
|
|
+
|
|
|
+ if (StringUtils.isNotBlank(nextChecker)) {
|
|
|
+ try {
|
|
|
+ StockLand stockLand = stockLandService.findById(apply.getId());
|
|
|
+ Integer userid = stockLand.getCreate_by();
|
|
|
+ CompanyInfoDto company = companyService.findByUserId(userid);
|
|
|
+ Street street = streetService.findById(ShiroUtils.getStreetId());
|
|
|
+
|
|
|
+ Map<String, String> params = new HashMap<>();
|
|
|
+ params.put("company_name", company.getCompany_name());
|
|
|
+ params.put("street_name", street.getName());
|
|
|
+
|
|
|
+ String tempCode = Constant.SMS_TemplateCode.STOCKLAND_LOCAL_AUDIT;
|
|
|
+
|
|
|
+ for (String checkerId : nextChecker.split(",")) {
|
|
|
+ User checker = userService.findById(Integer.valueOf(checkerId));
|
|
|
+ AlibabaSMSUtil.sendSMS(
|
|
|
+ checker.getPhone(),
|
|
|
+ tempCode,
|
|
|
+ Constant.SINGNAMW,
|
|
|
+ JSONObject.toJSONString(params)
|
|
|
+ );
|
|
|
+ }
|
|
|
+ } catch (ClientException | InterruptedException e) {
|
|
|
+// throw new BaseException("短信接口异常!发送短信失败!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/*String [] nextCheckerArr = nextChecker.split(",");
|
|
|
if(null != nextCheckerArr && nextCheckerArr.length > 0){
|
|
|
//“街道合规性审核小组”最后一个人审核
|