Commit 095c414d authored by suhuiguang's avatar suhuiguang

1.增加企业负责人信息-tzs

parent 52ac1bea
...@@ -137,4 +137,10 @@ public class CylinderInfoDto extends BaseDto { ...@@ -137,4 +137,10 @@ public class CylinderInfoDto extends BaseDto {
@ApiModelProperty(value = "联系电话") @ApiModelProperty(value = "联系电话")
private String contactPhone; private String contactPhone;
@ApiModelProperty(value = "企业负责人手机")
private String personMobilePhone;
@ApiModelProperty(value = "企业负责人")
private String unitPerson;
} }
...@@ -94,10 +94,13 @@ ...@@ -94,10 +94,13 @@
eu.address, eu.address,
eu.custom_name, eu.custom_name,
eu.custom_type, eu.custom_type,
eu.contact_phone eu.contact_phone,
cu.person_mobile_phone,
cu.unit_person
from from
tz_cylinder_info ci tz_cylinder_info ci
left join tz_end_user eu on ci.end_custom_code = eu.custom_code left join tz_end_user eu on ci.end_custom_code = eu.custom_code
left join tz_cylinder_unit cu on cu.app_id = ci.app_id
where where
ci.sequence_code = #{sequenceCode} ci.sequence_code = #{sequenceCode}
</select> </select>
......
...@@ -19,6 +19,7 @@ import com.yeejoin.amos.feign.systemctl.model.RegionModel; ...@@ -19,6 +19,7 @@ import com.yeejoin.amos.feign.systemctl.model.RegionModel;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -628,11 +629,13 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind ...@@ -628,11 +629,13 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
cylWarningMsgDto.setUserPeoplePhone(cylinderInfoDto.getContactPhone()); cylWarningMsgDto.setUserPeoplePhone(cylinderInfoDto.getContactPhone());
cylWarningMsgDto.setCylSeq(cylinderInfoDto.getSequenceCode()); cylWarningMsgDto.setCylSeq(cylinderInfoDto.getSequenceCode());
cylWarningMsgDto.setCompanyName(cylinderInfoDto.getUnitName()); cylWarningMsgDto.setCompanyName(cylinderInfoDto.getUnitName());
cylWarningMsgDto.setPhone(cylinderInfoDto.getPersonMobilePhone());
cylWarningMsgDto.setPeople(cylinderInfoDto.getUnitPerson());
// 2.循环调用规则 触发计算等级及发送消息 // 2.循环调用规则 触发计算等级及发送消息
if (log.isInfoEnabled()) { if (log.isInfoEnabled()) {
log.info("调用规则对象!+:{}", JSON.toJSONString(cylWarningMsgDto)); log.info("调用规则对象!+:{}", JSON.toJSONString(cylWarningMsgDto));
} }
ruleTrigger.publish(cylWarningMsgDto, "气瓶监管", null); ruleTrigger.publish(cylWarningMsgDto, "气瓶监管/cylwarningmsg", null);
} catch (Exception e) { } catch (Exception e) {
log.error("调用规则失败!:{}", JSON.toJSONString(cylinderInfoDto)); log.error("调用规则失败!:{}", JSON.toJSONString(cylinderInfoDto));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment