Merge remote-tracking branch 'origin/develop_master' into develop_1
# Conflicts: # adc-da-slrs/src/main/resources/mybatis/mapper/SarStandItems/SarStandItemsMapper.xml
This commit is contained in:
@@ -49,8 +49,10 @@ public class DataSyncController {
|
||||
//存放岗位信息
|
||||
Map<String, String> positionMap = new HashMap<>();
|
||||
Map<String, String> useDistinct = new HashMap<>();
|
||||
|
||||
IPage<TsPosition> iPage = tsPositionService.getPosition(new TsPosition());
|
||||
TsPosition position = new TsPosition();
|
||||
position.setCurrent(1);
|
||||
position.setPageSize(100000);
|
||||
IPage<TsPosition> iPage = tsPositionService.getPosition(position);
|
||||
List<TsPosition> positions=iPage.getRecords();
|
||||
if (!positions.isEmpty()) {
|
||||
positions.forEach(tsPosition -> {
|
||||
|
||||
@@ -54,7 +54,7 @@ public interface TsInstitutionDao extends BaseMapper<TsInstitution> {
|
||||
* 查询根机构
|
||||
* @return List<TsInstitution>
|
||||
*/
|
||||
@Select("select * from ts_institution where parent_id not in (select id from ts_institution)")
|
||||
@Select("select * from ts_institution where parent_id not in (select id from ts_institution) order by name")
|
||||
List<TsInstitution> selectRoot();
|
||||
|
||||
@Select("select * from ts_institution order by rand() limit 1")
|
||||
|
||||
@@ -53,4 +53,8 @@ public class SarStandItemsDto {
|
||||
|
||||
private String zccssrq;
|
||||
|
||||
private String technicalRequir;
|
||||
|
||||
private String changePoint;
|
||||
|
||||
}
|
||||
|
||||
+10
@@ -155,6 +155,8 @@ public class SarStandardsInfo extends BaseEntity {
|
||||
@TableField(exist = false)
|
||||
private String standNatureShow; // 标准性质显示名称
|
||||
@TableField(exist = false)
|
||||
private String standTextStatusShow; // 标准文本状态显示名称
|
||||
@TableField(exist = false)
|
||||
private String sychronId; // 同步数据ID
|
||||
@TableField(exist = false)
|
||||
private List<DicTypeEO> dicTypeList = new ArrayList(); // 记录标准涉及到的所有数据字典数据
|
||||
@@ -607,5 +609,13 @@ public class SarStandardsInfo extends BaseEntity {
|
||||
public void setStandSystemName(String standSystemName) {
|
||||
this.standSystemName = standSystemName;
|
||||
}
|
||||
|
||||
public String getStandTextStatusShow() {
|
||||
return standTextStatusShow;
|
||||
}
|
||||
|
||||
public void setStandTextStatusShow(String standTextStatusShow) {
|
||||
this.standTextStatusShow = standTextStatusShow;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,10 +9,12 @@ import com.adc.da.slrs.sarMenu.entity.SarMenu;
|
||||
import com.adc.da.slrs.sarResource.entity.TsResource;
|
||||
import com.adc.da.slrs.sarUrl.dao.TsUrlDao;
|
||||
import com.adc.da.slrs.sarUser.dao.TsUserDao;
|
||||
import com.adc.da.slrs.sarUser.entity.UpDTO;
|
||||
import com.adc.da.slrs.sarUser.entity.UserPositionVO;
|
||||
import com.adc.da.slrs.sarUser.service.ITsUserService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -80,5 +82,12 @@ public class TsUserController extends BaseController<TsUser> {
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("查询人接口悬浮窗")
|
||||
@GetMapping("/selectUp")
|
||||
public ResponseMessage<List<UpDTO>> selectUp(@Param("uname") String uname) throws Exception {
|
||||
return Result.success(tsUserService.selectByName(uname));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.adc.da.slrs.sarUser.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UpDTO {
|
||||
|
||||
|
||||
|
||||
private String value;
|
||||
|
||||
private String id;
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.slrs.sarMenu.entity.SarMenu;
|
||||
import com.adc.da.slrs.sarResource.entity.TsResource;
|
||||
import com.adc.da.slrs.sarUser.entity.TsUser;
|
||||
import com.adc.da.slrs.sarUser.entity.UpDTO;
|
||||
import com.adc.da.slrs.sarUser.entity.UserPositionVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
@@ -74,4 +75,6 @@ public interface ITsUserService extends IService<TsUser> {
|
||||
void parseUser() throws Exception;
|
||||
|
||||
List<SarMenu> getSecondMenusByUserId(String userId);
|
||||
|
||||
List<UpDTO> selectByName(String name);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ import com.adc.da.slrs.sarRole.service.ITsRoleService;
|
||||
import com.adc.da.slrs.sarUser.entity.SyncUser;
|
||||
import com.adc.da.slrs.sarUser.entity.TsUser;
|
||||
import com.adc.da.slrs.sarUser.dao.TsUserDao;
|
||||
import com.adc.da.slrs.sarUser.entity.UpDTO;
|
||||
import com.adc.da.slrs.sarUser.entity.UserPositionVO;
|
||||
import com.adc.da.slrs.sarUser.service.ITsUserService;
|
||||
import com.adc.da.sync.service.SyncUserService;
|
||||
@@ -31,6 +32,7 @@ import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -273,4 +275,20 @@ public class TsUserServiceImpl extends ServiceImpl<TsUserDao, TsUser> implements
|
||||
List<String> menuIds=tsRoleService.getMenuIdsByRoleIds(roleIds);
|
||||
return sarMenuService.getSecondMenuByIds(menuIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UpDTO> selectByName(String name) {
|
||||
QueryWrapper<TsUser> tsUserQueryWrapper=new QueryWrapper<>();
|
||||
tsUserQueryWrapper.like("ACCOUNT",name);
|
||||
tsUserQueryWrapper.or().like("UNAME",name);
|
||||
List<TsUser> res= tsUserDao.selectList(tsUserQueryWrapper);
|
||||
List<UpDTO> result=new ArrayList<>();
|
||||
res.forEach(tsUser -> {
|
||||
UpDTO upDTO=new UpDTO();
|
||||
upDTO.setValue(tsUser.getUname()+"("+tsUser.getAccount()+")");
|
||||
upDTO.setId(tsUser.getUserId());
|
||||
result.add(upDTO);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class FieldConvertUtil {
|
||||
"文本状态,发布日期"; // 导出基础表字段 //删除 实施日期 2021-05-28
|
||||
|
||||
public static String exportBaseFieldNamesForeign = "标准类别,标准编号,标准年份,中文名称,英文名称," +
|
||||
"文本状态,发布日期,文本说明,是否纳入认证清单,体系类别,标签,适用产品线,适用认证,能源类型,责任工程师," +
|
||||
"文本状态,发布日期,文本说明,是否纳入认证清单,体系类别,标签,适用认证,能源类型," +
|
||||
"关联文件,发布稿,增补件,勘误件,草案"; // 导出基础表字段
|
||||
|
||||
public static String exportAttrFieldNamesInland = "归口管理部门,发布机构,工作组信息,我司参与深度,适用车辆类型,要求类型," +
|
||||
|
||||
@@ -101,10 +101,14 @@ public class StandExportUtil {
|
||||
Map<String,Object> attrValueMap = sarStandardsInfoEO.getAttrInfoMap();
|
||||
switch (name) {
|
||||
case "标准性质":
|
||||
value = sarStandardsInfoEO.getStandNature();
|
||||
value = sarStandardsInfoEO.getStandNatureShow();
|
||||
break;
|
||||
case "是否纳入认证清单":
|
||||
value = sarStandardsInfoEO.getIsRelateAccess();
|
||||
switch (sarStandardsInfoEO.getIsRelateAccess()){
|
||||
case "0": value="否"; break;
|
||||
case "1": value="是"; break;
|
||||
default:value="";
|
||||
}
|
||||
break;
|
||||
case "标准体系":
|
||||
value = sarStandardsInfoEO.getStandSystem();
|
||||
@@ -137,8 +141,8 @@ public class StandExportUtil {
|
||||
case "英文名称":
|
||||
value = sarStandardsInfoEO.getStandEnName();
|
||||
break;
|
||||
case "标准状态":
|
||||
value = sarStandardsInfoEO.getStandStateShow();
|
||||
case "文本状态":
|
||||
value = sarStandardsInfoEO.getStandTextStatusShow();
|
||||
break;
|
||||
case "发布日期":
|
||||
if (sarStandardsInfoEO.getIssueTime() != null) {
|
||||
|
||||
Reference in New Issue
Block a user