Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
isoft_psa
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
isoft_psa
Commits
0b79679a
Commit
0b79679a
authored
Mar 17, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目费用报销-删除
parent
0f9bfa17
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
2 deletions
+24
-2
FyglProjectCostReimbursementController.java
...yi/controller/FyglProjectCostReimbursementController.java
+7
-0
FyglDailyReimbursementVo.java
...in/java/com/ruoyi/domain/vo/FyglDailyReimbursementVo.java
+3
-0
FyglProjectCostReimbursementMapper.java
.../com/ruoyi/mapper/FyglProjectCostReimbursementMapper.java
+2
-0
IFyglProjectCostReimbursementService.java
...m/ruoyi/service/IFyglProjectCostReimbursementService.java
+1
-0
IFyglProjectCostReimbursementServiceImpl.java
...ervice/impl/IFyglProjectCostReimbursementServiceImpl.java
+5
-0
FyglProjectCostReimbursementMapper.xml
...tCostReimbursement/FyglProjectCostReimbursementMapper.xml
+6
-2
No files found.
ruoyi-psa/src/main/java/com/ruoyi/controller/FyglProjectCostReimbursementController.java
View file @
0b79679a
...
@@ -61,4 +61,11 @@ public class FyglProjectCostReimbursementController extends BaseController {
...
@@ -61,4 +61,11 @@ public class FyglProjectCostReimbursementController extends BaseController {
{
{
return
AjaxResult
.
success
(
reimbursementService
.
updateReimbursement
(
reimbursementVo
));
return
AjaxResult
.
success
(
reimbursementService
.
updateReimbursement
(
reimbursementVo
));
}
}
//删除-逻辑
@PutMapping
(
"/delflag/{id}"
)
public
AjaxResult
delflag
(
@PathVariable
(
"id"
)
Integer
id
)
{
return
AjaxResult
.
success
(
reimbursementService
.
delflag
(
id
));
}
}
}
ruoyi-psa/src/main/java/com/ruoyi/domain/vo/FyglDailyReimbursementVo.java
View file @
0b79679a
...
@@ -26,6 +26,9 @@ public class FyglDailyReimbursementVo extends BaseEntity {
...
@@ -26,6 +26,9 @@ public class FyglDailyReimbursementVo extends BaseEntity {
//附件
//附件
private
String
accessory
;
private
String
accessory
;
//删除标志 0未删除1已删除
private
Integer
delFlag
;
private
Integer
id
;
private
Integer
id
;
private
Integer
rid
;
private
Integer
rid
;
private
String
serialNumber
;
private
String
serialNumber
;
...
...
ruoyi-psa/src/main/java/com/ruoyi/mapper/FyglProjectCostReimbursementMapper.java
View file @
0b79679a
...
@@ -25,4 +25,6 @@ public interface FyglProjectCostReimbursementMapper {
...
@@ -25,4 +25,6 @@ public interface FyglProjectCostReimbursementMapper {
public
int
updateReimbursement
(
FyglDailyReimbursementVo
fyglDailyReimbursementVo
);
public
int
updateReimbursement
(
FyglDailyReimbursementVo
fyglDailyReimbursementVo
);
int
deleteReimbursement
(
Integer
id
);
}
}
ruoyi-psa/src/main/java/com/ruoyi/service/IFyglProjectCostReimbursementService.java
View file @
0b79679a
...
@@ -18,4 +18,5 @@ public interface IFyglProjectCostReimbursementService {
...
@@ -18,4 +18,5 @@ public interface IFyglProjectCostReimbursementService {
public
int
updateReimbursement
(
FyglDailyReimbursementVo
fyglDailyReimbursementVo
);
public
int
updateReimbursement
(
FyglDailyReimbursementVo
fyglDailyReimbursementVo
);
int
delflag
(
Integer
id
);
}
}
ruoyi-psa/src/main/java/com/ruoyi/service/impl/IFyglProjectCostReimbursementServiceImpl.java
View file @
0b79679a
...
@@ -67,4 +67,9 @@ public class IFyglProjectCostReimbursementServiceImpl implements IFyglProjectCos
...
@@ -67,4 +67,9 @@ public class IFyglProjectCostReimbursementServiceImpl implements IFyglProjectCos
fyglDailyReimbursementVo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
fyglDailyReimbursementVo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
reimbursementMapper
.
updateReimbursement
(
fyglDailyReimbursementVo
);
return
reimbursementMapper
.
updateReimbursement
(
fyglDailyReimbursementVo
);
}
}
@Override
public
int
delflag
(
Integer
id
)
{
return
0
;
}
}
}
ruoyi-psa/src/main/resources/mapper/FyglProjectCostReimbursement/FyglProjectCostReimbursementMapper.xml
View file @
0b79679a
...
@@ -60,6 +60,9 @@
...
@@ -60,6 +60,9 @@
where id = #{id}
where id = #{id}
</update>
</update>
<update
id=
"deleteReimbursement"
>
update fygl_project_cost_reimbursement set del_flag = 1 where id =#{id}
</update>
<select
id=
"getList"
resultMap=
"listDTO"
parameterType=
"com.ruoyi.domain.dto.FyglProjectCostReimbursementDTO"
>
<select
id=
"getList"
resultMap=
"listDTO"
parameterType=
"com.ruoyi.domain.dto.FyglProjectCostReimbursementDTO"
>
...
@@ -80,6 +83,7 @@
...
@@ -80,6 +83,7 @@
LEFT JOIN fygl_project_cost_request r2 ON r2.id = r1.rid
LEFT JOIN fygl_project_cost_request r2 ON r2.id = r1.rid
LEFT JOIN project_manage p ON p.id = r2.project_id
LEFT JOIN project_manage p ON p.id = r2.project_id
<where>
<where>
p.del_flag = 0
<if
test=
"projectName != null and projectName != ''"
>
and p.project_name like concat('%',#{projectName},'%')
</if>
<if
test=
"projectName != null and projectName != ''"
>
and p.project_name like concat('%',#{projectName},'%')
</if>
<if
test=
"projectType != null and projectType != ''"
>
and p.project_type = #{projectType}
</if>
<if
test=
"projectType != null and projectType != ''"
>
and p.project_type = #{projectType}
</if>
<if
test=
"reimbursmentApproveStatus != null and reimbursmentApproveStatus != ''"
>
r1.reimbursment_approve_status = #{reimbursmentApproveStatus}
</if>
<if
test=
"reimbursmentApproveStatus != null and reimbursmentApproveStatus != ''"
>
r1.reimbursment_approve_status = #{reimbursmentApproveStatus}
</if>
...
@@ -108,7 +112,7 @@
...
@@ -108,7 +112,7 @@
LEFT JOIN fygl_project_cost_request r2 ON r2.id = r1.rid
LEFT JOIN fygl_project_cost_request r2 ON r2.id = r1.rid
LEFT JOIN project_manage p ON p.id = r2.project_id
LEFT JOIN project_manage p ON p.id = r2.project_id
left join sys_user u on u.user_id = p.department_leader_id
left join sys_user u on u.user_id = p.department_leader_id
where r1.id = #{id}
where r1.id = #{id}
and p.del_flag = 0
</select>
</select>
<resultMap
type=
"com.ruoyi.domain.dto.FyglProjectCostDTO"
id=
"list1DTO"
>
<resultMap
type=
"com.ruoyi.domain.dto.FyglProjectCostDTO"
id=
"list1DTO"
>
...
@@ -155,7 +159,7 @@
...
@@ -155,7 +159,7 @@
LEFT JOIN sys_user u ON u.user_id = p.department_leader_id
LEFT JOIN sys_user u ON u.user_id = p.department_leader_id
<where>
<where>
and fp.approve_status = 3
and fp.approve_status = 3
and p.del_flag = 0
<if
test=
"projectName != null and projectName != ''"
>
and p.project_name LIKE CONCAT('%',#{projectName},'%')
</if>
<if
test=
"projectName != null and projectName != ''"
>
and p.project_name LIKE CONCAT('%',#{projectName},'%')
</if>
<if
test=
"projectNumber != null and projectNumber != ''"
>
and p.project_number = #{projectNumber}
</if>
<if
test=
"projectNumber != null and projectNumber != ''"
>
and p.project_number = #{projectNumber}
</if>
<if
test=
"userId != null and userId != ''"
>
and u.user_id = #{userId}
</if>
<if
test=
"userId != null and userId != ''"
>
and u.user_id = #{userId}
</if>
...
...
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