Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-health-science
Commits
e69f74d7
Commit
e69f74d7
authored
Dec 16, 2024
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
7940206f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
2 deletions
+107
-2
ComProjectManufactureDAO.java
...ava/com/yiboshi/science/dao/ComProjectManufactureDAO.java
+2
-2
ComProjectManufactureService.java
...yiboshi/science/service/ComProjectManufactureService.java
+41
-0
ComProjectManufactureServiceImpl.java
...cience/service/impl/ComProjectManufactureServiceImpl.java
+64
-0
No files found.
science-admin/src/main/java/com/yiboshi/science/dao/ComProjectManufactureDAO.java
View file @
e69f74d7
...
@@ -3,7 +3,6 @@ package com.yiboshi.science.dao;
...
@@ -3,7 +3,6 @@ package com.yiboshi.science.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yiboshi.science.base.BaseDAO
;
import
com.yiboshi.science.base.BaseDAO
;
import
com.yiboshi.science.entity.ComProjectManufacture
;
import
com.yiboshi.science.entity.ComProjectManufacture
;
import
com.yiboshi.science.param.dto.ComProjectEquipmentDTO
;
import
com.yiboshi.science.param.dto.ComProjectManufactureDTO
;
import
com.yiboshi.science.param.dto.ComProjectManufactureDTO
;
import
com.yiboshi.science.param.query.ComProjectManufactureQueryVO
;
import
com.yiboshi.science.param.query.ComProjectManufactureQueryVO
;
...
@@ -16,5 +15,5 @@ import java.util.List;
...
@@ -16,5 +15,5 @@ import java.util.List;
* @version 2024-12-16
* @version 2024-12-16
*/
*/
public
interface
ComProjectManufactureDAO
extends
BaseMapper
<
ComProjectManufacture
>,
BaseDAO
<
ComProjectManufactureQueryVO
,
ComProjectManufactureDTO
,
ComProjectManufacture
>
{
public
interface
ComProjectManufactureDAO
extends
BaseMapper
<
ComProjectManufacture
>,
BaseDAO
<
ComProjectManufactureQueryVO
,
ComProjectManufactureDTO
,
ComProjectManufacture
>
{
List
<
ComProject
Equipment
DTO
>
getListByObjectId
(
String
objectId
);
List
<
ComProject
Manufacture
DTO
>
getListByObjectId
(
String
objectId
);
}
}
\ No newline at end of file
science-admin/src/main/java/com/yiboshi/science/service/ComProjectManufactureService.java
0 → 100644
View file @
e69f74d7
package
com
.
yiboshi
.
science
.
service
;
import
com.yiboshi.science.base.BaseService
;
import
com.yiboshi.science.entity.ComProjectManufacture
;
import
com.yiboshi.science.param.dto.ComProjectEquipmentDTO
;
import
com.yiboshi.science.param.dto.ComProjectManufactureDTO
;
import
com.yiboshi.science.param.query.ComProjectManufactureQueryVO
;
import
java.util.List
;
/**
* 试制设备预算明细表 Service
*
* @author xujun
* @version 2024-12-16
*/
public
interface
ComProjectManufactureService
extends
BaseService
<
ComProjectManufactureQueryVO
,
ComProjectManufactureDTO
,
ComProjectManufacture
>
{
/**
* 根据对象获取经费列表
*
* @param objectId
* @return
*/
List
<
ComProjectManufactureDTO
>
getListByObjectId
(
String
objectId
);
/**插入经费表
*
* @param budgetList
* @param objectId
*/
void
insertEquipmentList
(
List
<
ComProjectManufactureDTO
>
budgetList
,
String
objectId
);
/** 删除对象列表
*
* @param objectId
*/
void
deleteByObjectId
(
String
objectId
);
}
\ No newline at end of file
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectManufactureServiceImpl.java
0 → 100644
View file @
e69f74d7
package
com
.
yiboshi
.
science
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yiboshi.science.base.BaseServiceImpl
;
import
com.yiboshi.science.dao.ComProjectManufactureDAO
;
import
com.yiboshi.science.entity.ComProjectManufacture
;
import
com.yiboshi.science.param.dto.ComProjectManufactureDTO
;
import
com.yiboshi.science.param.query.ComProjectManufactureQueryVO
;
import
com.yiboshi.science.service.ComProjectManufactureService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 试制设备预算明细表 Service 实现类
*
* @author lkl
* @version 2021-08-26
*/
@Service
public
class
ComProjectManufactureServiceImpl
extends
BaseServiceImpl
<
ComProjectManufactureDAO
,
ComProjectManufactureQueryVO
,
ComProjectManufactureDTO
,
ComProjectManufacture
>
implements
ComProjectManufactureService
{
@Autowired
private
ComProjectManufactureDAO
comProjectManufactureDAO
;
@Override
protected
void
setCriteriaForQuery
(
ComProjectManufactureQueryVO
vo
,
QueryWrapper
<
ComProjectManufactureQueryVO
>
criteria
)
{
}
@Override
public
List
<
ComProjectManufactureDTO
>
getListByObjectId
(
String
objectId
)
{
return
comProjectManufactureDAO
.
getListByObjectId
(
objectId
);
}
@Override
public
void
insertEquipmentList
(
List
<
ComProjectManufactureDTO
>
budgetList
,
String
objectId
)
{
ComProjectManufacture
E
=
new
ComProjectManufacture
();
E
.
setObjectId
(
objectId
);
this
.
delete
(
E
);
if
(
null
!=
budgetList
)
{
budgetList
.
forEach
((
e
)
->
{
if
(!
isObjectNull
(
e
))
{
e
.
setObjectId
(
objectId
);
ComProjectManufacture
comProjectManufacture
=
convert2Entity
(
e
);
this
.
insert
(
comProjectManufacture
);
}
});
// budgetList.forEach(e -> e.setObjectId(objectId));
// List<ComProjectEquipment> list = convertDto2EntityList(budgetList);
// this.insertBatch(list);
}
}
@Override
public
void
deleteByObjectId
(
String
objectId
)
{
ComProjectManufacture
E
=
new
ComProjectManufacture
();
E
.
setObjectId
(
objectId
);
this
.
delete
(
E
);
}
}
\ No newline at end of file
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