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
b6852629
Commit
b6852629
authored
Sep 28, 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!118
parents
6952e4a9
1d21d394
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
161 additions
and
35 deletions
+161
-35
OrganizationController.java
...a/pwc/taxtech/atms/controller/OrganizationController.java
+1
-1
RoleController.java
...main/java/pwc/taxtech/atms/controller/RoleController.java
+6
-6
UserController.java
...main/java/pwc/taxtech/atms/controller/UserController.java
+2
-2
CustomerDto.java
.../main/java/pwc/taxtech/atms/dto/customer/CustomerDto.java
+1
-1
EnterpriseAccountServiceImpl.java
...xtech/atms/service/impl/EnterpriseAccountServiceImpl.java
+6
-8
UserRoleServiceImpl.java
...va/pwc/taxtech/atms/service/impl/UserRoleServiceImpl.java
+1
-1
MyUserMapper.java
...-dao/src/main/java/pwc/taxtech/atms/dao/MyUserMapper.java
+8
-8
UserMapper.java
atms-dao/src/main/java/pwc/taxtech/atms/dao/UserMapper.java
+2
-2
UserOrganizationRoleMapper.java
...java/pwc/taxtech/atms/dao/UserOrganizationRoleMapper.java
+2
-1
RoleInfo.java
atms-dao/src/main/java/pwc/taxtech/atms/dpo/RoleInfo.java
+1
-1
UserRoleInfo.java
...-dao/src/main/java/pwc/taxtech/atms/dpo/UserRoleInfo.java
+1
-1
AreaExtendsMapper.xml
...ources/pwc/taxtech/atms/dao/extends/AreaExtendsMapper.xml
+14
-0
OperationLogBasicDataExtendsMapper.xml
...h/atms/dao/extends/OperationLogBasicDataExtendsMapper.xml
+113
-0
RolePermissionExtendsMapper.xml
.../taxtech/atms/dao/extends/RolePermissionExtendsMapper.xml
+1
-1
basicData.js
atms-web/src/main/webapp/bundles/basicData.js
+2
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OrganizationController.java
View file @
b6852629
...
...
@@ -122,7 +122,7 @@ public class OrganizationController {
@ApiOperation
(
value
=
"获取机构上层维度"
)
@RequestMapping
(
value
=
"getOrgBuAreaIndustryUser"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
DimensionRoleDto
>
getOrgBuAreaIndustryUser
(
@RequestParam
(
"userI
d
"
)
String
userId
)
{
List
<
DimensionRoleDto
>
getOrgBuAreaIndustryUser
(
@RequestParam
(
"userI
D
"
)
String
userId
)
{
logger
.
info
(
"POST /api/v1/org/getOrgBuAreaIndustryUser"
);
return
userRoleService
.
getOrgBuAreaIndustryUser
(
userId
);
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/RoleController.java
View file @
b6852629
...
...
@@ -63,9 +63,9 @@ public class RoleController {
}
@ApiOperation
(
value
=
"通过传入的用户Id获取该用户的所有角色"
)
@RequestMapping
(
value
=
"getAllRoleListByUserI
d
"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
UserRoleDto
>
getAllRoleListByUserId
(
@RequestParam
(
"userI
d
"
)
String
userId
,
@RequestParam
(
"serviceTypeI
d
"
)
String
serviceTypeId
)
{
@RequestMapping
(
value
=
"getAllRoleListByUserI
D
"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
UserRoleDto
>
getAllRoleListByUserId
(
@RequestParam
(
"userI
D
"
)
String
userId
,
@RequestParam
(
"serviceTypeI
D
"
)
String
serviceTypeId
)
{
logger
.
debug
(
"RoleController getAllRoleListByUserId"
);
return
roleService
.
getAllRoleListByUserId
(
userId
,
serviceTypeId
);
}
...
...
@@ -91,7 +91,7 @@ public class RoleController {
@ApiOperation
(
value
=
"删除角色下用户"
)
@RequestMapping
(
value
=
"removeUserRole"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
Boolean
removeUserRole
(
@RequestParam
(
"userI
d
"
)
String
userId
,
public
@ResponseBody
Boolean
removeUserRole
(
@RequestParam
(
"userI
D
"
)
String
userId
,
@RequestBody
List
<
String
>
roleIdList
,
@RequestParam
(
"serviceTypeId"
)
String
serviceTypeId
)
{
roleService
.
removeUserRole
(
userId
,
roleIdList
,
serviceTypeId
);
return
true
;
...
...
@@ -106,7 +106,7 @@ public class RoleController {
@ApiOperation
(
value
=
"增加角色分类"
)
@RequestMapping
(
value
=
"addRoleCategory"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
Boolean
addRoleCategory
(
@RequestParam
(
"name"
)
String
roleCategoryName
,
@RequestParam
(
"roleCategoryI
d
"
)
String
roleCategoryId
)
{
@RequestParam
(
"roleCategoryI
D
"
)
String
roleCategoryId
)
{
roleService
.
addRoleCategory
(
roleCategoryName
,
roleCategoryId
);
return
true
;
}
...
...
@@ -209,7 +209,7 @@ public class RoleController {
@ApiOperation
(
value
=
"用户详情页面,增加机构"
)
@RequestMapping
(
value
=
"updateUserOrg"
,
method
=
RequestMethod
.
POST
)
public
Boolean
updateUserOrg
(
@RequestBody
List
<
String
>
orgIdList
,
@RequestParam
(
"userI
d
"
)
String
userId
)
{
public
Boolean
updateUserOrg
(
@RequestBody
List
<
String
>
orgIdList
,
@RequestParam
(
"userI
D
"
)
String
userId
)
{
roleService
.
updateUserOrg
(
orgIdList
,
userId
);
return
true
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/UserController.java
View file @
b6852629
...
...
@@ -87,8 +87,8 @@ public class UserController {
}
@ApiOperation
(
value
=
"通过传入的用户Id获取该用户所有的角色"
,
notes
=
"通过用户获取可访问不可访问的所有机构,包括维度上继承下来的"
)
@RequestMapping
(
value
=
"getUserRoleByUserI
d
"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
OrgRoleDtoList
getUserRoleByUserId
(
@RequestParam
(
"userI
d
"
)
String
userId
)
{
@RequestMapping
(
value
=
"getUserRoleByUserI
D
"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
OrgRoleDtoList
getUserRoleByUserId
(
@RequestParam
(
"userI
D
"
)
String
userId
)
{
return
userRoleService
.
getUserRoleByUserId
(
userId
);
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/customer/CustomerDto.java
View file @
b6852629
...
...
@@ -22,7 +22,7 @@ public class CustomerDto {
}
public
void
setId
(
String
id
)
{
id
=
id
;
this
.
id
=
id
;
}
public
String
getCode
()
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EnterpriseAccountServiceImpl.java
View file @
b6852629
...
...
@@ -18,17 +18,12 @@ import pwc.taxtech.atms.common.message.LogMessage;
import
pwc.taxtech.atms.constant.EnterpriseAccountConstant
;
import
pwc.taxtech.atms.constant.IndustryConstant
;
import
pwc.taxtech.atms.constant.enums.AccountRuleEnum
;
import
pwc.taxtech.atms.dao.AccountMappingManualMapper
;
import
pwc.taxtech.atms.dao.AccountMappingManualDao
;
import
pwc.taxtech.atms.dao.EnterpriseAccountDao
;
import
pwc.taxtech.atms.dao.EnterpriseAccountSetOrgDao
;
import
pwc.taxtech.atms.dao.StandardAccountDao
;
import
pwc.taxtech.atms.dao.*
;
import
pwc.taxtech.atms.dpo.EnterpriseAccountDto
;
import
pwc.taxtech.atms.dto.OperationLogDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.UpdateLogParams
;
import
pwc.taxtech.atms.dto.ValidateInfoDto
;
import
pwc.taxtech.atms.dao.AccountMappingDao
;
import
pwc.taxtech.atms.dto.accountmapping.AccountMappingManualDto
;
import
pwc.taxtech.atms.dto.epaccount.AccountMapDto
;
import
pwc.taxtech.atms.dto.epaccount.AccountMappingDto
;
...
...
@@ -65,7 +60,9 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
private
AccountMappingDao
accountMappingDao
;
@Autowired
private
AccountMappingManualMapper
mappingManualMapper
;
@Autowired
private
OrganizationMapper
organizationMapper
;
private
Map
<
String
,
List
<
String
>>
mapParentAccountResult
;
...
...
@@ -225,7 +222,8 @@ public class EnterpriseAccountServiceImpl extends AbstractService implements Ent
this
.
mapParentAccountResult
=
new
HashMap
<>();
for
(
EnterpriseAccountSetOrg
accountSetOrg
:
accountSetOrgList
)
{
mapAccountUpdateParent
(
epAccountCodeList
,
accountSetOrg
.
getEnterpriseAccountSetId
(),
getConvertedIndustryId
(
accountSetOrg
.
getOrganization
().
getIndustryId
()),
accountSetOrg
.
getOrganizationId
(),
true
);
String
industryId
=
organizationMapper
.
selectByPrimaryKey
(
accountSetOrg
.
getOrganizationId
()).
getIndustryId
();
mapAccountUpdateParent
(
epAccountCodeList
,
accountSetOrg
.
getEnterpriseAccountSetId
(),
getConvertedIndustryId
(
industryId
),
accountSetOrg
.
getOrganizationId
(),
true
);
}
//get enterprise set name
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/UserRoleServiceImpl.java
View file @
b6852629
...
...
@@ -152,7 +152,7 @@ public class UserRoleServiceImpl extends AbstractService implements UserRoleServ
}
}
orgRoleInfoList
.
add
(
generateOrganizationRoleInfo
(
userOrg
.
get
(
"organizationI
d
"
).
toString
(),
orgRoleInfoList
.
add
(
generateOrganizationRoleInfo
(
userOrg
.
get
(
"organizationI
D
"
).
toString
(),
userOrg
.
get
(
"organizationName"
).
toString
(),
DimensionConstant
.
OriginalRoleDimensionValueId
,
DimensionConstant
.
OriginalRole
,
hasOriginalRole
,
isAccessible
,
roleInfoList
,
userId
));
List
<
RoleInfo
>
roleInfoList1
=
new
ArrayList
<>();
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/MyUserMapper.java
View file @
b6852629
...
...
@@ -18,8 +18,8 @@ import pwc.taxtech.atms.entity.UserOrganization;
public
interface
MyUserMapper
extends
MyMapper
{
@Select
(
"select ur.id as id, ur.Is_Accessible as IsAccessible, ur.Has_Original_Role as HasOriginalRole, "
+
"org.id as OrganizationID, org.Name as OrganizationName from U
ser_Organization
ur "
+
"join \"O
rganization
\" org on ur.Organization_ID = org.id "
+
"org.id as OrganizationID, org.Name as OrganizationName from U
SER_ORGANIZATION
ur "
+
"join \"O
RGANIZATION
\" org on ur.Organization_ID = org.id "
+
"where ur.User_ID = #{userId} and org.Is_Active = 1"
)
@Results
({
@Result
(
id
=
true
,
column
=
"id"
,
property
=
"id"
),
@Result
(
column
=
"IsAccessible"
,
property
=
"isAccessible"
,
javaType
=
Boolean
.
class
),
...
...
@@ -29,7 +29,7 @@ public interface MyUserMapper extends MyMapper {
List
<
Map
<
String
,
Object
>>
selectUserOrganizationMapByUserId
(
@Param
(
value
=
"userId"
)
String
userId
);
@Select
(
"select urd.id, urd.Dimension_Value_ID, urd.Dimension_ID, urd.User_ID, urd.Is_Accessible, urd.Has_Original_Role, u.User_Name "
+
"from U
ser_Dimension_Value urd "
+
"join \"User\" u on urd.User
ID = u.id "
+
"where u.Status = 1"
)
+
"from U
SER_DIMENSION_VALUE urd "
+
"join \"USER\" u on urd.USER_
ID = u.id "
+
"where u.Status = 1"
)
@Results
({
@Result
(
id
=
true
,
column
=
"id"
,
property
=
"id"
),
@Result
(
column
=
"Dimension_Value_ID"
,
property
=
"dimensionValueID"
,
javaType
=
String
.
class
),
@Result
(
column
=
"Dimension_ID"
,
property
=
"dimensionId"
,
javaType
=
String
.
class
),
...
...
@@ -39,13 +39,13 @@ public interface MyUserMapper extends MyMapper {
@Result
(
column
=
"User_Name"
,
property
=
"userName"
,
javaType
=
String
.
class
)
})
List
<
Map
<
String
,
Object
>>
selectUserDimensionValueMap
();
@Select
(
"select x.Role_ID, y.Name as RoleName from U
ser_Role x "
+
"join Role
y on x.Role_ID = y.id "
@Select
(
"select x.Role_ID, y.Name as RoleName from U
SER_ROLE x "
+
"join ROLE
y on x.Role_ID = y.id "
+
"where x.User_ID = #{userId} and x.Project_ID is NULL"
)
@Results
({
@Result
(
column
=
"Role_ID"
,
property
=
"roleID"
,
javaType
=
String
.
class
),
@Result
(
column
=
"RoleName"
,
property
=
"roleName"
,
javaType
=
String
.
class
)
})
List
<
Map
<
String
,
String
>>
selectUserRoleListByUserId
(
@Param
(
value
=
"userId"
)
String
userId
);
@Select
(
"select q.id, q.Organization_ID, q.User_ID, q.Is_Accessible, q.Has_Original_Role from U
ser_Organization q join \"User
\" u on q.User_ID = u.id "
@Select
(
"select q.id, q.Organization_ID, q.User_ID, q.Is_Accessible, q.Has_Original_Role from U
SER_ORGANIZATION q join \"USER
\" u on q.User_ID = u.id "
+
"where u.Status = 1"
)
@Results
({
@Result
(
id
=
true
,
column
=
"id"
,
property
=
"id"
),
@Result
(
column
=
"Organization_ID"
,
property
=
"organizationID"
),
...
...
@@ -56,9 +56,9 @@ public interface MyUserMapper extends MyMapper {
@Select
(
"select p.Dimension_Value_ID, p.Dimension_ID, d.Name as DimensionName, p.Dimension_Value_Name as Dimension_Value "
+
"from (select id as Dimension_Value_ID, Name as Dimension_Value_Name, Is_Active, #{dimensionId} as Dimension_ID, "
+
"Create_Time, Update_Time from B
usiness_Unit
where Is_Active = 1 "
+
"union "
+
"Create_Time, Update_Time from B
USINESS_UNIT
where Is_Active = 1 "
+
"union "
+
"select id as DimensionValueID, Name as DimensionValueName, Is_Active, Dimension_ID, Create_Time, Update_Time "
+
"from D
imension_Value) p "
+
"join Dimension
d on p.Dimension_ID = d.id "
+
"where d.Is_Active = 1"
)
+
"from D
IMENSION_VALUE) p "
+
"join DIMENSION
d on p.Dimension_ID = d.id "
+
"where d.Is_Active = 1"
)
@Results
({
@Result
(
column
=
"DimensionValueID"
,
property
=
"dimensionValueID"
),
@Result
(
column
=
"DimensionID"
,
property
=
"dimensionId"
),
@Result
(
column
=
"DimensionName"
,
property
=
"dimensionName"
),
...
...
@@ -67,7 +67,7 @@ public interface MyUserMapper extends MyMapper {
@Param
(
value
=
"dimensionId"
)
String
dimensionId
);
@Select
(
"select urd.id, urd.Organization_ID as OrgID, urd.User_ID, urd.Is_Accessible, urd.Has_Original_Role, u.User_Name as UserName "
+
"from U
ser_Organization urd join \"User
\" u on urd.User_ID = u.id where u.Status = 1"
)
+
"from U
SER_ORGANIZATION urd join \"USER
\" u on urd.User_ID = u.id where u.Status = 1"
)
@Results
({
@Result
(
id
=
true
,
column
=
"id"
,
property
=
"id"
),
@Result
(
column
=
"OrgID"
,
property
=
"orgID"
,
javaType
=
String
.
class
),
@Result
(
column
=
"User_ID"
,
property
=
"userID"
,
javaType
=
String
.
class
),
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/UserMapper.java
View file @
b6852629
...
...
@@ -144,8 +144,8 @@ public interface UserMapper extends MyMapper {
@Select
(
"select u.USER_NAME as UserName, o.id as Organization_ID, o.Name as OrganizationName, "
+
"u.EMAIL as Email, u.STATUS as Status, u.ATTEMPT_TIMES as AttemptTimes, u.CREATE_TIME as CreateTime, "
+
"u.EXPIRATION_DATE as ExpirationDate, u.IS_ADMIN as IsAdmin, u.ID as id, u.LOCKED_TIME as LockedTime, "
+
"u.LOGIN_TYPE as LoginType, u.PASSWORD as Password, u.PASSWORD_UPDATE_TIME as Password_UpdateTime, u.UPDATE_TIME as UpdateTime from \"USER\" "
+
"left join ORGANIZATION o on u.ORGANIZATIONID = o.id "
+
"u.LOGIN_TYPE as LoginType, u.PASSWORD as Password, u.PASSWORD_UPDATE_TIME as Password_UpdateTime, u.UPDATE_TIME as UpdateTime from \"USER\"
u
"
+
"left join ORGANIZATION o on u.ORGANIZATION
_
ID = o.id "
+
"where u.ID = #{userId}"
)
List
<
UserDto
>
selectUserWithOrgInfoById
(
@Param
(
value
=
"userId"
)
String
userId
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/UserOrganizationRoleMapper.java
View file @
b6852629
...
...
@@ -113,6 +113,6 @@ public interface UserOrganizationRoleMapper extends MyMapper {
@Select
(
"SELECT USER_ORGANIZATION.USER_ID FROM USER_ORGANIZATION_ROLE "
+
"JOIN USER_ORGANIZATION ON USER_ORGANIZATION_ROLE.USER_ORGANIZATION_ID = USER_ORGANIZATION.ID "
+
"WHERE USER_ORGANIZATION_ROLE.ROLEID=#{roleId}"
)
+
"WHERE USER_ORGANIZATION_ROLE.ROLE
_
ID=#{roleId}"
)
List
<
String
>
getUserIdByUserOrganizationRole
(
@Param
(
"roleId"
)
String
roleId
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/dpo/RoleInfo.java
View file @
b6852629
...
...
@@ -43,7 +43,7 @@ public class RoleInfo {
}
public
void
setId
(
String
id
)
{
id
=
id
;
this
.
id
=
id
;
}
public
String
getName
()
{
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dpo/UserRoleInfo.java
View file @
b6852629
...
...
@@ -8,7 +8,7 @@ public class UserRoleInfo {
/// 用户Id
/// The identifier.
@JsonProperty
(
"ID"
)
//
@JsonProperty("ID")
private
String
id
;
/// 用户名
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/AreaExtendsMapper.xml
0 → 100644
View file @
b6852629
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pwc.taxtech.atms.dao.AreaMapper"
>
<select
id=
"selectTopAreas"
resultMap=
"BaseResultMap"
>
select distinct
<include
refid=
"Base_Column_List"
/>
from AREA
where PARENT_ID is null
</select>
</mapper>
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/OperationLogBasicDataExtendsMapper.xml
0 → 100644
View file @
b6852629
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pwc.taxtech.atms.dao.OperationLogBasicDataMapper"
>
<!-- TODO Remove below codes about selectByLimit -->
<select
id=
"selectByLimit"
resultMap=
"BaseResultMap"
>
SELECT top ${pagesize} *
from OPERATION_LOG_BASIC_DATA
where ID not in (
select top (${pagesize} * (${pageindex} -1)) ID from OPERATION_LOG_BASIC_DATA
)
order by ID
</select>
<insert
id=
"insertSmart"
parameterType=
"pwc.taxtech.atms.entity.OperationLogSmart"
>
insert into ${tableName}
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
ID,
</if>
<if
test=
"operationContent != null"
>
OPERATION_CONTENT,
</if>
<if
test=
"moduleName != null"
>
MODULE_NAME,
</if>
<if
test=
"operationObject != null"
>
OPERATION_OBJECT,
</if>
<if
test=
"operationAction != null"
>
OPERATION_ACTION,
</if>
<if
test=
"originalState != null"
>
ORIGINAL_STATE,
</if>
<if
test=
"updateState != null"
>
UPDATE_STATE,
</if>
<if
test=
"operationUser != null"
>
OPERATION_USER,
</if>
<if
test=
"ip != null"
>
IP,
</if>
<if
test=
"comment != null"
>
"COMMENT",
</if>
<if
test=
"createTime != null"
>
CREATE_TIME
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=VARCHAR},
</if>
<if
test=
"operationContent != null"
>
#{operationContent,jdbcType=VARCHAR},
</if>
<if
test=
"moduleName != null"
>
#{moduleName,jdbcType=VARCHAR},
</if>
<if
test=
"operationObject != null"
>
#{operationObject,jdbcType=VARCHAR},
</if>
<if
test=
"operationAction != null"
>
#{operationAction,jdbcType=VARCHAR},
</if>
<if
test=
"originalState != null"
>
#{originalState,jdbcType=VARCHAR},
</if>
<if
test=
"updateState != null"
>
#{updateState,jdbcType=VARCHAR},
</if>
<if
test=
"operationUser != null"
>
#{operationUser,jdbcType=VARCHAR},
</if>
<if
test=
"ip != null"
>
#{ip,jdbcType=VARCHAR},
</if>
<if
test=
"comment != null"
>
#{comment,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP}
</if>
</trim>
</insert>
<select
id=
"countByExampleSmart"
parameterType=
"pwc.taxtech.atms.entity.OperationLogSmartExample"
resultType=
"java.lang.Long"
>
select count(*) from ${tableName}
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<select
id=
"selectByExampleWithRowboundsSmart"
parameterType=
"pwc.taxtech.atms.entity.OperationLogSmartExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ${tableName}
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/RolePermissionExtendsMapper.xml
View file @
b6852629
...
...
@@ -108,7 +108,7 @@
on
p.ID = rp.PERMISSION_ID
where
r.SERVICE_TYPE_ID= #{serviceTypeI
D
,jdbcType=VARCHAR}
r.SERVICE_TYPE_ID= #{serviceTypeI
d
,jdbcType=VARCHAR}
AND RP.ROLE_ID in
<foreach
close=
")"
collection=
"roleList"
index=
"index"
item=
"roleID"
open=
"("
separator=
","
>
#{roleID}
...
...
atms-web/src/main/webapp/bundles/basicData.js
View file @
b6852629
...
...
@@ -3519,7 +3519,7 @@ basicDataModule
$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'
);
};
...
...
@@ -4094,7 +4094,7 @@ basicDataModule
$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'
);
};
...
...
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