Commit 2d475068 by liuyang

Merge branch 'dev' of http://git.pseer.com/platform/hp-smart into dev-ly

parents e1ebbf16 4a02ead7
...@@ -47,12 +47,12 @@ ...@@ -47,12 +47,12 @@
(select (select
sum(USER_COUNT) sum(USER_COUNT)
FROM hpjx.t_hpsc008 FROM hpjx.t_hpsc008
where DELETE_FLAG = 0 and COMPANY_CODE = #companyCode# and left(REGISTER_DATE,6) = left(#date#,4) and REGISTER_DATE <![CDATA[<=]]> #date# and FACTORY_CODE = #factorycode# ) as YGL, where DELETE_FLAG = 0 and COMPANY_CODE = #companyCode# and left(REGISTER_DATE,4) = left(#date#,4) and REGISTER_DATE <![CDATA[<=]]> #date# and FACTORY_CODE = #factorycode# ) as YGL,
0 as JHCL, 0 as JHCL,
(select (select
sum(WEIGHT) sum(WEIGHT)
FROM hpjx.t_hpsc008 FROM hpjx.t_hpsc008
where DELETE_FLAG = 0 and COMPANY_CODE = #companyCode# and left(REGISTER_DATE,6) = left(#date#,4) and REGISTER_DATE <![CDATA[<=]]> #date# and FACTORY_CODE = #factorycode# ) as SJCL where DELETE_FLAG = 0 and COMPANY_CODE = #companyCode# and left(REGISTER_DATE,4) = left(#date#,4) and REGISTER_DATE <![CDATA[<=]]> #date# and FACTORY_CODE = #factorycode# ) as SJCL
from dual) a from dual) a
</select> </select>
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
<select id="queryMaxDate" parameterClass="java.util.HashMap" resultClass="java.util.HashMap"> <select id="queryMaxDate" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT SELECT
MAX(REGISTER_DATE) as "registerDate" <!-- 最新登记日期 --> MAX(REGISTER_DATE) as "registerDate" <!-- 最新登记日期 -->
FROM ${hpjxSchema}.T_HPXS001 FROM ${hpjxSchema}.t_hpsc008
WHERE 1=1 AND DELETE_FLAG = 0 WHERE 1=1 AND DELETE_FLAG = 0
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
......
...@@ -540,7 +540,7 @@ ...@@ -540,7 +540,7 @@
<select id="queryMaxDate" parameterClass="java.util.HashMap" resultClass="java.util.HashMap"> <select id="queryMaxDate" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
SELECT SELECT
MAX(REGISTER_DATE) as "registerDate" <!-- 最新登记日期 --> MAX(REGISTER_DATE) as "registerDate" <!-- 最新登记日期 -->
FROM ${hpjxSchema}.T_HPXS001 FROM ${hpjxSchema}.t_hpsc008
WHERE 1=1 AND DELETE_FLAG = 0 WHERE 1=1 AND DELETE_FLAG = 0
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment