Browse Source

民警表新增排序字段 sort

hotfix/yujt_opt
zhangyuan 5 years ago
parent
commit
312e8fc778
  1. 5
      epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/police/entity/PoliceEntity.java
  2. 7
      epdc-cloud-property/src/main/resources/mapper/smile/police/PoliceDao.xml

5
epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/police/entity/PoliceEntity.java

@ -70,4 +70,9 @@ public class PoliceEntity extends DeptScope {
*/
private String displayFlag;
/**
* 排序
*/
private Integer sort;
}

7
epdc-cloud-property/src/main/resources/mapper/smile/police/PoliceDao.xml

@ -26,6 +26,7 @@
OR find_in_set(#{deptId},ep.ALL_DEPT_IDS))
</if>
ORDER BY
ep.SORT ASC
ep.CREATED_TIME DESC
</select>
<select id="selectPoliceGroupInfo" resultType="com.elink.esua.epdc.smile.dto.police.result.PoliceResultDTO">
@ -63,7 +64,9 @@
<if test="parentDeptIds != null and parentDeptIds != ''">
AND ALL_DEPT_IDS = #{parentDeptIds}
</if>
order by UPDATED_TIME desc
ORDER BY
SORT ASC
UPDATED_TIME DESC
</select>
<select id="selectListOfOrganizationInfo" resultType="com.elink.esua.epdc.smile.dto.police.PoliceDTO">
SELECT
@ -76,6 +79,8 @@
epdc_police
WHERE
FIND_IN_SET( #{deptId}, ALL_DEPT_IDS )
ORDER BY
SORT ASC
</select>
<update id="updateGridByDeptId">

Loading…
Cancel
Save