新增不良信息功能

master
yuanwei 1 year ago
parent 1642e226ac
commit f27151ebc1

@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.validation.Valid;
import java.util.Date;
/**
*
@ -66,7 +67,8 @@ public class AnncmntManuCertController extends BaseController {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
entity.setCreateTime(new Date());
entity.setUdpateTime(new Date());
boolean b = anncmntManuCertService.save(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);
@ -90,6 +92,7 @@ public class AnncmntManuCertController extends BaseController {
if (originEntity == null) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
entity.setUdpateTime(new Date());
boolean b = anncmntManuCertService.updateById(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);

@ -11,9 +11,13 @@ import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.constant.BusinessType;
import com.glxp.api.controller.BaseController;
import com.glxp.api.dto.DictDto;
import com.glxp.api.entity.anno.AnncmntDevEntity;
import com.glxp.api.entity.stat.AnncmntManuEntity;
import com.glxp.api.entity.stat.AnncmntYlqxzcrEntity;
import com.glxp.api.req.anno.AnncmntDevEntityRequest;
import com.glxp.api.req.anno.AnncmntManuEntityRequest;
import com.glxp.api.req.anno.AnncmntYlqxzcrEntityRequest;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.service.anno.AnncmntDevService;
@ -27,6 +31,9 @@ import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.validation.Valid;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
/**
*
@ -43,7 +50,7 @@ public class AnncmntManuController extends BaseController {
@GetMapping("/list")
public BaseResponse list(AnncmntDevEntityRequest request, BindingResult bindingResult) {
public BaseResponse list(AnncmntManuEntityRequest request, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
@ -65,7 +72,8 @@ public class AnncmntManuController extends BaseController {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
entity.setCreateTime(new Date());
entity.setUdpateTime(new Date());
boolean b = anncmntManuService.save(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);
@ -89,6 +97,7 @@ public class AnncmntManuController extends BaseController {
if (originEntity == null) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
entity.setUdpateTime(new Date());
boolean b = anncmntManuService.updateById(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);
@ -115,11 +124,21 @@ public class AnncmntManuController extends BaseController {
return ResultVOUtils.success();
}
public static QueryWrapper<AnncmntManuEntity> getQueryWrapper(AnncmntDevEntityRequest request) {
public static QueryWrapper<AnncmntManuEntity> getQueryWrapper(AnncmntManuEntityRequest request) {
AnncmntManuEntity entity = new AnncmntManuEntity();
BeanCopyUtils.copy(request, entity);
QueryWrapper queryWrapper = new QueryWrapper(entity);
return queryWrapper;
}
@GetMapping("getList")
public BaseResponse getList(AnncmntManuEntityRequest request) {
List<AnncmntManuEntity> list = anncmntManuService.list();
List<DictDto> reList = list.stream().map(s-> {
DictDto dictDto = new DictDto(s.getCreditCode(),s.getName());
return dictDto;
}).collect(Collectors.toList());
return ResultVOUtils.success(reList);
}
}

@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.validation.Valid;
import java.util.Date;
/**
*
@ -66,7 +67,8 @@ public class AnncmntProductBatchController extends BaseController {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
entity.setCreateTime(new Date());
entity.setUdpateTime(new Date());
boolean b = anncmntProductBatchService.save(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);
@ -90,6 +92,7 @@ public class AnncmntProductBatchController extends BaseController {
if (originEntity == null) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
entity.setUdpateTime(new Date());
boolean b = anncmntProductBatchService.updateById(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);

@ -28,6 +28,7 @@ import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.validation.Valid;
import java.util.Date;
/**
*
@ -66,7 +67,8 @@ public class AnncmntProductController extends BaseController {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
entity.setCreateTime(new Date());
entity.setUdpateTime(new Date());
boolean b = anncmntProductService.save(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);
@ -90,6 +92,7 @@ public class AnncmntProductController extends BaseController {
if (originEntity == null) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
entity.setUdpateTime(new Date());
boolean b = anncmntProductService.updateById(entity);
if (!b) {
return ResultVOUtils.error(ResultEnum.NOT_NETWORK);

@ -132,10 +132,6 @@ public class AnncmntYlqxzczhController extends BaseController {
@GetMapping("getList")
public BaseResponse getList(AnncmntYlqxzcrEntityRequest request) {
List<AnncmntYlqxzczhEntity> list = anncmntYlqxzczhService.list();
List<DictDto> reList = list.stream().map(s-> {
DictDto dictDto = new DictDto(s.getRegCreditCode(),s.getRegCompanyName());
return dictDto;
}).collect(Collectors.toList());
return ResultVOUtils.success(reList);
return ResultVOUtils.success(list);
}
}

@ -111,13 +111,13 @@ public class AnncmntManuCertEntity implements Serializable {
* 使
*/
@TableField(value = "pauseStartTime")
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
@TableField(value = "pauseEndTime")
private Date pauseEndTime;
private String pauseEndTime;
private static final long serialVersionUID = 1L;
}

@ -117,13 +117,13 @@ public class AnncmntManuEntity implements Serializable {
* 使
*/
@TableField(value = "pauseStartTime")
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
@TableField(value = "pauseEndTime")
private Date pauseEndTime;
private String pauseEndTime;
/**
*

@ -102,13 +102,13 @@ public class AnncmntProductBatchEntity implements Serializable {
* 使
*/
@TableField(value = "pauseStartTime")
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
@TableField(value = "pauseEndTime")
private Date pauseEndTime;
private String pauseEndTime;
private static final long serialVersionUID = 1L;
}

@ -114,13 +114,13 @@ public class AnncmntProductEntity implements Serializable {
* 使
*/
@TableField(value = "pauseStartTime")
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
@TableField(value = "pauseEndTime")
private Date pauseEndTime;
private String pauseEndTime;
private static final long serialVersionUID = 1L;
}

@ -117,13 +117,13 @@ public class AnncmntYlqxzcrEntity implements Serializable {
* 使
*/
@TableField(value = "pauseStartTime")
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
@TableField(value = "pauseEndTime")
private Date pauseEndTime;
private String pauseEndTime;
private static final long serialVersionUID = 1L;
}

@ -150,13 +150,13 @@ public class AnncmntYlqxzczhEntity implements Serializable {
* 使
*/
@TableField(value = "pauseStartTime")
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
@TableField(value = "pauseEndTime")
private Date pauseEndTime;
private String pauseEndTime;
private static final long serialVersionUID = 1L;
}

@ -86,10 +86,10 @@ public class AnncmntManuCertEntityRequest extends ListPageRequest {
/**
* 使
*/
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
private Date pauseEndTime;
private String pauseEndTime;
}

@ -90,12 +90,12 @@ public class AnncmntManuEntityRequest extends ListPageRequest {
/**
* 使
*/
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
private Date pauseEndTime;
private String pauseEndTime;
/**
*

@ -81,10 +81,10 @@ public class AnncmntProductBatchEntityRequest extends ListPageRequest {
/**
* 使
*/
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
private Date pauseEndTime;
private String pauseEndTime;
}

@ -90,10 +90,10 @@ public class AnncmntProductEntityRequest extends ListPageRequest {
/**
* 使
*/
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
private Date pauseEndTime;
private String pauseEndTime;
}

@ -89,11 +89,11 @@ public class AnncmntYlqxzcrEntityRequest extends ListPageRequest {
/**
* 使
*/
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
private Date pauseEndTime;
private String pauseEndTime;
}

@ -119,10 +119,10 @@ public class AnncmntYlqxzczhEntityRequest extends ListPageRequest {
/**
* 使
*/
private Date pauseStartTime;
private String pauseStartTime;
/**
* 使
*/
private Date pauseEndTime;
private String pauseEndTime;
}

Loading…
Cancel
Save