代码更新备份

cert
1178634255 2 years ago
parent 05c809dc10
commit c34e0b2c27

@ -297,7 +297,7 @@ public class SupCertController {
return ResultVOUtils.success("成功");
}
@AuthRuleAnnotation("")
// @AuthRuleAnnotation("")
@PostMapping("/sup/info/insertCompanyCert")
@Log(title = "资质证书", businessType = BusinessType.INSERT)
public BaseResponse cptInsertCompanyCert(@RequestBody SupCertEntity supCertEntity) {

@ -315,10 +315,10 @@ public class UserRegisterController extends BaseController {
userRegisterEntity.setId(Long.valueOf(registComPerResponse.getId()));
userRegisterEntity.setCheckStatus(registComPerResponse.getCheckStatus());
userCompanyEntity.setId(Long.valueOf(registComPerResponse.getUcId()));
userCompanyEntity.setCustomerId(registComPerResponse.getUcId());
// userCompanyEntity.setCustomerId(registComPerResponse.getUcId());
userCompanyEntity.setCheckStatus(registComPerResponse.getCheckStatus());
userCompanyEntity.setReason(registComPerResponse.getReason());
userCompanyEntity.setAuditStatus(Integer.valueOf(company.getCheckStatus()));
// userCompanyEntity.setAuditStatus(Integer.valueOf(company.getCheckStatus()));
String queueName = "fanout_" + userCompanyEntity.getId() + "";
rabbitQueueService.createQueue(queueName);
userRegisterService.updateById(userRegisterEntity);

@ -1,15 +1,19 @@
package com.glxp.api.controller.trace;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageInfo;
import com.glxp.api.annotation.AuthRuleAnnotation;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.basic.BasicUdiProductEntity;
import com.glxp.api.entity.trace.TraceTaskNoticeEntity;
import com.glxp.api.req.system.DeleteRequest;
import com.glxp.api.req.trace.TraceDlTaskRequest;
import com.glxp.api.req.trace.TraceTaskDetailRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.trace.TraceTaskDlResponse;
import com.glxp.api.service.trace.TraceTaskHistoryService;
import com.glxp.api.service.trace.TraceTaskNoticeService;
import com.glxp.api.service.trace.TraceTaskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -17,6 +21,8 @@ import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;
@ -38,7 +44,8 @@ public class TraceTaskController {
@Resource
TraceTaskHistoryService traceTaskHistoryService;
@Resource
TraceTaskNoticeService traceTaskNoticeService;
//任务列表
@ApiOperation(value = "查询任务列表", response = TraceTaskDlResponse.class)
@ -84,4 +91,29 @@ public class TraceTaskController {
pageSimpleResponse.setList(traceTaskDlResponses);
return ResultVOUtils.success(pageSimpleResponse);
}
//任务列表删除
@ApiOperation(value = "任务列表删除", response = BaseResponse.class)
@AuthRuleAnnotation("udi/trace/task/delete")
@PostMapping("udi/trace/task/delete")
public BaseResponse deleteTask(@RequestBody DeleteRequest deleteRequest) {
traceTaskNoticeService.removeById(deleteRequest.getId());
return ResultVOUtils.success("删除成功!");
}
//历史任务列表删除
@ApiOperation(value = "历史任务列表删除", response = BaseResponse.class)
@AuthRuleAnnotation("udi/trace/task/deleteTaskList")
@PostMapping("udi/trace/task/deleteTaskList")
public BaseResponse deleteTaskList(@RequestBody DeleteRequest deleteRequest) {
traceTaskHistoryService.removeById(deleteRequest.getId());
return ResultVOUtils.success("删除成功!");
}
}

@ -6,7 +6,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import io.swagger.annotations.ApiModel;
@ -105,242 +104,13 @@ public class UserCompanyEntity implements Serializable {
@TableField(value = "`reason`")
private String reason;
private String customerId;
private String classes;
/**
*
*/
private String area;
/**
*
*/
private String detailAddr;
/**
* x
*/
private String appId;
/**
* x
*/
private String appSecret;
/**
*
*/
private String contacts;
/**
*
*/
private String mobile;
/**
*
*/
private String tel;
/**
*
*/
private String email;
private String areaCode;
/**
* x
*/
private String refEntId;
/**
* IDx
*/
private String entId;
/**
* 012x
*/
private Integer networkType;
/**
* appkeyIDx
*/
private Integer certIdFk;
/**
* x
*/
private String parentCompany;
/**
* Idx
*/
private String parentIdFk;
/**
* 1
*/
private String contactsPapersType;
/**
*
*/
private String contactsPapersCode;
/**
* 1234
*/
private String registerStatus;
/**
*
*/
private String jyxkzh;
/**
*
*/
private String jyxkzfzjg;
/**
*
*/
private LocalDate jyxkzyxq;
/**
*
* 线 1线2线
*/
private String jybapzh;
/**
*
*/
private String jybabm;
/**
*
*/
@TableField("fzrq")
private Date fzrq;
/**
*
*/
private String suihao;
/**
*
*/
private String kaihuhang;
/**
*
*/
private String kaihuzhanghao;
/**
* 0稿435612
*/
private Integer auditStatus;
/**
*
*/
private String filePath;
/**
*
*/
private String filePath2;
/**
*
*/
private String filePath3;
/**
*
*/
private String filePath4;
/**
*
*/
private String unitIdFk;
/**
*
*/
private String createBy;
/**
*
*/
private Date auditTime;
/**
*
*/
private String auditComment;
/**
* 1.稿2.)
*/
private Integer editStatus;
/**
*
*/
private String remark;
/**
*
*/
private String createUser;
/**
*
*/
private Date createTime;
/**
*
*/
private String updateUser;
/**
*
*/
private Date updateTime;
private String auditor;
private String roleId;
@ApiModelProperty(value = "在线状态 1在线2离线")
@TableField(exist = false)
private String failCout;
@TableField(exist = false)
private String passCout;
@TableField(exist = false)
private String productFailCout;
@TableField(exist = false)
private String prouctPassCout;
private Integer onLineStatus;
private static final long serialVersionUID = 1L;
}

@ -1,5 +1,6 @@
package com.glxp.api.service.trace;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageHelper;
import com.glxp.api.dao.trace.TraceTaskNoticeMapper;
import com.glxp.api.req.trace.TraceTaskDetailRequest;
@ -28,4 +29,6 @@ public class TraceTaskHistoryService extends ServiceImpl<TraceTaskHistoryMapper,
}
return traceTaskHistoryMapper.queryTraceTaskList(traceTaskDetailRequest);
}
}

@ -33,6 +33,7 @@
</select>
<select id="filterCompanyCert" parameterType="com.glxp.api.req.purchase.FilterSupCertRequest"
resultType="com.glxp.api.entity.sup.UserCertEntity">
-- select * from sup_cert
select * from user_cert
<where>
<if test="businessId != '' and businessId!=null">
@ -41,6 +42,9 @@
<if test="customerId != '' and customerId!=null">
and customerId = #{customerId}
</if>
<if test="businessId != '' and businessId!=null">
and businessId = #{businessId}
</if>
<if test="manufacturerIdFk != '' and manufacturerIdFk!=null">
and manufacturerIdFk = #{manufacturerIdFk}
</if>

Loading…
Cancel
Save