Commit d9febe3b authored by fangxinjiang's avatar fangxinjiang

事业部&事业部条线-fxj

parent 32a71532
......@@ -230,5 +230,8 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> {
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
count = baseMapper.selectTwoGsCount(excel.getName());
} else if (CommonConstants.TWELVE_STRING.equals(insert.getPermissionType())) {
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 {
count = baseMapper.selectDictByName(excel.getName(), "line");
}
......
......@@ -481,5 +481,16 @@
delete from sys_user_permission p
where SOURCE_TYPE = 0 and CODE = #{code} and PERMISSION_TYPE = #{permissionType}
</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>
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