Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
4ba9ec03
Commit
4ba9ec03
authored
Sep 11, 2019
by
liuxinben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加police_dic表的增删改查
parent
57c32601
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
0 deletions
+89
-0
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+40
-0
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+14
-0
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+10
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+25
-0
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
4ba9ec03
...
...
@@ -701,6 +701,46 @@ public class TaskListApi {
return
state
;
}
/**
* 查询派出所列表
*/
@RequestMapping
(
"selectPoliceList"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceList
()
{
return
taskListService
.
selectPoliceList
();
}
/**
* 通过派出所代码查询派出所
*/
@RequestMapping
(
"selectPoliceListByPoliceCode"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
String
policeCode
)
{
return
taskListService
.
selectPoliceListByPoliceCode
(
policeCode
);
}
/**
* 添加派出所代码
*/
@RequestMapping
(
"insertPolice"
)
public
boolean
insertPolice
(
String
policeCode
,
String
policeName
)
{
return
taskListService
.
insertPolice
(
policeCode
,
policeName
);
}
/**
* 修改派出所代码
*/
@RequestMapping
(
"updatePolice"
)
public
boolean
updatePolice
(
String
policeCode
,
String
policeName
)
{
return
taskListService
.
updatePolice
(
policeCode
,
policeName
);
}
/**
* 删除派出所代码
*/
@RequestMapping
(
"deletePolice"
)
public
boolean
deletePolice
(
String
policeCode
)
{
return
taskListService
.
deletePolice
(
policeCode
);
}
/**
* 去除字符串中中线
*
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
4ba9ec03
...
...
@@ -1630,5 +1630,19 @@ public interface TaskListMapper {
"group by to_char(FINISH_DATE,'yyyyMMdd')"
)
public
List
<
Map
<
String
,
Object
>>
selectQualityCheckReportBu
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
@Select
(
"SELECT * FROM POLICE_DIC"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceList
();
@Select
(
"SELECT * FROM POLICE_DIC WHERE POLICE_CODE = #{policeCode}"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
String
policeCode
);
@Insert
(
"INSERT INTO POLICE_DIC VALUES (#{policeCode},#{policeName})"
)
public
boolean
insertPolice
(
String
policeCode
,
String
policeName
);
@Update
(
"UPDATE POLICE_DIC SET POLICE_NAME = #{policeName} WHERE POLICE_CODE = #{policeCode}"
)
public
boolean
updatePolice
(
String
policeCode
,
String
policeName
);
@Delete
(
"DELETE FROM POLICE_DIC WHERE POLICE_CODE = #{policeCode}"
)
public
boolean
deletePolice
(
String
policeCode
);
}
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
4ba9ec03
...
...
@@ -115,4 +115,14 @@ public interface TaskListService {
public
boolean
deleteRedoTask
(
long
taskId
);
public
List
<
Map
<
String
,
Object
>>
selectQualityCheckReport
(
String
startDate
,
String
endDate
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceList
();
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
String
policeCode
);
public
boolean
insertPolice
(
String
policeCode
,
String
policeName
);
public
boolean
updatePolice
(
String
policeCode
,
String
policeName
);
public
boolean
deletePolice
(
String
policeCode
);
}
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
4ba9ec03
...
...
@@ -1302,6 +1302,31 @@ public class TaskListServiceImpl implements TaskListService {
return
list
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectPoliceList
()
{
return
taskListMapper
.
selectPoliceList
();
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
String
policeCode
){
return
taskListMapper
.
selectPoliceListByPoliceCode
(
policeCode
);
}
@Override
public
boolean
insertPolice
(
String
policeCode
,
String
policeName
){
return
taskListMapper
.
insertPolice
(
policeCode
,
policeName
);
}
@Override
public
boolean
updatePolice
(
String
policeCode
,
String
policeName
){
return
taskListMapper
.
updatePolice
(
policeCode
,
policeName
);
}
@Override
public
boolean
deletePolice
(
String
policeCode
){
return
taskListMapper
.
deletePolice
(
policeCode
);
}
private
String
createGroupNo
(
List
<
Integer
>
c
,
List
<
Integer
>
nsList
)
{
try
{
String
groupNo
=
""
;
...
...
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