Commit c1036d3b by 吴迪

【修改】修改数据库

parent 675d3ffd
......@@ -27,9 +27,9 @@
b.address_description,
c.personname
FROM
center_outer.dbo.branch a
center_sync.dbo.branch a
LEFT JOIN codeagent b ON ltrim(rtrim(a.branch_code)) = ltrim(rtrim(b.id))
LEFT JOIN center_outer.dbo.person c ON a.branch_contact = c.personid
LEFT JOIN center_sync.dbo.person c ON a.branch_contact = c.personid
WHERE
ltrim(rtrim(branch_code)) = ltrim(rtrim(#{branchCode}))
</select>
......@@ -40,7 +40,7 @@
b.mail,
b.website
FROM
center_outer.dbo.branch a
center_sync.dbo.branch a
LEFT JOIN codeagent b ON ltrim(rtrim(a.branch_code)) = ltrim(rtrim(b.id))
WHERE
ltrim(rtrim(a.branch_code)) &lt;&gt; '0000'
......
......@@ -25,8 +25,8 @@
a.log_date,
b.login_date
FROM
center_outer.dbo.bulletin AS a
INNER JOIN center_outer.dbo.ean_upc AS b ON a.code = b.code
center_sync.dbo.bulletin AS a
INNER JOIN center_sync.dbo.ean_upc AS b ON a.code = b.code
WHERE
(
DATEDIFF(DAY, login_date, getdate()) >= 7
......@@ -52,8 +52,8 @@
a.log_date,
b.login_date
FROM
center_outer.dbo.bulletin AS a
INNER JOIN center_outer.dbo.ean_upc AS b ON a.code = b.code
center_sync.dbo.bulletin AS a
INNER JOIN center_sync.dbo.ean_upc AS b ON a.code = b.code
WHERE
(
DATEDIFF(DAY, login_date, getdate()) >= 7
......@@ -84,9 +84,9 @@
b.f_id,
b.logout_date
FROM
center_outer.dbo.firm a
LEFT JOIN center_outer.dbo.ean_upc b ON a.f_id = b.f_id
LEFT JOIN center_outer.dbo.bulletin c ON c.code = b.code
center_sync.dbo.firm a
LEFT JOIN center_sync.dbo.ean_upc b ON a.f_id = b.f_id
LEFT JOIN center_sync.dbo.bulletin c ON c.code = b.code
WHERE
a.f_id = #{eanUpcEntity.fId}
AND b.code = #{eanUpcEntity.code}
......
......@@ -53,7 +53,7 @@
FROM
firm a
LEFT JOIN ean_upc b ON a.f_id = b.f_id
LEFT JOIN center_outer.dbo.bulletin c ON c.code = b.code
LEFT JOIN center_sync.dbo.bulletin c ON c.code = b.code
WHERE
a.f_id = #{f_id}
AND b.code = #{code}
......@@ -69,7 +69,7 @@
FIRM_NAME_NOW,
AUDIT_DATE
FROM
center_outer.dbo.CHANGE_HISTORY
center_sync.dbo.CHANGE_HISTORY
WHERE
(FIRM_NAME &lt;&gt; FIRM_NAME_now)
AND (
......
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