Commit ed83939d authored by suhuiguang's avatar suhuiguang

fix(开通):bug修改

1.导出异常信息不抛处修改
parent 17b620c5
......@@ -37,7 +37,7 @@ public class JyjcOpeningApplicationVo {
String remark;
@ExcelProperty(value = "办理状态", index = 7)
String statusName;
String status;
@ExcelProperty(value = "办理日期", index = 8)
@DateTimeFormat("yyyy-MM-dd")
......
......@@ -125,6 +125,6 @@
select * from tz_jyjc_opening_application where sequence_nbr in
<foreach collection="list" item="id" index="index" open="(" close=")" separator=",">
#{id}
</foreach>;
</foreach>
</select>
</mapper>
......@@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
......@@ -320,7 +321,9 @@ public class JyjcOpeningApplicationController extends BaseController {
@GetMapping(value = "/exportdata")
@ApiOperation(httpMethod = "GET", value = "检验业务开通列表导出", notes = "检验业务开通列表导出")
public void dataExport(HttpServletResponse response, String ids) {
Assert.hasText(ids, "未选择导出数据");
if(StringUtils.isEmpty(ids)) {
throw new BadRequest("请选择需要导出的数据!");
}
jyjcOpeningApplicationServiceImpl.exportData(response, Arrays.asList(ids.split(",")));
}
......
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