Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
cb1a43a5
Commit
cb1a43a5
authored
Nov 21, 2022
by
蒋凌峰
😉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
4d3fbe35
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1008 additions
and
251 deletions
+1008
-251
ruoyi-admin/src/main/java/com/ruoyi/web/controller/finance/FncSubjectTypeController.java
...uoyi/web/controller/finance/FncSubjectTypeController.java
+4
-0
ruoyi-admin/src/main/resources/application-druid.yml
ruoyi-admin/src/main/resources/application-druid.yml
+6
-6
ruoyi-system/src/main/java/com/ruoyi/system/service/IFncSubjectTypeService.java
...java/com/ruoyi/system/service/IFncSubjectTypeService.java
+9
-1
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FncSubjectTypeServiceImpl.java
.../ruoyi/system/service/impl/FncSubjectTypeServiceImpl.java
+9
-0
ruoyi-system/src/main/resources/mapper/finance/FncInvoiceItemMapper.xml
...rc/main/resources/mapper/finance/FncInvoiceItemMapper.xml
+1
-1
ruoyi-system/src/main/resources/mapper/finance/FncInvoiceMapper.xml
...em/src/main/resources/mapper/finance/FncInvoiceMapper.xml
+1
-1
ruoyi-ui.rar
ruoyi-ui.rar
+0
-0
ruoyi-ui/src/views/finance/invoice/index.vue
ruoyi-ui/src/views/finance/invoice/index.vue
+881
-174
ruoyi-ui/vue.config.js
ruoyi-ui/vue.config.js
+1
-0
sql/ry-vue.sql
sql/ry-vue.sql
+96
-68
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/finance/FncSubjectTypeController.java
View file @
cb1a43a5
...
...
@@ -138,6 +138,10 @@ public class FncSubjectTypeController extends BaseController {
@Log
(
title
=
"科目类别"
,
businessType
=
BusinessType
.
DELETE
)
@GetMapping
(
"/remove/{subjectTypeIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
subjectTypeIds
)
{
if
(
fncSubjectTypeService
.
hasChildByIds
(
subjectTypeIds
))
{
return
warn
(
"存在子科目类别,不允许删除"
);
}
return
toAjax
(
fncSubjectTypeService
.
removeByIds
(
Arrays
.
asList
(
subjectTypeIds
))
?
1
:
0
);
}
}
ruoyi-admin/src/main/resources/application-druid.yml
View file @
cb1a43a5
...
...
@@ -6,16 +6,16 @@ spring:
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://
192.168.182.130
:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://
localhost
:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
password
:
root
# 从库数据源
slave
:
# 从数据源开关/默认关闭
enabled
:
false
url
:
username
:
password
:
url
:
username
:
password
:
# 初始连接数
initialSize
:
5
# 最小连接池数量
...
...
@@ -35,7 +35,7 @@ spring:
testWhileIdle
:
true
testOnBorrow
:
false
testOnReturn
:
false
webStatFilter
:
webStatFilter
:
enabled
:
true
statViewServlet
:
enabled
:
true
...
...
@@ -54,4 +54,4 @@ spring:
merge-sql
:
true
wall
:
config
:
multi-statement-allow
:
true
\ No newline at end of file
multi-statement-allow
:
true
ruoyi-system/src/main/java/com/ruoyi/system/service/IFncSubjectTypeService.java
View file @
cb1a43a5
...
...
@@ -37,5 +37,13 @@ public interface IFncSubjectTypeService extends IService<FncSubjectType> {
* @param subjectTypeId
* @return
*/
FncSubjectTypeVo
queryById
(
Long
subjectTypeId
);
FncSubjectTypeVo
queryById
(
Long
subjectTypeId
);
/**
* 根据ID集合查询是存在子科目类别
*
* @param subjectTypeIds
* @return
*/
boolean
hasChildByIds
(
Long
[]
subjectTypeIds
);
}
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/FncSubjectTypeServiceImpl.java
View file @
cb1a43a5
package
com.ruoyi.system.service.impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.utils.PageUtils
;
...
...
@@ -9,6 +11,7 @@ import com.ruoyi.system.mapper.FncSubjectTypeMapper;
import
com.ruoyi.system.service.IFncSubjectTypeService
;
import
org.springframework.stereotype.Service
;
import
java.util.Arrays
;
import
java.util.List
;
/**
...
...
@@ -34,4 +37,10 @@ public class FncSubjectTypeServiceImpl extends ServiceImpl<FncSubjectTypeMapper,
public
FncSubjectTypeVo
queryById
(
Long
subjectTypeId
)
{
return
this
.
baseMapper
.
queryById
(
subjectTypeId
);
}
//根据ID集合查询是存在子科目类别
@Override
public
boolean
hasChildByIds
(
Long
[]
subjectTypeIds
)
{
return
this
.
baseMapper
.
selectCount
(
new
LambdaQueryWrapper
<
FncSubjectType
>().
in
(
FncSubjectType:
:
getParentId
,
Arrays
.
asList
(
subjectTypeIds
)))
>
0
;
}
}
ruoyi-system/src/main/resources/mapper/finance/FncInvoiceItemMapper.xml
View file @
cb1a43a5
...
...
@@ -65,6 +65,6 @@
</sql>
<sql
id=
"search"
>
-- where A.delete_status = 1
</sql>
</mapper>
ruoyi-system/src/main/resources/mapper/finance/FncInvoiceMapper.xml
View file @
cb1a43a5
...
...
@@ -145,6 +145,6 @@
</sql>
<sql
id=
"search"
>
-- where A.delete_status = 1
</sql>
</mapper>
ruoyi-ui.rar
0 → 100644
View file @
cb1a43a5
File added
ruoyi-ui/src/views/finance/invoice/index.vue
View file @
cb1a43a5
This diff is collapsed.
Click to expand it.
ruoyi-ui/vue.config.js
View file @
cb1a43a5
...
...
@@ -36,6 +36,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://localhost:8080`
,
// target: `http://120.79.23.199:8080/`,
changeOrigin
:
true
,
pathRewrite
:
{
[
'
^
'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
sql/ry-vue.sql
View file @
cb1a43a5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment