Commit a2235aa8 authored by tianyiming's avatar tianyiming

企业管理相关问题修改

parent f0eabeac
......@@ -180,5 +180,5 @@ public class TzBaseEnterpriseInfo extends BaseEntity {
private String qrCode;
@ApiModelProperty(value = "行业主管部门")
private String industrySupervisor;
private Long industrySupervisor;
}
......@@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.util.PageObjectUtil;
import com.yeejoin.amos.boot.biz.common.entity.DataDictionary;
import com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl;
import com.yeejoin.amos.boot.biz.common.utils.DateUtils;
......@@ -439,31 +438,31 @@ public class TzBaseEnterpriseInfoServiceImpl
tzBaseEnterpriseInfo.setEquipCategory(JSON.toJSONString(map.get("equipCategory")));
Map<String, String> map1 = (Map<String, String>) map.get("longitudeLatitude");
tzBaseEnterpriseInfo.setAddress(map1.get("address"));
tzBaseEnterpriseInfo.setLongitude(ObjectUtils.isEmpty(map1.get("longitude")) ? map1.get("longitude") : null);
tzBaseEnterpriseInfo.setLatitude(ObjectUtils.isEmpty(map1.get("latitude")) ? map1.get("latitude") : null);
tzBaseEnterpriseInfo.setUseContact(String.valueOf(map.get("useContact")));
tzBaseEnterpriseInfo.setContactPhone(String.valueOf(map.get("contactPhone")));
tzBaseEnterpriseInfo.setUnitBusinessLicense(JSON.toJSONString(map.get("unitBusinessLicense")));
tzBaseEnterpriseInfo.setUnitExequatur(JSON.toJSONString(map.get("unitExequatur")));
tzBaseEnterpriseInfo.setIndustrySupervisor(JSON.toJSONString(map.get("industrySupervisor")));
tzBaseEnterpriseInfo.setSafetyOne(String.valueOf(map.get("safetyOne")));
tzBaseEnterpriseInfo.setSafetyOneId(String.valueOf(map.get("safetyOneId")));
tzBaseEnterpriseInfo.setSafetyOnePhone(String.valueOf(map.get("safetyOnePhone")));
tzBaseEnterpriseInfo.setSafetyOnePhoto(JSON.toJSONString(map.get("safetyOnePhoto")));
tzBaseEnterpriseInfo.setSafetyTwo(String.valueOf(map.get("safetyTwo")));
tzBaseEnterpriseInfo.setSafetyTwoId(String.valueOf(map.get("safetyTwoId")));
tzBaseEnterpriseInfo.setSafetyTwoPhone(String.valueOf(map.get("safetyTwoPhone")));
tzBaseEnterpriseInfo.setSafetyTwoPhoto(JSON.toJSONString(map.get("safetyTwoPhoto")));
tzBaseEnterpriseInfo.setMaintenPerson(String.valueOf(map.get("maintenPerson")));
tzBaseEnterpriseInfo.setMaintenTelephone(String.valueOf(map.get("maintenTelephone")));
tzBaseEnterpriseInfo.setQualityPerson(String.valueOf(map.get("qualityPerson")));
tzBaseEnterpriseInfo.setQualityTelephone(String.valueOf(map.get("qualityTelephone")));
tzBaseEnterpriseInfo.setSqa(String.valueOf(map.get("sqa")));
tzBaseEnterpriseInfo.setSqaPhone(String.valueOf(map.get("sqaPhone")));
tzBaseEnterpriseInfo.setTechnicalPerson(String.valueOf(map.get("technicalPerson")));
tzBaseEnterpriseInfo.setAddress(ObjectUtils.isEmpty(map1.get("address")) ? null : map1.get("address"));
tzBaseEnterpriseInfo.setLongitude(ObjectUtils.isEmpty(map1.get("longitude")) ? null : String.valueOf(map1.get("longitude")));
tzBaseEnterpriseInfo.setLatitude(ObjectUtils.isEmpty(map1.get("latitude")) ? null : String.valueOf(map1.get("latitude")));
tzBaseEnterpriseInfo.setUseContact(ObjectUtils.isEmpty(map.get("useContact")) ? null : String.valueOf(map.get("useContact")));
tzBaseEnterpriseInfo.setContactPhone(ObjectUtils.isEmpty(map.get("contactPhone")) ? null : String.valueOf(map.get("contactPhone")));
tzBaseEnterpriseInfo.setUnitBusinessLicense(ObjectUtils.isEmpty(map.get("unitBusinessLicense")) ? null : JSON.toJSONString(map.get("unitBusinessLicense")));
tzBaseEnterpriseInfo.setUnitExequatur(ObjectUtils.isEmpty(map.get("unitExequatur")) ? null : JSON.toJSONString(map.get("unitExequatur")));
tzBaseEnterpriseInfo.setIndustrySupervisor(ObjectUtils.isEmpty(map.get("industrySupervisor")) ? null : Long.valueOf(map.get("industrySupervisor").toString()));
tzBaseEnterpriseInfo.setSafetyOne(ObjectUtils.isEmpty(map.get("safetyOne")) ? null : String.valueOf(map.get("safetyOne")));
tzBaseEnterpriseInfo.setSafetyOneId(ObjectUtils.isEmpty(map.get("safetyOneId")) ? null : String.valueOf(map.get("safetyOneId")));
tzBaseEnterpriseInfo.setSafetyOnePhone(ObjectUtils.isEmpty(map.get("safetyOnePhone")) ? null : String.valueOf(map.get("safetyOnePhone")));
tzBaseEnterpriseInfo.setSafetyOnePhoto(ObjectUtils.isEmpty(map.get("safetyOnePhoto")) ? null : JSON.toJSONString(map.get("safetyOnePhoto")));
tzBaseEnterpriseInfo.setSafetyTwo(ObjectUtils.isEmpty(map.get("safetyTwo")) ? null : String.valueOf(map.get("safetyTwo")));
tzBaseEnterpriseInfo.setSafetyTwoId(ObjectUtils.isEmpty(map.get("safetyTwoId")) ? null : String.valueOf(map.get("safetyTwoId")));
tzBaseEnterpriseInfo.setSafetyTwoPhone(ObjectUtils.isEmpty(map.get("safetyTwoPhone")) ? null : String.valueOf(map.get("safetyTwoPhone")));
tzBaseEnterpriseInfo.setSafetyTwoPhoto(ObjectUtils.isEmpty(map.get("safetyTwoPhoto")) ? null : JSON.toJSONString(map.get("safetyTwoPhoto")));
tzBaseEnterpriseInfo.setMaintenPerson(ObjectUtils.isEmpty(map.get("maintenPerson")) ? null : String.valueOf(map.get("maintenPerson")));
tzBaseEnterpriseInfo.setMaintenTelephone(ObjectUtils.isEmpty(map.get("maintenTelephone")) ? null : String.valueOf(map.get("maintenTelephone")));
tzBaseEnterpriseInfo.setQualityPerson(ObjectUtils.isEmpty(map.get("qualityPerson")) ? null : String.valueOf(map.get("qualityPerson")));
tzBaseEnterpriseInfo.setQualityTelephone(ObjectUtils.isEmpty(map.get("qualityTelephone")) ? null : String.valueOf(map.get("qualityTelephone")));
tzBaseEnterpriseInfo.setSqa(ObjectUtils.isEmpty(map.get("sqa")) ? null : String.valueOf(map.get("sqa")));
tzBaseEnterpriseInfo.setSqaPhone(ObjectUtils.isEmpty(map.get("sqaPhone")) ? null : String.valueOf(map.get("sqaPhone")));
tzBaseEnterpriseInfo.setTechnicalPerson(ObjectUtils.isEmpty(map.get("technicalPerson")) ? null : String.valueOf(map.get("technicalPerson")));
boolean b = tzBaseEnterpriseInfoService.updateById(tzBaseEnterpriseInfo);
if (b) {
......
......@@ -269,8 +269,10 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
baseEnterpriseInfo.setUnitType(StringUtils.join(regUnitInfo.getUnitTypeList(), "#"));
baseEnterpriseInfo.setUseCode(regUnitInfo.getUnitCode());
TzBaseEnterpriseInfo useCodeResult = tzBaseEnterpriseInfoMapper.selectOne(new QueryWrapper<TzBaseEnterpriseInfo>().eq("use_code", regUnitInfo.getUnitCode()));
if(!ObjectUtils.isEmpty(useCodeResult) && ObjectUtils.isEmpty(useCodeResult.getQrCode())){
if (ObjectUtils.isEmpty(useCodeResult)) {
baseEnterpriseInfo.setQrCode(createQRCode(regUnitInfo.getUnitCode()));
} else {
baseEnterpriseInfo.setQrCode(ObjectUtils.isEmpty(useCodeResult.getQrCode()) ? createQRCode(regUnitInfo.getUnitCode()) : useCodeResult.getQrCode());
}
baseEnterpriseInfo.setUseUnit(regUnitInfo.getName());
baseEnterpriseInfo.setProvince(regUnitInfo.getProvince());
......
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