Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
1b4f6905
Commit
1b4f6905
authored
Sep 27, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_oracle_sherlock' into 'dev_oracle'
basicData module test and correct See merge request root/atms!116
parents
d3c9c6c5
79e70f8e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
22 deletions
+45
-22
OperateLogType.java
...src/main/java/pwc/taxtech/atms/common/OperateLogType.java
+29
-15
AreaServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/AreaServiceImpl.java
+5
-5
OperationLogServiceImpl.java
...wc/taxtech/atms/service/impl/OperationLogServiceImpl.java
+1
-1
AreaMapper.java
atms-dao/src/main/java/pwc/taxtech/atms/dao/AreaMapper.java
+8
-0
BusinessUnitMapper.xml
...ain/resources/pwc/taxtech/atms/dao/BusinessUnitMapper.xml
+0
-0
business-unit.ctrl.js
...n/basicData/masterData/businessUnit/business-unit.ctrl.js
+2
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/OperateLogType.java
View file @
1b4f6905
...
...
@@ -3,39 +3,42 @@ package pwc.taxtech.atms.common;
public
enum
OperateLogType
{
/***/
UnKnown
(-
1
),
UnKnown
(
null
,
-
1
),
/***/
OperationLogOrganization
(
0
),
OperationLogOrganization
(
"OPERATION_LOG_ORGANIZATION"
,
0
),
/***/
OperationLogUser
(
1
),
OperationLogUser
(
"OPERATION_LOG_USER"
,
1
),
/***/
OperationLogProject
(
2
),
OperationLogProject
(
"OPERATION_LOG_PROJECT"
,
2
),
/***/
OperationLogBasicData
(
3
),
OperationLogBasicData
(
"OPERATION_LOG_BASIC_DATA"
,
3
),
/***/
OperationLogReport
(
4
),
OperationLogReport
(
"OPERATION_LOG_REPORT"
,
4
),
/***/
OperationLogEnterPrise
(
5
),
OperationLogEnterPrise
(
"OPERATION_LOG_ENTER_PRISE"
,
5
),
/***/
OperationLogSubject
(
6
),
OperationLogSubject
(
"OPERATION_LOG_SUBJECT"
,
6
),
/***/
OperationLogRole
(
7
),
OperationLogRole
(
"OPERATION_LOG_ROLE"
,
7
),
/***/
OperationLogModelConfiguration
(
8
),
OperationLogModelConfiguration
(
"OPERATION_LOG_MODEL_CONFIGURATION"
,
8
),
/***/
OperationLogRuleEngine
(
9
),
OperationLogRuleEngine
(
"OPERATION_LOG_RULE_ENGINE"
,
9
),
/***/
OperationLogKeyvalue
(
10
),
OperationLogKeyvalue
(
"OPERATION_LOG_KEYVALUE"
,
10
),
/***/
OperationLogWorkflow
(
11
),
OperationLogWorkflow
(
"OPERATION_LOG_WORK_FLOW"
,
11
),
/***/
OperationLogStock
(
12
),
OperationLogStock
(
"OPERATION_LOG_STOCK"
,
12
),
/***/
;
/***/
private
Integer
value
;
OperateLogType
(
Integer
value
)
{
private
String
name
;
OperateLogType
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
...
...
@@ -43,6 +46,17 @@ public enum OperateLogType {
return
value
;
}
public
String
tableName
(){
return
name
;}
public
static
String
getTableName
(
Integer
value
)
{
for
(
OperateLogType
type
:
OperateLogType
.
values
())
{
if
(
type
.
value
().
intValue
()
==
value
.
intValue
())
{
return
type
.
tableName
();
}
}
return
null
;
}
public
static
String
getName
(
Integer
value
)
{
for
(
OperateLogType
type
:
OperateLogType
.
values
())
{
if
(
type
.
value
().
intValue
()
==
value
.
intValue
())
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AreaServiceImpl.java
View file @
1b4f6905
...
...
@@ -56,12 +56,12 @@ public class AreaServiceImpl implements AreaService {
@Override
public
List
<
Area
>
findTopAreas
()
{
AreaExample
areaExample
=
new
AreaExample
();
Criteria
criteria
=
areaExample
.
createCriteria
();
// criteria.andParentIdIsNull();
criteria
.
andParentIdEqualTo
(
StringUtils
.
EMPTY
);
//
AreaExample areaExample = new AreaExample();
//
Criteria criteria = areaExample.createCriteria();
//
//
criteria.andParentIdIsNull();
//
criteria.andParentIdEqualTo(StringUtils.EMPTY);
return
areaMapper
.
select
ByExample
(
areaExample
);
return
areaMapper
.
select
TopAreas
(
);
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OperationLogServiceImpl.java
View file @
1b4f6905
...
...
@@ -51,7 +51,7 @@ public class OperationLogServiceImpl extends AbstractService implements Operatio
OperationLogSmart
record
=
new
OperationLogSmart
();
Integer
logtype
=
operationLogDto
.
getLogType
();
Assert
.
notNull
(
logtype
,
"Null logType"
);
String
table
=
OperateLogType
.
getName
(
logtype
);
String
table
=
OperateLogType
.
get
Table
Name
(
logtype
);
Assert
.
hasText
(
table
,
"Empty tableName"
);
record
.
setTableName
(
table
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/AreaMapper.java
View file @
1b4f6905
...
...
@@ -105,4 +105,11 @@ public interface AreaMapper extends MyMapper {
* @mbg.generated
*/
int
updateByPrimaryKey
(
Area
record
);
/**
* This method corresponds to the database table TAX_ADMIN.AREA
*
* @Sherlock
*/
List
<
Area
>
selectTopAreas
();
}
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/BusinessUnitMapper.xml
View file @
1b4f6905
atms-web/src/main/webapp/app/admin/basicData/masterData/businessUnit/business-unit.ctrl.js
View file @
1b4f6905
...
...
@@ -41,7 +41,7 @@
$scope
.
editFocusedRow
=
function
(
data
)
{
$scope
.
isEdit
=
true
;
$scope
.
editingObject
=
{
ID
:
data
.
id
,
Name
:
data
.
name
,
IsActive
:
data
.
isActive
};
$scope
.
editingObject
=
{
ID
:
data
.
ID
,
Name
:
data
.
name
,
IsActive
:
data
.
isActive
};
$
(
editModalSelector
).
modal
(
'show'
);
};
...
...
@@ -74,6 +74,7 @@
}
if
(
$scope
.
isEdit
)
{
businessUnitService
.
updateBusinessUnit
(
businessUnitArray
).
success
(
successedFun
);
}
else
{
...
...
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