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
d69c1f83
Commit
d69c1f83
authored
Nov 11, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_bugfix' into develop_tzs_bugfix
parents
8e57270e
23926c92
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
+25
-15
OtherInfo.java
...om/yeejoin/amos/boot/module/app/api/entity/OtherInfo.java
+2
-1
TzsAppService.java
.../amos/boot/module/app/biz/service/impl/TzsAppService.java
+11
-2
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+12
-12
No files found.
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-api/src/main/java/com/yeejoin/amos/boot/module/app/api/entity/OtherInfo.java
View file @
d69c1f83
...
...
@@ -64,5 +64,6 @@ public class OtherInfo extends AbstractEquipBaseEntity {
@TableField
(
value
=
"\"SUPERVISORY_CODE\""
)
private
String
supervisoryCode
;
@TableField
(
value
=
"\"STATUS\""
)
private
String
status
;
}
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-biz/src/main/java/com/yeejoin/amos/boot/module/app/biz/service/impl/TzsAppService.java
View file @
d69c1f83
...
...
@@ -19,7 +19,6 @@ import com.yeejoin.amos.boot.module.app.api.dto.*;
import
com.yeejoin.amos.boot.module.app.api.entity.*
;
import
com.yeejoin.amos.boot.module.app.api.enums.EquipmentCategoryEnum
;
import
com.yeejoin.amos.boot.module.app.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.app.api.mapper.AppCommonMapper
;
import
com.yeejoin.amos.boot.module.app.api.mapper.CategoryOtherInfoMapper
;
import
com.yeejoin.amos.boot.module.app.api.mapper.EquipmentCategoryMapper
;
import
com.yeejoin.amos.boot.module.app.biz.utils.HttpUtils
;
...
...
@@ -254,7 +253,7 @@ public class TzsAppService {
otherJsonObject
.
put
(
"tabValue"
,
otherList
);
jsonArray
.
add
(
otherJsonObject
);
map
.
put
(
"tab"
,
jsonArray
);
map
.
put
(
"color"
,
this
.
getQrCodeColor
(
record
));
return
map
;
}
...
...
@@ -409,9 +408,19 @@ public class TzsAppService {
jsonArray
.
add
(
constructionJsonObject
);
map
.
put
(
"tab"
,
jsonArray
);
}
map
.
put
(
"color"
,
this
.
getQrCodeColor
(
record
));
return
map
;
}
private
String
getQrCodeColor
(
String
record
)
{
// 二维码颜色赋值逻辑
OtherInfo
otherInfo
=
otherInfoService
.
getOne
(
new
LambdaQueryWrapper
<
OtherInfo
>().
eq
(
OtherInfo:
:
getRecord
,
record
));
if
(
otherInfo
!=
null
)
{
return
"0"
.
equals
(
otherInfo
.
getStatus
())
?
"#ff0000"
:
"#00ff00"
;
}
return
"#f2f2f2"
;
}
public
void
getGroupList
(
HashMap
putMap
,
String
record
,
Class
entity
,
Class
dto
,
BaseService
service
,
List
list
,
boolean
isOne
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
TableInfoHelper
.
initTableInfo
(
new
MapperBuilderAssistant
(
new
MybatisConfiguration
(),
""
),
entity
);
QueryWrapper
wrapper
=
new
QueryWrapper
();
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
d69c1f83
...
...
@@ -298,10 +298,10 @@
and n.notice_status != '6610'
and n.notice_status != '6615'
<if
test=
"param.beginDate != null"
>
and
date_ge(CAST(n.notice_date as date), #{param.beginDate})
and
CAST(n.notice_date as date)
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate != null"
>
and
date_le(CAST(n.notice_date as date), #{param.endDate})
and
CAST(n.notice_date as date)
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.receiveOrgCode != null"
>
and n.receive_company_org_code like concat(#{param.receiveOrgCode}, '%')
...
...
@@ -544,10 +544,10 @@
and n.status != '使用单位待提交'
and n.status != '使用单位已撤回'
<if
test=
"param.beginDate != null"
>
and
date_ge(CAST(n.create_date as date), #{param.beginDate})
and
CAST(n.create_date as date)
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate != null"
>
and
date_le(CAST(n.create_date as date), #{param.endDate})
and
CAST(n.create_date as date)
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.receiveOrgCode != null"
>
and n.receive_company_org_code like concat(#{param.receiveOrgCode}, '%')
...
...
@@ -603,10 +603,10 @@
and n.is_delete = 0
and (n.manage_type is null or n.manage_type = '' or n.manage_type = 'set')
<if
test=
"param.beginDate != null"
>
and
date_ge(CAST(n.reg_date as date), #{param.beginDate})
and
CAST(n.reg_date as date)
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate != null"
>
and
date_le(CAST(n.reg_date as date), #{param.endDate})
and
CAST(n.reg_date as date)
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.receiveOrgCode != null"
>
and n.receive_company_org_code like concat(#{param.receiveOrgCode}, '%')
...
...
@@ -653,10 +653,10 @@
and n.audit_status != '使用单位待提交'
and n.audit_status != '使用单位已撤回'
<if
test=
"param.beginDate != null"
>
and
date_ge(CAST(n.reg_date as date), #{param.beginDate})
and
CAST(n.reg_date as date)
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate != null"
>
and
date_le(CAST(n.reg_date as date), #{param.endDate})
and
CAST(n.reg_date as date)
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.receiveOrgCode != null"
>
and n.receive_company_org_code like concat(#{param.receiveOrgCode}, '%')
...
...
@@ -702,10 +702,10 @@
and n.audit_status != '使用单位待提交'
and n.audit_status != '使用单位已撤回'
<if
test=
"param.beginDate != null"
>
and
date_ge(CAST(n.reg_date as date), #{param.beginDate})
and
CAST(n.reg_date as date)
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate != null"
>
and
date_le(CAST(n.reg_date as date), #{param.endDate})
and
CAST(n.reg_date as date)
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.receiveOrgCode != null"
>
and n.receive_company_org_code like concat(#{param.receiveOrgCode}, '%')
...
...
@@ -752,10 +752,10 @@
and n.status != '使用单位待提交'
and n.status != '使用单位已撤回'
<if
test=
"param.beginDate != null"
>
and
date_ge(CAST(n.apply_date as date), #{param.beginDate})
and
CAST(n.apply_date as date)
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endDate != null"
>
and
date_le(CAST(n.apply_date as date), #{param.endDate})
and
CAST(n.apply_date as date)
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.receiveOrgCode != null"
>
and n.receive_company_org_code like concat(#{param.receiveOrgCode}, '%')
...
...
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