dev
This commit is contained in:
parent
e241415d58
commit
73d541b563
|
|
@ -0,0 +1,66 @@
|
||||||
|
package com.syjiaer.clinic.server.entity.social.dto;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author NiuZiYuan
|
||||||
|
* @since 2025-04-17
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@ToString
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("social_directory_view")
|
||||||
|
@ApiModel(value = "SocialDirectoryView对象", description = "")
|
||||||
|
public class SocialDirectoryView implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String keyword;
|
||||||
|
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
private String producer;
|
||||||
|
|
||||||
|
private LocalDateTime createDatetime;
|
||||||
|
|
||||||
|
private LocalDateTime updateDatetime;
|
||||||
|
|
||||||
|
private String versionName;
|
||||||
|
|
||||||
|
private String data;
|
||||||
|
|
||||||
|
private String hilistLmtpricType;
|
||||||
|
|
||||||
|
private BigDecimal hilistPricUplmtAmt;
|
||||||
|
|
||||||
|
private String selfpayPropType;
|
||||||
|
|
||||||
|
private BigDecimal selfpayProp;
|
||||||
|
|
||||||
|
private LocalDateTime begndate;
|
||||||
|
|
||||||
|
private LocalDateTime enddate;
|
||||||
|
|
||||||
|
private String wubi;
|
||||||
|
|
||||||
|
private String pinyin;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.syjiaer.clinic.server.mapper.social;
|
||||||
|
|
||||||
|
import com.syjiaer.clinic.server.entity.social.dto.SocialDirectoryView;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author NiuZiYuan
|
||||||
|
* @since 2025-04-17
|
||||||
|
*/
|
||||||
|
public interface SocialDirectoryViewMapper extends BaseMapper<SocialDirectoryView> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.syjiaer.clinic.server.service;
|
package com.syjiaer.clinic.server.service;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.syjiaer.clinic.server.common.exception.VerifyException;
|
import com.syjiaer.clinic.server.common.exception.VerifyException;
|
||||||
import com.syjiaer.clinic.server.common.util.HeadersUtil;
|
import com.syjiaer.clinic.server.common.util.HeadersUtil;
|
||||||
|
|
@ -80,10 +81,10 @@ public abstract class BaseService {
|
||||||
return managerUser;
|
return managerUser;
|
||||||
|
|
||||||
}
|
}
|
||||||
protected Page pageHelper(int pageNum, int pageSize, QueryWrapper queryWrapper, IService iservice){
|
protected Page pageHelper(int pageNum, int pageSize, QueryWrapper queryWrapper, BaseMapper mapper){
|
||||||
Long totalCount = iservice.count(queryWrapper);
|
Long totalCount = mapper.selectCount(queryWrapper);
|
||||||
queryWrapper.last("LIMIT " + (pageNum - 1) * pageSize + ", " + pageSize);
|
queryWrapper.last("LIMIT " + (pageNum - 1) * pageSize + ", " + pageSize);
|
||||||
List list = iservice.list(queryWrapper);
|
List list = mapper.selectList(queryWrapper);
|
||||||
Page page = new Page();
|
Page page = new Page();
|
||||||
page.setList(list);
|
page.setList(list);
|
||||||
page.setTotal_count(totalCount);
|
page.setTotal_count(totalCount);
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.syjiaer.clinic.server.service.social;
|
||||||
|
|
||||||
|
import com.syjiaer.clinic.server.common.vo.Page;
|
||||||
|
import com.syjiaer.clinic.server.entity.social.dto.SocialDirectoryView;
|
||||||
|
import com.syjiaer.clinic.server.service.BaseService;
|
||||||
|
|
||||||
|
public class SocialDirectoryService extends BaseService {
|
||||||
|
/*
|
||||||
|
* 下载接口
|
||||||
|
* @param version_name 版本名称
|
||||||
|
* @param type 类型
|
||||||
|
*/
|
||||||
|
public void download(String version_name,int type){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 搜索接口
|
||||||
|
* @param keyword 关键字
|
||||||
|
*/
|
||||||
|
public Page<SocialDirectoryView> search(String keyword,int[] type,int pageNum,int pageSize){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* 列表接口
|
||||||
|
* @param type 类型
|
||||||
|
*/
|
||||||
|
public Page<SocialDirectoryView> list(int type){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.syjiaer.clinic.server.mapper.social.SocialDirectoryViewMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue