Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
31695c11
Commit
31695c11
authored
Nov 22, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检相关bug机场同步
parent
6d19aa0e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
46 additions
and
3 deletions
+46
-3
InputItem.java
...in/java/com/yeejoin/amos/patrol/dao/entity/InputItem.java
+2
-0
PointInputItem.java
...va/com/yeejoin/amos/patrol/dao/entity/PointInputItem.java
+3
-0
RoutePointItem.java
...va/com/yeejoin/amos/patrol/dao/entity/RoutePointItem.java
+2
-0
PointController.java
...join/amos/patrol/business/controller/PointController.java
+0
-0
InputItemMapper.java
...join/amos/patrol/business/dao/mapper/InputItemMapper.java
+8
-1
PointInputItemMapper.java
...amos/patrol/business/dao/mapper/PointInputItemMapper.java
+9
-0
RoutePointItemMapper.java
...amos/patrol/business/dao/mapper/RoutePointItemMapper.java
+5
-1
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+1
-1
dbTemplate_input_item.xml
...ol/src/main/resources/db/mapper/dbTemplate_input_item.xml
+16
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-patrol-api/src/main/java/com/yeejoin/amos/patrol/dao/entity/InputItem.java
View file @
31695c11
...
@@ -6,6 +6,7 @@ import javax.persistence.Lob;
...
@@ -6,6 +6,7 @@ import javax.persistence.Lob;
import
javax.persistence.NamedQuery
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
org.hibernate.annotations.Where
;
import
org.hibernate.annotations.Where
;
...
@@ -16,6 +17,7 @@ import org.hibernate.annotations.Where;
...
@@ -16,6 +17,7 @@ import org.hibernate.annotations.Where;
@Table
(
name
=
"p_input_item"
)
@Table
(
name
=
"p_input_item"
)
@NamedQuery
(
name
=
"InputItem.findAll"
,
query
=
"SELECT c FROM InputItem c"
)
@NamedQuery
(
name
=
"InputItem.findAll"
,
query
=
"SELECT c FROM InputItem c"
)
@Where
(
clause
=
"is_delete=0"
)
//表示未删除的数据
@Where
(
clause
=
"is_delete=0"
)
//表示未删除的数据
@TableName
(
"p_input_item"
)
public
class
InputItem
extends
BasicEntity
{
public
class
InputItem
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-patrol-api/src/main/java/com/yeejoin/amos/patrol/dao/entity/PointInputItem.java
View file @
31695c11
package
com
.
yeejoin
.
amos
.
patrol
.
dao
.
entity
;
package
com
.
yeejoin
.
amos
.
patrol
.
dao
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.NamedQuery
;
...
@@ -11,6 +13,7 @@ import javax.persistence.Table;
...
@@ -11,6 +13,7 @@ import javax.persistence.Table;
*/
*/
@Entity
@Entity
@Table
(
name
=
"p_point_inputitem"
)
@Table
(
name
=
"p_point_inputitem"
)
@TableName
(
"p_point_inputitem"
)
@NamedQuery
(
name
=
"PointInputItem.findAll"
,
query
=
"SELECT p FROM PointInputItem p"
)
@NamedQuery
(
name
=
"PointInputItem.findAll"
,
query
=
"SELECT p FROM PointInputItem p"
)
public
class
PointInputItem
extends
BasicEntity
{
public
class
PointInputItem
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-patrol-api/src/main/java/com/yeejoin/amos/patrol/dao/entity/RoutePointItem.java
View file @
31695c11
...
@@ -8,6 +8,7 @@ import javax.persistence.NamedQuery;
...
@@ -8,6 +8,7 @@ import javax.persistence.NamedQuery;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
javax.persistence.Transient
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
...
@@ -17,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonBackReference;
...
@@ -17,6 +18,7 @@ import com.fasterxml.jackson.annotation.JsonBackReference;
*/
*/
@Entity
@Entity
@Table
(
name
=
"p_route_point_item"
)
@Table
(
name
=
"p_route_point_item"
)
@TableName
(
"p_route_point_item"
)
@NamedQuery
(
name
=
"RoutePointItem.findAll"
,
query
=
"SELECT r FROM RoutePointItem r"
)
@NamedQuery
(
name
=
"RoutePointItem.findAll"
,
query
=
"SELECT r FROM RoutePointItem r"
)
public
class
RoutePointItem
extends
BasicEntity
{
public
class
RoutePointItem
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
31695c11
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/InputItemMapper.java
View file @
31695c11
...
@@ -4,6 +4,7 @@ import java.util.HashMap;
...
@@ -4,6 +4,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.patrol.business.vo.PointInputItemVo
;
import
com.yeejoin.amos.patrol.business.vo.PointInputItemVo
;
import
com.yeejoin.amos.patrol.dao.entity.PointInputItem
;
import
com.yeejoin.amos.patrol.dao.entity.PointInputItem
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
@@ -15,7 +16,8 @@ import com.yeejoin.amos.patrol.dao.entity.InputItem;
...
@@ -15,7 +16,8 @@ import com.yeejoin.amos.patrol.dao.entity.InputItem;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
@Repository
@Repository
public
interface
InputItemMapper
extends
BaseMapper
{
@Mapper
public
interface
InputItemMapper
extends
BaseMapper
<
InputItem
>
{
/**
/**
* 新接口
* 新接口
...
@@ -62,4 +64,9 @@ public interface InputItemMapper extends BaseMapper {
...
@@ -62,4 +64,9 @@ public interface InputItemMapper extends BaseMapper {
public
List
<
PointInputItemVo
>
queryCustomInputItemByPointId
(
@Param
(
"classifyId"
)
String
classifyId
);
public
List
<
PointInputItemVo
>
queryCustomInputItemByPointId
(
@Param
(
"classifyId"
)
String
classifyId
);
public
PointInputItemVo
getInputItemByEquipmentName
(
@Param
(
"equipmentName"
)
String
equipmentName
);
public
PointInputItemVo
getInputItemByEquipmentName
(
@Param
(
"equipmentName"
)
String
equipmentName
);
void
delPointInputItemById
(
@Param
(
"ids"
)
List
<
Long
>
ids
);
void
delRoutePointItemByItemId
(
@Param
(
"ids"
)
List
<
Long
>
ids
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PointInputItemMapper.java
0 → 100644
View file @
31695c11
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
dao
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.patrol.dao.entity.PointInputItem
;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
PointInputItemMapper
extends
BaseMapper
<
PointInputItem
>
{
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/RoutePointItemMapper.java
View file @
31695c11
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
dao
.
mapper
;
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
dao
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.patrol.dao.entity.RoutePointItem
;
import
com.yeejoin.amos.patrol.dao.entity.RoutePointItem
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
public
interface
RoutePointItemMapper
extends
BaseMapper
{
@Mapper
public
interface
RoutePointItemMapper
extends
BaseMapper
<
RoutePointItem
>
{
public
void
updateRoutePointItem
(
RoutePointItem
pointItem
);
public
void
updateRoutePointItem
(
RoutePointItem
pointItem
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
31695c11
...
@@ -134,7 +134,7 @@ public class PointServiceImpl implements IPointService {
...
@@ -134,7 +134,7 @@ public class PointServiceImpl implements IPointService {
@Override
@Override
public
void
addPointClassifyByPointId
(
PointClassify
pointClassify
)
{
public
void
addPointClassifyByPointId
(
PointClassify
pointClassify
)
{
iPointClassifyDao
.
save
(
pointClassify
);
iPointClassifyDao
.
save
AndFlush
(
pointClassify
);
}
}
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
31695c11
...
@@ -446,4 +446,19 @@
...
@@ -446,4 +446,19 @@
<select
id=
"getAllCategoryName"
resultType=
"java.util.Map"
>
<select
id=
"getAllCategoryName"
resultType=
"java.util.Map"
>
select code, `name` from wl_equipment_category
select code, `name` from wl_equipment_category
</select>
</select>
<delete
id=
"delPointInputItemById"
>
DELETE FROM p_point_inputitem WHERE id IN
<foreach
collection=
"ids"
item=
"item"
index=
"index"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</delete>
<delete
id=
"delRoutePointItemByItemId"
>
DELETE FROM p_route_point_item WHERE point_input_item_id IN
<foreach
collection=
"ids"
item=
"item"
index=
"index"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</delete>
</mapper>
</mapper>
\ 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