企业资质调整
parent
dfa3a549f6
commit
16e69a803b
|
|
@ -37,7 +37,6 @@ public class CorpInfoController {
|
|||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<CorpInfoCO> add(@Validated @RequestBody CorpInfoAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return corpInfoService.add(cmd);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ public class CorpQualificationInfoController {
|
|||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<CorpQualificationInfoCO> add(@Validated @RequestBody CorpQualificationInfoAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return corpQualificationInfoService.add(cmd);
|
||||
}
|
||||
|
||||
|
|
@ -55,7 +54,7 @@ public class CorpQualificationInfoController {
|
|||
@ApiOperation("详情")
|
||||
@PostMapping("/info/{id}")
|
||||
public SingleResponse<CorpQualificationInfoCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new CorpQualificationInfoCO());
|
||||
return SingleResponse.of(corpQualificationInfoService.getInfoById(id));
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@ public class DepartmentController {
|
|||
@DubboReference
|
||||
private DeptFacade deptFacade;
|
||||
|
||||
|
||||
|
||||
@ApiOperation("新增部门")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<DepartmentCO> add(@Validated @RequestBody DepartmentAddCmd cmd) {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import com.zcloud.basic.info.persistence.dataobject.CorpQualificationInfoDO;
|
|||
import com.zcloud.basic.info.persistence.repository.CorpQualificationInfoRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -38,5 +39,12 @@ public class CorpQualificationInfoQueryExe {
|
|||
List<CorpQualificationInfoCO> examCenterCOS = corpQualificationInfoCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
|
||||
public CorpQualificationInfoCO getInfoById(Long id) {
|
||||
CorpQualificationInfoDO corpQualificationInfoDO = corpQualificationInfoRepository.getById(id);
|
||||
CorpQualificationInfoCO corpQualificationInfoCO =new CorpQualificationInfoCO();
|
||||
BeanUtils.copyProperties(corpQualificationInfoDO, corpQualificationInfoCO);
|
||||
return corpQualificationInfoCO;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,5 +55,10 @@ public class CorpQualificationInfoServiceImpl implements CorpQualificationInfoSe
|
|||
public void removeBatch(Long[] ids) {
|
||||
corpQualificationInfoRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CorpQualificationInfoCO getInfoById(Long id) {
|
||||
return corpQualificationInfoQueryExe.getInfoById(id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,5 +23,7 @@ public interface CorpQualificationInfoServiceI {
|
|||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
CorpQualificationInfoCO getInfoById(Long id);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,13 +25,12 @@ import java.util.Date;
|
|||
@AllArgsConstructor
|
||||
public class CorpQualificationInfoUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotEmpty(message = "主键不能为空")
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "资质id", name = "corpQualificationinfoId", required = true)
|
||||
@NotEmpty(message = "资质id不能为空")
|
||||
private String corpQualificationinfoId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotEmpty(message = "企业id不能为空")
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "资质名称,汉字30以内", name = "qualificationName", required = true)
|
||||
@NotEmpty(message = "资质名称不能为空")
|
||||
|
|
@ -42,6 +41,7 @@ public class CorpQualificationInfoUpdateCmd extends Command {
|
|||
private Date startValidityTime;
|
||||
@ApiModelProperty(value = "结束证书有效期", name = "endValidityTime", required = true)
|
||||
@NotNull(message = "结束证书有效期不能为空")
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date endValidityTime;
|
||||
@ApiModelProperty(value = "证书编号", name = "certificateNo", required = true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue