Commit b5f2e138 by tyk

经验交流代码提交

parent 0bccd28f
......@@ -146,6 +146,28 @@ public class JygxWzglController extends BaseController
}
/**
* 文章管理审核
*/
@PreAuthorize("@ss.hasPermi('system:wzgl:wzglsh')")
@Log(title = "文章管理审核", businessType = BusinessType.UPDATE)
@PutMapping("/wzglsh")
public AjaxResult wzglsh(@RequestBody JygxWzgl jygxWzgl)
{
return toAjax(jygxWzglService.updateJygxWzgl(jygxWzgl));
}
/**
* 文章管理发布
*/
@PreAuthorize("@ss.hasPermi('system:wzgl:wzglfb')")
@Log(title = "文章管理发布", businessType = BusinessType.UPDATE)
@PutMapping("/wzglfb")
public AjaxResult wzglfb(@RequestBody JygxWzgl jygxWzgl)
{
return toAjax(jygxWzglService.updateJygxWzgl(jygxWzgl));
}
/**
* 删除经验共享-文章管理
*/
@PreAuthorize("@ss.hasPermi('system:wzgl:remove')")
......
......@@ -74,7 +74,7 @@ public class JygxWzgl extends BaseEntity
/** 预留1 */
@Excel(name = "预留1")
private String deptId;
private Long deptId;
/** 预留2 */
@Excel(name = "预留2")
......@@ -227,11 +227,11 @@ public class JygxWzgl extends BaseEntity
return wzsj;
}
public String getDeptId() {
public Long getDeptId() {
return deptId;
}
public void setDeptId(String deptId) {
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
......
......@@ -96,6 +96,7 @@ public class JygxWzglServiceImpl implements IJygxWzglService
}
jygxWzgl.setCreateBy(SecurityUtils.getUsername());
jygxWzgl.setCreateTime(DateUtils.getNowDate());
jygxWzgl.setDeptId(SecurityUtils.getDeptId());
return jygxWzglMapper.insertJygxWzgl(jygxWzgl);
}
......
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