注册页资质证书列表

ww
chengqf 2 years ago
parent 1720e40992
commit 41249739c3

@ -71,7 +71,7 @@ public class UserRegisterController extends BaseController {
userRegisterEntity = new UserRegisterEntity();
} else {
userPersons = userPersonService.list(new QueryWrapper<UserPersonEntity>().eq("registerId", userRegisterEntity.getId()));
userCerts = userCertService.list(new QueryWrapper<UserCertEntity>().eq("businessId", userRegisterEntity.getId()));
userCerts = userCertService.selectByRegisterId(userRegisterEntity.getId());
}
map.put("registerInfo", userRegisterEntity);
map.put("userPersons", userPersons);

@ -1,9 +1,14 @@
package com.glxp.api.dao.sup;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.sup.UserCertEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserCertMapper extends BaseMapper<UserCertEntity> {
List<UserCertEntity> selectByRegisterId(@Param("registerId") Long registerId);
}

@ -1,8 +1,10 @@
package com.glxp.api.service.sup;
import com.glxp.api.entity.sup.UserCertEntity;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glxp.api.entity.sup.UserCertEntity;
public interface UserCertService extends IService<UserCertEntity>{
List<UserCertEntity> selectByRegisterId(Long registerId);
}

@ -1,12 +1,22 @@
package com.glxp.api.service.sup.impl;
import com.glxp.api.service.sup.UserCertService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.dao.sup.UserCertMapper;
import com.glxp.api.entity.sup.UserCertEntity;
import com.glxp.api.service.sup.UserCertService;
@Service
public class UserCertServiceImpl extends ServiceImpl<UserCertMapper, UserCertEntity> implements UserCertService {
@Resource
UserCertMapper userCertDao;
@Override
public List<UserCertEntity> selectByRegisterId(Long registerId) {
return userCertDao.selectByRegisterId(registerId);
}
}

@ -25,4 +25,9 @@
id, businessId, `name`, code, filePath, validDate, expireDate, checkStatus, checkComment,
`status`, remark, `createUser`, createTime, updateUser, updateTime
</sql>
<select id="selectByRegisterId" parameterType="java.lang.String"
resultType="com.glxp.api.entity.auth.UserCertEntity">
SELECT a.id,c.name,c.isNeed,a.registerId,a.companyId,a.code,a.filePath,a.validDate,a.expireDate,a.checkStatus,a.checkTime,a.checkComment,a.status,a.remark FROM user_cert_set c LEFT JOIN
(SELECT * from user_cert WHERE registerId=#{registerId}) a ON c.name = a.name
</select>
</mapper>

Loading…
Cancel
Save