数据同步接口 不走es
This commit is contained in:
@@ -61,5 +61,7 @@ public class SearchStandContext implements Serializable {
|
||||
|
||||
private String standCode;
|
||||
|
||||
private String standId;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -28,4 +28,7 @@ public class StandData {
|
||||
|
||||
@ApiModelProperty(value = "标准分类+空格+标准号+空格+标准名称")
|
||||
private String documentName;
|
||||
|
||||
@ApiModelProperty(value = "标准分类+空格+标准号+空格+标准名称")
|
||||
private String standNum;
|
||||
}
|
||||
|
||||
+4
@@ -61,6 +61,10 @@ public class SarBussStandAttrInfo extends BaseEntity {
|
||||
@TableField("BDTQBBHBUSS")
|
||||
private String bdtqbbhbuss;
|
||||
|
||||
@ApiModelProperty(value = "被代替企标编号")
|
||||
@TableField("DTQBBHBUSS")
|
||||
private String dtqbbhbuss;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String glwj;
|
||||
//
|
||||
|
||||
+10
-10
@@ -951,10 +951,10 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
|
||||
ExportEmptyModel model = map.get(sarStandardsInfo.getId());
|
||||
model.setStandName(sarStandardsInfo.getStandName());
|
||||
model.setStandEnName(sarStandardsInfo.getStandEnName());
|
||||
model.setNylx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("nylx").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("nylx").toString():"");
|
||||
model.setSycpx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("sycpx").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("sycpx").toString():"");
|
||||
model.setZrbm(null!=sarStandardsInfo.getAttrInfoCaseMap().get("zrbm").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("zrbm").toString():"");
|
||||
model.setSycx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("cllx").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("cllx").toString():"");
|
||||
model.setNylx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("nylx") ?sarStandardsInfo.getAttrInfoCaseMap().get("nylx").toString():"");
|
||||
model.setSycpx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("sycpx") ?sarStandardsInfo.getAttrInfoCaseMap().get("sycpx").toString():"");
|
||||
model.setZrbm(null!=sarStandardsInfo.getAttrInfoCaseMap().get("zrbm") ?sarStandardsInfo.getAttrInfoCaseMap().get("zrbm").toString():"");
|
||||
model.setSycx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("cllx") ?sarStandardsInfo.getAttrInfoCaseMap().get("cllx").toString():"");
|
||||
result.add(model);
|
||||
});
|
||||
}
|
||||
@@ -978,10 +978,10 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
|
||||
ExportEmptyModel model = map.get(sarStandardsInfo.getId());
|
||||
model.setStandName(sarStandardsInfo.getStandName());
|
||||
model.setStandEnName(sarStandardsInfo.getStandEnName());
|
||||
model.setNylx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("nylx").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("nylx").toString():"");
|
||||
model.setSycpx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("sycpx").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("sycpx").toString():"");
|
||||
model.setZrbm(null!=sarStandardsInfo.getAttrInfoCaseMap().get("zrbm").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("zrbm").toString():"");
|
||||
model.setSycx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("cllx").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("cllx").toString():"");
|
||||
model.setNylx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("nylx") ?sarStandardsInfo.getAttrInfoCaseMap().get("nylx").toString():"");
|
||||
model.setSycpx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("sycpx") ?sarStandardsInfo.getAttrInfoCaseMap().get("sycpx").toString():"");
|
||||
model.setZrbm(null!=sarStandardsInfo.getAttrInfoCaseMap().get("zrbm") ?sarStandardsInfo.getAttrInfoCaseMap().get("zrbm").toString():"");
|
||||
model.setSycx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("cllx") ?sarStandardsInfo.getAttrInfoCaseMap().get("cllx").toString():"");
|
||||
result.add(model);
|
||||
});
|
||||
}
|
||||
@@ -1004,10 +1004,10 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
|
||||
ExportEmptyModel model = map.get(sarStandardsInfo.getId());
|
||||
model.setStandName(sarStandardsInfo.getLawsName());
|
||||
model.setStandEnName(sarStandardsInfo.getLawsEnName());
|
||||
model.setNylx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("nylxlaws").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("nylxlaws").toString():"");
|
||||
model.setNylx(null!=sarStandardsInfo.getAttrInfoCaseMap().get("nylxlaws") ?sarStandardsInfo.getAttrInfoCaseMap().get("nylxlaws").toString():"");
|
||||
//没有使用产品线
|
||||
// model.setSycpx(null!=sarStandardsInfo.getLawsSycx() ?sarStandardsInfo.getLawsSycx():"");
|
||||
model.setZrbm(null!=sarStandardsInfo.getAttrInfoCaseMap().get("zrbmlaws").toString() ?sarStandardsInfo.getAttrInfoCaseMap().get("zrbmlaws").toString():"");
|
||||
model.setZrbm(null!=sarStandardsInfo.getAttrInfoCaseMap().get("zrbmlaws") ?sarStandardsInfo.getAttrInfoCaseMap().get("zrbmlaws").toString():"");
|
||||
model.setSycx(null!=sarStandardsInfo.getLawsSycx() ?sarStandardsInfo.getLawsSycx():"");
|
||||
result.add(model);
|
||||
});
|
||||
|
||||
+5
-1
@@ -50,7 +50,7 @@ public class SarStandAttrInfo extends BaseEntity {
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
private LocalDateTime modifyTime;
|
||||
private Date modifyTime;
|
||||
|
||||
@ApiModelProperty(value = "归口管理部门")
|
||||
@TableField("GKDW")
|
||||
@@ -234,5 +234,9 @@ public class SarStandAttrInfo extends BaseEntity {
|
||||
@TableField("TXLB")
|
||||
private String txlb;
|
||||
|
||||
@ApiModelProperty(value = "体系类别")
|
||||
@TableField("BDTBZH")
|
||||
private String bdtbzh;
|
||||
|
||||
|
||||
}
|
||||
|
||||
+15
@@ -822,6 +822,21 @@ public class SarStandardsInfoController extends BaseController<SarStandardsInfo>
|
||||
return "1";
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "国内海外数据处理接口")
|
||||
@GetMapping("/replaceBdtbzhforDtbzh")
|
||||
public String replaceBdtbzhforDtbzh(SarStandardsInfo sarStandardsInfo) {
|
||||
sarStandardsInfoEOService.replaceBdtbzhforDtbzh();
|
||||
return "1";
|
||||
}
|
||||
|
||||
@ApiOperation(value = "企标数据处理接口")
|
||||
@GetMapping("/replaceBdtbzhforDtbzhQb")
|
||||
public String replaceBdtbzhforDtbzhQb(SarStandardsInfo sarStandardsInfo) {
|
||||
sarStandardsInfoEOService.replaceBdtbzhforDtbzhQb();
|
||||
return "1";
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarStandardsInfoEO|自定义分页查询")
|
||||
@GetMapping("/checkIsOnly")
|
||||
public ResponseMessage checkIsOnly (SarStandardsInfoEOPage page){
|
||||
|
||||
+4
@@ -60,4 +60,8 @@ public interface ISarStandardsInfoService extends IService<SarStandardsInfo> {
|
||||
void insertIntoIndexForMap(Map<String,Object> attrInfoMap);
|
||||
|
||||
void updateIntoIndexForMap(Map<String,Object> attrInfoMap);
|
||||
|
||||
void replaceBdtbzhforDtbzh();
|
||||
|
||||
void replaceBdtbzhforDtbzhQb();
|
||||
}
|
||||
|
||||
+400
-167
File diff suppressed because it is too large
Load Diff
@@ -62,11 +62,14 @@
|
||||
<select id="searchStandDataThree" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
t.standId,
|
||||
t.standType
|
||||
t.standType,
|
||||
t.standNum
|
||||
FROM (
|
||||
SELECT
|
||||
sar_standards_info.id AS standId,
|
||||
sar_standards_info.STAND_TYPE AS standType
|
||||
sar_standards_info.STAND_TYPE AS standType,
|
||||
concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
SAR_STANDARDS_INFO.STAND_YEAR) as standNum
|
||||
FROM
|
||||
sar_standards_info
|
||||
LEFT JOIN SAR_STAND_ATTR_INFO ON (
|
||||
@@ -82,6 +85,9 @@
|
||||
and (SAR_STAND_ATTR_INFO.KCCVPPSCN like concat('%',#{vppsName},'%') or SAR_STAND_ATTR_INFO.CYCVPPSCN like
|
||||
concat('%',#{vppsName},'%'))
|
||||
</if>
|
||||
<if test="standId != null and standId != ''">
|
||||
and sar_standards_info.ID = #{standId}
|
||||
</if>
|
||||
<if test="standCode != null and standCode != ''">
|
||||
and (
|
||||
(trim(replace(concat(SAR_STANDARDS_INFO.STAND_SORT,' ',SAR_STANDARDS_INFO.STAND_NUMBER,'-',
|
||||
@@ -93,7 +99,8 @@
|
||||
UNION
|
||||
SELECT
|
||||
sar_bussioness_stand.id AS standId,
|
||||
'BUSINESS_STAND' AS standType
|
||||
'BUSINESS_STAND' AS standType,
|
||||
SAR_BUSSIONESS_STAND.STAND_CODE as standNum
|
||||
FROM
|
||||
sar_bussioness_stand
|
||||
LEFT JOIN sar_buss_stand_attr_info ON (
|
||||
@@ -113,11 +120,15 @@
|
||||
and (SAR_BUSSIONESS_STAND.STAND_CODE = #{standCode}
|
||||
or REPLACE( SAR_BUSSIONESS_STAND.STAND_CODE,' ','') = REPLACE( #{standCode},' ',''))
|
||||
</if>
|
||||
<if test="standId != null and standId != ''">
|
||||
and sar_bussioness_stand.ID = #{standId}
|
||||
</if>
|
||||
|
||||
UNION
|
||||
SELECT
|
||||
SAR_LAWS_STAND_INFO.id AS standId,
|
||||
'LAWS_TYPE' AS standType
|
||||
'LAWS_TYPE' AS standType,
|
||||
SAR_LAWS_STAND_INFO.LAWS_NUMBER as standNum
|
||||
FROM
|
||||
SAR_LAWS_STAND_INFO
|
||||
LEFT JOIN sar_laws_attr_info ON (
|
||||
@@ -129,7 +140,9 @@
|
||||
<if test="standCode != null and standCode != ''">
|
||||
and SAR_LAWS_STAND_INFO.LAWS_NUMBER = #{standCode}
|
||||
</if>
|
||||
|
||||
<if test="standId != null and standId != ''">
|
||||
and SAR_LAWS_STAND_INFO.ID = #{standId}
|
||||
</if>
|
||||
) t
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user