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
fa31f15f
Commit
fa31f15f
authored
Nov 04, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检模块代码物理合并3
parent
e7f42a7d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
14 deletions
+18
-14
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+1
-0
WarehouseStructureServiceImpl.java
...uipmanage/service/impl/WarehouseStructureServiceImpl.java
+4
-1
IPointDao.java
...eejoin/amos/patrol/business/dao/repository/IPointDao.java
+2
-2
dbTemplate_input_item.xml
...ol/src/main/resources/db/mapper/dbTemplate_input_item.xml
+3
-3
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+8
-8
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
fa31f15f
...
@@ -2522,6 +2522,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -2522,6 +2522,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
wrapper
.
eq
(
OrgUsr:
:
getIsDelete
,
false
);
wrapper
.
eq
(
OrgUsr:
:
getIsDelete
,
false
);
wrapper
.
eq
(
OrgUsr:
:
getBizOrgType
,
OrgPersonEnum
.
人员
.
getKey
());
wrapper
.
eq
(
OrgUsr:
:
getBizOrgType
,
OrgPersonEnum
.
人员
.
getKey
());
wrapper
.
isNotNull
(
OrgUsr:
:
getAmosOrgId
);
wrapper
.
isNotNull
(
OrgUsr:
:
getAmosOrgId
);
wrapper
.
ne
(
OrgUsr:
:
getAmosOrgId
,
""
);
wrapper
.
likeRight
(
OrgUsr:
:
getBizOrgCode
,
company
.
getBizOrgCode
());
wrapper
.
likeRight
(
OrgUsr:
:
getBizOrgCode
,
company
.
getBizOrgCode
());
return
this
.
baseMapper
.
selectList
(
wrapper
);
return
this
.
baseMapper
.
selectList
(
wrapper
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/WarehouseStructureServiceImpl.java
View file @
fa31f15f
...
@@ -76,7 +76,10 @@ public class WarehouseStructureServiceImpl extends ServiceImpl<WarehouseStructur
...
@@ -76,7 +76,10 @@ public class WarehouseStructureServiceImpl extends ServiceImpl<WarehouseStructur
public
List
<
WarehouseStructure
>
gettree
(
Long
warehouseId
,
String
bizOrgCode
,
String
buildingId
)
{
public
List
<
WarehouseStructure
>
gettree
(
Long
warehouseId
,
String
bizOrgCode
,
String
buildingId
)
{
List
<
WarehouseStructure
>
list
=
new
ArrayList
<>();
List
<
WarehouseStructure
>
list
=
new
ArrayList
<>();
if
(!
StringUtils
.
isEmpty
(
buildingId
)){
//buildId如果不为空,则为巡检点业务所调用入口
if
(!
StringUtils
.
isEmpty
(
buildingId
)){
//buildId如果不为空,则为巡检点业务所调用入口
Map
<
String
,
String
>
map
=
formInstanceMapper
.
getChildListdate
(
Long
.
parseLong
(
buildingId
));
Map
<
String
,
String
>
map
=
new
HashMap
<>();
List
<
String
>
list1
=
formInstanceMapper
.
selectChildListdate
(
Long
.
parseLong
(
buildingId
));
String
join
=
String
.
join
(
","
,
list1
);
map
.
put
(
"ids"
,
join
);
List
<
String
>
strings
=
new
ArrayList
<>();
List
<
String
>
strings
=
new
ArrayList
<>();
if
(
map
.
get
(
"ids"
)!=
null
&&
!
map
.
get
(
"ids"
).
equals
(
""
)){
if
(
map
.
get
(
"ids"
)!=
null
&&
!
map
.
get
(
"ids"
).
equals
(
""
)){
String
ids
=
map
.
get
(
"ids"
);
String
ids
=
map
.
get
(
"ids"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/repository/IPointDao.java
View file @
fa31f15f
...
@@ -27,10 +27,10 @@ public interface IPointDao extends BaseDao<Point, Long> {
...
@@ -27,10 +27,10 @@ public interface IPointDao extends BaseDao<Point, Long> {
Optional
<
Point
>
findById
(
Long
id
);
Optional
<
Point
>
findById
(
Long
id
);
@Query
(
value
=
"select * from p_point where point_no = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id = ?2)"
,
nativeQuery
=
true
)
@Query
(
value
=
"select * from p_point where point_no = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id
!
= ?2)"
,
nativeQuery
=
true
)
List
<
Point
>
findByNo
(
String
pointNo
,
String
id
);
List
<
Point
>
findByNo
(
String
pointNo
,
String
id
);
@Query
(
value
=
"select * from p_point where name = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id = ?2)"
,
nativeQuery
=
true
)
@Query
(
value
=
"select * from p_point where name = (?1) and is_delete =0 and if(?2 is null, 1 = 1 , id
!
= ?2)"
,
nativeQuery
=
true
)
List
<
Point
>
findByName
(
String
name
,
String
id
);
List
<
Point
>
findByName
(
String
name
,
String
id
);
}
}
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
fa31f15f
...
@@ -208,13 +208,13 @@
...
@@ -208,13 +208,13 @@
ppi.order_no as pOrderNo,
ppi.order_no as pOrderNo,
ppi.id as pointItemId,
ppi.id as pointItemId,
ppc.name as classifyNames,
ppc.name as classifyNames,
ppc.id as classifyIds
,
ppc.id as classifyIds
prpi.id as routePointItemId
<!-- ,prpi.id as routePointItemId-->
FROM
FROM
p_point_classify ppc
p_point_classify ppc
LEFT JOIN p_point_inputitem ppi ON ppi.classify_ids = ppc.id
LEFT JOIN p_point_inputitem ppi ON ppi.classify_ids = ppc.id
LEFT JOIN p_input_item pii ON pii.id = ppi.input_item_id
LEFT JOIN p_input_item pii ON pii.id = ppi.input_item_id
lEFT JOIN p_route_point_item prpi ON prpi.point_input_item_id = pii.id
<!-- lEFT JOIN p_route_point_item prpi ON prpi.point_input_item_id = pii.id-->
WHERE pii.is_delete = '0'
WHERE pii.is_delete = '0'
<if
test=
"classifyId!=null and classifyId !='' "
>
AND ppc.id = #{classifyId}
</if>
<if
test=
"classifyId!=null and classifyId !='' "
>
AND ppc.id = #{classifyId}
</if>
<!-- <if test="pointId!=null and pointId !='' "> AND ppc.point_id = #{pointId}</if>-->
<!-- <if test="pointId!=null and pointId !='' "> AND ppc.point_id = #{pointId}</if>-->
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
fa31f15f
...
@@ -22,15 +22,15 @@
...
@@ -22,15 +22,15 @@
<!-- OR-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- )-->
<!-- )-->
<if
test=
"beginDate!=null and endDate!=null"
>
<if
test=
"beginDate!=null and endDate!=null
and endDate != '' and endDate == null
"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
</if>
<if
test=
"beginDate==null and endDate != null"
>
<if
test=
"beginDate==null and endDate != null
and endDate != ''
"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
</if>
<if
test=
"beginDate!=null and endDate == null"
>
<if
test=
"beginDate!=null and
beginDate != '' and
endDate == null"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
</if>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
</if>
<if
test=
"bizOrgCode!=null"
>
and a.org_Code like concat (#{bizOrgCode},"%")
</if>
<if
test=
"bizOrgCode!=null"
>
and a.org_Code like concat (#{bizOrgCode},"%")
</if>
<if
test=
"searchDay!=null and searchDay != '' searchDay == 1"
>
<if
test=
"searchDay!=null and searchDay != ''
and
searchDay == 1"
>
and a.`check_date` = curdate()
and a.`check_date` = curdate()
</if>
</if>
...
@@ -104,15 +104,15 @@
...
@@ -104,15 +104,15 @@
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- )-->
<!-- )-->
<if
test=
"beginDate!=null and endDate!=null"
>
<if
test=
"beginDate!=null and endDate!=null
and endDate != '' and endDate == null
"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
</if>
<if
test=
"beginDate==null and endDate != null"
>
<if
test=
"beginDate==null and endDate != null
and endDate != ''
"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
</if>
<if
test=
"beginDate!=null and endDate == null"
>
<if
test=
"beginDate!=null and
beginDate != '' and
endDate == null"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
</if>
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
<if
test=
"orgCode!=null"
>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
</if>
<if
test=
"searchDay!=null and searchDay != '' searchDay == 1"
>
<if
test=
"searchDay!=null and searchDay != ''
and
searchDay == 1"
>
and a.`check_date` = curdate()
and a.`check_date` = curdate()
</if>
</if>
</where>
</where>
...
...
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