Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
518c3482
Commit
518c3482
authored
Jun 14, 2024
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-14 修改 1人日
parent
381582e6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
16 deletions
+32
-16
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/schoolEquipment/SchoolEquipmentLedger.java
+8
-4
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolEquipmentLedgerDcVo.java
+9
-5
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolEquipmentLedgerVo.java
+8
-4
smart-campus/src/main/resources/mapper/schoolEquipment/EquipmentLedgerMapper.xml
+7
-3
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/domain/schoolEquipment/SchoolEquipmentLedger.java
View file @
518c3482
...
...
@@ -31,16 +31,16 @@ public class SchoolEquipmentLedger extends OurBaseEntity
@Excel
(
name
=
"型号"
)
private
String
model
;
/** 规格 */
@Excel
(
name
=
"
规格
"
)
/** 规格
改为 出厂编号
*/
@Excel
(
name
=
"
出厂编号
"
)
private
String
specification
;
/** 分类编码 */
@Excel
(
name
=
"分类编码"
)
private
String
classificationCode
;
/** 单位 */
@Excel
(
name
=
"
单位
"
)
/** 单位
改为 设备编码
*/
@Excel
(
name
=
"
设备编码
"
)
private
String
unit
;
/** 归属类型(1公共区域,2信息中心,3个人) */
...
...
@@ -87,4 +87,8 @@ public class SchoolEquipmentLedger extends OurBaseEntity
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remark
;
/** 批号 */
@Excel
(
name
=
"批号"
)
private
String
ph
;
}
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolEquipmentLedgerDcVo.java
View file @
518c3482
...
...
@@ -26,7 +26,7 @@ public class SchoolEquipmentLedgerDcVo extends OurBaseEntity
private
Integer
serialNumber
;
/** 自编码 */
@Excel
(
name
=
"
设备名称
"
)
@Excel
(
name
=
"
自编码
"
)
private
String
encode
;
/** 设备名称 */
...
...
@@ -37,18 +37,22 @@ public class SchoolEquipmentLedgerDcVo extends OurBaseEntity
@Excel
(
name
=
"型号"
)
private
String
model
;
/** 规格 */
@Excel
(
name
=
"
规格
"
)
/** 规格
改为 出厂编号
*/
@Excel
(
name
=
"
出厂编号
"
)
private
String
specification
;
/** 分类编码 */
@Excel
(
name
=
"分类编码"
)
private
String
classificationCode
;
/** 单位 */
@Excel
(
name
=
"
单位
"
)
/** 单位
改为 设备编码
*/
@Excel
(
name
=
"
设备编码
"
)
private
String
unit
;
/** 批号 */
@Excel
(
name
=
"批号"
)
private
String
ph
;
/** 归属类型(1公共区域,2信息中心,3个人) */
@Excel
(
name
=
"归属类型"
,
readConverterExp
=
"1=公共区域,2=信息中心,3=个人"
,
combo
=
{
"公共区域"
,
"信息中心"
,
"个人"
})
private
String
affiliationType
;
...
...
smart-campus/src/main/java/yangtz/cs/liu/campus/vo/schoolEquipment/SchoolEquipmentLedgerVo.java
View file @
518c3482
...
...
@@ -37,16 +37,16 @@ public class SchoolEquipmentLedgerVo extends BaseEntity
@Excel
(
name
=
"型号"
)
private
String
model
;
/** 规格 */
@Excel
(
name
=
"
规格
"
)
/** 规格
改为 出厂编号
*/
@Excel
(
name
=
"
出厂编号
"
)
private
String
specification
;
/** 分类编码 */
@Excel
(
name
=
"分类编码"
)
private
String
classificationCode
;
/** 单位 */
@Excel
(
name
=
"
单位
"
)
/** 单位
改为 设备编码
*/
@Excel
(
name
=
"
设备编码
"
)
private
String
unit
;
/** 归属类型(1公共区域,2信息中心,3个人) */
...
...
@@ -92,4 +92,8 @@ public class SchoolEquipmentLedgerVo extends BaseEntity
/** 备注 */
@Excel
(
name
=
"备注"
)
private
String
remark
;
/** 批号 */
@Excel
(
name
=
"批号"
)
private
String
ph
;
}
smart-campus/src/main/resources/mapper/schoolEquipment/EquipmentLedgerMapper.xml
View file @
518c3482
...
...
@@ -28,10 +28,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"delFalg"
column=
"del_flag"
/>
<result
property=
"ph"
column=
"ph"
/>
</resultMap>
<select
id=
"selectSchoolEquipmentLedgerList"
parameterType=
"SchoolEquipmentLedgerVo"
resultMap=
"schoolEquipmentLedgerResult"
>
select el.id,el.encode,el.equipment_name,el.model,el.specification,el.classification_code,el.unit,el.affiliation_type,el.equipment_state,el.is_allow_lend,el.is_lend,el.date_of_production,
select el.id,el.encode,el.equipment_name,el.model,el.specification,el.classification_code,el.unit,el.affiliation_type,
el.equipment_state,el.is_allow_lend,el.is_lend,el.date_of_production, el.ph,
el.price,el.life_of_utility,el.place,el.use_id,el.use_name,el.remark,el.create_by,el.create_time,el.update_by,el.update_time
from school_equipment_ledger el
left join school_product_category pc on el.classification_code = pc.classification_code
...
...
@@ -46,7 +48,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"selectSchoolEquipmentLedgerListGr"
parameterType=
"SchoolEquipmentLedgerVo"
resultMap=
"schoolEquipmentLedgerResult"
>
select el.id,el.encode,el.equipment_name,el.model,el.specification,el.classification_code,el.unit,el.affiliation_type,el.equipment_state,el.is_allow_lend,el.is_lend,el.date_of_production,
select el.id,el.encode,el.equipment_name,el.model,el.specification,el.classification_code,el.unit, el.ph,
el.affiliation_type,el.equipment_state,el.is_allow_lend,el.is_lend,el.date_of_production,
el.price,el.life_of_utility,el.place,el.use_id,el.use_name,el.remark,el.create_by,el.create_time,el.update_by,el.update_time
from school_equipment_ledger el
left join school_product_category pc on el.classification_code = pc.classification_code
...
...
@@ -83,7 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"getEquipmentledger"
parameterType=
"String"
resultType=
"Map"
>
select id as id, encode as encode, equipment_name as equipmentName, model as model, place as place from school_equipment_ledger where id in
select id as id, encode as encode, equipment_name as equipmentName, model as model, place as place, ph, unit, specification
from school_equipment_ledger where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
...
...
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