库名改变

This commit is contained in:
ly19960718 2021-05-01 11:42:10 +08:00
parent 7feb7ef3c8
commit e8c3742e36
2 changed files with 23 additions and 24 deletions

View File

@ -70,7 +70,7 @@
<!-- 新增机构管理 --> <!-- 新增机构管理 -->
<insert id="save" parameterType="map"> <insert id="save" parameterType="map">
INSERT INTO institution( INSERT INTO m_institution(
institution_id, institution_id,
institution_name, institution_name,
institution_desc, institution_desc,
@ -118,7 +118,7 @@
<!-- 删除机构管理 --> <!-- 删除机构管理 -->
<update id="remove" parameterType="map"> <update id="remove" parameterType="map">
UPDATE UPDATE
institution m_institution
SET SET
gmt_modified = #{gmtModified}, gmt_modified = #{gmtModified},
modifier = #{modifier}, modifier = #{modifier},
@ -133,7 +133,7 @@
<!-- 删除机构管理(物理) --> <!-- 删除机构管理(物理) -->
<update id="delete" parameterType="map"> <update id="delete" parameterType="map">
DELETE FROM DELETE FROM
institution m_institution
WHERE WHERE
institution_id IN institution_id IN
<foreach collection="institutionIds" index="index" open="(" separator="," close=")"> <foreach collection="institutionIds" index="index" open="(" separator="," close=")">
@ -144,7 +144,7 @@
<!-- 修改机构管理 --> <!-- 修改机构管理 -->
<update id="update" parameterType="map"> <update id="update" parameterType="map">
UPDATE UPDATE
institution m_institution
SET SET
<if test="institutionName != null and institutionName != ''"> <if test="institutionName != null and institutionName != ''">
institution_name = #{institutionName}, institution_name = #{institutionName},
@ -214,7 +214,7 @@
t1.institution_region_street, t1.institution_region_street,
t1.institution_id t1.institution_id
FROM FROM
institution t1 m_institution t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="institutionId != null and institutionId != ''"> <if test="institutionId != null and institutionId != ''">
@ -247,7 +247,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
institution t1 m_institution t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="institutionId != null and institutionId != ''"> <if test="institutionId != null and institutionId != ''">
@ -280,7 +280,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
institution t1 m_institution t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="institutionId != null and institutionId != ''"> <if test="institutionId != null and institutionId != ''">
@ -308,10 +308,9 @@
t1.institution_region_village, t1.institution_region_village,
t1.institution_region_street, t1.institution_region_street,
t1.creator, t1.creator,
t1.gmt_create, t1.gmt_create
1
FROM FROM
institution t1 m_institution t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
@ -362,7 +361,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
institution t1 m_institution t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
@ -413,7 +412,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
institution t1 m_institution t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
@ -445,7 +444,7 @@
SELECT SELECT
COUNT(*) COUNT(*)
FROM FROM
institution t1 m_institution t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
</select> </select>

View File

@ -43,7 +43,7 @@
<!-- 新增组织管理 --> <!-- 新增组织管理 -->
<insert id="save" parameterType="map"> <insert id="save" parameterType="map">
INSERT INTO organization( INSERT INTO m_organization(
organization_id, organization_id,
organization_name, organization_name,
organization_user_num, organization_user_num,
@ -73,7 +73,7 @@
<!-- 删除组织管理 --> <!-- 删除组织管理 -->
<update id="remove" parameterType="map"> <update id="remove" parameterType="map">
UPDATE UPDATE
organization m_organization
SET SET
gmt_modified = #{gmtModified}, gmt_modified = #{gmtModified},
modifier = #{modifier}, modifier = #{modifier},
@ -88,7 +88,7 @@
<!-- 删除组织管理(物理) --> <!-- 删除组织管理(物理) -->
<update id="delete" parameterType="map"> <update id="delete" parameterType="map">
DELETE FROM DELETE FROM
organization m_organization
WHERE WHERE
organization_id IN organization_id IN
<foreach collection="organizationIds" index="index" open="(" separator="," close=")"> <foreach collection="organizationIds" index="index" open="(" separator="," close=")">
@ -99,7 +99,7 @@
<!-- 修改组织管理 --> <!-- 修改组织管理 -->
<update id="update" parameterType="map"> <update id="update" parameterType="map">
UPDATE UPDATE
organization m_organization
SET SET
organization_name = #{organizationName}, organization_name = #{organizationName},
organization_user_num = #{organizationUserNum}, organization_user_num = #{organizationUserNum},
@ -122,7 +122,7 @@
t1.organization_image, t1.organization_image,
t1.organization_id t1.organization_id
FROM FROM
organization t1 m_organization t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="organizationId != null and organizationId != ''"> <if test="organizationId != null and organizationId != ''">
@ -146,7 +146,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
organization t1 m_organization t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="organizationId != null and organizationId != ''"> <if test="organizationId != null and organizationId != ''">
@ -170,7 +170,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
organization t1 m_organization t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="organizationId != null and organizationId != ''"> <if test="organizationId != null and organizationId != ''">
@ -191,7 +191,7 @@
t1.creator, t1.creator,
t1.gmt_create t1.gmt_create
FROM FROM
organization t1 m_organization t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
@ -233,7 +233,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
organization t1 m_organization t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
@ -275,7 +275,7 @@
t1.gmt_modified, t1.gmt_modified,
t1.is_delete t1.is_delete
FROM FROM
organization t1 m_organization t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
@ -307,7 +307,7 @@
SELECT SELECT
COUNT(*) COUNT(*)
FROM FROM
organization t1 m_organization t1
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
</select> </select>