Merge branch 'develop_3' into 'develop_master'

Develop 3

See merge request LiuChao/foton-slrs-system-rest!181
This commit is contained in:
super_liu
2021-09-28 10:47:16 +08:00
6 changed files with 17 additions and 15 deletions
@@ -49,8 +49,10 @@ public class DataSyncController {
//存放岗位信息 //存放岗位信息
Map<String, String> positionMap = new HashMap<>(); Map<String, String> positionMap = new HashMap<>();
Map<String, String> useDistinct = new HashMap<>(); Map<String, String> useDistinct = new HashMap<>();
TsPosition position = new TsPosition();
IPage<TsPosition> iPage = tsPositionService.getPosition(new TsPosition()); position.setCurrent(1);
position.setPageSize(100000);
IPage<TsPosition> iPage = tsPositionService.getPosition(position);
List<TsPosition> positions=iPage.getRecords(); List<TsPosition> positions=iPage.getRecords();
if (!positions.isEmpty()) { if (!positions.isEmpty()) {
positions.forEach(tsPosition -> { positions.forEach(tsPosition -> {
@@ -54,7 +54,7 @@ public interface TsInstitutionDao extends BaseMapper<TsInstitution> {
* 查询根机构 * 查询根机构
* @return List<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(); List<TsInstitution> selectRoot();
@Select("select * from ts_institution order by rand() limit 1") @Select("select * from ts_institution order by rand() limit 1")
@@ -155,7 +155,7 @@ public class SarStandardsInfo extends BaseEntity {
@TableField(exist = false) @TableField(exist = false)
private String standNatureShow; // 标准性质显示名称 private String standNatureShow; // 标准性质显示名称
@TableField(exist = false) @TableField(exist = false)
private String standtextStatusShow; // 标准文本状态显示名称 private String standTextStatusShow; // 标准文本状态显示名称
@TableField(exist = false) @TableField(exist = false)
private String sychronId; // 同步数据ID private String sychronId; // 同步数据ID
@TableField(exist = false) @TableField(exist = false)
@@ -610,12 +610,12 @@ public class SarStandardsInfo extends BaseEntity {
this.standSystemName = standSystemName; this.standSystemName = standSystemName;
} }
public String getStandtextStatusShow() { public String getStandTextStatusShow() {
return standtextStatusShow; return standTextStatusShow;
} }
public void setStandtextStatusShow(String standtextStatusShow) { public void setStandTextStatusShow(String standTextStatusShow) {
this.standtextStatusShow = standtextStatusShow; this.standTextStatusShow = standTextStatusShow;
} }
} }
@@ -142,7 +142,7 @@ public class StandExportUtil {
value = sarStandardsInfoEO.getStandEnName(); value = sarStandardsInfoEO.getStandEnName();
break; break;
case "文本状态": case "文本状态":
value = sarStandardsInfoEO.getStandtextStatusShow(); value = sarStandardsInfoEO.getStandTextStatusShow();
break; break;
case "发布日期": case "发布日期":
if (sarStandardsInfoEO.getIssueTime() != null) { if (sarStandardsInfoEO.getIssueTime() != null) {
@@ -45,7 +45,7 @@
left join ts_user u left join ts_user u
on i.id=u.institution_id on i.id=u.institution_id
<if test="userName == null"> <if test="userName == null">
where i.parent_id not in (select id from ts_institution) where i.parent_id not in (select id from ts_institution) order by i.name
</if> </if>
<if test="userName != null"> <if test="userName != null">
@@ -61,7 +61,7 @@
SAR_STANDARDS_INFO.stand_state, SAR_STANDARDS_INFO.stand_nature, SAR_STANDARDS_INFO.issue_time, SAR_STANDARDS_INFO.put_time, SAR_STANDARDS_INFO.stand_state, SAR_STANDARDS_INFO.stand_nature, SAR_STANDARDS_INFO.issue_time, SAR_STANDARDS_INFO.put_time,
concat(SAR_STANDARDS_INFO.synopsis, '') as synopsis, concat(replace_stand_num, '') as replace_stand_num, replaced_stand_num, SAR_STANDARDS_INFO.creation_user, SAR_STANDARDS_INFO.valid_flag, concat(SAR_STANDARDS_INFO.synopsis, '') as synopsis, concat(replace_stand_num, '') as replace_stand_num, replaced_stand_num, SAR_STANDARDS_INFO.creation_user, SAR_STANDARDS_INFO.valid_flag,
SAR_STANDARDS_INFO.creation_time, SAR_STANDARDS_INFO.modify_time,dicountry.DIC_TYPE_NAME as countryShow, dicstandSort.DIC_TYPE_NAME as standSortShow, SAR_STANDARDS_INFO.creation_time, SAR_STANDARDS_INFO.modify_time,dicountry.DIC_TYPE_NAME as countryShow, dicstandSort.DIC_TYPE_NAME as standSortShow,
dicstandState.DIC_TYPE_NAME as standStateShow,dicstandNature.DIC_TYPE_NAME as standNatureShow,dicstandTextStatus.DIC_TYPE_NAME as standtextStatusShow,is_relate_access,cite_stand,cited_stand,SAR_STANDARDS_INFO.text_status,SAR_STANDARDS_INFO.STAND_SYSTEM dicstandState.DIC_TYPE_NAME as standStateShow,dicstandNature.DIC_TYPE_NAME as standNatureShow,dicstandTextStatus.DIC_TYPE_NAME as standTextStatusShow,is_relate_access,cite_stand,cited_stand,SAR_STANDARDS_INFO.text_status,SAR_STANDARDS_INFO.STAND_SYSTEM
</sql> </sql>
<sql id="Group_Column_List_Show"> <sql id="Group_Column_List_Show">
@@ -382,8 +382,8 @@
dicstandNature.dic_id is not null and dicstandNature.valid_flag = 0 ) dicstandNature.dic_id is not null and dicstandNature.valid_flag = 0 )
LEFT JOIN TS_DICTYPE dicstandTextStatus ON ( LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
dicstandTextStatus.dic_type_code = SAR_STANDARDS_INFO.text_status dicstandTextStatus.dic_type_code = SAR_STANDARDS_INFO.text_status
AND dicstandNature.dic_id IS NOT NULL AND dicstandTextStatus.dic_id IS NOT NULL
AND dicstandNature.valid_flag = 0 AND dicstandTextStatus.valid_flag = 0
) )
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
left join TS_RESOURCE on SAR_STAND_MENU.menu_id = TS_RESOURCE.id left join TS_RESOURCE on SAR_STAND_MENU.menu_id = TS_RESOURCE.id
@@ -753,8 +753,8 @@
dicstandNature.dic_id is not null and dicstandNature.valid_flag = 0 ) dicstandNature.dic_id is not null and dicstandNature.valid_flag = 0 )
LEFT JOIN TS_DICTYPE dicstandTextStatus ON ( LEFT JOIN TS_DICTYPE dicstandTextStatus ON (
dicstandTextStatus.dic_type_code = SAR_STANDARDS_INFO.text_status dicstandTextStatus.dic_type_code = SAR_STANDARDS_INFO.text_status
AND dicstandNature.dic_id IS NOT NULL AND dicstandTextStatus.dic_id IS NOT NULL
AND dicstandNature.valid_flag = 0 AND dicstandTextStatus.valid_flag = 0
) )
left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id left join SAR_STAND_MENU ON SAR_STANDARDS_INFO.id = SAR_STAND_MENU.stand_id
left join TS_RESOURCE on SAR_STAND_MENU.menu_id = TS_RESOURCE.id left join TS_RESOURCE on SAR_STAND_MENU.menu_id = TS_RESOURCE.id