Commit 149d174c authored by chase's avatar chase

merge 档案管理

parent 01764c35
...@@ -109,6 +109,21 @@ public class DateUtils { ...@@ -109,6 +109,21 @@ public class DateUtils {
return dateString; return dateString;
} }
/**
* 根据yyyyMMdd时间格式字符串,格式化为date类型
*
* @param dateStr
* @return
*/
public static Date stringToDate4yyyyMMdd(String dateStr) {
try {
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
Date date = formatter.parse(dateStr);
return date;
} catch (ParseException e) {
return null;
}
}
/** /**
* 将短时间格式字符串转换为区间格式 yyyyMM * 将短时间格式字符串转换为区间格式 yyyyMM
* *
......
...@@ -105,6 +105,13 @@ public class TaxDocumentController { ...@@ -105,6 +105,13 @@ public class TaxDocumentController {
} }
return taxDocumentService.editFilesType(taxDocument); return taxDocumentService.editFilesType(taxDocument);
} }
@GetMapping("/multipalInitData")
@ResponseBody
public Map<String,Object> multipalInitData(String address){
//地址示例: D://multipaiInitData
return taxDocumentService.multipalInitData(address);
}
@RequestMapping("exportExcel") @RequestMapping("exportExcel")
@ResponseBody @ResponseBody
public void exportExcelFile(HttpServletResponse response, @RequestBody TaxDocumentDto taxDocumentDto) { public void exportExcelFile(HttpServletResponse response, @RequestBody TaxDocumentDto taxDocumentDto) {
......
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
</trim> </trim>
</if> </if>
</foreach> </foreach>
and enable = 'T'
</where> </where>
</sql> </sql>
<sql id="Update_By_Example_Where_Clause"> <sql id="Update_By_Example_Where_Clause">
...@@ -151,13 +150,16 @@ ...@@ -151,13 +150,16 @@
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</delete> </delete>
<delete id="batchDelete"> <update id="batchDelete">
DELETE FROM tax_document UPDATE tax_document
SET
enable = 'F'
WHERE id IN WHERE id IN
<foreach collection="list" item="id" separator="," open="(" close=")"> <foreach collection="list" item="id" separator="," open="(" close=")">
#{id} #{id}
</foreach> </foreach>
</delete> AND enable = 'T'
</update>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.TaxDocumentExample"> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.entity.TaxDocumentExample">
<!-- <!--
......
...@@ -56,5 +56,6 @@ ...@@ -56,5 +56,6 @@
"PreviewFile":"PreviewFile", "PreviewFile":"PreviewFile",
"UploadSuccessCount":"UploadSuccessCount", "UploadSuccessCount":"UploadSuccessCount",
"UploadFailCount":"UploadFailCount", "UploadFailCount":"UploadFailCount",
"DeleteConfirm":"DeleteConfirm" "DeleteConfirm":"DeleteConfirm",
"FileTimeDateRangeError":"FileTimeDateRangeError"
} }
\ No newline at end of file
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
"Edit":"编辑", "Edit":"编辑",
"DocumentPath":"档案路径", "DocumentPath":"档案路径",
"PreviewFile":"预览文件", "PreviewFile":"预览文件",
"UploadSuccessCount":"个档案上传成功", "UploadSuccessCount":"个档案上传成功:",
"UploadFailCount":"个档案上传失败", "UploadFailCount":"个档案上传失败:",
"DeleteConfirm":"是否确认删除记录?" "DeleteConfirm":"是否确认删除记录?",
"FileTimeDateRangeError": "'到期日'不能早于'文件生效日期'"
} }
\ No newline at end of file
...@@ -11,6 +11,14 @@ frameworkModule.controller('appUsrOperateLogController', ...@@ -11,6 +11,14 @@ frameworkModule.controller('appUsrOperateLogController',
$scope.loadMainData = function () { $scope.loadMainData = function () {
$scope.thisModuleId = $scope.thisModuleId ? $scope.thisModuleId : []; $scope.thisModuleId = $scope.thisModuleId ? $scope.thisModuleId : [];
if($scope.thisModuleId.length===0){
$("input[name='dataGridCheckBox']").each(function (index, item) {
if (item.checked) {
var cellId = $(item).attr("data-id");
$scope.thisModuleId.push(cellId);
}
});
}
var config = { var config = {
// params: { // params: {
"ids":$scope.thisModuleId "ids":$scope.thisModuleId
...@@ -21,6 +29,7 @@ frameworkModule.controller('appUsrOperateLogController', ...@@ -21,6 +29,7 @@ frameworkModule.controller('appUsrOperateLogController',
SweetAlert.warning("没有数据可以下载"); SweetAlert.warning("没有数据可以下载");
return; return;
} }
$scope.thisModuleId=[];//清空查询id
$scope.dataGridUpdate(data); $scope.dataGridUpdate(data);
}) })
}; };
......
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