英译文件修改和无法处理数据进行返回(公众号和文件id)

This commit is contained in:
gaojiabao
2023-03-22 18:07:19 +08:00
parent ff6fa180ea
commit 2732f5c505
9 changed files with 1656 additions and 49 deletions
@@ -376,7 +376,11 @@ public class SarBussionessStandController extends BaseController<SarBussionessSt
} }
@ApiOperation(value = "|SarBussionessStand|判断原文译文")
@GetMapping("/emptyFileAnewStorage")
public ResponseMessage emptyFileAnewStorage (String type){
return sarBussionessStandEOService.emptyFileAnewStorage(type);
}
} }
@@ -0,0 +1,39 @@
package com.adc.da.slrs.sarBussionessStand.entity;
import lombok.Data;
@Data
public class OldSystem {
//kmpro_addon34 与 buss_id 对应
private String loreDocId;
//lore_depot_sort
private String sortId;
//lore_attache
private String fileSign;
//lore_attache
private String fileSrc;
//lore_depot_sort
private String sortSign;
//lore_attache
private String ext;
//新系统返回数据所需要的
private String attfid;
private String standId;
private String buildId;
private String fileId;
private String standNumber;
// 需要组合的数据
private String attFileId;
private String original;
private String Translation;
}
@@ -0,0 +1,15 @@
package com.adc.da.slrs.sarBussionessStand.entity;
import lombok.Data;
@Data
public class OldSystemVo {
private String id;
//标准号
private String standNumber;
//译文件
private String translateFileId;
//原文件
private String originalFileId;
}
@@ -54,5 +54,6 @@ public interface ISarBussionessStandService extends IService<SarBussionessStand>
void checkFileByEncrypt(); void checkFileByEncrypt();
ResponseMessage emptyFileAnewStorage(String type);
} }
@@ -41,4 +41,9 @@ public interface SarStandAttrInfoDao extends BaseMapper<SarStandAttrInfo> {
String selectFieldValByStandId(@Param("field") String field, @Param("standId") String standId); String selectFieldValByStandId(@Param("field") String field, @Param("standId") String standId);
List<SelectionResult> selectFieldValByContainsVal(@Param("field") String field, @Param("value") String value, @Param("standIds") List<String> standIds); List<SelectionResult> selectFieldValByContainsVal(@Param("field") String field, @Param("value") String value, @Param("standIds") List<String> standIds);
void updateByIdInfo(@Param("id")String id,@Param("fbgbjbd") String fbgbuss,@Param("fbgywbd") String fbgywbd);
String selectInfoStandId(@Param("standId")String standId);
} }
@@ -1,5 +1,6 @@
package com.adc.da.slrs.sarStandardsInfo.dao; package com.adc.da.slrs.sarStandardsInfo.dao;
import com.adc.da.slrs.sarBussionessStand.entity.OldSystem;
import com.adc.da.slrs.sarStandardsInfo.entity.DSarStandardDTO; import com.adc.da.slrs.sarStandardsInfo.entity.DSarStandardDTO;
import com.adc.da.slrs.sarStandardsInfo.entity.RecommendVO; import com.adc.da.slrs.sarStandardsInfo.entity.RecommendVO;
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo; import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
@@ -99,4 +100,16 @@ public interface SarStandardsInfoDao extends BaseMapper<SarStandardsInfo> {
List<DSarStandardDTO> dealWithDS(@Param("type") String standType, @Param("status")List<String> strings); List<DSarStandardDTO> dealWithDS(@Param("type") String standType, @Param("status")List<String> strings);
List<OldSystem> selectListInfo(@Param("type") String type);
List<OldSystem> OldSystemFile(@Param("loreDocId") String loreDocId);
List<OldSystem> selectOldSystemFile();
List<OldSystem> selectOldSystemFileBuildId(@Param("buildId") String buildId);
OldSystem loreDepotSort(@Param("sortId") String sortId);
List<OldSystem> selectOldSystemInfoByBuidId(@Param("buildId") String buildId);
} }
@@ -241,4 +241,16 @@
</if> </if>
</select> </select>
<update id="updateByIdInfo" >
update SAR_STAND_ATTR_INFO ss set ss.FBGBJBD = #{fbgbjbd}, ss.FBGYWBD = #{fbgywbd}
where id = #{id}
</update>
<select id="selectInfoStandId" resultType="java.lang.String" parameterType="java.lang.String">
SELECT id
FROM SAR_STAND_ATTR_INFO
WHERE stand_id = #{standId} and valid_flag=0
</select>
</mapper> </mapper>
@@ -1075,7 +1075,7 @@
<if test="page.standYear != null and page.standYear != ''"> <if test="page.standYear != null and page.standYear != ''">
and SAR_STANDARDS_INFO.STAND_YEAR = #{page.standYear} and SAR_STANDARDS_INFO.STAND_YEAR = #{page.standYear}
</if> </if>
<!-- 发布日期日期--> <!-- 发布日期日期-->
<if test="page.issueTime != null and page.issueTime != ''"> <if test="page.issueTime != null and page.issueTime != ''">
and DATE_FORMAT(SAR_STANDARDS_INFO.ISSUE_TIME ,'%Y-%m-%d') = #{page.issueTime} and DATE_FORMAT(SAR_STANDARDS_INFO.ISSUE_TIME ,'%Y-%m-%d') = #{page.issueTime}
</if> </if>
@@ -1888,4 +1888,73 @@
</where> </where>
</select> </select>
<select id="selectListInfo" resultType="com.adc.da.slrs.sarBussionessStand.entity.OldSystem">
SELECT
std.id as 'standId',
std.BUILD_ID as 'buildId',
std.STAND_NUMBER as 'standNumber',
att.id as 'attfid',
att.FBGBJBD as 'fileId'
from sar_standards_info std
left JOIN sar_stand_attr_info att on std.id = att.STAND_ID
where std.BUILD_ID is not null
and att.FBGBJBD is not null
<if test="type != null">
and std.STAND_TYPE = #{type}
</if>
</select>
<select id="OldSystemFile" resultType="com.adc.da.slrs.sarBussionessStand.entity.OldSystem">
SELECT
lo.LoreDocID as 'loreDocId',
lo.Sign as 'fileSign',
lo.Src as 'fileSrc'
from lore_attache lo
where 1=1
<if test="loreDocId != null">
and lo.LoreDocID = #{loreDocId}
</if>
</select>
<select id="selectOldSystemFile" resultType="com.adc.da.slrs.sarBussionessStand.entity.OldSystem">
SELECT
lo.ID as 'fileId',
lo.Sign as 'fileSign'
from lore_attache lo
</select>
<select id="selectOldSystemFileBuildId" resultType="com.adc.da.slrs.sarBussionessStand.entity.OldSystem">
SELECT
lo.Src as 'fileSrc',
lo.Sign as 'fileSign',
lo.Ext as 'ext'
from lore_attache lo
where 1=1
<if test="buildId != null">
and lo.LoreDocId = #{buildId}
</if>
</select>
<select id="loreDepotSort" resultType="com.adc.da.slrs.sarBussionessStand.entity.OldSystem">
SELECT
lo.Sign as 'sortSign'
from lore_depot_sort lo
where 1=1
<if test="sortId != null">
and lo.id = #{sortId}
</if>
</select>
<select id="selectOldSystemInfoByBuidId" resultType="com.adc.da.slrs.sarBussionessStand.entity.OldSystem">
SELECT
km.lore_doc_id as 'loreDocId',
km.sort_id as 'sortId'
from kmpro_addon34 km
where 1=1
<if test="buildId != null">
and km.lore_doc_id = #{buildId}
</if>
</select>
</mapper> </mapper>