Commit e4684c1c authored by HP's avatar HP

adjust oracle sql

parent 0c75f483
......@@ -96,7 +96,7 @@ public class MenuServiceImpl implements MenuService {
private List<Menu> findByServiceTypeId(Integer moduleId) {
MenuExample menuExample = new MenuExample();
menuExample.createCriteria().andServiceTypeIdEqualTo(moduleId.toString());
menuExample.setOrderByClause("orderIndex ASC");
menuExample.setOrderByClause("ORDER_INDEX ASC");
return menuMapper.selectByExample(menuExample);
}
......
......@@ -359,7 +359,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update USER
update "USER"
<set>
<if test="userName != null">
USER_NAME = #{userName,jdbcType=VARCHAR},
......
......@@ -42,7 +42,7 @@
<select id="selectIndBusiunitAreaOrgstrctReg" parameterType="map" resultMap="OrgBasicDto">
SELECT
ORG.ID AS ID,
org.ID AS ID,
org.PARENT_ID AS PARENT_ID,
org.CODE AS CODE,
org.NAME AS NAME,
......@@ -59,25 +59,25 @@
reg.MERGER_NAME AS REGION_NAME,
org.IS_ACTIVE AS IS_ACTIVE
FROM
ORGANIZATION AS ORG
ORGANIZATION org
LEFT JOIN
INDUSTRY AS IND
INDUSTRY ind
on
org.INDUSTRY_ID = ind.ID
LEFT JOIN
BUSINESS_UNIT AS BU
BUSINESS_UNIT bu
on
org.BUSINESS_UNIT_ID = bu.ID
LEFT JOIN
AREA AS AREA
AREA area
on
org.AREA_ID = area.ID
left JOIN
ORGANIZATION_STRUCTURE AS OS
ORGANIZATION_STRUCTURE os
on
org.STRUCTURE_ID = os.ID
left JOIN
REGION AS REG
REGION reg
on
org.REGION_ID = reg.ID
<if test="orgIsActive != null and orgIsActive == true">
......
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