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
69d633f4
Commit
69d633f4
authored
Mar 27, 2025
by
ZhangRunSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物资更改
parent
28de8295
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
+18
-14
PsaMaterialController.java
.../com/ruoyi/material/controller/PsaMaterialController.java
+0
-2
PsaMaterialApplyController.java
.../materialapply/controller/PsaMaterialApplyController.java
+0
-1
PsaMaterialEntryController.java
.../materialentry/controller/PsaMaterialEntryController.java
+1
-1
PsaMaterialEntry.java
...java/com/ruoyi/materialentry/domain/PsaMaterialEntry.java
+3
-0
PsaMaterialEntryMapper.xml
...main/resources/mapper/material/PsaMaterialEntryMapper.xml
+14
-10
No files found.
ruoyi-psa/src/main/java/com/ruoyi/material/controller/PsaMaterialController.java
View file @
69d633f4
...
@@ -132,7 +132,6 @@ public class PsaMaterialController extends BaseController
...
@@ -132,7 +132,6 @@ public class PsaMaterialController extends BaseController
/**
/**
* 查询所有物品类别
* 查询所有物品类别
*/
*/
@PreAuthorize
(
"@ss.hasPermi('psa:material:list')"
)
@GetMapping
(
"/type/list"
)
@GetMapping
(
"/type/list"
)
public
AjaxResult
materialType
()
public
AjaxResult
materialType
()
{
{
...
@@ -142,7 +141,6 @@ public class PsaMaterialController extends BaseController
...
@@ -142,7 +141,6 @@ public class PsaMaterialController extends BaseController
/**
/**
* 查询所有类别的细分物品
* 查询所有类别的细分物品
*/
*/
@PreAuthorize
(
"@ss.hasPermi('psa:material:list')"
)
@GetMapping
(
"/type/detail/list"
)
@GetMapping
(
"/type/detail/list"
)
public
AjaxResult
materialTypeDetail
()
public
AjaxResult
materialTypeDetail
()
{
{
...
...
ruoyi-psa/src/main/java/com/ruoyi/materialapply/controller/PsaMaterialApplyController.java
View file @
69d633f4
...
@@ -116,7 +116,6 @@ public class PsaMaterialApplyController extends BaseController
...
@@ -116,7 +116,6 @@ public class PsaMaterialApplyController extends BaseController
/**
/**
* 查项目和用户中间表
* 查项目和用户中间表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('material:apply:select')"
)
@GetMapping
(
"/selectuser"
)
@GetMapping
(
"/selectuser"
)
public
AjaxResult
select
()
public
AjaxResult
select
()
{
{
...
...
ruoyi-psa/src/main/java/com/ruoyi/materialentry/controller/PsaMaterialEntryController.java
View file @
69d633f4
...
@@ -50,7 +50,7 @@ public class PsaMaterialEntryController extends BaseController
...
@@ -50,7 +50,7 @@ public class PsaMaterialEntryController extends BaseController
}
}
/**
/**
* 查询物品
入库信息
列表
* 查询物品
草稿箱
列表
*/
*/
@PreAuthorize
(
"@ss.hasPermi('psa:entry:draft')"
)
@PreAuthorize
(
"@ss.hasPermi('psa:entry:draft')"
)
@GetMapping
(
"/list/draft"
)
@GetMapping
(
"/list/draft"
)
...
...
ruoyi-psa/src/main/java/com/ruoyi/materialentry/domain/PsaMaterialEntry.java
View file @
69d633f4
...
@@ -31,6 +31,9 @@ public class PsaMaterialEntry extends BaseEntity
...
@@ -31,6 +31,9 @@ public class PsaMaterialEntry extends BaseEntity
@Excel
(
name
=
"报销ID"
,
defaultValue
=
"无"
)
@Excel
(
name
=
"报销ID"
,
defaultValue
=
"无"
)
private
Long
expenseId
;
private
Long
expenseId
;
/** 流水号 */
private
String
serialNumber
;
/** 物类ID */
/** 物类ID */
private
Long
typeId
;
private
Long
typeId
;
...
...
ruoyi-psa/src/main/resources/mapper/material/PsaMaterialEntryMapper.xml
View file @
69d633f4
...
@@ -21,6 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -21,6 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"draft"
column=
"draft"
/>
<result
property=
"draft"
column=
"draft"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"typeName"
column=
"type_name"
/>
<result
property=
"typeName"
column=
"type_name"
/>
<result
property=
"serialNumber"
column=
"serial_number"
/>
</resultMap>
</resultMap>
<sql
id=
"selectPsaMaterialEntryVo"
>
<sql
id=
"selectPsaMaterialEntryVo"
>
...
@@ -39,23 +41,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -39,23 +41,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
pe.remark,
pe.remark,
pe.draft,
pe.draft,
pe.del_flag,
pe.del_flag,
pmt.type_name
pmt.type_name,
fpcr.serial_number
from psa_material_entry pe
from psa_material_entry pe
left join psa_material_type pmt on pe.type_id = pmt.id
left join psa_material_type pmt on pe.type_id = pmt.id
left join fygl_project_cost_reimbursement fpcr on pe.expense_id = fpcr.id
</sql>
</sql>
<select
id=
"selectPsaMaterialEntryList"
parameterType=
"PsaMaterialEntry"
resultMap=
"PsaMaterialEntryResult"
>
<select
id=
"selectPsaMaterialEntryList"
parameterType=
"PsaMaterialEntry"
resultMap=
"PsaMaterialEntryResult"
>
<include
refid=
"selectPsaMaterialEntryVo"
/>
<include
refid=
"selectPsaMaterialEntryVo"
/>
<where>
<where>
<if
test=
"entryMethod != null and entryMethod != ''"
>
and entry_method = #{entryMethod}
</if>
<if
test=
"entryMethod != null and entryMethod != ''"
>
and
pe.
entry_method = #{entryMethod}
</if>
<if
test=
"materialId != null "
>
and material_id = #{materialId}
</if>
<if
test=
"materialId != null "
>
and
pe.
material_id = #{materialId}
</if>
<if
test=
"expenseId != null "
>
and expense_id = #{expenseId}
</if>
<if
test=
"expenseId != null "
>
and
pe.
expense_id = #{expenseId}
</if>
<if
test=
"typeId != null "
>
and type_id = #{typeId}
</if>
<if
test=
"typeId != null "
>
and
pe.
type_id = #{typeId}
</if>
<if
test=
"itemId != null "
>
and item_id = #{itemId}
</if>
<if
test=
"itemId != null "
>
and
pe.
item_id = #{itemId}
</if>
<if
test=
"itemName != null and itemName != ''"
>
and item_name like concat('%', #{itemName}, '%')
</if>
<if
test=
"itemName != null and itemName != ''"
>
and
pe.
item_name like concat('%', #{itemName}, '%')
</if>
<if
test=
"entryQuantity != null "
>
and entry_quantity = #{entryQuantity}
</if>
<if
test=
"entryQuantity != null "
>
and
pe.
entry_quantity = #{entryQuantity}
</if>
<if
test=
"draft != null and draft != ''"
>
and draft = #{draft}
</if>
<if
test=
"draft != null and draft != ''"
>
and
pe.
draft = #{draft}
</if>
<if
test=
"delFlag != null and delFlag != ''"
>
and del_flag = #{delFlag}
</if>
<if
test=
"delFlag != null and delFlag != ''"
>
and
pe.
del_flag = #{delFlag}
</if>
</where>
</where>
</select>
</select>
...
...
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