|
@@ -36,6 +36,13 @@
|
|
</where>
|
|
</where>
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
+ <update id="updateYbh" parameterType="map">
|
|
|
|
+ UPDATE MARKET_BASE_IMPORT A SET A.IS_IMPORT='2'
|
|
|
|
+ WHERE (a.year,a.week) in (select year,week from market_base_week where current date>=begin_date and current date <![CDATA[ <= ]]> end_date)
|
|
|
|
+ AND A.CLIENT_CODE IN (SELECT A.CLIENT_CODE FROM MARKET_SAMPLE A
|
|
|
|
+ JOIN V_B_CLIENT B ON A.CLIENT_CODE=B.CLIENT_CODE AND A.COUNTY_CODE=B.COUNTY_CODE and b.county_code=#{countyCode})
|
|
|
|
+ </update>
|
|
|
|
+
|
|
<select id="selectSourceByClientId" resultType="am.lodge.platform.model.AdmissionsSource">
|
|
<select id="selectSourceByClientId" resultType="am.lodge.platform.model.AdmissionsSource">
|
|
SELECT bas.id id,bas.name name
|
|
SELECT bas.id id,bas.name name
|
|
from buss_admissions_source bas LEFT JOIN buss_client_source bcs on bas.ID=bcs.SOURCE_ID
|
|
from buss_admissions_source bas LEFT JOIN buss_client_source bcs on bas.ID=bcs.SOURCE_ID
|