Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
3cc9c84d5e
|
|
@ -228,5 +228,8 @@ public class BmCompanyInfo implements Serializable {
|
||||||
@ApiModelProperty(value = "法人身份证国徽面", required = true)
|
@ApiModelProperty(value = "法人身份证国徽面", required = true)
|
||||||
private String legalNationUrl;
|
private String legalNationUrl;
|
||||||
|
|
||||||
|
//用户名
|
||||||
|
private String userName;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -89,7 +89,12 @@ public class BmCompanyInfoServiceImpl implements BmCompanyInfoService {
|
||||||
@Override
|
@Override
|
||||||
public List<BmCompanyInfo> selectList(BmCompanyDto bmCompanyDto) {
|
public List<BmCompanyInfo> selectList(BmCompanyDto bmCompanyDto) {
|
||||||
|
|
||||||
return bmCompanyInfoMapper.selectList(bmCompanyDto);
|
List<BmCompanyInfo> bmCompanyInfos = bmCompanyInfoMapper.selectList(bmCompanyDto);
|
||||||
|
for (BmCompanyInfo bmCompanyInfo : bmCompanyInfos) {
|
||||||
|
SysUser data = remoteUserService.selectUserById(bmCompanyInfo.getAuditor().longValue()).getData();
|
||||||
|
bmCompanyInfo.setUserName(data.getUserName());
|
||||||
|
}
|
||||||
|
return bmCompanyInfos;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -84,4 +84,5 @@ public interface DevInfoMapper
|
||||||
int insertLon(InforMationDto inforMationDto);
|
int insertLon(InforMationDto inforMationDto);
|
||||||
|
|
||||||
public List<SysDic> getSysDic();
|
public List<SysDic> getSysDic();
|
||||||
|
public SysDic getSysDicById(Integer id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@ import com.bonus.zlpt.equip.service.IDevInfoService;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import static com.bonus.zlpt.common.core.web.domain.AjaxResult.error;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备信息Service业务层处理
|
* 设备信息Service业务层处理
|
||||||
*
|
*
|
||||||
|
|
@ -47,28 +49,34 @@ public class DevInfoServiceImpl implements IDevInfoService
|
||||||
public DevInfoVo selectDevInfoByMaId(Long maId)
|
public DevInfoVo selectDevInfoByMaId(Long maId)
|
||||||
{
|
{
|
||||||
DevInfoVo devInfoVo = devInfoMapper.selectDevInfoByMaId(maId);
|
DevInfoVo devInfoVo = devInfoMapper.selectDevInfoByMaId(maId);
|
||||||
List<SysFile> files = devInfoMapper.getFilesByMaId(maId);
|
try {
|
||||||
if (!CollectionUtils.isEmpty(files) && files.get(0) != null) {
|
List<SysFile> files = devInfoMapper.getFilesByMaId(maId);
|
||||||
List<String> picList = new ArrayList();
|
if (!CollectionUtils.isEmpty(files) && files.get(0) != null) {
|
||||||
for (SysFile file : files) {
|
List<String> picList = new ArrayList();
|
||||||
if (file.getDicId() == ASPECT_PICTURE) {
|
for (SysFile file : files) {
|
||||||
picList.add(file.getUrl());
|
if (file.getDicId() == ASPECT_PICTURE) {
|
||||||
|
picList.add(file.getUrl());
|
||||||
|
}
|
||||||
|
if (file.getDicId() == EXAMINATION_PDF) {
|
||||||
|
devInfoVo.setExaminationPdf(file.getUrl());
|
||||||
|
}
|
||||||
|
if (file.getDicId() == INSURANCE_PDF) {
|
||||||
|
devInfoVo.setInsurancePdf(file.getUrl());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (file.getDicId() == EXAMINATION_PDF) {
|
String[] pictureArray = null;
|
||||||
devInfoVo.setExaminationPdf(file.getUrl());
|
if (!CollectionUtils.isEmpty(picList)) {
|
||||||
}
|
pictureArray = picList.toArray(new String[picList.size()]);
|
||||||
if (file.getDicId() == INSURANCE_PDF) {
|
|
||||||
devInfoVo.setInsurancePdf(file.getUrl());
|
|
||||||
}
|
}
|
||||||
|
devInfoVo.setPictures(pictureArray);
|
||||||
}
|
}
|
||||||
String[] pictureArray = null;
|
Long companyUpNum = devInfoMapper.getCompanyUpNum(devInfoVo.getOwnCo());
|
||||||
if (!CollectionUtils.isEmpty(picList)) {
|
devInfoVo.setCompanyUpNum(companyUpNum);
|
||||||
pictureArray = picList.toArray(new String[picList.size()]);
|
SysDic sysDic = devInfoMapper.getSysDicById(Integer.parseInt(devInfoVo.getMaStatus()));
|
||||||
}
|
devInfoVo.setMaStatusStr(sysDic.getName());
|
||||||
devInfoVo.setPictures(pictureArray);
|
} catch (Exception e) {
|
||||||
|
error("fail to get devInfo for files or companyUpNum or maStatusStr" + maId);
|
||||||
}
|
}
|
||||||
Long companyUpNum = devInfoMapper.getCompanyUpNum(devInfoVo.getOwnCo());
|
|
||||||
devInfoVo.setCompanyUpNum(companyUpNum);
|
|
||||||
return devInfoVo;
|
return devInfoVo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -348,4 +348,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
id,p_id,code,`name`,description,`value`,sort,`level`,status,create_time,creator
|
id,p_id,code,`name`,description,`value`,sort,`level`,status,create_time,creator
|
||||||
from sys_dic
|
from sys_dic
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getSysDicById" resultType="com.bonus.zlpt.system.api.domain.SysDic">
|
||||||
|
select
|
||||||
|
id,p_id,code,`name`,description,`value`,sort,`level`,status,create_time,creator
|
||||||
|
from sys_dic
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
@ -11,8 +11,10 @@ import lombok.Data;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -26,24 +28,29 @@ import java.util.Map;
|
||||||
@Data
|
@Data
|
||||||
@Component
|
@Component
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@ConfigurationProperties("tencent.sms")
|
||||||
public class SmsComponent {
|
public class SmsComponent {
|
||||||
|
|
||||||
@Value("${tencent.sms.smsSdkAppId}") // 注入参数值
|
// @Value("tencent.sms.sdkAppId")
|
||||||
private String sdkAppId;
|
private String sdkAppId;
|
||||||
|
|
||||||
@Value("${tencent.sms.secretId}")
|
// @Value("tencent.sms.secretId")
|
||||||
private String secretId;
|
private String secretId;
|
||||||
|
|
||||||
@Value("${tencent.sms.keysecret}")
|
// @Value("tencent.sms.secretKey")
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
@Value("${tencent.sms.signName}")
|
// @Value("tencent.sms.signName")
|
||||||
private String signName;
|
private String signName;
|
||||||
|
|
||||||
@Value("${tencent.sms.templateId}")
|
// @Value("tencent.sms.templateCodeId")
|
||||||
|
private String templateCodeId;
|
||||||
|
|
||||||
|
// @Value("tencent.sms.templateCodeIds")
|
||||||
private Map<Integer,String> templateCodeIds;
|
private Map<Integer,String> templateCodeIds;
|
||||||
|
|
||||||
@Value("${tencent.sms.timeout}")
|
|
||||||
|
// @Value("tencent.sms.timeout")
|
||||||
private Integer timeout;
|
private Integer timeout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@ tencent:
|
||||||
# 短信应用ID
|
# 短信应用ID
|
||||||
smsSdkAppId: 1400874270
|
smsSdkAppId: 1400874270
|
||||||
# 短信签名内容
|
# 短信签名内容
|
||||||
signName: 作业智慧管控系统小程序
|
signName: 南网机具租赁共享平台
|
||||||
# 正文模板ID
|
# 正文模板ID
|
||||||
templateCodeIds:
|
templateCodeIds:
|
||||||
1: 2014173
|
1: 2014506
|
||||||
2: 2014506
|
2: 2014173
|
||||||
# 超时时间
|
# 超时时间
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
|
|
||||||
|
|
@ -35,19 +35,19 @@ spring:
|
||||||
name: zlpt-system
|
name: zlpt-system
|
||||||
profiles:
|
profiles:
|
||||||
# 环境配置
|
# 环境配置
|
||||||
active: zlpt_cloud_dev
|
active: zlpt_cloud_de
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
username: nacos
|
# username: nacos
|
||||||
password: Bonus@admin123!
|
# password: Bonus@admin123!
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 192.168.1.3:8848
|
server-addr: 10.40.92.74:8848
|
||||||
namespace: zlpt_cloud_dev
|
namespace: zlpt_cloud_de
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 192.168.1.3:8848
|
server-addr: 10.40.92.74:8848
|
||||||
namespace: zlpt_cloud_dev
|
namespace: zlpt_cloud_de
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue