机构管理 bug + 上传文件改名接口
This commit is contained in:
+4
@@ -15,8 +15,11 @@ import com.adc.da.slrs.wgCommittee.entity.WgCommittee;
|
||||
import io.swagger.annotations.Api;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -43,6 +46,7 @@ public class WgCommitteeController extends BaseController<WgCommittee> {
|
||||
@PostMapping("/insert")
|
||||
public ResponseMessage addWorkCommitter(WgCommittee wgCommittee) {
|
||||
|
||||
wgCommittee.setCreateTime(new Date());
|
||||
if (isDistinct(wgCommittee.getCommitteeName(),null)){
|
||||
if (iWgCommitteeService.add(wgCommittee)){
|
||||
return Result.success("200","新增成功");
|
||||
|
||||
@@ -9,6 +9,7 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -45,6 +46,9 @@ public class WgCommittee extends BasePage {
|
||||
@ApiModelProperty(value = "委员关联表")
|
||||
private String committeer;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "委员")
|
||||
@TableField(exist = false)
|
||||
private String committeeIds;
|
||||
|
||||
Reference in New Issue
Block a user