Merge branch 'develop_master' into FOTON
This commit is contained in:
+24
@@ -36,6 +36,11 @@ public class StandDataServiceImpl extends ServiceImpl<StandDataDao, StandData> i
|
|||||||
public String searchStandData(SearchStandContext searchStandContext){
|
public String searchStandData(SearchStandContext searchStandContext){
|
||||||
List<FileResult> fileResultList = new ArrayList<>();
|
List<FileResult> fileResultList = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
|
//TODO 此处接口优化 传入的VPPSCode 参数全部截取到第三位位置
|
||||||
|
logger.info("接口传递的VPPS编码为"+searchStandContext.getVppsCode());
|
||||||
|
String newVppsCode= convertVppsCode(searchStandContext.getVppsCode());
|
||||||
|
logger.info("经过处理后只获取前三级的VPPS编码为"+newVppsCode);
|
||||||
|
searchStandContext.setVsgCode(newVppsCode);
|
||||||
List<StandData> standDataQuery = this.baseMapper.searchStandData(searchStandContext);
|
List<StandData> standDataQuery = this.baseMapper.searchStandData(searchStandContext);
|
||||||
if(!standDataQuery.isEmpty()){
|
if(!standDataQuery.isEmpty()){
|
||||||
// 重组数据集合 只需documentName 及 documentUrl
|
// 重组数据集合 只需documentName 及 documentUrl
|
||||||
@@ -72,4 +77,23 @@ public class StandDataServiceImpl extends ServiceImpl<StandDataDao, StandData> i
|
|||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String convertVppsCode(String vppsCode){
|
||||||
|
if(StringUtils.isNotBlank(vppsCode)){
|
||||||
|
String[] splitData = vppsCode.split(".");
|
||||||
|
if(splitData.length<=3){
|
||||||
|
return vppsCode;
|
||||||
|
}else{
|
||||||
|
StringBuilder result = new StringBuilder();
|
||||||
|
result.append(splitData[0]).append(".").append(splitData[1]).append(".").append(splitData[2]);
|
||||||
|
return result.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}else{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-7
@@ -48,22 +48,26 @@ public class SarPublicIdeaServiceImpl extends ServiceImpl<SarPublicIdeaDao, SarP
|
|||||||
QueryWrapper<SarPublicIdea> list = new QueryWrapper<>();
|
QueryWrapper<SarPublicIdea> list = new QueryWrapper<>();
|
||||||
if ("1".equals(type)) {
|
if ("1".equals(type)) {
|
||||||
if (start!=null && end !=null){
|
if (start!=null && end !=null){
|
||||||
|
String date1 = (new SimpleDateFormat("yyyy-MM-dd")).format(start);
|
||||||
|
String date2 = (new SimpleDateFormat("yyyy-MM-dd")).format(end);
|
||||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||||
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
||||||
.ge(start != null, "start_time", start)
|
.ge(start != null, "start_time", date1)
|
||||||
.le(end != null, "end_time", end)
|
.le(end != null, "end_time", date2)
|
||||||
.orderByDesc("start_time");
|
.orderByDesc("start_time");
|
||||||
}else if (start!=null){
|
}else if (start!=null){
|
||||||
|
String date1 = (new SimpleDateFormat("yyyy-MM-dd")).format(start);
|
||||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||||
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
||||||
.le(start != null, "start_time", start)
|
.le(start != null, "start_time", date1)
|
||||||
.ge(start != null, "end_time", start)
|
.ge(start != null, "end_time", date1)
|
||||||
.orderByDesc("start_time");
|
.orderByDesc("start_time");
|
||||||
}else if (end!=null){
|
}else if (end!=null){
|
||||||
|
String date2 = (new SimpleDateFormat("yyyy-MM-dd")).format(end);
|
||||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||||
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
.like(StringUtils.isNotEmpty(cname), "cid", cname)
|
||||||
.le(end != null, "start_time", end)
|
.le(end != null, "start_time", date2)
|
||||||
.ge(end != null, "end_time", end)
|
.ge(end != null, "end_time", date2)
|
||||||
.orderByDesc("start_time");
|
.orderByDesc("start_time");
|
||||||
}else {
|
}else {
|
||||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||||
@@ -71,9 +75,10 @@ public class SarPublicIdeaServiceImpl extends ServiceImpl<SarPublicIdeaDao, SarP
|
|||||||
.orderByDesc("start_time");
|
.orderByDesc("start_time");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
String date = (new SimpleDateFormat("yyyy-MM-dd")).format(new Date());
|
||||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||||
.like(StringUtils.isNotEmpty(cname), "cname", cname)
|
.like(StringUtils.isNotEmpty(cname), "cname", cname)
|
||||||
.ge("end_time", new Date())
|
.ge("end_time", date)
|
||||||
.orderByAsc("end_time");
|
.orderByAsc("end_time");
|
||||||
}
|
}
|
||||||
Page<SarPublicIdea> page = new Page<>(p, size);
|
Page<SarPublicIdea> page = new Page<>(p, size);
|
||||||
|
|||||||
+1
@@ -2123,6 +2123,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
map.put("standEnName", verifyObj(sarStandardsInfoEO.getStandEnName()));
|
map.put("standEnName", verifyObj(sarStandardsInfoEO.getStandEnName()));
|
||||||
map.put("standNature", verifyObj(sarStandardsInfoEO.getStandNature()));
|
map.put("standNature", verifyObj(sarStandardsInfoEO.getStandNature()));
|
||||||
map.put("standState", verifyObj(sarStandardsInfoEO.getStandState()));
|
map.put("standState", verifyObj(sarStandardsInfoEO.getStandState()));
|
||||||
|
map.put("textStatus", verifyObj(sarStandardsInfoEO.getTextStatus()));
|
||||||
// if (sarStandardsInfoEO.getIssueTime() != null) {
|
// if (sarStandardsInfoEO.getIssueTime() != null) {
|
||||||
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
// String issueStr = format.format(sarStandardsInfoEO.getIssueTime());
|
// String issueStr = format.format(sarStandardsInfoEO.getIssueTime());
|
||||||
|
|||||||
@@ -407,13 +407,13 @@
|
|||||||
|
|
||||||
<select id="querySarItemAndInterpretation" resultMap="sarItemVOResultMap"
|
<select id="querySarItemAndInterpretation" resultMap="sarItemVOResultMap"
|
||||||
parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO">
|
parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO">
|
||||||
SELECT
|
SELECT
|
||||||
sar_stand_items.*
|
sar_stand_items.*,split_pid(sar_stand_items.ITEMS_NUM,'.') as tt
|
||||||
FROM
|
FROM
|
||||||
sar_stand_items
|
sar_stand_items
|
||||||
<include refid="sarItemWhere"/>
|
<include refid="sarItemWhere"/>
|
||||||
<if test="orderBy !=null and orderBy!=''">
|
<if test="orderBy !=null and orderBy!=''">
|
||||||
order by sar_stand_items.ITEMS_NUM ${order}
|
order by tt ${order}
|
||||||
</if>
|
</if>
|
||||||
LIMIT ${pager.startIndex-1},${pageSize}
|
LIMIT ${pager.startIndex-1},${pageSize}
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
+1
@@ -386,6 +386,7 @@
|
|||||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||||
${pager.orderCondition}
|
${pager.orderCondition}
|
||||||
</if>
|
</if>
|
||||||
|
order by SAR_BUSSIONESS_STAND.stand_year desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="queryByBussStateSync" resultMap="BaseResultMap"
|
<select id="queryByBussStateSync" resultMap="BaseResultMap"
|
||||||
|
|||||||
+1
@@ -1565,6 +1565,7 @@
|
|||||||
<if test="sychronId != null">
|
<if test="sychronId != null">
|
||||||
and id != #{sychronId}
|
and id != #{sychronId}
|
||||||
</if>
|
</if>
|
||||||
|
order by SAR_STANDARDS_INFO.stand_year desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="queryStandInfoByList" resultMap="BaseResultMap">
|
<select id="queryStandInfoByList" resultMap="BaseResultMap">
|
||||||
|
|||||||
Reference in New Issue
Block a user