Commit 3ee0181d authored by chenzhao's avatar chenzhao

Merge branch 'develop_dl_plan6_temp' of…

Merge branch 'develop_dl_plan6_temp' of http://39.98.45.134:8090/moa/amos-boot-biz into develop_dl_plan6_temp
parents a13e212c 110f6e66
...@@ -253,7 +253,7 @@ public class OrgPersonController extends BaseController { ...@@ -253,7 +253,7 @@ public class OrgPersonController extends BaseController {
Map<String, Object> req = new HashMap<>(); Map<String, Object> req = new HashMap<>();
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
String bizOrgCode = reginParams.getPersonIdentity().getCompanyBizOrgCode(); String bizOrgCode = reginParams.getPersonIdentity().getCompanyBizOrgCode();
req.put("bizOrgCode", bizOrgCode); req.put("OrgCode", bizOrgCode);
// if(redisUtils.get("userList:" + bizOrgCode) != null){ // if(redisUtils.get("userList:" + bizOrgCode) != null){
// return ResponseHelper.buildResponse(redisUtils.get("userList:" + bizOrgCode)); // return ResponseHelper.buildResponse(redisUtils.get("userList:" + bizOrgCode));
// } // }
......
...@@ -676,7 +676,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp ...@@ -676,7 +676,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
} }
public IPage<Map<String, Object>> listAllByCurrentUser(String pageNum, String pageSize, Map<String, Object> req) { public IPage<Map<String, Object>> listAllByCurrentUser(String pageNum, String pageSize, Map<String, Object> req) {
String bizOrgCode = req.get("bizOrgCode").toString();
IPage<Map<String, Object>> pageBean = null; IPage<Map<String, Object>> pageBean = null;
if (StringUtils.isBlank(pageNum) || StringUtils.isBlank(pageSize)) { if (StringUtils.isBlank(pageNum) || StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE); pageBean = new Page<>(0, Long.MAX_VALUE);
...@@ -3173,7 +3173,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp ...@@ -3173,7 +3173,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
dynamicFormInstance.setFieldValueLabel(dataDictionaryService.getById(dynamicFormInstance.getFieldValue()).getName()); dynamicFormInstance.setFieldValueLabel(dataDictionaryService.getById(dynamicFormInstance.getFieldValue()).getName());
} }
if ("positionType".equals(dynamicFormInstance.getFieldCode()) && peopleInfoDto.getFirefighters().getJobTitleCode() != null){ if ("positionType".equals(dynamicFormInstance.getFieldCode()) && peopleInfoDto.getFirefighters().getJobTitleCode() != null){
dynamicFormInstance.setFieldValueLabel(dataDictionaryService.getById(peopleInfoDto.getFirefighters().getJobTitleCode()).getName()); dynamicFormInstance.setFieldValueLabel(peopleInfoDto.getFirefighters().getJobTitle());
} }
if ("administrativePositionCode".equals(dynamicFormInstance.getFieldCode()) && firefightersPost.getAdministrativePositionCode() != null){ if ("administrativePositionCode".equals(dynamicFormInstance.getFieldCode()) && firefightersPost.getAdministrativePositionCode() != null){
dynamicFormInstance.setFieldValueLabel(dataDictionaryService.getById(map1.get("administrativePositionCode").toString()).getName()); dynamicFormInstance.setFieldValueLabel(dataDictionaryService.getById(map1.get("administrativePositionCode").toString()).getName());
......
...@@ -380,7 +380,10 @@ public class EquipmentSpecificController extends AbstractBaseController { ...@@ -380,7 +380,10 @@ public class EquipmentSpecificController extends AbstractBaseController {
@GetMapping(value = "/getListByEquipmentCode/{code}") @GetMapping(value = "/getListByEquipmentCode/{code}")
@ApiOperation(httpMethod = "GET", value = "根据装备分类code获取装备list", notes = "根据装备分类code获取装备list") @ApiOperation(httpMethod = "GET", value = "根据装备分类code获取装备list", notes = "根据装备分类code获取装备list")
public List<Map<String, Object>> getListByEquipmentCode( @PathVariable String code){ public List<Map<String, Object>> getListByEquipmentCode( @PathVariable String code){
return equipmentSpecificSerivce.getListByEquipmentCode(code); ReginParams ReginParams=getSelectedOrgInfo();
String bizCode= ReginParams.getPersonIdentity().getCompanyBizOrgCode();
return equipmentSpecificSerivce.getListByEquipmentCode(code,bizCode);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
......
...@@ -229,7 +229,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> { ...@@ -229,7 +229,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List<Map<String, Object>> getFireMonitorInfo(@Param("equipmentId") Long fireEquipmentId, @Param("list") String[] strings); List<Map<String, Object>> getFireMonitorInfo(@Param("equipmentId") Long fireEquipmentId, @Param("list") String[] strings);
List<Map<String, Object>> getFirePumpInfo(@Param("list") String[] strings); List<Map<String, Object>> getFirePumpInfo(@Param("list") String[] strings,@Param("bizOrgCode") String bizOrgCode);
List<Map<String, Object>> getFirePumpInfoEQ(@Param("list") String[] strings,@Param("bizOrgCode") String bizOrgCode); List<Map<String, Object>> getFirePumpInfoEQ(@Param("list") String[] strings,@Param("bizOrgCode") String bizOrgCode);
......
...@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> { ...@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
* @param code 装备分类逗号隔开 * @param code 装备分类逗号隔开
* @return 装备list * @return 装备list
*/ */
List<Map<String, Object>> getListByEquipmentCode(String code); List<Map<String, Object>> getListByEquipmentCode(String code,String bizOrgCode);
List<Map<String, Object>> getFirePumpInfoEQ(String code,String bizOrgCode); List<Map<String, Object>> getFirePumpInfoEQ(String code,String bizOrgCode);
/** /**
* 根据装备id获取物联日志 * 根据装备id获取物联日志
......
...@@ -58,7 +58,7 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi ...@@ -58,7 +58,7 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
@Override @Override
public List<Map<String, Object>> getFirePumpInfo() { public List<Map<String, Object>> getFirePumpInfo() {
String[] strings = pumpCodes.split(","); String[] strings = pumpCodes.split(",");
List<Map<String, Object>> list = equipmentSpecificMapper.getFirePumpInfo(strings); List<Map<String, Object>> list = equipmentSpecificMapper.getFirePumpInfo(strings,null);
return Optional.ofNullable(list).orElse(Lists.newArrayList()); return Optional.ofNullable(list).orElse(Lists.newArrayList());
} }
......
...@@ -1831,11 +1831,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM ...@@ -1831,11 +1831,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
} }
@Override @Override
public List<Map<String, Object>> getListByEquipmentCode(String code) { public List<Map<String, Object>> getListByEquipmentCode(String code,String bizOrgCode) {
List<Map<String, Object>> list = new ArrayList<>(); List<Map<String, Object>> list = new ArrayList<>();
if (StringUtil.isNotEmpty(code)) { if (StringUtil.isNotEmpty(code)) {
String[] strings = code.split(","); String[] strings = code.split(",");
list = equipmentSpecificMapper.getFirePumpInfo(strings); list = equipmentSpecificMapper.getFirePumpInfo(strings,bizOrgCode);
} }
return list; return list;
} }
......
...@@ -440,34 +440,34 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements ...@@ -440,34 +440,34 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
//字段长度效验 //字段长度效验
if (!ValidationUtil.isEmpty(x.getName())&&x.getName().length()>100) { if (!ValidationUtil.isEmpty(x.getName())&&x.getName().length()>100) {
throw new RuntimeException("错误行" + rowNum + ":名字过长"); throw new RuntimeException("错误行" + rowNum + ":名字不能大于100");
} }
if (!ValidationUtil.isEmpty(x.getCode())&&x.getCode().length()>100) { if (!ValidationUtil.isEmpty(x.getCode())&&x.getCode().length()>100) {
throw new RuntimeException("错误行" + rowNum + ":编号过长"); throw new RuntimeException("错误行" + rowNum + ":编号不能大于100");
} }
if (!ValidationUtil.isEmpty(x.getUrl())&&x.getUrl().length()>255) { if (!ValidationUtil.isEmpty(x.getUrl())&&x.getUrl().length()>255) {
throw new RuntimeException("错误行" + rowNum + ":视频地址过长"); throw new RuntimeException("错误行" + rowNum + ":视频地址过长");
} }
if (!ValidationUtil.isEmpty(x.getToken())&&x.getToken().length()>255) { if (!ValidationUtil.isEmpty(x.getToken())&&x.getToken().length()>255) {
throw new RuntimeException("错误行" + rowNum + ":token过长"); throw new RuntimeException("错误行" + rowNum + ":token不能大于255");
} }
if (!ValidationUtil.isEmpty(x.getBizOrgCode())&&x.getBizOrgCode().length()>64) { if (!ValidationUtil.isEmpty(x.getBizOrgCode())&&x.getBizOrgCode().length()>64) {
throw new RuntimeException("错误行" + rowNum + ":机构编码过长"); throw new RuntimeException("错误行" + rowNum + ":机构编码不能大于64");
} }
if (!ValidationUtil.isEmpty(x.getBizOrgName())&&x.getBizOrgName().length()>128) { if (!ValidationUtil.isEmpty(x.getBizOrgName())&&x.getBizOrgName().length()>128) {
throw new RuntimeException("错误行" + rowNum + ":机构名称过长"); throw new RuntimeException("错误行" + rowNum + ":机构名称不能大于128");
} }
if (!ValidationUtil.isEmpty(x.getAddress())&&x.getAddress().length()>2000) { if (!ValidationUtil.isEmpty(x.getAddress())&&x.getAddress().length()>2000) {
throw new RuntimeException("错误行" + rowNum + ":地址过长"); throw new RuntimeException("错误行" + rowNum + ":地址不能大于2000");
} }
if (ValidationUtil.isEmpty(x.getRemark())&&x.getRemark().length()>255) { if (ValidationUtil.isEmpty(x.getRemark())&&x.getRemark().length()>255) {
throw new RuntimeException("错误行" + rowNum + ":备注过长"); throw new RuntimeException("错误行" + rowNum + ":备注不能大于255");
} }
if (!ValidationUtil.isEmpty(x.getImg())&&x.getImg().length()>100) { if (!ValidationUtil.isEmpty(x.getImg())&&x.getImg().length()>100) {
throw new RuntimeException("错误行" + rowNum + ":备注过长"); throw new RuntimeException("错误行" + rowNum + ":备注不能大于100");
} }
// if (!urlPattern.matcher(x.getUrl().trim()).matches()) { // if (!urlPattern.matcher(x.getUrl().trim()).matches()) {
......
...@@ -1706,6 +1706,9 @@ ...@@ -1706,6 +1706,9 @@
wes.equipment_code LIKE <![CDATA[CONCAT(#{item},'%')]]> wes.equipment_code LIKE <![CDATA[CONCAT(#{item},'%')]]>
</foreach> </foreach>
</if> </if>
<if test="bizOrgCode != null and bizOrgCode != ''">
and wes.biz_org_code LIKE concat(#{bizOrgCode}, '%')
</if>
</where> </where>
ORDER BY realtiemIotIndexUpdateDate DESC ORDER BY realtiemIotIndexUpdateDate DESC
</select> </select>
......
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