Commit d9febe3b authored by fangxinjiang's avatar fangxinjiang

事业部&事业部条线-fxj

parent 32a71532
...@@ -230,5 +230,8 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> { ...@@ -230,5 +230,8 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> {
void deleteUserPermissionByIdAndType(@Param("code") String code, @Param("permissionType") String permissionType); void deleteUserPermissionByIdAndType(@Param("code") String code, @Param("permissionType") String permissionType);
Integer selectDivitionCount(@Param("name")String name);
Integer selectDivitionLineCount(@Param("name")String name);
} }
...@@ -341,6 +341,10 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM ...@@ -341,6 +341,10 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
count = baseMapper.selectTwoGsCount(excel.getName()); count = baseMapper.selectTwoGsCount(excel.getName());
} else if (CommonConstants.TWELVE_STRING.equals(insert.getPermissionType())) { } else if (CommonConstants.TWELVE_STRING.equals(insert.getPermissionType())) {
count = baseMapper.selectTaxCount(excel.getName()); count = baseMapper.selectTaxCount(excel.getName());
} else if (CommonConstants.THIRTEEN_STRING.equals(insert.getPermissionType())) {
count = baseMapper.selectDivitionCount(excel.getName());
} else if (CommonConstants.FOURTEEN_STRING.equals(insert.getPermissionType())) {
count = baseMapper.selectDivitionLineCount(excel.getName());
} else { } else {
count = baseMapper.selectDictByName(excel.getName(), "line"); count = baseMapper.selectDictByName(excel.getName(), "line");
} }
......
...@@ -481,5 +481,16 @@ ...@@ -481,5 +481,16 @@
delete from sys_user_permission p delete from sys_user_permission p
where SOURCE_TYPE = 0 and CODE = #{code} and PERMISSION_TYPE = #{permissionType} where SOURCE_TYPE = 0 and CODE = #{code} and PERMISSION_TYPE = #{permissionType}
</delete> </delete>
<select id="selectDivitionCount" resultType="java.lang.Integer">
SELECT
count(1)
from ekp_shenhepeizhi_table
where a.fd_shiyebu = #{name}
</select>
<select id="selectDivitionLineCount" resultType="java.lang.Integer">
SELECT
count(1)
from ekp_shenhepeizhi_table
where a.fd_tiaoxian = #{name}
</select>
</mapper> </mapper>
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