Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
8timerv2
8timerapiv200
Commits
fee043cc
Commit
fee043cc
authored
4 years ago
by
ilal
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
d5cba048
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
18 deletions
+22
-18
src/main/java/cn/timer/api/bean/htzz/HtzzAdminZzda.java
+5
-1
src/main/java/cn/timer/api/controller/htzz/HtzzController.java
+13
-16
src/main/java/cn/timer/api/dto/htzz/NotifyPersonDto.java
+4
-1
No files found.
src/main/java/cn/timer/api/bean/htzz/HtzzAdminZzda.java
View file @
fee043cc
...
@@ -96,9 +96,13 @@ public class HtzzAdminZzda extends Model<HtzzAdminZzda> {
...
@@ -96,9 +96,13 @@ public class HtzzAdminZzda extends Model<HtzzAdminZzda> {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
NotifyPersonDto
>
ids
;
private
List
<
NotifyPersonDto
>
ids
;
// @Transient
// @TableField(exist = false)
// private List<HtzzAssoZztx> Zztx;
@Transient
@Transient
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
HtzzAssoZztx
>
Z
ztx
;
private
HtzzAssoZztx
z
ztx
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/htzz/HtzzController.java
View file @
fee043cc
...
@@ -95,22 +95,22 @@ public class HtzzController {
...
@@ -95,22 +95,22 @@ public class HtzzController {
/**
/**
* 新增通知关系表,每人一个
* 新增通知关系表,每人一个
*/
*/
YgglMainEmp
emp
=
null
;
//
YgglMainEmp emp = null;
List
<
NotifyPersonDto
>
ids
=
zzda
.
getIds
();
//通知人 用户id+手机号码
List
<
NotifyPersonDto
>
ids
=
zzda
.
getIds
();
//通知人 用户id+手机号码
List
<
HtzzAssoHtgx
>
htgxs
=
new
ArrayList
<
HtzzAssoHtgx
>(
ids
.
size
());
List
<
HtzzAssoHtgx
>
htgxs
=
new
ArrayList
<
HtzzAssoHtgx
>(
ids
.
size
());
for
(
NotifyPersonDto
pre
:
ids
)
{
for
(
NotifyPersonDto
pre
:
ids
)
{
HtzzAssoHtgx
.
builder
().
build
().
delete
(
new
QueryWrapper
<
HtzzAssoHtgx
>().
lambda
().
eq
(
HtzzAssoHtgx:
:
getOrgCode
,
orgCode
).
eq
(
HtzzAssoHtgx:
:
getTzrid
,
pre
.
get
Userids
())
HtzzAssoHtgx
.
builder
().
build
().
delete
(
new
QueryWrapper
<
HtzzAssoHtgx
>().
lambda
().
eq
(
HtzzAssoHtgx:
:
getOrgCode
,
orgCode
).
eq
(
HtzzAssoHtgx:
:
getTzrid
,
pre
.
get
EmpNum
())
.
eq
(
HtzzAssoHtgx:
:
getPhone
,
pre
.
getPhone
()));
.
eq
(
HtzzAssoHtgx:
:
getPhone
,
pre
.
getPhone
()));
QueryWrapper
<
YgglMainEmp
>
queryWrapper
=
new
QueryWrapper
<>();
//
QueryWrapper<YgglMainEmp> queryWrapper = new QueryWrapper<>();
queryWrapper
.
select
(
"name"
,
"phone"
,
"emp_num"
).
eq
(
"emp_num"
,
pre
.
getUserids
()).
eq
(
"org_code"
,
orgCode
);
//
queryWrapper.select("name", "phone", "emp_num").eq("emp_num", pre.getUserids()).eq("org_code", orgCode);
emp
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
queryWrapper
);
//
emp = YgglMainEmp.builder().build().selectOne(queryWrapper);
HtzzAssoHtgx
htgx
=
HtzzAssoHtgx
.
builder
().
build
();
HtzzAssoHtgx
htgx
=
HtzzAssoHtgx
.
builder
().
build
();
htgx
.
setHtid
(
zzda
.
getId
());
htgx
.
setHtid
(
zzda
.
getId
());
htgx
.
setTzrid
(
emp
.
getEmpNum
());
htgx
.
setTzrid
(
pre
.
getEmpNum
());
htgx
.
setName
(
emp
.
get
Name
());
htgx
.
setName
(
pre
.
getEmp
Name
());
htgx
.
setPhone
(
pre
.
getPhone
());
htgx
.
setPhone
(
pre
.
getPhone
());
htgx
.
setOrgCode
(
orgCode
);
htgx
.
setOrgCode
(
orgCode
);
htgx
.
insert
();
htgx
.
insert
();
...
@@ -124,11 +124,7 @@ public class HtzzController {
...
@@ -124,11 +124,7 @@ public class HtzzController {
@ApiOperation
(
value
=
"修改提醒数据"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"修改提醒数据"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
public
Result
<
Object
>
modifytx
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
public
Result
<
Object
>
modifytx
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
id
)
{
ReminderObjectDto
obj
=
ReminderObjectDto
.
builder
().
build
();
List
<
HtzzAdminZzda
>
zzda
=
HtzzAdminZzda
.
builder
().
id
(
id
).
build
().
selectAll
();
obj
.
setZzda
(
zzda
);
//
List
<
NotifyPersonDto
>
tzids
=
new
ArrayList
<
NotifyPersonDto
>();
List
<
NotifyPersonDto
>
tzids
=
new
ArrayList
<
NotifyPersonDto
>();
List
<
HtzzAssoHtgx
>
httxs
=
HtzzAssoHtgx
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
HtzzAssoHtgx
>().
lambda
().
eq
(
HtzzAssoHtgx:
:
getHtid
,
id
));
List
<
HtzzAssoHtgx
>
httxs
=
HtzzAssoHtgx
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
HtzzAssoHtgx
>().
lambda
().
eq
(
HtzzAssoHtgx:
:
getHtid
,
id
));
for
(
HtzzAssoHtgx
gx
:
httxs
)
{
for
(
HtzzAssoHtgx
gx
:
httxs
)
{
...
@@ -138,12 +134,13 @@ public class HtzzController {
...
@@ -138,12 +134,13 @@ public class HtzzController {
BeanUtil
.
copyProperties
(
gx
,
predto
);
BeanUtil
.
copyProperties
(
gx
,
predto
);
tzids
.
add
(
predto
);
tzids
.
add
(
predto
);
}
}
obj
.
setIds
(
tzids
);
//
List
<
HtzzAssoZztx
>
zztx
=
HtzzAssoZztx
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
HtzzAssoZztx
>().
lambda
().
eq
(
HtzzAssoZztx:
:
getZzdaId
,
id
));
HtzzAdminZzda
zzda
=
HtzzAdminZzda
.
builder
().
id
(
id
).
build
().
selectById
();
obj
.
setZztx
(
zztx
);
//
HtzzAssoZztx
zztx
=
HtzzAssoZztx
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
HtzzAssoZztx
>().
lambda
().
eq
(
HtzzAssoZztx:
:
getZzdaId
,
id
));
zzda
.
setZztx
(
zztx
);
zzda
.
setIds
(
tzids
);
return
ResultUtil
.
data
(
obj
,
"新增成功"
);
return
ResultUtil
.
data
(
zzda
,
"新增成功"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dto/htzz/NotifyPersonDto.java
View file @
fee043cc
...
@@ -13,7 +13,10 @@ import lombok.NoArgsConstructor;
...
@@ -13,7 +13,10 @@ import lombok.NoArgsConstructor;
public
class
NotifyPersonDto
{
public
class
NotifyPersonDto
{
@ApiModelProperty
(
value
=
"用户id"
,
example
=
"101"
)
@ApiModelProperty
(
value
=
"用户id"
,
example
=
"101"
)
private
String
userids
;
private
String
empName
;
@ApiModelProperty
(
value
=
"用户id"
,
example
=
"101"
)
private
Integer
empNum
;
@ApiModelProperty
(
value
=
"电话"
,
example
=
""
)
@ApiModelProperty
(
value
=
"电话"
,
example
=
""
)
private
String
phone
;
private
String
phone
;
...
...
This diff is collapsed.
Click to expand it.
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