Commit 585fc50a by 翁国栋 Committed by 284718418@qq.com

一、审批流程内的表单设计正文编辑框添加office编辑框(可以插入图片、表格功能。

五、新建审批的流程基础内的“谁可以发起这个审批-部分-部门添加”功能无法使用。(已注释)
parent b704c014
...@@ -5,11 +5,9 @@ import java.util.Date; ...@@ -5,11 +5,9 @@ import java.util.Date;
import java.util.List; import java.util.List;
import java.util.stream.Stream; import java.util.stream.Stream;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import cn.timer.api.bean.yggl.YgglMainEmp;
import com.alibaba.druid.sql.ast.expr.SQLCaseExpr.Item; import com.alibaba.druid.sql.ast.expr.SQLCaseExpr.Item;
import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
...@@ -79,6 +77,11 @@ public class ZzglBmgwM extends Model<ZzglBmgwM> { ...@@ -79,6 +77,11 @@ public class ZzglBmgwM extends Model<ZzglBmgwM> {
@ApiModelProperty(value = "创建时间 ", example = "2019-10-01") @ApiModelProperty(value = "创建时间 ", example = "2019-10-01")
private Date createTime; private Date createTime;
@Transient
@TableField(exist = false)
@ApiModelProperty(value = "员工列表")
private List<YgglMainEmp> userList;
// 遍历,获取旗下所有子部门和岗位id // 遍历,获取旗下所有子部门和岗位id
public static void getupDepts(ArrayList<Integer> list, Integer objId, List<ZzglBmgwM> objs) { public static void getupDepts(ArrayList<Integer> list, Integer objId, List<ZzglBmgwM> objs) {
if (objId != null) { if (objId != null) {
......
...@@ -316,11 +316,11 @@ public class HtzzController { ...@@ -316,11 +316,11 @@ public class HtzzController {
try { try {
zipUrl = oss.createZip(url); zipUrl = oss.createZip(url);
return ResultUtil.data(zipUrl); return ResultUtil.data(zipUrl);
} catch (Exception e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
}
return ResultUtil.error("操作失败"); return ResultUtil.error("操作失败");
} }
}
@GetMapping(value = "/exportContract") @GetMapping(value = "/exportContract")
public void exportContract(@CurrentUser UserBean userBean, @RequestParam("url") String url, HttpServletRequest request, HttpServletResponse resp) { public void exportContract(@CurrentUser UserBean userBean, @RequestParam("url") String url, HttpServletRequest request, HttpServletResponse resp) {
......
...@@ -167,4 +167,13 @@ public class OSSController { ...@@ -167,4 +167,13 @@ public class OSSController {
// return ResultUtil.success("删除成功"); // return ResultUtil.success("删除成功");
// } // }
@PostMapping(value = "/uploadOss")
@ApiOperation(value = "上传普通文件", httpMethod = "POST", notes = "接口发布说明")
@ResponseBody
public Result<String> uploadOss(@CurrentUser UserBean userBean, @RequestParam(required = false) String moudle, @Param("file") MultipartFile file) throws Exception {
Result<String> data = ossService.upload(userBean.getOrgCode(), moudle, file);
return data;
}
} }
...@@ -584,7 +584,7 @@ public class OSSUtil { ...@@ -584,7 +584,7 @@ public class OSSUtil {
* @Description 创建zip * @Description 创建zip
* @Date 2021/12/2 18:06 * @Date 2021/12/2 18:06
**/ **/
public String createZip(Map<String, String> urlMap) throws Exception { public String createZip(Map<String, String> urlMap) throws IOException {
DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
String fileName = dateFormat.format(new Date()) + ".zip"; String fileName = dateFormat.format(new Date()) + ".zip";
FileOutputStream fos = null; FileOutputStream fos = null;
...@@ -613,12 +613,12 @@ public class OSSUtil { ...@@ -613,12 +613,12 @@ public class OSSUtil {
zos.write(buffer, 0, nNumber); zos.write(buffer, 0, nNumber);
} }
} catch (IOException e) { } catch (IOException e) {
throw new Exception("写入失败");//TODO 应作为自定义异常 throw new IOException("写入失败");//TODO 应作为自定义异常
} finally { } finally {
try { try {
inputStream.close(); inputStream.close();
} catch (IOException e) { } catch (IOException e) {
throw new Exception("关闭失败");//TODO 应作为自定义异常 throw new IOException("关闭失败");//TODO 应作为自定义异常
} }
} }
} }
...@@ -636,7 +636,7 @@ public class OSSUtil { ...@@ -636,7 +636,7 @@ public class OSSUtil {
fos.close(); fos.close();
} }
} catch (IOException e) { } catch (IOException e) {
throw new Exception("关闭失败");//TODO 应作为自定义异常 throw new IOException("关闭失败");//TODO 应作为自定义异常
} }
} }
return fileName; return fileName;
......
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