Commit aecbfd2a authored by gary's avatar gary

1、fix

parent aa5e4c32
...@@ -1046,13 +1046,19 @@ public class UserServiceImpl extends AbstractService { ...@@ -1046,13 +1046,19 @@ public class UserServiceImpl extends AbstractService {
if(data.size()<1){ if(data.size()<1){
throw new ServiceException(ErrorMessage.ExportFailed); throw new ServiceException(ErrorMessage.ExportFailed);
} }
data.forEach(d->{ for(UserRoleInfo d :data){
if(!d.getRoleInfoList().isEmpty()){ if(!d.getRoleInfoList().isEmpty()){
List<String> rList = d.getRoleInfoList().stream().map(RoleInfo::getName).collect(Collectors.toList()); List<String> rList = d.getRoleInfoList().stream().map(RoleInfo::getName).collect(Collectors.toList());
d.setRoleList(JSON.toJSONString(rList)); d.setRoleList(JSON.toJSONString(rList));
} }
d.setStatusStr(d.getStatus()); String statusStr = "";
}); if(d.getStatus() == 0){
statusStr = "禁用";
}else{
statusStr = "启用";
}
d.setStatusStr(statusStr);
}
OutputStream outputStream = commonDocumentHelper.toXlsxFileUsingJxls(data, excelTemplatePathInClassPath); OutputStream outputStream = commonDocumentHelper.toXlsxFileUsingJxls(data, excelTemplatePathInClassPath);
try { try {
......
...@@ -248,11 +248,4 @@ public class UserRoleInfo { ...@@ -248,11 +248,4 @@ public class UserRoleInfo {
public void setStatusStr(String statusStr) { public void setStatusStr(String statusStr) {
this.statusStr = statusStr; this.statusStr = statusStr;
} }
public void setStatusStr(Integer status) {
if(status == 0){
this.statusStr = "禁用";
}
this.statusStr = "启用";
}
} }
...@@ -1344,6 +1344,11 @@ ...@@ -1344,6 +1344,11 @@
dataField: "approvedLevyProject", dataField: "approvedLevyProject",
allowHeaderFiltering: false, allowHeaderFiltering: false,
caption: $translate.instant('ApprovedLevyProject'), caption: $translate.instant('ApprovedLevyProject'),
lookup: {
dataSource: constant.GroupTypeList,
displayExpr: "type",
valueExpr: "type"
},
width: '15%' width: '15%'
}, { }, {
dataField: "approvedValidityPeriodStartTime", dataField: "approvedValidityPeriodStartTime",
......
...@@ -549,6 +549,7 @@ ...@@ -549,6 +549,7 @@
.leftUp { .leftUp {
width: 50%; width: 50%;
margin-bottom: -40px;
} }
.rightUp { .rightUp {
......
...@@ -969,7 +969,7 @@ ...@@ -969,7 +969,7 @@
var doExport = function () { var doExport = function () {
var localDate=$filter('date')(new Date(), 'yyyyMMddHHmmss'); var localDate=$filter('date')(new Date(), 'yyyyMMddHHmmss');
var fileName = '用户信息列表'+localDate; var fileName = '用户信息列表'+localDate;
userService.downloadFile($scope.originalUserRoleList,fileName).then(function (data) { userService.downloadFile($scope.userRoleList,fileName).then(function (data) {
if (data) { if (data) {
ackMessageBox.success(translate('FileExportSuccess')); ackMessageBox.success(translate('FileExportSuccess'));
} }
......
...@@ -1444,10 +1444,11 @@ constant.TaxDecCycleList = [ ...@@ -1444,10 +1444,11 @@ constant.TaxDecCycleList = [
]; ];
constant.ApprovedLevyTermList = [ constant.ApprovedLevyTermList = [
{code:0,type:"月"}, {code:0,type:"次"},
{code:1,type:"季"}, {code:1,type:"月"},
{code:2,type:"半年"}, {code:2,type:"季"},
{code:3,type:"年"} {code:3,type:"半年"},
{code:4,type:"年"}
]; ];
constant.TaxpayerQualificationTypeList = [ constant.TaxpayerQualificationTypeList = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment