feat: There is no way the, AWC 系统对完接口
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.slrs.regulations.dao.StandDataDao">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.regulations.entity.StandData" >
|
||||
</resultMap>
|
||||
|
||||
<select id="searchStandData" resultMap="BaseResultMap"
|
||||
parameterType="com.adc.da.slrs.regulations.entity.SearchStandContext">
|
||||
SELECT
|
||||
t.standId,
|
||||
t.standType,
|
||||
t.standSort,
|
||||
t.standNumber,
|
||||
t.standName
|
||||
FROM (
|
||||
SELECT
|
||||
sar_standards_info.id AS standId,
|
||||
sar_standards_info.STAND_TYPE AS standType,
|
||||
sar_standards_info.STAND_SORT AS standSort,
|
||||
sar_standards_info.STAND_NUMBER AS standNumber,
|
||||
sar_standards_info.STAND_NAME AS standName
|
||||
FROM
|
||||
sar_standards_info
|
||||
LEFT JOIN SAR_STAND_ATTR_INFO ON (
|
||||
SAR_STAND_ATTR_INFO.stand_id = SAR_STANDARDS_INFO.id
|
||||
AND SAR_STAND_ATTR_INFO.valid_flag = 0
|
||||
)
|
||||
WHERE sar_standards_info.valid_flag = 0
|
||||
<if test="vppsCode != null and vppsCode != ''">
|
||||
and (SAR_STAND_ATTR_INFO.KCCVPPSBM like concat('%',#{vppsCode},'%') or SAR_STAND_ATTR_INFO.CYCVPPSBM like concat('%',#{vppsCode},'%'))
|
||||
</if>
|
||||
<if test="vppsName != null and vppsName != ''">
|
||||
and (SAR_STAND_ATTR_INFO.KCCVPPSCN like concat('%',#{vppsName},'%') or SAR_STAND_ATTR_INFO.CYCVPPSCN like concat('%',#{vppsName},'%'))
|
||||
</if>
|
||||
UNION
|
||||
SELECT
|
||||
sar_bussioness_stand.id AS standId,
|
||||
'BUSINESS_STAND' AS standType,
|
||||
sar_bussioness_stand.STAND_SORT AS standSort,
|
||||
sar_bussioness_stand.STAND_NUMBER AS standNumber,
|
||||
sar_bussioness_stand.STAND_NAME AS standName
|
||||
FROM
|
||||
sar_bussioness_stand
|
||||
LEFT JOIN sar_buss_stand_attr_info ON (
|
||||
sar_buss_stand_attr_info.stand_id = sar_bussioness_stand.id
|
||||
AND sar_buss_stand_attr_info.valid_flag = 0
|
||||
)
|
||||
WHERE sar_bussioness_stand.valid_flag = 0
|
||||
<if test="vppsCode != null and vppsCode != ''">
|
||||
and (sar_buss_stand_attr_info.KCVPPSBMBUSS like concat('%',#{vppsCode},'%') or sar_buss_stand_attr_info.CYCVPPSBMBUSS like concat('%',#{vppsCode},'%'))
|
||||
</if>
|
||||
<if test="vppsName != null and vppsName != ''">
|
||||
and (sar_buss_stand_attr_info.KCVPPSCNBUSS like concat('%',#{vppsName},'%') or sar_buss_stand_attr_info.CYCVPPSCNBUSS like concat('%',#{vppsName},'%'))
|
||||
</if>
|
||||
) t
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user