This commit is contained in:
parent
3a0b71c10a
commit
d32510d494
|
|
@ -0,0 +1,13 @@
|
|||
package com.ruoyi.common.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 自定义 @TraceId
|
||||
*/
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
public @interface TraceId {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
package com.ruoyi.common.func;
|
||||
|
||||
import com.ruoyi.common.func.support.FastStringWriter;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.UndeclaredThrowableException;
|
||||
|
||||
/**
|
||||
* 错误信息处理类。
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class ExceptionUtil {
|
||||
/**
|
||||
* 获取exception的详细错误信息。
|
||||
*/
|
||||
public static String getExceptionMessage(Throwable e) {
|
||||
StringWriter sw = new StringWriter();
|
||||
e.printStackTrace(new PrintWriter(sw, true));
|
||||
String str = sw.toString();
|
||||
return str;
|
||||
}
|
||||
|
||||
public static String getRootErrorMseeage(Exception e) {
|
||||
Throwable root = ExceptionUtils.getRootCause(e);
|
||||
root = (root == null ? e : root);
|
||||
if (root == null) {
|
||||
return "";
|
||||
}
|
||||
String msg = root.getMessage();
|
||||
if (msg == null) {
|
||||
return "null";
|
||||
}
|
||||
return StringUtils.defaultString(msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将CheckedException转换为UncheckedException.
|
||||
*
|
||||
* @param e Throwable
|
||||
* @return {RuntimeException}
|
||||
*/
|
||||
public static RuntimeException unchecked(Throwable e) {
|
||||
if (e instanceof IllegalAccessException || e instanceof IllegalArgumentException
|
||||
|| e instanceof NoSuchMethodException) {
|
||||
return new IllegalArgumentException(e);
|
||||
} else if (e instanceof InvocationTargetException) {
|
||||
return new RuntimeException(((InvocationTargetException) e).getTargetException());
|
||||
} else if (e instanceof RuntimeException) {
|
||||
return (RuntimeException) e;
|
||||
} else {
|
||||
return new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 代理异常解包
|
||||
*
|
||||
* @param wrapped 包装过得异常
|
||||
* @return 解包后的异常
|
||||
*/
|
||||
public static Throwable unwrap(Throwable wrapped) {
|
||||
Throwable unwrapped = wrapped;
|
||||
while (true) {
|
||||
if (unwrapped instanceof InvocationTargetException) {
|
||||
unwrapped = ((InvocationTargetException) unwrapped).getTargetException();
|
||||
} else if (unwrapped instanceof UndeclaredThrowableException) {
|
||||
unwrapped = ((UndeclaredThrowableException) unwrapped).getUndeclaredThrowable();
|
||||
} else {
|
||||
return unwrapped;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 将ErrorStack转化为String.
|
||||
*
|
||||
* @param ex Throwable
|
||||
* @return {String}
|
||||
*/
|
||||
public static String getStackTraceAsString(Throwable ex) {
|
||||
FastStringWriter stringWriter = new FastStringWriter();
|
||||
ex.printStackTrace(new PrintWriter(stringWriter));
|
||||
return stringWriter.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,842 @@
|
|||
package com.ruoyi.common.func;
|
||||
|
||||
import com.ruoyi.common.func.support.BaseBeanCopier;
|
||||
import com.ruoyi.common.func.support.ConcurrentDateFormat;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.utils.bean.BeanUtils;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.cglib.core.CodeGenerationException;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.beans.PropertyDescriptor;
|
||||
import java.text.ParseException;
|
||||
import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.temporal.ChronoField;
|
||||
import java.time.temporal.TemporalAmount;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
/**
|
||||
* 工具包集合,只做简单的调用,不删除原有工具类
|
||||
*
|
||||
* @author L.cm
|
||||
*/
|
||||
public class Func {
|
||||
/**
|
||||
* Check whether the given {@code CharSequence} contains actual <em>text</em>.
|
||||
* <p>More specifically, this method returns {@code true} if the
|
||||
* {@code CharSequence} is not {@code null}, its length is greater than
|
||||
* 0, and it contains at least one non-whitespace character.
|
||||
* <pre class="code">
|
||||
* $.isBlank(null) = true
|
||||
* $.isBlank("") = true
|
||||
* $.isBlank(" ") = true
|
||||
* $.isBlank("12345") = false
|
||||
* $.isBlank(" 12345 ") = false
|
||||
* </pre>
|
||||
*
|
||||
* @param cs the {@code CharSequence} to check (may be {@code null})
|
||||
* @return {@code true} if the {@code CharSequence} is not {@code null},
|
||||
* its length is greater than 0, and it does not contain whitespace only
|
||||
* @see Character#isWhitespace
|
||||
*/
|
||||
public static boolean isBlank(@Nullable final CharSequence cs) {
|
||||
return StringUtils.isBlank(cs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Checks if a CharSequence is not empty (""), not null and not whitespace only.</p>
|
||||
* <pre>
|
||||
* $.isNotBlank(null) = false
|
||||
* $.isNotBlank("") = false
|
||||
* $.isNotBlank(" ") = false
|
||||
* $.isNotBlank("bob") = true
|
||||
* $.isNotBlank(" bob ") = true
|
||||
* </pre>
|
||||
*
|
||||
* @param cs the CharSequence to check, may be null
|
||||
* @return {@code true} if the CharSequence is
|
||||
* not empty and not null and not whitespace
|
||||
* @see Character#isWhitespace
|
||||
*/
|
||||
public static boolean isNotBlank(@Nullable final CharSequence cs) {
|
||||
return StringUtils.isNotBlank(cs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the given object is not empty:
|
||||
* i.e. {@code null} or of zero length.
|
||||
*
|
||||
* @param obj the object to check
|
||||
* @return 是否不为空
|
||||
*/
|
||||
public static boolean isNotEmpty(@Nullable Object obj) {
|
||||
return !ObjectUtil.isEmpty(obj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the given array is empty:
|
||||
* i.e. {@code null} or of zero length.
|
||||
*
|
||||
* @param array the array to check
|
||||
* @return 数组是否为空
|
||||
*/
|
||||
public static boolean isEmpty(@Nullable Object[] array) {
|
||||
return ObjectUtil.isEmpty(array);
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为String数组<br>
|
||||
*
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static String[] toStrArray(String str) {
|
||||
return toStrArray(",", str);
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为String数组<br>
|
||||
*
|
||||
* @param split 分隔符
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static String[] toStrArray(String split, String str) {
|
||||
if (isBlank(str)) {
|
||||
return new String[]{};
|
||||
}
|
||||
return str.split(split);
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为String集合<br>
|
||||
*
|
||||
* @param str 结果被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static List<String> toStrList(String str) {
|
||||
return Arrays.asList(toStrArray(str));
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为String集合<br>
|
||||
*
|
||||
* @param split 分隔符
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static List<String> toStrList(String split, String str) {
|
||||
return Arrays.asList(toStrArray(split, str));
|
||||
}
|
||||
|
||||
/**
|
||||
* 清理字符串,清理出某些不可见字符
|
||||
*
|
||||
* @param txt 字符串
|
||||
* @return {String}
|
||||
*/
|
||||
public static String cleanChars(String txt) {
|
||||
return txt.replaceAll("[ `·•<C2B7>\\f\\t\\v\\s]", "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a {@code Collection} into a delimited {@code String} (e.g., CSV).
|
||||
* <p>Useful for {@code toString()} implementations.
|
||||
*
|
||||
* @param coll the {@code Collection} to convert
|
||||
* @return the delimited {@code String}
|
||||
*/
|
||||
public static String join(Collection<?> coll) {
|
||||
return StringUtils.join(coll);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a {@code Collection} into a delimited {@code String} (e.g. CSV).
|
||||
* <p>Useful for {@code toString()} implementations.
|
||||
*
|
||||
* @param coll the {@code Collection} to convert
|
||||
* @param delim the delimiter to use (typically a ",")
|
||||
* @return the delimited {@code String}
|
||||
*/
|
||||
public static String join(Collection<?> coll, String delim) {
|
||||
return StringUtils.join(coll, delim);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a {@code String} array into a comma delimited {@code String}
|
||||
* (i.e., CSV).
|
||||
* <p>Useful for {@code toString()} implementations.
|
||||
*
|
||||
* @param arr the array to display
|
||||
* @return the delimited {@code String}
|
||||
*/
|
||||
public static String join(Object[] arr) {
|
||||
return StringUtils.join(arr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a {@code String} array into a delimited {@code String} (e.g. CSV).
|
||||
* <p>Useful for {@code toString()} implementations.
|
||||
*
|
||||
* @param arr the array to display
|
||||
* @param delim the delimiter to use (typically a ",")
|
||||
* @return the delimited {@code String}
|
||||
*/
|
||||
public static String join(Object[] arr, String delim) {
|
||||
return StringUtils.join(arr, delim);
|
||||
}
|
||||
|
||||
/**
|
||||
* Trim leading and trailing whitespace from the given {@code String}.
|
||||
*
|
||||
* @param str the {@code String} to check
|
||||
* @return the trimmed {@code String}
|
||||
* @see java.lang.Character#isWhitespace
|
||||
*/
|
||||
public static String trimWhitespace(String str) {
|
||||
if (!hasLength(str)) {
|
||||
return str;
|
||||
}
|
||||
|
||||
int beginIndex = 0;
|
||||
int endIndex = str.length() - 1;
|
||||
|
||||
while (beginIndex <= endIndex && Character.isWhitespace(str.charAt(beginIndex))) {
|
||||
beginIndex++;
|
||||
}
|
||||
|
||||
while (endIndex > beginIndex && Character.isWhitespace(str.charAt(endIndex))) {
|
||||
endIndex--;
|
||||
}
|
||||
|
||||
return str.substring(beginIndex, endIndex + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the given {@code String} is neither {@code null} nor of length 0.
|
||||
* <p>Note: this method returns {@code true} for a {@code String} that
|
||||
* purely consists of whitespace.
|
||||
*
|
||||
* @param str the {@code String} to check (may be {@code null})
|
||||
* @return {@code true} if the {@code String} is not {@code null} and has length
|
||||
*/
|
||||
public static boolean hasLength(@Nullable String str) {
|
||||
return (str != null && !str.isEmpty());
|
||||
}
|
||||
|
||||
/**
|
||||
* copy 对象属性到另一个对象,默认不使用Convert
|
||||
* <p>
|
||||
* 注意:不支持链式Bean,链式用 copyProperties
|
||||
*
|
||||
* @param source 源对象
|
||||
* @param clazz 类名
|
||||
* @param <T> 泛型标记
|
||||
* @return T
|
||||
*/
|
||||
public static <T> T copy(Object source, Class<T> clazz) {
|
||||
BaseBeanCopier copier = BaseBeanCopier.create(source.getClass(), clazz, false);
|
||||
T to = org.springframework.beans.BeanUtils.instantiateClass(clazz);
|
||||
copier.copy(source, to, null);
|
||||
return to;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拷贝对象
|
||||
* <p>
|
||||
* 注意:不支持链式Bean,链式用 copyProperties
|
||||
*
|
||||
* @param source 源对象
|
||||
* @param targetBean 需要赋值的对象
|
||||
*/
|
||||
public static void copy(Object source, Object targetBean) {
|
||||
BaseBeanCopier copier = BaseBeanCopier.create(source.getClass(), targetBean.getClass(), false);
|
||||
copier.copy(source, targetBean, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断一个字符串是否是数字
|
||||
*
|
||||
* @param cs the CharSequence to check, may be null
|
||||
* @return {boolean}
|
||||
*/
|
||||
public static boolean isNumeric(final CharSequence cs) {
|
||||
return StringUtils.isNumeric(cs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>int</code>, returning
|
||||
* <code>zero</code> if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, <code>zero</code> is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toInt(null) = 0
|
||||
* $.toInt("") = 0
|
||||
* $.toInt("1") = 1
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @return the int represented by the string, or <code>zero</code> if
|
||||
* conversion fails
|
||||
*/
|
||||
public static int toInt(final Object value) {
|
||||
return NumberUtils.toInt(String.valueOf(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>int</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toInt(null, 1) = 1
|
||||
* $.toInt("", 1) = 1
|
||||
* $.toInt("1", 0) = 1
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @param defaultValue the default value
|
||||
* @return the int represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static int toInt(final Object value, final int defaultValue) {
|
||||
return NumberUtils.toInt(String.valueOf(value), defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to a <code>long</code>, returning
|
||||
* <code>zero</code> if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, <code>zero</code> is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toLong(null) = 0L
|
||||
* $.toLong("") = 0L
|
||||
* $.toLong("1") = 1L
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @return the long represented by the string, or <code>0</code> if
|
||||
* conversion fails
|
||||
*/
|
||||
public static long toLong(final Object value) {
|
||||
return NumberUtils.toLong(String.valueOf(value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to a <code>long</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toLong(null, 1L) = 1L
|
||||
* $.toLong("", 1L) = 1L
|
||||
* $.toLong("1", 0L) = 1L
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @param defaultValue the default value
|
||||
* @return the long represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static long toLong(final Object value, final long defaultValue) {
|
||||
return NumberUtils.toLong(String.valueOf(value), defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>Double</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toDouble(null, 1) = 1.0
|
||||
* $.toDouble("", 1) = 1.0
|
||||
* $.toDouble("1", 0) = 1.0
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @return the int represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static Double toDouble(Object value) {
|
||||
return toDouble(String.valueOf(value), -1.00);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>Double</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toDouble(null, 1) = 1.0
|
||||
* $.toDouble("", 1) = 1.0
|
||||
* $.toDouble("1", 0) = 1.0
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @param defaultValue the default value
|
||||
* @return the int represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static Double toDouble(Object value, Double defaultValue) {
|
||||
return NumberUtils.toDouble(String.valueOf(value), defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>Float</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toFloat(null, 1) = 1.00f
|
||||
* $.toFloat("", 1) = 1.00f
|
||||
* $.toFloat("1", 0) = 1.00f
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @return the int represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static Float toFloat(Object value) {
|
||||
return toFloat(String.valueOf(value), -1.0f);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>Float</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toFloat(null, 1) = 1.00f
|
||||
* $.toFloat("", 1) = 1.00f
|
||||
* $.toFloat("1", 0) = 1.00f
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @param defaultValue the default value
|
||||
* @return the int represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static Float toFloat(Object value, Float defaultValue) {
|
||||
return NumberUtils.toFloat(String.valueOf(value), defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>Boolean</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toBoolean("true", true) = true
|
||||
* $.toBoolean("false") = false
|
||||
* $.toBoolean("", false) = false
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @return the int represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static Boolean toBoolean(Object value) {
|
||||
return toBoolean(value, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Convert a <code>String</code> to an <code>Boolean</code>, returning a
|
||||
* default value if the conversion fails.</p>
|
||||
*
|
||||
* <p>If the string is <code>null</code>, the default value is returned.</p>
|
||||
*
|
||||
* <pre>
|
||||
* $.toBoolean("true", true) = true
|
||||
* $.toBoolean("false") = false
|
||||
* $.toBoolean("", false) = false
|
||||
* </pre>
|
||||
*
|
||||
* @param value the string to convert, may be null
|
||||
* @param defaultValue the default value
|
||||
* @return the int represented by the string, or the default if conversion fails
|
||||
*/
|
||||
public static Boolean toBoolean(Object value, Boolean defaultValue) {
|
||||
if (value != null) {
|
||||
String val = String.valueOf(value);
|
||||
val = val.toLowerCase().trim();
|
||||
return Boolean.parseBoolean(val);
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Integer数组<br>
|
||||
*
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static Integer[] toIntArray(String str) {
|
||||
return toIntArray(",", str);
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Integer数组<br>
|
||||
*
|
||||
* @param split 分隔符
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static Integer[] toIntArray(String split, String str) {
|
||||
if (StringUtils.isEmpty(str)) {
|
||||
return new Integer[]{};
|
||||
}
|
||||
String[] arr = str.split(split);
|
||||
final Integer[] ints = new Integer[arr.length];
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
final int v = toInt(arr[i], 0);
|
||||
ints[i] = v;
|
||||
}
|
||||
return ints;
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Integer集合<br>
|
||||
*
|
||||
* @param str 结果被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static List<Integer> toIntList(String str) {
|
||||
return Arrays.asList(toIntArray(str));
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Integer集合<br>
|
||||
*
|
||||
* @param split 分隔符
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static List<Integer> toIntList(String split, String str) {
|
||||
return Arrays.asList(toIntArray(split, str));
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Long数组<br>
|
||||
*
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static Long[] toLongArray(String str) {
|
||||
return toLongArray(",", str);
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Long数组<br>
|
||||
*
|
||||
* @param split 分隔符
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static Long[] toLongArray(String split, String str) {
|
||||
if (StringUtils.isEmpty(str)) {
|
||||
return new Long[]{};
|
||||
}
|
||||
String[] arr = str.split(split);
|
||||
final Long[] longs = new Long[arr.length];
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
final Long v = toLong(arr[i], 0);
|
||||
longs[i] = v;
|
||||
}
|
||||
return longs;
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Long集合<br>
|
||||
*
|
||||
* @param str 结果被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static List<Long> toLongList(String str) {
|
||||
return Arrays.asList(toLongArray(str));
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换为Long集合<br>
|
||||
*
|
||||
* @param split 分隔符
|
||||
* @param str 被转换的值
|
||||
* @return 结果
|
||||
*/
|
||||
public static List<Long> toLongList(String split, String str) {
|
||||
return Arrays.asList(toLongArray(split, str));
|
||||
}
|
||||
|
||||
/**
|
||||
* 强转string,并去掉多余空格
|
||||
*
|
||||
* @param str 字符串
|
||||
* @return String
|
||||
*/
|
||||
public static String toStr(Object str) {
|
||||
return toStr(str, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* 强转string,并去掉多余空格
|
||||
*
|
||||
* @param str 字符串
|
||||
* @param defaultValue 默认值
|
||||
* @return String
|
||||
*/
|
||||
public static String toStr(Object str, String defaultValue) {
|
||||
if (null == str) {
|
||||
return defaultValue;
|
||||
}
|
||||
return String.valueOf(str);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 Bean 的所有 get方法
|
||||
*
|
||||
* @param type 类
|
||||
* @return PropertyDescriptor数组
|
||||
*/
|
||||
public static PropertyDescriptor[] getBeanGetters(Class type) {
|
||||
return getPropertiesHelper(type, true, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取 Bean 的所有 set方法
|
||||
*
|
||||
* @param type 类
|
||||
* @return PropertyDescriptor数组
|
||||
*/
|
||||
public static PropertyDescriptor[] getBeanSetters(Class type) {
|
||||
return getPropertiesHelper(type, false, true);
|
||||
}
|
||||
|
||||
private static PropertyDescriptor[] getPropertiesHelper(Class type, boolean read, boolean write) {
|
||||
try {
|
||||
PropertyDescriptor[] all = BeanUtils.getPropertyDescriptors(type);
|
||||
if (read && write) {
|
||||
return all;
|
||||
} else {
|
||||
List<PropertyDescriptor> properties = new ArrayList<>(all.length);
|
||||
for (PropertyDescriptor pd : all) {
|
||||
if (read && pd.getReadMethod() != null) {
|
||||
properties.add(pd);
|
||||
} else if (write && pd.getWriteMethod() != null) {
|
||||
properties.add(pd);
|
||||
}
|
||||
}
|
||||
return properties.toArray(new PropertyDescriptor[0]);
|
||||
}
|
||||
} catch (BeansException ex) {
|
||||
throw new CodeGenerationException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期减少时间量
|
||||
*
|
||||
* @param date 时间
|
||||
* @param amount 时间量
|
||||
* @return 设置后的时间
|
||||
*/
|
||||
public static Date minus(Date date, TemporalAmount amount) {
|
||||
Instant instant = date.toInstant();
|
||||
return Date.from(instant.minus(amount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期添加时间量
|
||||
*
|
||||
* @param date 时间
|
||||
* @param amount 时间量
|
||||
* @return 设置后的时间
|
||||
*/
|
||||
public static Date plus(Date date, TemporalAmount amount) {
|
||||
Instant instant = date.toInstant();
|
||||
return Date.from(instant.plus(amount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加天
|
||||
*
|
||||
* @param date 时间
|
||||
* @param daysToAdd 添加的天数
|
||||
* @return 设置后的时间
|
||||
*/
|
||||
public static Date plusDays(Date date, long daysToAdd) {
|
||||
return plus(date, Duration.ofDays(daysToAdd));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 减少天
|
||||
*
|
||||
* @param date 时间
|
||||
* @param days 减少的天数
|
||||
* @return 设置后的时间
|
||||
*/
|
||||
public static Date minusDays(Date date, long days) {
|
||||
return minus(date, Duration.ofDays(days));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据小时判断是否为上午、中午、下午
|
||||
*/
|
||||
public static String getDuringDay(LocalDateTime localDateTime) {
|
||||
int i = localDateTime.get(ChronoField.AMPM_OF_DAY);
|
||||
return i == 0 ? "上午" : "下午";
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据小时判断是否为上午、中午、下午
|
||||
*/
|
||||
public static String getDuringDay(Date date) {
|
||||
LocalDateTime localDateTime = fromDate(date);
|
||||
return getDuringDay(localDateTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换成java8 时间
|
||||
*
|
||||
* @param date Date
|
||||
* @return LocalDateTime
|
||||
*/
|
||||
public static LocalDateTime fromDate(final Date date) {
|
||||
return LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault());
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期格式化:yyyy-MM-dd HH:mm:ss
|
||||
*
|
||||
* @param date 时间,
|
||||
* @return 格式化后的时间 ,yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
public static String formatDate(Date date) {
|
||||
return ConcurrentDateFormat.of(DateUtils.YYYY_MM_DD_HH_MM_SS).format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期格式化:yyyy-MM-dd HH:mm:ss
|
||||
*
|
||||
* @param date 时间
|
||||
* @return 格式化后的时间, yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
public static String formatDate(LocalDateTime date) {
|
||||
return DateTimeFormatter.ofPattern(DateUtils.YYYY_MM_DD_HH_MM_SS).format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期格式化
|
||||
*
|
||||
* @param date 时间
|
||||
* @param pattern 格式
|
||||
* @return 格式化后的时间
|
||||
*/
|
||||
public static String formatDate(Date date, String pattern) {
|
||||
return ConcurrentDateFormat.of(pattern).format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期格式化
|
||||
*
|
||||
* @param date 时间
|
||||
* @param pattern 格式
|
||||
* @return 格式化后的时间
|
||||
*/
|
||||
public static String formatDate(LocalDateTime date, String pattern) {
|
||||
return DateTimeFormatter.ofPattern(pattern).format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期时间格式化
|
||||
*
|
||||
* @param date 时间
|
||||
* @return 格式化后的时间
|
||||
*/
|
||||
public static String formatDateTime(Date date) {
|
||||
return ConcurrentDateFormat.of(DateUtils.YYYY_MM_DD_HH_MM_SS).format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* 日期时间格式化
|
||||
*
|
||||
* @param date 时间
|
||||
* @return 格式化后的时间
|
||||
*/
|
||||
public static String formatDateTime(LocalDateTime date) {
|
||||
return DateTimeFormatter.ofPattern(DateUtils.YYYY_MM_DD_HH_MM_SS).format(date);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将字符串转换为时间
|
||||
*
|
||||
* @param dateStr 时间字符串
|
||||
* @param pattern 表达式
|
||||
* @return 时间
|
||||
*/
|
||||
public static Date parse(String dateStr, String pattern) {
|
||||
ConcurrentDateFormat format = ConcurrentDateFormat.of(pattern);
|
||||
try {
|
||||
return format.parse(dateStr);
|
||||
} catch (ParseException e) {
|
||||
throw ExceptionUtil.unchecked(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 将字符串转换为时间
|
||||
*
|
||||
* @param dateStr 时间字符串
|
||||
* @param format ConcurrentDateFormat
|
||||
* @return 时间
|
||||
*/
|
||||
public static Date parse(String dateStr, ConcurrentDateFormat format) {
|
||||
try {
|
||||
return format.parse(dateStr);
|
||||
} catch (ParseException e) {
|
||||
throw ExceptionUtil.unchecked(e);
|
||||
}
|
||||
}
|
||||
|
||||
private static final String S_INT = "0123456789";
|
||||
private static final String S_STR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
private static final String S_ALL = S_INT + S_STR;
|
||||
|
||||
/**
|
||||
* 随机数生成
|
||||
*
|
||||
* @param count 字符长度
|
||||
* @param randomType 随机数类别
|
||||
* @return 随机数
|
||||
*/
|
||||
public static String random(int count, RandomType randomType) {
|
||||
if (count == 0) {
|
||||
return "";
|
||||
}
|
||||
Assert.isTrue(count > 0, "Requested random string length " + count + " is less than 0.");
|
||||
final ThreadLocalRandom random = ThreadLocalRandom.current();
|
||||
char[] buffer = new char[count];
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (RandomType.INT == randomType) {
|
||||
buffer[i] = S_INT.charAt(random.nextInt(S_INT.length()));
|
||||
} else if (RandomType.STRING == randomType) {
|
||||
buffer[i] = S_STR.charAt(random.nextInt(S_STR.length()));
|
||||
} else {
|
||||
buffer[i] = S_ALL.charAt(random.nextInt(S_ALL.length()));
|
||||
}
|
||||
}
|
||||
return new String(buffer);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
package com.ruoyi.common.func;
|
||||
|
||||
public enum IConstant {
|
||||
MINUS_ONE(-1),
|
||||
ZERO(0),
|
||||
ONE(1),
|
||||
TWO(2),
|
||||
THREE(3),
|
||||
FOURTH(4),
|
||||
FIFTH(5),
|
||||
SIXTH(6),
|
||||
SEVENTH(7),
|
||||
EIGHTH(8),
|
||||
NINTH(9),
|
||||
TENTH(10);
|
||||
|
||||
private int value;
|
||||
|
||||
private IConstant(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,262 @@
|
|||
package com.ruoyi.common.func;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.Hashtable;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* 身份证号码的格式:610821-20061222-612-X 由18位数字组成:前6位为地址码,第7至14位为出生日期码,第15至17位为顺序码,
|
||||
* 第18位为校验码。检验码分别是0-10共11个数字,当检验码为“10”时,为了保证公民身份证号码18位,所以用“X”表示。虽然校验码为“X”不能更换,但若需全用数字表示,只需将18位公民身份号码转换成15位居民身份证号码,去掉第7至8位和最后1位3个数码。
|
||||
* 当今的身份证号码有15位和18位之分。1985年我国实行居民身份证制度,当时签发的身份证号码是15位的,1999年签发的身份证由于年份的扩展(由两位变为四位)和末尾加了效验码,就成了18位。
|
||||
* (1)前1、2位数字表示:所在省份的代码;
|
||||
* (2)第3、4位数字表示:所在城市的代码;
|
||||
* (3)第5、6位数字表示:所在区县的代码;
|
||||
* (4)第7~14位数字表示:出生年、月、日;
|
||||
* (5)第15、16位数字表示:所在地的派出所的代码;
|
||||
* (6)第17位数字表示性别:奇数表示男性,偶数表示女性
|
||||
* (7)第18位数字是校检码:根据一定算法生成
|
||||
* <p>
|
||||
* ————————————————
|
||||
* 版权声明:本文为CSDN博主「mazaiting」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
|
||||
* 原文链接:https://blog.csdn.net/mazaiting/article/details/79707923=
|
||||
*/
|
||||
public class IdCardUtil {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(IdCardUtil.class);
|
||||
/**
|
||||
* 身份证有效
|
||||
*/
|
||||
private static final String VALIDITY = "该身份证有效!";
|
||||
/**
|
||||
* 位数不足
|
||||
*/
|
||||
private static final String LACKDIGITS = "身份证号码长度应该为15位或18位。";
|
||||
/**
|
||||
* 最后一位应为数字
|
||||
*/
|
||||
private static final String LASTOFNUMBER = "身份证15位号码都应为数字 ; 18位号码除最后一位外,都应为数字。";
|
||||
/**
|
||||
* 出生日期无效
|
||||
*/
|
||||
private static final String INVALIDBIRTH = "身份证出生日期无效。";
|
||||
/**
|
||||
* 生日不在有效范围
|
||||
*/
|
||||
private static final String INVALIDSCOPE = "身份证生日不在有效范围。";
|
||||
/**
|
||||
* 月份无效
|
||||
*/
|
||||
private static final String INVALIDMONTH = "身份证月份无效";
|
||||
/**
|
||||
* 日期无效
|
||||
*/
|
||||
private static final String INVALIDDAY = "身份证日期无效";
|
||||
/**
|
||||
* 身份证地区编码错误
|
||||
*/
|
||||
private static final String CODINGERROR = "身份证地区编码错误。";
|
||||
/**
|
||||
* 身份证校验码无效
|
||||
*/
|
||||
private static final String INVALIDCALIBRATION = "身份证校验码无效,不是合法的身份证号码";
|
||||
|
||||
/**
|
||||
* 检验身份证号码是否符合规范
|
||||
*
|
||||
* @param IDStr 身份证号码
|
||||
* @return 错误信息或成功信息
|
||||
*/
|
||||
public static boolean validate(String IDStr) {
|
||||
String tipMsg = VALIDITY;// 记录错误信息
|
||||
String Ai = "";
|
||||
// 判断号码的长度 15位或18位
|
||||
if (IDStr.length() != 15 && IDStr.length() != 18) {
|
||||
tipMsg = LACKDIGITS;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 18位身份证前17位位数字,如果是15位的身份证则所有号码都为数字
|
||||
if (IDStr.length() == 18) Ai = IDStr.substring(0, 17);
|
||||
if (IDStr.length() == 15) Ai = IDStr.substring(0, 6) + "19" + IDStr.substring(6, 15);
|
||||
if (!isNumeric(Ai)) {
|
||||
tipMsg = LASTOFNUMBER;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 判断出生年月是否有效
|
||||
String strYear = Ai.substring(6, 10);// 年份
|
||||
String strMonth = Ai.substring(10, 12);// 月份
|
||||
String strDay = Ai.substring(12, 14);// 日期
|
||||
if (!isDate(strYear + "-" + strMonth + "-" + strDay)) {
|
||||
tipMsg = INVALIDBIRTH;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
GregorianCalendar gc = new GregorianCalendar();
|
||||
SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd");
|
||||
try {
|
||||
if ((gc.get(Calendar.YEAR) - Integer.parseInt(strYear)) > 150
|
||||
|| (gc.getTime().getTime() - s.parse(strYear + "-" + strMonth + "-" + strDay).getTime()) < 0) {
|
||||
tipMsg = INVALIDSCOPE;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
} catch (NumberFormatException | ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (Integer.parseInt(strMonth) > 12 || Integer.parseInt(strMonth) == 0) {
|
||||
tipMsg = INVALIDMONTH;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
if (Integer.parseInt(strDay) > 31 || Integer.parseInt(strDay) == 0) {
|
||||
tipMsg = INVALIDDAY;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
// 判断地区码是否有效
|
||||
Hashtable<String, String> areaCode = getAreaCode();
|
||||
// 如果身份证前两位的地区码不在Hashtable,则地区码有误
|
||||
if (areaCode.get(Ai.substring(0, 2)) == null) {
|
||||
tipMsg = CODINGERROR;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
if (!isVerifyCode(Ai, IDStr)) {
|
||||
tipMsg = INVALIDCALIBRATION;
|
||||
logger.error("{}:{}", IDStr, tipMsg);
|
||||
return false;
|
||||
}
|
||||
//logger.debug("{}:{}", IDStr, tipMsg);
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* 判断第18位校验码是否正确 第18位校验码的计算方式:
|
||||
* 1. 对前17位数字本体码加权求和 公式为:S = Sum(Ai * Wi), i =
|
||||
* 0, ... , 16 其中Ai表示第i个位置上的身份证号码数字值,Wi表示第i位置上的加权因子,其各位对应的值依次为: 7 9 10 5 8 4
|
||||
* 2 1 6 3 7 9 10 5 8 4 2
|
||||
* 2. 用11对计算结果取模 Y = mod(S, 11)
|
||||
* 3. 根据模的值得到对应的校验码
|
||||
* 对应关系为: Y值: 0 1 2 3 4 5 6 7 8 9 10 校验码: 1 0 X 9 8 7 6 5 4 3 2
|
||||
*/
|
||||
private static boolean isVerifyCode(String Ai, String IDStr) {
|
||||
String[] verifyCode = {"1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"};
|
||||
String[] Wi = {"7", "9", "10", "5", "8", "4", "2", "1", "6", "3", "7", "9", "10", "5", "8", "4", "2"};
|
||||
int sum = 0;
|
||||
for (int i = 0; i < 17; i++) {
|
||||
sum = sum + Integer.parseInt(String.valueOf(Ai.charAt(i))) * Integer.parseInt(Wi[i]);
|
||||
}
|
||||
int modValue = sum % 11;
|
||||
String strVerifyCode = verifyCode[modValue];
|
||||
Ai = Ai + strVerifyCode;
|
||||
if (IDStr.length() == 18) {
|
||||
return Ai.equals(IDStr);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 将所有地址编码保存在一个Hashtable中
|
||||
*
|
||||
* @return Hashtable 对象
|
||||
*/
|
||||
|
||||
private static Hashtable<String, String> getAreaCode() {
|
||||
Hashtable<String, String> hashtable = new Hashtable<String, String>();
|
||||
hashtable.put("11", "北京");
|
||||
hashtable.put("12", "天津");
|
||||
hashtable.put("13", "河北");
|
||||
hashtable.put("14", "山西");
|
||||
hashtable.put("15", "内蒙古");
|
||||
hashtable.put("21", "辽宁");
|
||||
hashtable.put("22", "吉林");
|
||||
hashtable.put("23", "黑龙江");
|
||||
hashtable.put("31", "上海");
|
||||
hashtable.put("32", "江苏");
|
||||
hashtable.put("33", "浙江");
|
||||
hashtable.put("34", "安徽");
|
||||
hashtable.put("35", "福建");
|
||||
hashtable.put("36", "江西");
|
||||
hashtable.put("37", "山东");
|
||||
hashtable.put("41", "河南");
|
||||
hashtable.put("42", "湖北");
|
||||
hashtable.put("43", "湖南");
|
||||
hashtable.put("44", "广东");
|
||||
hashtable.put("45", "广西");
|
||||
hashtable.put("46", "海南");
|
||||
hashtable.put("50", "重庆");
|
||||
hashtable.put("51", "四川");
|
||||
hashtable.put("52", "贵州");
|
||||
hashtable.put("53", "云南");
|
||||
hashtable.put("54", "西藏");
|
||||
hashtable.put("61", "陕西");
|
||||
hashtable.put("62", "甘肃");
|
||||
hashtable.put("63", "青海");
|
||||
hashtable.put("64", "宁夏");
|
||||
hashtable.put("65", "新疆");
|
||||
hashtable.put("71", "台湾");
|
||||
hashtable.put("81", "香港");
|
||||
hashtable.put("82", "澳门");
|
||||
hashtable.put("91", "国外");
|
||||
return hashtable;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断字符串是否为数字,0-9重复0次或者多次
|
||||
*
|
||||
* @param strNum
|
||||
* @return true, 符合; false, 不符合。
|
||||
*/
|
||||
private static boolean isNumeric(String strNum) {
|
||||
Pattern pattern = Pattern.compile("[0-9]*");
|
||||
Matcher isNum = pattern.matcher(strNum);
|
||||
return isNum.matches();
|
||||
}
|
||||
|
||||
/**
|
||||
* 功能:判断字符串出生日期是否符合正则表达式:包括年月日,闰年、平年和每月31天、30天和闰月的28天或者29天
|
||||
*
|
||||
* @param strDate
|
||||
* @return true, 符合; false, 不符合。
|
||||
*/
|
||||
public static boolean isDate(String strDate) {
|
||||
Pattern pattern = Pattern.compile(
|
||||
"^((\\d{2}(([02468][048])|([13579][26]))[\\-\\/\\s]?((((0?[13578])|(1[02]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])))))|(\\d{2}(([02468][1235679])|([13579][01345789]))[\\-\\/\\s]?((((0?[13578])|(1[02]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))?$");
|
||||
Matcher m = pattern.matcher(strDate);
|
||||
return m.matches();
|
||||
}
|
||||
|
||||
/***
|
||||
* 性别判断 可以根据身份证号码的第十七位判断性别,如果为奇数则为男性,偶数则为女性。
|
||||
* @param IDStr 身份证
|
||||
* @return 0:未知,1:男,2:女
|
||||
*/
|
||||
public static Integer verifyGender(String IDStr) {
|
||||
IDStr = IDStr.trim();
|
||||
if (IDStr.length() == 15) {
|
||||
if (Integer.parseInt(IDStr.substring(14, 15)) % 2 == 0) {
|
||||
return 2;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
} else if (IDStr.length() == 18) {
|
||||
if (Integer.parseInt(IDStr.substring(16).substring(0, 1)) % 2 == 0) {
|
||||
return 2;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
package com.ruoyi.common.func;
|
||||
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
/**
|
||||
* 对象工具类
|
||||
*
|
||||
* @author L.cm
|
||||
*/
|
||||
public class ObjectUtil extends org.springframework.util.ObjectUtils {
|
||||
|
||||
/**
|
||||
* 判断元素不为空
|
||||
*
|
||||
* @param obj object
|
||||
* @return boolean
|
||||
*/
|
||||
public static boolean isNotEmpty(@Nullable Object obj) {
|
||||
return !ObjectUtil.isEmpty(obj);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package com.ruoyi.common.func;
|
||||
|
||||
/**
|
||||
* 生成的随机数类型
|
||||
*
|
||||
* @author L.cm
|
||||
*/
|
||||
public enum RandomType {
|
||||
/**
|
||||
* INT STRING ALL
|
||||
*/
|
||||
INT, STRING, ALL
|
||||
}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
package com.ruoyi.common.func;
|
||||
|
||||
/**
|
||||
* 静态 String 池
|
||||
*
|
||||
* @author L.cm
|
||||
*/
|
||||
public interface StringPool {
|
||||
|
||||
String AMPERSAND = "&";
|
||||
String AND = "and";
|
||||
String AT = "@";
|
||||
String ASTERISK = "*";
|
||||
String STAR = ASTERISK;
|
||||
String SLASH = "/";
|
||||
char BACK_SLASH = '\\';
|
||||
String DOUBLE_SLASH = "#//";
|
||||
String COLON = ":";
|
||||
String COMMA = ",";
|
||||
String DASH = "-";
|
||||
String DOLLAR = "$";
|
||||
String DOT = ".";
|
||||
String EMPTY = "";
|
||||
String EMPTY_JSON = "{}";
|
||||
String EQUALS = "=";
|
||||
String FALSE = "false";
|
||||
String HASH = "#";
|
||||
String HAT = "^";
|
||||
String LEFT_BRACE = "{";
|
||||
String LEFT_BRACKET = "(";
|
||||
String LEFT_CHEV = "<";
|
||||
String NEWLINE = "\n";
|
||||
String N = "n";
|
||||
String NO = "no";
|
||||
String NULL = "null";
|
||||
String OFF = "off";
|
||||
String ON = "on";
|
||||
String PERCENT = "%";
|
||||
String PIPE = "|";
|
||||
String PLUS = "+";
|
||||
String QUESTION_MARK = "?";
|
||||
String EXCLAMATION_MARK = "!";
|
||||
String QUOTE = "\"";
|
||||
String RETURN = "\r";
|
||||
String TAB = "\t";
|
||||
String RIGHT_BRACE = "}";
|
||||
String RIGHT_BRACKET = ")";
|
||||
String RIGHT_CHEV = ">";
|
||||
String SEMICOLON = ";";
|
||||
String SINGLE_QUOTE = "'";
|
||||
String BACKTICK = "`";
|
||||
String SPACE = " ";
|
||||
String TILDA = "~";
|
||||
String LEFT_SQ_BRACKET = "[";
|
||||
String RIGHT_SQ_BRACKET = "]";
|
||||
String TRUE = "true";
|
||||
String UNDERSCORE = "_";
|
||||
String UTF_8 = "UTF-8";
|
||||
String GBK = "GBK";
|
||||
String ISO_8859_1 = "ISO-8859-1";
|
||||
String Y = "y";
|
||||
String YES = "yes";
|
||||
String ONE = "1";
|
||||
String ZERO = "0";
|
||||
String DOLLAR_LEFT_BRACE= "${";
|
||||
char U_A = 'A';
|
||||
char L_A = 'a';
|
||||
char U_Z = 'Z';
|
||||
char L_Z = 'z';
|
||||
String UNKNOWN = "unknown";
|
||||
String GET = "GET";
|
||||
String POST = "POST";
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,196 @@
|
|||
package com.ruoyi.common.func.support;
|
||||
|
||||
import com.ruoyi.common.func.Func;
|
||||
import org.springframework.asm.ClassVisitor;
|
||||
import org.springframework.asm.Type;
|
||||
import org.springframework.cglib.core.*;
|
||||
|
||||
import java.beans.PropertyDescriptor;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.security.ProtectionDomain;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* spring cglib 魔改
|
||||
*
|
||||
* <p>
|
||||
* 1. 支持链式 bean
|
||||
* 2. 自定义的 BeanCopier 解决 spring boot 和 cglib ClassLoader classLoader 不一致的问题
|
||||
* </p>
|
||||
*
|
||||
* @author L.cm
|
||||
*/
|
||||
public abstract class BaseBeanCopier {
|
||||
private static final BeanCopierKey KEY_FACTORY = (BeanCopierKey) KeyFactory.create(BeanCopierKey.class);
|
||||
private static final Type CONVERTER = TypeUtils.parseType("org.springframework.cglib.core.Converter");
|
||||
private static final Type BEAN_COPIER = TypeUtils.parseType(BaseBeanCopier.class.getName());
|
||||
private static final Signature COPY = new Signature("copy", Type.VOID_TYPE, new Type[]{Constants.TYPE_OBJECT, Constants.TYPE_OBJECT, CONVERTER});
|
||||
private static final Signature CONVERT = TypeUtils.parseSignature("Object convert(Object, Class, Object)");
|
||||
|
||||
interface BeanCopierKey {
|
||||
/**
|
||||
* 实例化
|
||||
* @param source 源
|
||||
* @param target 目标
|
||||
* @param useConverter 是否使用转换
|
||||
* @return
|
||||
*/
|
||||
Object newInstance(String source, String target, boolean useConverter);
|
||||
}
|
||||
|
||||
public static BaseBeanCopier create(Class source, Class target, boolean useConverter) {
|
||||
return BaseBeanCopier.create(source, target, null, useConverter);
|
||||
}
|
||||
|
||||
public static BaseBeanCopier create(Class source, Class target, ClassLoader classLoader, boolean useConverter) {
|
||||
Generator gen;
|
||||
if (classLoader == null) {
|
||||
gen = new Generator();
|
||||
} else {
|
||||
gen = new Generator(classLoader);
|
||||
}
|
||||
gen.setSource(source);
|
||||
gen.setTarget(target);
|
||||
gen.setUseConverter(useConverter);
|
||||
return gen.create();
|
||||
}
|
||||
|
||||
/**
|
||||
* 拷贝
|
||||
* @param from 源
|
||||
* @param to 目标
|
||||
* @param converter 转换器
|
||||
*/
|
||||
abstract public void copy(Object from, Object to, Converter converter);
|
||||
|
||||
public static class Generator extends AbstractClassGenerator {
|
||||
private static final Source SOURCE = new Source(BaseBeanCopier.class.getName());
|
||||
private final ClassLoader classLoader;
|
||||
private Class source;
|
||||
private Class target;
|
||||
private boolean useConverter;
|
||||
|
||||
Generator() {
|
||||
super(SOURCE);
|
||||
this.classLoader = null;
|
||||
}
|
||||
|
||||
Generator(ClassLoader classLoader) {
|
||||
super(SOURCE);
|
||||
this.classLoader = classLoader;
|
||||
}
|
||||
|
||||
public void setSource(Class source) {
|
||||
if (!Modifier.isPublic(source.getModifiers())) {
|
||||
setNamePrefix(source.getName());
|
||||
}
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
public void setTarget(Class target) {
|
||||
if (!Modifier.isPublic(target.getModifiers())) {
|
||||
setNamePrefix(target.getName());
|
||||
}
|
||||
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public void setUseConverter(boolean useConverter) {
|
||||
this.useConverter = useConverter;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ClassLoader getDefaultClassLoader() {
|
||||
return target.getClassLoader();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ProtectionDomain getProtectionDomain() {
|
||||
return ReflectUtils.getProtectionDomain(source);
|
||||
}
|
||||
|
||||
public BaseBeanCopier create() {
|
||||
Object key = KEY_FACTORY.newInstance(source.getName(), target.getName(), useConverter);
|
||||
return (BaseBeanCopier) super.create(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generateClass(ClassVisitor v) {
|
||||
Type sourceType = Type.getType(source);
|
||||
Type targetType = Type.getType(target);
|
||||
ClassEmitter ce = new ClassEmitter(v);
|
||||
ce.begin_class(Constants.V1_2,
|
||||
Constants.ACC_PUBLIC,
|
||||
getClassName(),
|
||||
BEAN_COPIER,
|
||||
null,
|
||||
Constants.SOURCE_FILE);
|
||||
|
||||
EmitUtils.null_constructor(ce);
|
||||
CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, COPY, null);
|
||||
|
||||
// 2018.12.27 by L.cm 支持链式 bean
|
||||
PropertyDescriptor[] getters = Func.getBeanGetters(source);
|
||||
PropertyDescriptor[] setters = Func.getBeanSetters(target);
|
||||
Map<String, Object> names = new HashMap<>(16);
|
||||
for (PropertyDescriptor getter : getters) {
|
||||
names.put(getter.getName(), getter);
|
||||
}
|
||||
|
||||
Local targetLocal = e.make_local();
|
||||
Local sourceLocal = e.make_local();
|
||||
e.load_arg(1);
|
||||
e.checkcast(targetType);
|
||||
e.store_local(targetLocal);
|
||||
e.load_arg(0);
|
||||
e.checkcast(sourceType);
|
||||
e.store_local(sourceLocal);
|
||||
|
||||
for (int i = 0; i < setters.length; i++) {
|
||||
PropertyDescriptor setter = setters[i];
|
||||
PropertyDescriptor getter = (PropertyDescriptor) names.get(setter.getName());
|
||||
if (getter != null) {
|
||||
MethodInfo read = ReflectUtils.getMethodInfo(getter.getReadMethod());
|
||||
MethodInfo write = ReflectUtils.getMethodInfo(setter.getWriteMethod());
|
||||
if (useConverter) {
|
||||
Type setterType = write.getSignature().getArgumentTypes()[0];
|
||||
e.load_local(targetLocal);
|
||||
e.load_arg(2);
|
||||
e.load_local(sourceLocal);
|
||||
e.invoke(read);
|
||||
e.box(read.getSignature().getReturnType());
|
||||
EmitUtils.load_class(e, setterType);
|
||||
e.push(write.getSignature().getName());
|
||||
e.invoke_interface(CONVERTER, CONVERT);
|
||||
e.unbox_or_zero(setterType);
|
||||
e.invoke(write);
|
||||
} else if (compatible(getter, setter)) {
|
||||
// 2018.12.27 by L.cm 支持链式 bean
|
||||
e.load_local(targetLocal);
|
||||
e.load_local(sourceLocal);
|
||||
e.invoke(read);
|
||||
e.invoke(write);
|
||||
}
|
||||
}
|
||||
}
|
||||
e.return_value();
|
||||
e.end_method();
|
||||
ce.end_class();
|
||||
}
|
||||
|
||||
private static boolean compatible(PropertyDescriptor getter, PropertyDescriptor setter) {
|
||||
return setter.getPropertyType().isAssignableFrom(getter.getPropertyType());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object firstInstance(Class type) {
|
||||
return ReflectUtils.newInstance(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object nextInstance(Object instance) {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.ruoyi.common.func.support;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* Bean属性
|
||||
*
|
||||
* @author Chill
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public class BeanProperty {
|
||||
private final String name;
|
||||
private final Class<?> type;
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
/**
|
||||
* Copyright (c) 2018-2028, DreamLu 卢春梦 (qq596392912@gmail.com).
|
||||
* <p>
|
||||
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* <p>
|
||||
* http://www.gnu.org/licenses/lgpl.html
|
||||
* <p>
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.ruoyi.common.func.support;
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import java.util.Queue;
|
||||
import java.util.TimeZone;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
||||
/**
|
||||
* 参考tomcat8中的并发DateFormat
|
||||
* <p>
|
||||
* {@link SimpleDateFormat}的线程安全包装器。
|
||||
* 不使用ThreadLocal,创建足够的SimpleDateFormat对象来满足并发性要求。
|
||||
* </p>
|
||||
*
|
||||
* @author L.cm
|
||||
*/
|
||||
public class ConcurrentDateFormat {
|
||||
private final String format;
|
||||
private final Locale locale;
|
||||
private final TimeZone timezone;
|
||||
private final Queue<SimpleDateFormat> queue = new ConcurrentLinkedQueue<>();
|
||||
|
||||
private ConcurrentDateFormat(String format, Locale locale, TimeZone timezone) {
|
||||
this.format = format;
|
||||
this.locale = locale;
|
||||
this.timezone = timezone;
|
||||
SimpleDateFormat initial = createInstance();
|
||||
queue.add(initial);
|
||||
}
|
||||
|
||||
public static ConcurrentDateFormat of(String format) {
|
||||
return new ConcurrentDateFormat(format, Locale.getDefault(), TimeZone.getDefault());
|
||||
}
|
||||
|
||||
public static ConcurrentDateFormat of(String format, TimeZone timezone) {
|
||||
return new ConcurrentDateFormat(format, Locale.getDefault(), timezone);
|
||||
}
|
||||
|
||||
public static ConcurrentDateFormat of(String format, Locale locale, TimeZone timezone) {
|
||||
return new ConcurrentDateFormat(format, locale, timezone);
|
||||
}
|
||||
|
||||
public String format(Date date) {
|
||||
SimpleDateFormat sdf = queue.poll();
|
||||
if (sdf == null) {
|
||||
sdf = createInstance();
|
||||
}
|
||||
String result = sdf.format(date);
|
||||
queue.add(sdf);
|
||||
return result;
|
||||
}
|
||||
|
||||
public Date parse(String source) throws ParseException {
|
||||
SimpleDateFormat sdf = queue.poll();
|
||||
if (sdf == null) {
|
||||
sdf = createInstance();
|
||||
}
|
||||
Date result = sdf.parse(source);
|
||||
queue.add(sdf);
|
||||
return result;
|
||||
}
|
||||
|
||||
private SimpleDateFormat createInstance() {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(format, locale);
|
||||
sdf.setTimeZone(timezone);
|
||||
return sdf;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,103 @@
|
|||
package com.ruoyi.common.func.support;
|
||||
|
||||
import com.ruoyi.common.func.StringPool;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
import java.io.Writer;
|
||||
|
||||
/**
|
||||
* FastStringWriter
|
||||
*
|
||||
* @author L.cm
|
||||
*/
|
||||
public class FastStringWriter extends Writer {
|
||||
private final StringBuilder builder;
|
||||
|
||||
public FastStringWriter() {
|
||||
builder = new StringBuilder(64);
|
||||
}
|
||||
|
||||
public FastStringWriter(final int capacity) {
|
||||
if (capacity < 0) {
|
||||
throw new IllegalArgumentException("Negative builderfer size");
|
||||
}
|
||||
builder = new StringBuilder(capacity);
|
||||
}
|
||||
|
||||
public FastStringWriter(@Nullable final StringBuilder builder) {
|
||||
this.builder = builder != null ? builder : new StringBuilder(64);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the underlying StringBuilder.
|
||||
*
|
||||
* @return StringBuilder
|
||||
*/
|
||||
public StringBuilder getBuilder() {
|
||||
return builder;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(int c) {
|
||||
builder.append((char) c);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(char[] cbuilder, int off, int len) {
|
||||
if ((off < 0) || (off > cbuilder.length) || (len < 0) ||
|
||||
((off + len) > cbuilder.length) || ((off + len) < 0)) {
|
||||
throw new IndexOutOfBoundsException();
|
||||
} else if (len == 0) {
|
||||
return;
|
||||
}
|
||||
builder.append(cbuilder, off, len);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(String str) {
|
||||
builder.append(str);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(String str, int off, int len) {
|
||||
builder.append(str.substring(off, off + len));
|
||||
}
|
||||
|
||||
@Override
|
||||
public FastStringWriter append(CharSequence csq) {
|
||||
if (csq == null) {
|
||||
write(StringPool.NULL);
|
||||
} else {
|
||||
write(csq.toString());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FastStringWriter append(CharSequence csq, int start, int end) {
|
||||
CharSequence cs = (csq == null ? StringPool.NULL : csq);
|
||||
write(cs.subSequence(start, end).toString());
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FastStringWriter append(char c) {
|
||||
write(c);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
builder.setLength(0);
|
||||
builder.trimToSize();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,190 @@
|
|||
package com.ruoyi.common.func.support;
|
||||
|
||||
import com.ruoyi.common.func.Func;
|
||||
import org.springframework.util.LinkedCaseInsensitiveMap;
|
||||
|
||||
import java.sql.Time;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* 链式map
|
||||
*
|
||||
* @author Chill
|
||||
*/
|
||||
public class Kv extends LinkedCaseInsensitiveMap<Object> {
|
||||
|
||||
|
||||
private Kv() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建Kv
|
||||
*
|
||||
* @return Kv
|
||||
*/
|
||||
public static Kv init() {
|
||||
return new Kv();
|
||||
}
|
||||
|
||||
public static HashMap newMap() {
|
||||
return new HashMap(16);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置列
|
||||
*
|
||||
* @param attr 属性
|
||||
* @param value 值
|
||||
* @return 本身
|
||||
*/
|
||||
public Kv set(String attr, Object value) {
|
||||
this.put(attr, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置列,当键或值为null时忽略
|
||||
*
|
||||
* @param attr 属性
|
||||
* @param value 值
|
||||
* @return 本身
|
||||
*/
|
||||
public Kv setIgnoreNull(String attr, Object value) {
|
||||
if (null != attr && null != value) {
|
||||
set(attr, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public Object getObj(String key) {
|
||||
return super.get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param <T> 值类型
|
||||
* @param attr 字段名
|
||||
* @param defaultValue 默认值
|
||||
* @return 字段值
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> T get(String attr, T defaultValue) {
|
||||
final Object result = get(attr);
|
||||
return (T) (result != null ? result : defaultValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public String getStr(String attr) {
|
||||
return Func.toStr(get(attr), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Integer getInt(String attr) {
|
||||
return Func.toInt(get(attr), -1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Long getLong(String attr) {
|
||||
return Func.toLong(get(attr), -1L);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Float getFloat(String attr) {
|
||||
return Func.toFloat(get(attr), null);
|
||||
}
|
||||
|
||||
public Double getDouble(String attr) {
|
||||
return Func.toDouble(get(attr), null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Boolean getBool(String attr) {
|
||||
return Func.toBoolean(get(attr), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public byte[] getBytes(String attr) {
|
||||
return get(attr, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Date getDate(String attr) {
|
||||
return get(attr, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Time getTime(String attr) {
|
||||
return get(attr, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Timestamp getTimestamp(String attr) {
|
||||
return get(attr, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得特定类型值
|
||||
*
|
||||
* @param attr 字段名
|
||||
* @return 字段值
|
||||
*/
|
||||
public Number getNumber(String attr) {
|
||||
return get(attr, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Kv clone() {
|
||||
return (Kv) super.clone();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
package com.ruoyi.framework.config;
|
||||
|
||||
import com.bending.core.props.HisClientProperties;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* HIS客户端配置
|
||||
*/
|
||||
@Configuration
|
||||
@EnableConfigurationProperties({HisClientProperties.class})
|
||||
@ComponentScan(basePackages = "com.bending.core")
|
||||
public class HisConfig {
|
||||
}
|
||||
|
|
@ -21,7 +21,12 @@
|
|||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!--核心模块-->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-framework</artifactId>
|
||||
</dependency>
|
||||
<!--HIS Core模块-->
|
||||
<dependency>
|
||||
<groupId>com.bending.core</groupId>
|
||||
<artifactId>bending-his-core</artifactId>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
package com.ruoyi.bend.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.framework.util.ShiroUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
|
@ -86,6 +88,8 @@ public class AgreementController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult addSave(Agreement agreement)
|
||||
{
|
||||
String operName = ShiroUtils.getSysUser().getLoginName();
|
||||
agreement.setCreateBy(operName);
|
||||
return toAjax(agreementService.insertAgreement(agreement));
|
||||
}
|
||||
|
||||
|
|
@ -109,6 +113,8 @@ public class AgreementController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult editSave(Agreement agreement)
|
||||
{
|
||||
String operName = ShiroUtils.getSysUser().getLoginName();
|
||||
agreement.setCreateBy(operName);
|
||||
return toAjax(agreementService.updateAgreement(agreement));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,22 @@
|
|||
package com.ruoyi.bend.controller;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bend.domain.Article;
|
||||
import com.ruoyi.bend.service.IArticleService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.framework.util.ShiroUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.bend.domain.Article;
|
||||
import com.ruoyi.bend.service.IArticleService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 内容管理Controller
|
||||
|
|
@ -109,6 +112,12 @@ public class ArticleController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult addSave(Article article)
|
||||
{
|
||||
//根据文章发布状态(文章状态(0草稿 1正常 2删除)),添加额外数据
|
||||
if(article.getArticleStatus().equals(1)){
|
||||
article.setReleaseTime(DateUtils.getNowDate());
|
||||
}
|
||||
String operName = ShiroUtils.getSysUser().getLoginName();
|
||||
article.setCreateBy(operName);
|
||||
return toAjax(articleService.insertArticle(article));
|
||||
}
|
||||
|
||||
|
|
@ -132,6 +141,12 @@ public class ArticleController extends BaseController
|
|||
@ResponseBody
|
||||
public AjaxResult editSave(Article article)
|
||||
{
|
||||
//根据文章发布状态(文章状态(0草稿 1正常 2删除)),添加额外数据
|
||||
if(article.getArticleStatus().equals(1)){
|
||||
article.setReleaseTime(DateUtils.getNowDate());
|
||||
}
|
||||
String operName = ShiroUtils.getSysUser().getLoginName();
|
||||
article.setCreateBy(operName);
|
||||
return toAjax(articleService.updateArticle(article));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|||
* 就诊人列表Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-08-30
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/bend/patientList")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.bend.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOfflineOrdersService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 线下订单Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/bend/offlineOrders")
|
||||
public class ScrcuOfflineOrdersController extends BaseController
|
||||
{
|
||||
private String prefix = "bend/offlineOrders";
|
||||
|
||||
@Autowired
|
||||
private IScrcuOfflineOrdersService scrcuOfflineOrdersService;
|
||||
|
||||
@RequiresPermissions("bend:offlineOrders:view")
|
||||
@GetMapping()
|
||||
public String offlineOrders()
|
||||
{
|
||||
return prefix + "/offlineOrders";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询线下订单列表
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineOrders:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ScrcuOfflineOrders scrcuOfflineOrders)
|
||||
{
|
||||
startPage();
|
||||
List<ScrcuOfflineOrders> list = scrcuOfflineOrdersService.selectScrcuOfflineOrdersList(scrcuOfflineOrders);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出线下订单列表
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineOrders:export")
|
||||
@Log(title = "线下订单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ScrcuOfflineOrders scrcuOfflineOrders)
|
||||
{
|
||||
List<ScrcuOfflineOrders> list = scrcuOfflineOrdersService.selectScrcuOfflineOrdersList(scrcuOfflineOrders);
|
||||
ExcelUtil<ScrcuOfflineOrders> util = new ExcelUtil<ScrcuOfflineOrders>(ScrcuOfflineOrders.class);
|
||||
return util.exportExcel(list, "offlineOrders");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线下订单
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存线下订单
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineOrders:add")
|
||||
@Log(title = "线下订单", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ScrcuOfflineOrders scrcuOfflineOrders)
|
||||
{
|
||||
return toAjax(scrcuOfflineOrdersService.insertScrcuOfflineOrders(scrcuOfflineOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线下订单
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ScrcuOfflineOrders scrcuOfflineOrders = scrcuOfflineOrdersService.selectScrcuOfflineOrdersById(id);
|
||||
mmap.put("scrcuOfflineOrders", scrcuOfflineOrders);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存线下订单
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineOrders:edit")
|
||||
@Log(title = "线下订单", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ScrcuOfflineOrders scrcuOfflineOrders)
|
||||
{
|
||||
return toAjax(scrcuOfflineOrdersService.updateScrcuOfflineOrders(scrcuOfflineOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线下订单
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineOrders:remove")
|
||||
@Log(title = "线下订单", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(scrcuOfflineOrdersService.deleteScrcuOfflineOrdersByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.bend.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineRefundOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOfflineRefundOrdersService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 扫码退款Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/bend/offlineRefund")
|
||||
public class ScrcuOfflineRefundOrdersController extends BaseController
|
||||
{
|
||||
private String prefix = "bend/offlineRefund";
|
||||
|
||||
@Autowired
|
||||
private IScrcuOfflineRefundOrdersService scrcuOfflineRefundOrdersService;
|
||||
|
||||
@RequiresPermissions("bend:offlineRefund:view")
|
||||
@GetMapping()
|
||||
public String offlineRefund()
|
||||
{
|
||||
return prefix + "/offlineRefund";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询扫码退款列表
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineRefund:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders)
|
||||
{
|
||||
startPage();
|
||||
List<ScrcuOfflineRefundOrders> list = scrcuOfflineRefundOrdersService.selectScrcuOfflineRefundOrdersList(scrcuOfflineRefundOrders);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出扫码退款列表
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineRefund:export")
|
||||
@Log(title = "扫码退款", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders)
|
||||
{
|
||||
List<ScrcuOfflineRefundOrders> list = scrcuOfflineRefundOrdersService.selectScrcuOfflineRefundOrdersList(scrcuOfflineRefundOrders);
|
||||
ExcelUtil<ScrcuOfflineRefundOrders> util = new ExcelUtil<ScrcuOfflineRefundOrders>(ScrcuOfflineRefundOrders.class);
|
||||
return util.exportExcel(list, "offlineRefund");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增扫码退款
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存扫码退款
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineRefund:add")
|
||||
@Log(title = "扫码退款", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders)
|
||||
{
|
||||
return toAjax(scrcuOfflineRefundOrdersService.insertScrcuOfflineRefundOrders(scrcuOfflineRefundOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改扫码退款
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ScrcuOfflineRefundOrders scrcuOfflineRefundOrders = scrcuOfflineRefundOrdersService.selectScrcuOfflineRefundOrdersById(id);
|
||||
mmap.put("scrcuOfflineRefundOrders", scrcuOfflineRefundOrders);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存扫码退款
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineRefund:edit")
|
||||
@Log(title = "扫码退款", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders)
|
||||
{
|
||||
return toAjax(scrcuOfflineRefundOrdersService.updateScrcuOfflineRefundOrders(scrcuOfflineRefundOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除扫码退款
|
||||
*/
|
||||
@RequiresPermissions("bend:offlineRefund:remove")
|
||||
@Log(title = "扫码退款", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(scrcuOfflineRefundOrdersService.deleteScrcuOfflineRefundOrdersByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,166 @@
|
|||
package com.ruoyi.bend.controller;
|
||||
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrderDetails;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOnlineOrderDetailsService;
|
||||
import com.ruoyi.bend.service.IScrcuOnlineOrdersService;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 收单列表Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/bend/onlineOrders")
|
||||
public class ScrcuOnlineOrdersController extends BaseController
|
||||
{
|
||||
private String prefix = "bend/onlineOrders";
|
||||
|
||||
@Autowired
|
||||
private IScrcuOnlineOrdersService scrcuOnlineOrdersService;
|
||||
|
||||
@Resource
|
||||
private IScrcuOnlineOrderDetailsService orderDetailsService;
|
||||
|
||||
|
||||
@RequiresPermissions("bend:onlineOrders:view")
|
||||
@GetMapping()
|
||||
public String onlineOrders()
|
||||
{
|
||||
return prefix + "/onlineOrders";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询收单列表列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineOrders:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
startPage();
|
||||
List<ScrcuOnlineOrders> list = scrcuOnlineOrdersService.selectScrcuOnlineOrdersList(scrcuOnlineOrders);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出收单列表列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineOrders:export")
|
||||
@Log(title = "收单列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
List<ScrcuOnlineOrders> list = scrcuOnlineOrdersService.selectScrcuOnlineOrdersList(scrcuOnlineOrders);
|
||||
ExcelUtil<ScrcuOnlineOrders> util = new ExcelUtil<ScrcuOnlineOrders>(ScrcuOnlineOrders.class);
|
||||
return util.exportExcel(list, "onlineOrders");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增收单列表
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存收单列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineOrders:add")
|
||||
@Log(title = "收单列表", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
return toAjax(scrcuOnlineOrdersService.insertScrcuOnlineOrders(scrcuOnlineOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改收单列表
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ScrcuOnlineOrders scrcuOnlineOrders = scrcuOnlineOrdersService.selectScrcuOnlineOrdersById(id);
|
||||
mmap.put("scrcuOnlineOrders", scrcuOnlineOrders);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存收单列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineOrders:edit")
|
||||
@Log(title = "收单列表", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
return toAjax(scrcuOnlineOrdersService.updateScrcuOnlineOrders(scrcuOnlineOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除收单列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineOrders:remove")
|
||||
@Log(title = "收单列表", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(scrcuOnlineOrdersService.deleteScrcuOnlineOrdersByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 收单详情页面
|
||||
* @param orderNumber 收单单号
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineOrders:detail")
|
||||
@GetMapping("/detail/{orderNumber}")
|
||||
public String onlineOrdersDetail(@PathVariable("orderNumber") String orderNumber, ModelMap mmap)
|
||||
{
|
||||
if (StringUtils.isNotEmpty(orderNumber))
|
||||
{
|
||||
ScrcuOnlineOrders scrcuOnlineOrders = new ScrcuOnlineOrders();
|
||||
scrcuOnlineOrders.setOrderNumber(orderNumber);
|
||||
ScrcuOnlineOrders onlineOrders = scrcuOnlineOrdersService.selectScrcuOnlineOrders(scrcuOnlineOrders);
|
||||
mmap.put("onlineOrders",onlineOrders);
|
||||
}
|
||||
return prefix + "/onlineOrderDetails";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 收单详情列表
|
||||
* @param detail 收单详情
|
||||
* @return 列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineOrders:list")
|
||||
@PostMapping("/detail/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo onlineOrdersDetailList(ScrcuOnlineOrderDetails detail)
|
||||
{
|
||||
startPage();
|
||||
List<ScrcuOnlineOrderDetails> list = orderDetailsService.selectScrcuOnlineOrderDetailsList(detail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.bend.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineRefundOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOnlineRefundOrdersService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 退款订单Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/bend/onlineRefund")
|
||||
public class ScrcuOnlineRefundOrdersController extends BaseController
|
||||
{
|
||||
private String prefix = "bend/onlineRefund";
|
||||
|
||||
@Autowired
|
||||
private IScrcuOnlineRefundOrdersService scrcuOnlineRefundOrdersService;
|
||||
|
||||
@RequiresPermissions("bend:onlineRefund:view")
|
||||
@GetMapping()
|
||||
public String onlineRefund()
|
||||
{
|
||||
return prefix + "/onlineRefund";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询退款订单列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineRefund:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders)
|
||||
{
|
||||
startPage();
|
||||
List<ScrcuOnlineRefundOrders> list = scrcuOnlineRefundOrdersService.selectScrcuOnlineRefundOrdersList(scrcuOnlineRefundOrders);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出退款订单列表
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineRefund:export")
|
||||
@Log(title = "退款订单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders)
|
||||
{
|
||||
List<ScrcuOnlineRefundOrders> list = scrcuOnlineRefundOrdersService.selectScrcuOnlineRefundOrdersList(scrcuOnlineRefundOrders);
|
||||
ExcelUtil<ScrcuOnlineRefundOrders> util = new ExcelUtil<ScrcuOnlineRefundOrders>(ScrcuOnlineRefundOrders.class);
|
||||
return util.exportExcel(list, "onlineRefund");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增退款订单
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存退款订单
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineRefund:add")
|
||||
@Log(title = "退款订单", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders)
|
||||
{
|
||||
return toAjax(scrcuOnlineRefundOrdersService.insertScrcuOnlineRefundOrders(scrcuOnlineRefundOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改退款订单
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ScrcuOnlineRefundOrders scrcuOnlineRefundOrders = scrcuOnlineRefundOrdersService.selectScrcuOnlineRefundOrdersById(id);
|
||||
mmap.put("scrcuOnlineRefundOrders", scrcuOnlineRefundOrders);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存退款订单
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineRefund:edit")
|
||||
@Log(title = "退款订单", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders)
|
||||
{
|
||||
return toAjax(scrcuOnlineRefundOrdersService.updateScrcuOnlineRefundOrders(scrcuOnlineRefundOrders));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除退款订单
|
||||
*/
|
||||
@RequiresPermissions("bend:onlineRefund:remove")
|
||||
@Log(title = "退款订单", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(scrcuOnlineRefundOrdersService.deleteScrcuOnlineRefundOrdersByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -12,7 +12,7 @@ import javax.persistence.Table;
|
|||
* 就诊人列表对象 bend_patient_list
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-08-30
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
|
|
|
|||
|
|
@ -0,0 +1,130 @@
|
|||
package com.ruoyi.bend.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 线下订单对象 scrcu_offline_orders
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "线下订单")
|
||||
@Table(name = "scrcu_offline_orders")
|
||||
public class ScrcuOfflineOrders extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty(notes = "用户ID")
|
||||
private Long memberId;
|
||||
|
||||
/** 订单号 */
|
||||
@ApiModelProperty(notes = "订单号")
|
||||
@Excel(name = "订单号")
|
||||
private String reqSsn;
|
||||
|
||||
/** 请求时间 */
|
||||
@ApiModelProperty(notes = "请求时间")
|
||||
@Excel(name = "请求时间")
|
||||
private String reqTime;
|
||||
|
||||
/** 商户编号 */
|
||||
@ApiModelProperty(notes = "商户编号")
|
||||
@Excel(name = "商户编号")
|
||||
private String mchtNo;
|
||||
|
||||
/** 行政区划 */
|
||||
@ApiModelProperty(notes = "行政区划")
|
||||
private String txnAreaInfo;
|
||||
|
||||
/** 交易结果通知地址 */
|
||||
@ApiModelProperty(notes = "交易结果通知地址")
|
||||
private String notifyUrl;
|
||||
|
||||
/** 订单金额 */
|
||||
@ApiModelProperty(notes = "订单金额")
|
||||
@Excel(name = "订单金额")
|
||||
private String orderAmt;
|
||||
|
||||
/** 有效时间,单位为秒;超过该时间订单自动关闭; */
|
||||
@ApiModelProperty(notes = "有效时间,单位为秒;超过该时间订单自动关闭;")
|
||||
private String validTime;
|
||||
|
||||
/** 订单描述 */
|
||||
@ApiModelProperty(notes = "订单描述")
|
||||
@Excel(name = "订单描述")
|
||||
private String orderDesc;
|
||||
|
||||
/** 商户二维码 */
|
||||
@ApiModelProperty(notes = "商户二维码")
|
||||
private String mchToken;
|
||||
|
||||
/** 用户付款码 */
|
||||
@ApiModelProperty(notes = "用户付款码")
|
||||
private String userToken;
|
||||
|
||||
/** 扫码类别(1用户主扫 2用户被扫) */
|
||||
@ApiModelProperty(notes = "扫码类别(1用户主扫 2用户被扫)")
|
||||
@Excel(name = "扫码类别", readConverterExp = "1=用户主扫,2=用户被扫")
|
||||
private String sacnType;
|
||||
|
||||
/** 交易类型(01支付 02退款) */
|
||||
@ApiModelProperty(notes = "交易类型(01支付 02退款)")
|
||||
@Excel(name = "交易类型", readConverterExp = "0=1支付,0=2退款")
|
||||
private String txnType;
|
||||
|
||||
/** 系统流水号 */
|
||||
@ApiModelProperty(notes = "系统流水号")
|
||||
@Excel(name = "系统流水号")
|
||||
private String payNo;
|
||||
|
||||
/** 机构编码 */
|
||||
@ApiModelProperty(notes = "机构编码")
|
||||
@Excel(name = "机构编码")
|
||||
private String orgCode;
|
||||
|
||||
/** HIS交易号 */
|
||||
@ApiModelProperty(notes = "HIS交易号")
|
||||
@Excel(name = "HIS交易号")
|
||||
private String hisTradeNo;
|
||||
|
||||
/** 响应流水号 */
|
||||
@ApiModelProperty(notes = "响应流水号")
|
||||
@Excel(name = "响应流水号")
|
||||
private String respSsn;
|
||||
|
||||
/** 响应时间 */
|
||||
@ApiModelProperty(notes = "响应时间")
|
||||
@Excel(name = "响应时间")
|
||||
private String respTime;
|
||||
|
||||
/** 订单状态(00订单成功 01已撤销 02已发生退款 03已关闭 09订单失败 10订单已受理 11订单处理中 12用户输密中 13订单处理超时)] */
|
||||
@ApiModelProperty(notes = "订单状态(00订单成功 01已撤销 02已发生退款 03已关闭 09订单失败 10订单已受理 11订单处理中 12用户输密中 13订单处理超时)]")
|
||||
@Excel(name = "订单状态", readConverterExp = "0=0订单成功,0=1已撤销,0=2已发生退款,0=3已关闭,0=9订单失败,1=0订单已受理,1=1订单处理中,1=2用户输密中,1=3订单处理超时")
|
||||
private String orderState;
|
||||
|
||||
/** 订单种类(0免费支付 1收单支付 2扫码支付 3微信支付) */
|
||||
@ApiModelProperty(notes = "订单种类(0免费支付 1收单支付 2扫码支付 3微信支付)")
|
||||
@Excel(name = "订单种类", readConverterExp = "0=免费支付,1=收单支付,2=扫码支付,3=微信支付")
|
||||
private Integer orderSpecies;
|
||||
|
||||
/** 费用来源(0微信挂号 1微信门诊缴费 2微信住院预交 3分诊挂号 4分诊门诊缴费 5线下扫码支付 6诊间支付) */
|
||||
@ApiModelProperty(notes = "费用来源(0微信挂号 1微信门诊缴费 2微信住院预交 3分诊挂号 4分诊门诊缴费 5线下扫码支付 6诊间支付)")
|
||||
@Excel(name = "费用来源", readConverterExp = "0=微信挂号,1=微信门诊缴费,2=微信住院预交,3=分诊挂号,4=分诊门诊缴费,5=线下扫码支付,6=诊间支付")
|
||||
private Integer expenseType;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
package com.ruoyi.bend.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 扫码退款对象 scrcu_offline_refund_orders
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "扫码退款")
|
||||
@Table(name = "scrcu_offline_refund_orders")
|
||||
public class ScrcuOfflineRefundOrders extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 商户编号 */
|
||||
@ApiModelProperty(notes = "商户编号")
|
||||
@Excel(name = "商户编号")
|
||||
private String mchtNo;
|
||||
|
||||
/** 退款订单 */
|
||||
@ApiModelProperty(notes = "退款订单")
|
||||
@Excel(name = "退款订单")
|
||||
private String reqSsn;
|
||||
|
||||
/** 请求时间 */
|
||||
@ApiModelProperty(notes = "请求时间")
|
||||
@Excel(name = "请求时间")
|
||||
private String reqTime;
|
||||
|
||||
/** 原订单号 */
|
||||
@ApiModelProperty(notes = "原订单号")
|
||||
@Excel(name = "原订单号")
|
||||
private String origReqSsn;
|
||||
|
||||
/** 原请求时间 */
|
||||
@ApiModelProperty(notes = "原请求时间")
|
||||
@Excel(name = "原请求时间")
|
||||
private String origReqTime;
|
||||
|
||||
/** 原响应流水 */
|
||||
@ApiModelProperty(notes = "原响应流水")
|
||||
@Excel(name = "原响应流水")
|
||||
private String origRespSsn;
|
||||
|
||||
/** 原响应时间 */
|
||||
@ApiModelProperty(notes = "原响应时间")
|
||||
@Excel(name = "原响应时间")
|
||||
private String origRespTime;
|
||||
|
||||
/** 退款金额 */
|
||||
@ApiModelProperty(notes = "退款金额")
|
||||
@Excel(name = "退款金额")
|
||||
private String orderAmt;
|
||||
|
||||
/** 退款描述 */
|
||||
@ApiModelProperty(notes = "退款描述")
|
||||
@Excel(name = "退款描述")
|
||||
private String orderDesc;
|
||||
|
||||
/** 退款响应流水号 */
|
||||
@ApiModelProperty(notes = "退款响应流水号")
|
||||
@Excel(name = "退款响应流水号")
|
||||
private String respSsn;
|
||||
|
||||
/** 退款响应时间 */
|
||||
@ApiModelProperty(notes = "退款响应时间")
|
||||
@Excel(name = "退款响应时间")
|
||||
private String respTime;
|
||||
|
||||
/** 订单状态(00订单成功 01已撤销 02已发生退款 03已关闭 09订单失败 10订单已受理 11订单处理中 12用户输密中 13订单处理超时)] */
|
||||
@ApiModelProperty(notes = "订单状态(00订单成功 01已撤销 02已发生退款 03已关闭 09订单失败 10订单已受理 11订单处理中 12用户输密中 13订单处理超时)]")
|
||||
@Excel(name = "订单状态", readConverterExp = "0=0订单成功,0=1已撤销,0=2已发生退款,0=3已关闭,0=9订单失败,1=0订单已受理,1=1订单处理中,1=2用户输密中,1=3订单处理超时")
|
||||
private String orderState;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.ruoyi.bend.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 收单详情对象 scrcu_online_order_details
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "收单列表")
|
||||
@Table(name = "scrcu_online_order_details")
|
||||
public class ScrcuOnlineOrderDetails extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 商户号 */
|
||||
@ApiModelProperty(notes = "商户号")
|
||||
@Excel(name = "商户号")
|
||||
private String merId;
|
||||
|
||||
/** 父商户号 */
|
||||
@ApiModelProperty(notes = "父商户号")
|
||||
@Excel(name = "父商户号")
|
||||
private String parentMerId;
|
||||
|
||||
/** 机构编码 */
|
||||
@ApiModelProperty(notes = "机构编码")
|
||||
@Excel(name = "机构编码")
|
||||
private String orgCode;
|
||||
|
||||
/** 主订单号 */
|
||||
@ApiModelProperty(notes = "主订单号")
|
||||
@Excel(name = "主订单号")
|
||||
private String orderNumber;
|
||||
|
||||
/** 子订单号 */
|
||||
@ApiModelProperty(notes = "子订单号")
|
||||
@Excel(name = "子订单号")
|
||||
private String subOrderNumber;
|
||||
|
||||
/** 交易金额 */
|
||||
@ApiModelProperty(notes = "交易金额")
|
||||
@Excel(name = "交易金额")
|
||||
private String subOrderAmt;
|
||||
|
||||
/** 支付金额 */
|
||||
@ApiModelProperty(notes = "支付金额")
|
||||
@Excel(name = "支付金额")
|
||||
private String subPayAmt;
|
||||
|
||||
/** 物流码 */
|
||||
@ApiModelProperty(notes = "物流码")
|
||||
private String logisCode;
|
||||
|
||||
/** 机构红包 */
|
||||
@ApiModelProperty(notes = "机构红包")
|
||||
private String redPacketOrgNo;
|
||||
|
||||
/** 结算标记(0不自动结算 1自动结算) */
|
||||
@ApiModelProperty(notes = "结算标记(0不自动结算 1自动结算)")
|
||||
@Excel(name = "结算标记", readConverterExp = "0=不自动结算,1=自动结算")
|
||||
private String autoSettleFlag;
|
||||
|
||||
/** 商品信息 */
|
||||
@ApiModelProperty(notes = "商品信息")
|
||||
@Excel(name = "商品信息")
|
||||
private String goodsInfo;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,157 @@
|
|||
package com.ruoyi.bend.domain;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Date;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 收单列表对象 scrcu_online_orders
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "收单列表")
|
||||
@Table(name = "scrcu_online_orders")
|
||||
public class ScrcuOnlineOrders extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty(notes = "用户ID")
|
||||
@Excel(name = "用户ID")
|
||||
private Long memberId;
|
||||
|
||||
/** 商户代码 */
|
||||
@ApiModelProperty(notes = "商户代码")
|
||||
@Excel(name = "商户代码")
|
||||
private String merId;
|
||||
|
||||
/** 订单类型(01实物消费订单,固定值) */
|
||||
@ApiModelProperty(notes = "订单类型(01实物消费订单,固定值)")
|
||||
private String orderType;
|
||||
|
||||
/** 订单号 */
|
||||
@ApiModelProperty(notes = "订单号")
|
||||
@Excel(name = "订单号")
|
||||
private String orderNumber;
|
||||
|
||||
/** 订单发送时间,格式: yyyyMMddHHmmss */
|
||||
@ApiModelProperty(notes = "订单发送时间,格式: yyyyMMddHHmmss")
|
||||
@Excel(name = "订单发送时间,格式: yyyyMMddHHmmss")
|
||||
private String orderSendTime;
|
||||
|
||||
/** 订单总金额,单位为分 */
|
||||
@ApiModelProperty(notes = "订单总金额,单位为分")
|
||||
@Excel(name = "订单总金额,单位为分")
|
||||
private String orderAmt;
|
||||
|
||||
/** 支付总金额,单位为分(包含物流,不包含红包) */
|
||||
@ApiModelProperty(notes = "支付总金额,单位为分(包含物流,不包含红包)")
|
||||
@Excel(name = "支付总金额,单位为分(包含物流,不包含红包)")
|
||||
private String payAmt;
|
||||
|
||||
/** 商品名称 */
|
||||
@ApiModelProperty(notes = "商品名称")
|
||||
@Excel(name = "商品名称")
|
||||
private String goodsSubject;
|
||||
|
||||
/** 交易币种(01人民币) */
|
||||
@ApiModelProperty(notes = "交易币种(01人民币)")
|
||||
@Excel(name = "交易币种", readConverterExp = "0=1人民币")
|
||||
private String orderCurrency;
|
||||
|
||||
/** 接入渠道(01PC 02手机) */
|
||||
@ApiModelProperty(notes = "接入渠道(01PC 02手机)")
|
||||
@Excel(name = "接入渠道", readConverterExp = "0=1PC,0=2手机")
|
||||
private String channel;
|
||||
|
||||
/** 接入方式(01H5商城 02APP商城 03微信公众号商城 04小程序商城 05其它(当channel为02时必填)) */
|
||||
@ApiModelProperty(notes = "接入方式(01H5商城 02APP商城 03微信公众号商城 04小程序商城 05其它(当channel为02时必填))")
|
||||
@Excel(name = "接入方式", readConverterExp = "0=1H5商城,0=2APP商城,0=3微信公众号商城,0=4小程序商城,0=5其它(当channel为02时必填)")
|
||||
private String mobileWay;
|
||||
|
||||
/** 手机接入类型(01安卓 02IOS系统(当mobileWay为02时必填)) */
|
||||
@ApiModelProperty(notes = "手机接入类型(01安卓 02IOS系统(当mobileWay为02时必填))")
|
||||
@Excel(name = "手机接入类型", readConverterExp = "0=1安卓,0=2IOS系统(当mobileWay为02时必填)")
|
||||
private String mobileType;
|
||||
|
||||
/** 前端通知地址 */
|
||||
@ApiModelProperty(notes = "前端通知地址")
|
||||
private String frontEndUrl;
|
||||
|
||||
/** 后台通知地址 */
|
||||
@ApiModelProperty(notes = "后台通知地址")
|
||||
private String backEndUrl;
|
||||
|
||||
/** 收单主订单号 */
|
||||
@ApiModelProperty(notes = "收单主订单号")
|
||||
@Excel(name = "收单主订单号")
|
||||
private String orderSeqId;
|
||||
|
||||
/** 支付类型(00蜀信e支付 01蜀信卡快捷支付 02银联支付 03微信支付 04支付宝支付 05授信支付 10积分支付) */
|
||||
@ApiModelProperty(notes = "支付类型(00蜀信e支付 01蜀信卡快捷支付 02银联支付 03微信支付 04支付宝支付 05授信支付 10积分支付)")
|
||||
@Excel(name = "支付类型", readConverterExp = "0=0蜀信e支付,0=1蜀信卡快捷支付,0=2银联支付,0=3微信支付,0=4支付宝支付,0=5授信支付,1=0积分支付")
|
||||
private String payType;
|
||||
|
||||
/** 交易类型(01消费 02退货 03撤销 04查询) */
|
||||
@ApiModelProperty(notes = "交易类型(01消费 02退货 03撤销 04查询)")
|
||||
@Excel(name = "交易类型", readConverterExp = "0=1消费,0=2退货,0=3撤销,0=4查询")
|
||||
private String transType;
|
||||
|
||||
/** 交易状态(02成功) */
|
||||
@ApiModelProperty(notes = "交易状态(02成功)")
|
||||
@Excel(name = "交易状态", readConverterExp = "0=2成功")
|
||||
private String payStatus;
|
||||
|
||||
/** 订单种类(1收单支付 2扫码支付) */
|
||||
@ApiModelProperty(notes = "订单种类(1收单支付 2扫码支付)")
|
||||
@Excel(name = "订单种类", readConverterExp = "1=收单支付,2=扫码支付")
|
||||
private Integer orderSpecies;
|
||||
|
||||
/** 订单状态(01交易中 02交易成功 03交易失败) */
|
||||
@ApiModelProperty(notes = "订单状态(01交易中 02交易成功 03交易失败)")
|
||||
@Excel(name = "订单状态", readConverterExp = "0=1交易中,0=2交易成功,0=3交易失败")
|
||||
private String orderState;
|
||||
|
||||
/** 支付完成时间,格式: yyyyMMddHHmmss */
|
||||
@ApiModelProperty(notes = "支付完成时间,格式: yyyyMMddHHmmss")
|
||||
@Excel(name = "支付完成时间,格式: yyyyMMddHHmmss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date orderTranTime;
|
||||
|
||||
/** 订单创建时间,格式: yyyyMMddHHmmss */
|
||||
@ApiModelProperty(notes = "订单创建时间,格式: yyyyMMddHHmmss")
|
||||
@Excel(name = "订单创建时间,格式: yyyyMMddHHmmss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date orderCreateTime;
|
||||
|
||||
/** 费用来源(0微信挂号 1微信门诊缴费 2微信住院预交 3分诊挂号 4分诊门诊缴费 5线下扫码支付 6诊间支付) */
|
||||
@ApiModelProperty(notes = "费用来源(0微信挂号 1微信门诊缴费 2微信住院预交 3分诊挂号 4分诊门诊缴费 5线下扫码支付 6诊间支付)")
|
||||
@Excel(name = "费用来源", readConverterExp = "0=微信挂号,1=微信门诊缴费,2=微信住院预交,3=分诊挂号,4=分诊门诊缴费,5=线下扫码支付,6=诊间支付")
|
||||
private Integer expenseType;
|
||||
|
||||
/** 支付方式类别(1微信支付 2支付宝 3农信支付) */
|
||||
@ApiModelProperty(notes = "支付方式类别(1微信支付 2支付宝 3农信支付)")
|
||||
@Excel(name = "支付方式类别", readConverterExp = "1=微信支付,2=支付宝,3=农信支付")
|
||||
private Integer payWayType;
|
||||
|
||||
/** 流水号 */
|
||||
@ApiModelProperty(notes = "流水号")
|
||||
@Excel(name = "流水号")
|
||||
private String payNo;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
/** 收单详情信息 */
|
||||
@ApiModelProperty(notes = "收单详情信息")
|
||||
private List<ScrcuOnlineOrderDetails> scrcuOnlineOrderDetailsList;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package com.ruoyi.bend.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 退款订单对象 scrcu_online_refund_orders
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "退款订单")
|
||||
@Table(name = "scrcu_online_refund_orders")
|
||||
public class ScrcuOnlineRefundOrders extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 商户代码 */
|
||||
@ApiModelProperty(notes = "商户代码")
|
||||
@Excel(name = "商户代码")
|
||||
private String merId;
|
||||
|
||||
/** 退货商户号 */
|
||||
@ApiModelProperty(notes = "退货商户号")
|
||||
@Excel(name = "退货商户号")
|
||||
private String merNo;
|
||||
|
||||
/** 退款订单号 */
|
||||
@ApiModelProperty(notes = "退款订单号")
|
||||
@Excel(name = "退款订单号")
|
||||
private String orderNumber;
|
||||
|
||||
/** 发送时间 */
|
||||
@ApiModelProperty(notes = "发送时间")
|
||||
@Excel(name = "发送时间")
|
||||
private String orderSendTime;
|
||||
|
||||
/** 后台通知地址 */
|
||||
@ApiModelProperty(notes = "后台通知地址")
|
||||
private String backEndUrl;
|
||||
|
||||
/** 原支付主订单号 */
|
||||
@ApiModelProperty(notes = "原支付主订单号")
|
||||
@Excel(name = "原支付主订单号")
|
||||
private String oriOrderNumber;
|
||||
|
||||
/** 原支付子订单号 */
|
||||
@ApiModelProperty(notes = "原支付子订单号")
|
||||
@Excel(name = "原支付子订单号")
|
||||
private String oriSubOrderNumber;
|
||||
|
||||
/** 退款金额 */
|
||||
@ApiModelProperty(notes = "退款金额")
|
||||
@Excel(name = "退款金额")
|
||||
private String orderAmt;
|
||||
|
||||
/** 接入渠道(01PC 02手机wap) */
|
||||
@ApiModelProperty(notes = "接入渠道(01PC 02手机wap)")
|
||||
@Excel(name = "接入渠道", readConverterExp = "0=1PC,0=2手机wap")
|
||||
private String channel;
|
||||
|
||||
/** 订单状态(01交易中 02交易成功 03交易失败) */
|
||||
@ApiModelProperty(notes = "订单状态(01交易中 02交易成功 03交易失败)")
|
||||
@Excel(name = "订单状态", readConverterExp = "0=1交易中,0=2交易成功,0=3交易失败")
|
||||
private String orderState;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -8,7 +8,7 @@ import java.util.List;
|
|||
* 就诊人列表Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-08-30
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface PatientListMapper extends RuoYiBaseMapper<PatientList>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,62 @@
|
|||
package com.ruoyi.bend.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineOrders;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 线下订单Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface ScrcuOfflineOrdersMapper extends RuoYiBaseMapper<ScrcuOfflineOrders>
|
||||
{
|
||||
/**
|
||||
* 查询线下订单
|
||||
*
|
||||
* @param id 线下订单ID
|
||||
* @return 线下订单
|
||||
*/
|
||||
public ScrcuOfflineOrders selectScrcuOfflineOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询线下订单列表
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 线下订单集合
|
||||
*/
|
||||
public List<ScrcuOfflineOrders> selectScrcuOfflineOrdersList(ScrcuOfflineOrders scrcuOfflineOrders);
|
||||
|
||||
/**
|
||||
* 新增线下订单
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOfflineOrders(ScrcuOfflineOrders scrcuOfflineOrders);
|
||||
|
||||
/**
|
||||
* 修改线下订单
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOfflineOrders(ScrcuOfflineOrders scrcuOfflineOrders);
|
||||
|
||||
/**
|
||||
* 删除线下订单
|
||||
*
|
||||
* @param id 线下订单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除线下订单
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineOrdersByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.ruoyi.bend.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineRefundOrders;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 扫码退款Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface ScrcuOfflineRefundOrdersMapper extends RuoYiBaseMapper<ScrcuOfflineRefundOrders>
|
||||
{
|
||||
/**
|
||||
* 查询扫码退款
|
||||
*
|
||||
* @param id 扫码退款ID
|
||||
* @return 扫码退款
|
||||
*/
|
||||
public ScrcuOfflineRefundOrders selectScrcuOfflineRefundOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询扫码退款列表
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 扫码退款集合
|
||||
*/
|
||||
public List<ScrcuOfflineRefundOrders> selectScrcuOfflineRefundOrdersList(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders);
|
||||
|
||||
/**
|
||||
* 新增扫码退款
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOfflineRefundOrders(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders);
|
||||
|
||||
/**
|
||||
* 修改扫码退款
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOfflineRefundOrders(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders);
|
||||
|
||||
/**
|
||||
* 删除扫码退款
|
||||
*
|
||||
* @param id 扫码退款ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineRefundOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除扫码退款
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineRefundOrdersByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.ruoyi.bend.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrderDetails;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 收单详情Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface ScrcuOnlineOrderDetailsMapper extends RuoYiBaseMapper<ScrcuOnlineOrderDetails>
|
||||
{
|
||||
/**
|
||||
* 查询收单详情
|
||||
*
|
||||
* @param id 收单详情ID
|
||||
* @return 收单详情
|
||||
*/
|
||||
public ScrcuOnlineOrderDetails selectScrcuOnlineOrderDetailsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询收单详情列表
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 收单详情集合
|
||||
*/
|
||||
public List<ScrcuOnlineOrderDetails> selectScrcuOnlineOrderDetailsList(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails);
|
||||
|
||||
/**
|
||||
* 新增收单详情
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOnlineOrderDetails(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails);
|
||||
|
||||
/**
|
||||
* 修改收单详情
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOnlineOrderDetails(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails);
|
||||
|
||||
/**
|
||||
* 删除收单详情
|
||||
*
|
||||
* @param id 收单详情ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrderDetailsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除收单详情
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrderDetailsByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
package com.ruoyi.bend.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrders;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrderDetails;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 收单列表Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface ScrcuOnlineOrdersMapper extends RuoYiBaseMapper<ScrcuOnlineOrders>
|
||||
{
|
||||
/**
|
||||
* 查询收单列表
|
||||
*
|
||||
* @param id 收单列表ID
|
||||
* @return 收单列表
|
||||
*/
|
||||
public ScrcuOnlineOrders selectScrcuOnlineOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询收单列表列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 收单列表集合
|
||||
*/
|
||||
public List<ScrcuOnlineOrders> selectScrcuOnlineOrdersList(ScrcuOnlineOrders scrcuOnlineOrders);
|
||||
|
||||
/**
|
||||
* 新增收单列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders);
|
||||
|
||||
/**
|
||||
* 修改收单列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders);
|
||||
|
||||
/**
|
||||
* 删除收单列表
|
||||
*
|
||||
* @param id 收单列表ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除收单列表
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrdersByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 批量删除收单详情
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrderDetailsByOrderNumbers(String[] ids);
|
||||
|
||||
/**
|
||||
* 批量新增收单详情
|
||||
*
|
||||
* @param scrcuOnlineOrderDetailsList 收单详情列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchScrcuOnlineOrderDetails(List<ScrcuOnlineOrderDetails> scrcuOnlineOrderDetailsList);
|
||||
|
||||
|
||||
/**
|
||||
* 通过收单列表ID删除收单详情信息
|
||||
*
|
||||
* @param id 收单列表ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrderDetailsByOrderNumber(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.ruoyi.bend.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineRefundOrders;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 退款订单Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface ScrcuOnlineRefundOrdersMapper extends RuoYiBaseMapper<ScrcuOnlineRefundOrders>
|
||||
{
|
||||
/**
|
||||
* 查询退款订单
|
||||
*
|
||||
* @param id 退款订单ID
|
||||
* @return 退款订单
|
||||
*/
|
||||
public ScrcuOnlineRefundOrders selectScrcuOnlineRefundOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询退款订单列表
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 退款订单集合
|
||||
*/
|
||||
public List<ScrcuOnlineRefundOrders> selectScrcuOnlineRefundOrdersList(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders);
|
||||
|
||||
/**
|
||||
* 新增退款订单
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOnlineRefundOrders(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders);
|
||||
|
||||
/**
|
||||
* 修改退款订单
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOnlineRefundOrders(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders);
|
||||
|
||||
/**
|
||||
* 删除退款订单
|
||||
*
|
||||
* @param id 退款订单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineRefundOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除退款订单
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineRefundOrdersByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ import com.ruoyi.bend.domain.PatientList;
|
|||
* 就诊人列表Service接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-08-30
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface IPatientListService
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.bend.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineOrders;
|
||||
|
||||
/**
|
||||
* 线下订单Service接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface IScrcuOfflineOrdersService
|
||||
{
|
||||
/**
|
||||
* 查询线下订单
|
||||
*
|
||||
* @param id 线下订单ID
|
||||
* @return 线下订单
|
||||
*/
|
||||
public ScrcuOfflineOrders selectScrcuOfflineOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询线下订单列表
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 线下订单集合
|
||||
*/
|
||||
public List<ScrcuOfflineOrders> selectScrcuOfflineOrdersList(ScrcuOfflineOrders scrcuOfflineOrders);
|
||||
|
||||
/**
|
||||
* 新增线下订单
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOfflineOrders(ScrcuOfflineOrders scrcuOfflineOrders);
|
||||
|
||||
/**
|
||||
* 修改线下订单
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOfflineOrders(ScrcuOfflineOrders scrcuOfflineOrders);
|
||||
|
||||
/**
|
||||
* 批量删除线下订单
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineOrdersByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除线下订单信息
|
||||
*
|
||||
* @param id 线下订单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineOrdersById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.bend.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineRefundOrders;
|
||||
|
||||
/**
|
||||
* 扫码退款Service接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface IScrcuOfflineRefundOrdersService
|
||||
{
|
||||
/**
|
||||
* 查询扫码退款
|
||||
*
|
||||
* @param id 扫码退款ID
|
||||
* @return 扫码退款
|
||||
*/
|
||||
public ScrcuOfflineRefundOrders selectScrcuOfflineRefundOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询扫码退款列表
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 扫码退款集合
|
||||
*/
|
||||
public List<ScrcuOfflineRefundOrders> selectScrcuOfflineRefundOrdersList(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders);
|
||||
|
||||
/**
|
||||
* 新增扫码退款
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOfflineRefundOrders(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders);
|
||||
|
||||
/**
|
||||
* 修改扫码退款
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOfflineRefundOrders(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders);
|
||||
|
||||
/**
|
||||
* 批量删除扫码退款
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineRefundOrdersByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除扫码退款信息
|
||||
*
|
||||
* @param id 扫码退款ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOfflineRefundOrdersById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.bend.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrderDetails;
|
||||
|
||||
/**
|
||||
* 收单详情Service接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface IScrcuOnlineOrderDetailsService
|
||||
{
|
||||
/**
|
||||
* 查询收单详情
|
||||
*
|
||||
* @param id 收单详情ID
|
||||
* @return 收单详情
|
||||
*/
|
||||
public ScrcuOnlineOrderDetails selectScrcuOnlineOrderDetailsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询收单详情列表
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 收单详情集合
|
||||
*/
|
||||
public List<ScrcuOnlineOrderDetails> selectScrcuOnlineOrderDetailsList(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails);
|
||||
|
||||
/**
|
||||
* 新增收单详情
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOnlineOrderDetails(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails);
|
||||
|
||||
/**
|
||||
* 修改收单详情
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOnlineOrderDetails(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails);
|
||||
|
||||
/**
|
||||
* 批量删除收单详情
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrderDetailsByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除收单详情信息
|
||||
*
|
||||
* @param id 收单详情ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrderDetailsById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.ruoyi.bend.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrders;
|
||||
|
||||
/**
|
||||
* 收单列表Service接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface IScrcuOnlineOrdersService
|
||||
{
|
||||
/**
|
||||
* 查询收单列表
|
||||
*
|
||||
* @param id 收单列表ID
|
||||
* @return 收单列表
|
||||
*/
|
||||
public ScrcuOnlineOrders selectScrcuOnlineOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询收单列表列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 收单列表集合
|
||||
*/
|
||||
public List<ScrcuOnlineOrders> selectScrcuOnlineOrdersList(ScrcuOnlineOrders scrcuOnlineOrders);
|
||||
|
||||
/**
|
||||
* 新增收单列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders);
|
||||
|
||||
/**
|
||||
* 修改收单列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders);
|
||||
|
||||
/**
|
||||
* 批量删除收单列表
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrdersByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除收单列表信息
|
||||
*
|
||||
* @param id 收单列表ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询在线收单
|
||||
*
|
||||
* @param scrcuOnlineOrders 在线收单
|
||||
* @return 在线收单
|
||||
*/
|
||||
public ScrcuOnlineOrders selectScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.bend.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineRefundOrders;
|
||||
|
||||
/**
|
||||
* 退款订单Service接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
public interface IScrcuOnlineRefundOrdersService
|
||||
{
|
||||
/**
|
||||
* 查询退款订单
|
||||
*
|
||||
* @param id 退款订单ID
|
||||
* @return 退款订单
|
||||
*/
|
||||
public ScrcuOnlineRefundOrders selectScrcuOnlineRefundOrdersById(Long id);
|
||||
|
||||
/**
|
||||
* 查询退款订单列表
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 退款订单集合
|
||||
*/
|
||||
public List<ScrcuOnlineRefundOrders> selectScrcuOnlineRefundOrdersList(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders);
|
||||
|
||||
/**
|
||||
* 新增退款订单
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertScrcuOnlineRefundOrders(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders);
|
||||
|
||||
/**
|
||||
* 修改退款订单
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateScrcuOnlineRefundOrders(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders);
|
||||
|
||||
/**
|
||||
* 批量删除退款订单
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineRefundOrdersByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除退款订单信息
|
||||
*
|
||||
* @param id 退款订单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteScrcuOnlineRefundOrdersById(Long id);
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ import com.ruoyi.common.core.text.Convert;
|
|||
* 就诊人列表Service业务层处理
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-08-30
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Service
|
||||
public class PatientListServiceImpl implements IPatientListService
|
||||
|
|
|
|||
|
|
@ -0,0 +1,97 @@
|
|||
package com.ruoyi.bend.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.bend.mapper.ScrcuOfflineOrdersMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOfflineOrdersService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 线下订单Service业务层处理
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Service
|
||||
public class ScrcuOfflineOrdersServiceImpl implements IScrcuOfflineOrdersService
|
||||
{
|
||||
@Autowired
|
||||
private ScrcuOfflineOrdersMapper scrcuOfflineOrdersMapper;
|
||||
|
||||
/**
|
||||
* 查询线下订单
|
||||
*
|
||||
* @param id 线下订单ID
|
||||
* @return 线下订单
|
||||
*/
|
||||
@Override
|
||||
public ScrcuOfflineOrders selectScrcuOfflineOrdersById(Long id)
|
||||
{
|
||||
return scrcuOfflineOrdersMapper.selectScrcuOfflineOrdersById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询线下订单列表
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 线下订单
|
||||
*/
|
||||
@Override
|
||||
public List<ScrcuOfflineOrders> selectScrcuOfflineOrdersList(ScrcuOfflineOrders scrcuOfflineOrders)
|
||||
{
|
||||
return scrcuOfflineOrdersMapper.selectScrcuOfflineOrdersList(scrcuOfflineOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线下订单
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertScrcuOfflineOrders(ScrcuOfflineOrders scrcuOfflineOrders)
|
||||
{
|
||||
scrcuOfflineOrders.setCreateTime(DateUtils.getNowDate());
|
||||
return scrcuOfflineOrdersMapper.insertScrcuOfflineOrders(scrcuOfflineOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改线下订单
|
||||
*
|
||||
* @param scrcuOfflineOrders 线下订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateScrcuOfflineOrders(ScrcuOfflineOrders scrcuOfflineOrders)
|
||||
{
|
||||
scrcuOfflineOrders.setUpdateTime(DateUtils.getNowDate());
|
||||
return scrcuOfflineOrdersMapper.updateScrcuOfflineOrders(scrcuOfflineOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线下订单对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOfflineOrdersByIds(String ids)
|
||||
{
|
||||
return scrcuOfflineOrdersMapper.deleteScrcuOfflineOrdersByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线下订单信息
|
||||
*
|
||||
* @param id 线下订单ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOfflineOrdersById(Long id)
|
||||
{
|
||||
return scrcuOfflineOrdersMapper.deleteScrcuOfflineOrdersById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package com.ruoyi.bend.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.bend.mapper.ScrcuOfflineRefundOrdersMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOfflineRefundOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOfflineRefundOrdersService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 扫码退款Service业务层处理
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Service
|
||||
public class ScrcuOfflineRefundOrdersServiceImpl implements IScrcuOfflineRefundOrdersService
|
||||
{
|
||||
@Autowired
|
||||
private ScrcuOfflineRefundOrdersMapper scrcuOfflineRefundOrdersMapper;
|
||||
|
||||
/**
|
||||
* 查询扫码退款
|
||||
*
|
||||
* @param id 扫码退款ID
|
||||
* @return 扫码退款
|
||||
*/
|
||||
@Override
|
||||
public ScrcuOfflineRefundOrders selectScrcuOfflineRefundOrdersById(Long id)
|
||||
{
|
||||
return scrcuOfflineRefundOrdersMapper.selectScrcuOfflineRefundOrdersById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询扫码退款列表
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 扫码退款
|
||||
*/
|
||||
@Override
|
||||
public List<ScrcuOfflineRefundOrders> selectScrcuOfflineRefundOrdersList(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders)
|
||||
{
|
||||
return scrcuOfflineRefundOrdersMapper.selectScrcuOfflineRefundOrdersList(scrcuOfflineRefundOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增扫码退款
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertScrcuOfflineRefundOrders(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders)
|
||||
{
|
||||
scrcuOfflineRefundOrders.setCreateTime(DateUtils.getNowDate());
|
||||
return scrcuOfflineRefundOrdersMapper.insertScrcuOfflineRefundOrders(scrcuOfflineRefundOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改扫码退款
|
||||
*
|
||||
* @param scrcuOfflineRefundOrders 扫码退款
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateScrcuOfflineRefundOrders(ScrcuOfflineRefundOrders scrcuOfflineRefundOrders)
|
||||
{
|
||||
return scrcuOfflineRefundOrdersMapper.updateScrcuOfflineRefundOrders(scrcuOfflineRefundOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除扫码退款对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOfflineRefundOrdersByIds(String ids)
|
||||
{
|
||||
return scrcuOfflineRefundOrdersMapper.deleteScrcuOfflineRefundOrdersByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除扫码退款信息
|
||||
*
|
||||
* @param id 扫码退款ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOfflineRefundOrdersById(Long id)
|
||||
{
|
||||
return scrcuOfflineRefundOrdersMapper.deleteScrcuOfflineRefundOrdersById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package com.ruoyi.bend.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.bend.mapper.ScrcuOnlineOrderDetailsMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrderDetails;
|
||||
import com.ruoyi.bend.service.IScrcuOnlineOrderDetailsService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 收单详情Service业务层处理
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Service
|
||||
public class ScrcuOnlineOrderDetailsServiceImpl implements IScrcuOnlineOrderDetailsService
|
||||
{
|
||||
@Autowired
|
||||
private ScrcuOnlineOrderDetailsMapper scrcuOnlineOrderDetailsMapper;
|
||||
|
||||
/**
|
||||
* 查询收单详情
|
||||
*
|
||||
* @param id 收单详情ID
|
||||
* @return 收单详情
|
||||
*/
|
||||
@Override
|
||||
public ScrcuOnlineOrderDetails selectScrcuOnlineOrderDetailsById(Long id)
|
||||
{
|
||||
return scrcuOnlineOrderDetailsMapper.selectScrcuOnlineOrderDetailsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询收单详情列表
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 收单详情
|
||||
*/
|
||||
@Override
|
||||
public List<ScrcuOnlineOrderDetails> selectScrcuOnlineOrderDetailsList(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails)
|
||||
{
|
||||
return scrcuOnlineOrderDetailsMapper.selectScrcuOnlineOrderDetailsList(scrcuOnlineOrderDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增收单详情
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertScrcuOnlineOrderDetails(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails)
|
||||
{
|
||||
scrcuOnlineOrderDetails.setCreateTime(DateUtils.getNowDate());
|
||||
return scrcuOnlineOrderDetailsMapper.insertScrcuOnlineOrderDetails(scrcuOnlineOrderDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改收单详情
|
||||
*
|
||||
* @param scrcuOnlineOrderDetails 收单详情
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateScrcuOnlineOrderDetails(ScrcuOnlineOrderDetails scrcuOnlineOrderDetails)
|
||||
{
|
||||
return scrcuOnlineOrderDetailsMapper.updateScrcuOnlineOrderDetails(scrcuOnlineOrderDetails);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除收单详情对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOnlineOrderDetailsByIds(String ids)
|
||||
{
|
||||
return scrcuOnlineOrderDetailsMapper.deleteScrcuOnlineOrderDetailsByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除收单详情信息
|
||||
*
|
||||
* @param id 收单详情ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOnlineOrderDetailsById(Long id)
|
||||
{
|
||||
return scrcuOnlineOrderDetailsMapper.deleteScrcuOnlineOrderDetailsById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,146 @@
|
|||
package com.ruoyi.bend.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.ArrayList;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrderDetails;
|
||||
import com.ruoyi.bend.mapper.ScrcuOnlineOrdersMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOnlineOrdersService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 收单列表Service业务层处理
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Service
|
||||
public class ScrcuOnlineOrdersServiceImpl implements IScrcuOnlineOrdersService
|
||||
{
|
||||
@Autowired
|
||||
private ScrcuOnlineOrdersMapper scrcuOnlineOrdersMapper;
|
||||
|
||||
/**
|
||||
* 查询收单列表
|
||||
*
|
||||
* @param id 收单列表ID
|
||||
* @return 收单列表
|
||||
*/
|
||||
@Override
|
||||
public ScrcuOnlineOrders selectScrcuOnlineOrdersById(Long id)
|
||||
{
|
||||
return scrcuOnlineOrdersMapper.selectScrcuOnlineOrdersById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询收单列表列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 收单列表
|
||||
*/
|
||||
@Override
|
||||
public List<ScrcuOnlineOrders> selectScrcuOnlineOrdersList(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
return scrcuOnlineOrdersMapper.selectScrcuOnlineOrdersList(scrcuOnlineOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增收单列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional
|
||||
@Override
|
||||
public int insertScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
scrcuOnlineOrders.setCreateTime(DateUtils.getNowDate());
|
||||
int rows = scrcuOnlineOrdersMapper.insertScrcuOnlineOrders(scrcuOnlineOrders);
|
||||
insertScrcuOnlineOrderDetails(scrcuOnlineOrders);
|
||||
return rows;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改收单列表
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional
|
||||
@Override
|
||||
public int updateScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
scrcuOnlineOrders.setUpdateTime(DateUtils.getNowDate());
|
||||
scrcuOnlineOrdersMapper.deleteScrcuOnlineOrderDetailsByOrderNumber(scrcuOnlineOrders.getId());
|
||||
insertScrcuOnlineOrderDetails(scrcuOnlineOrders);
|
||||
return scrcuOnlineOrdersMapper.updateScrcuOnlineOrders(scrcuOnlineOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除收单列表对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Transactional
|
||||
@Override
|
||||
public int deleteScrcuOnlineOrdersByIds(String ids)
|
||||
{
|
||||
scrcuOnlineOrdersMapper.deleteScrcuOnlineOrderDetailsByOrderNumbers(Convert.toStrArray(ids));
|
||||
return scrcuOnlineOrdersMapper.deleteScrcuOnlineOrdersByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除收单列表信息
|
||||
*
|
||||
* @param id 收单列表ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOnlineOrdersById(Long id)
|
||||
{
|
||||
scrcuOnlineOrdersMapper.deleteScrcuOnlineOrderDetailsByOrderNumber(id);
|
||||
return scrcuOnlineOrdersMapper.deleteScrcuOnlineOrdersById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增收单详情信息
|
||||
*
|
||||
* @param scrcuOnlineOrders 收单列表对象
|
||||
*/
|
||||
public void insertScrcuOnlineOrderDetails(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
List<ScrcuOnlineOrderDetails> scrcuOnlineOrderDetailsList = scrcuOnlineOrders.getScrcuOnlineOrderDetailsList();
|
||||
Long id = scrcuOnlineOrders.getId();
|
||||
if (StringUtils.isNotNull(scrcuOnlineOrderDetailsList))
|
||||
{
|
||||
List<ScrcuOnlineOrderDetails> list = new ArrayList<ScrcuOnlineOrderDetails>();
|
||||
for (ScrcuOnlineOrderDetails scrcuOnlineOrderDetails : scrcuOnlineOrderDetailsList)
|
||||
{
|
||||
scrcuOnlineOrderDetails.setId(id);
|
||||
list.add(scrcuOnlineOrderDetails);
|
||||
}
|
||||
if (list.size() > 0)
|
||||
{
|
||||
scrcuOnlineOrdersMapper.batchScrcuOnlineOrderDetails(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询在线收单
|
||||
*
|
||||
* @param scrcuOnlineOrders 在线收单ID
|
||||
* @return 在线收单
|
||||
*/
|
||||
@Override
|
||||
public ScrcuOnlineOrders selectScrcuOnlineOrders(ScrcuOnlineOrders scrcuOnlineOrders)
|
||||
{
|
||||
return scrcuOnlineOrdersMapper.selectOne(scrcuOnlineOrders);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
package com.ruoyi.bend.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.bend.mapper.ScrcuOnlineRefundOrdersMapper;
|
||||
import com.ruoyi.bend.domain.ScrcuOnlineRefundOrders;
|
||||
import com.ruoyi.bend.service.IScrcuOnlineRefundOrdersService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 退款订单Service业务层处理
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-09-01
|
||||
*/
|
||||
@Service
|
||||
public class ScrcuOnlineRefundOrdersServiceImpl implements IScrcuOnlineRefundOrdersService
|
||||
{
|
||||
@Autowired
|
||||
private ScrcuOnlineRefundOrdersMapper scrcuOnlineRefundOrdersMapper;
|
||||
|
||||
/**
|
||||
* 查询退款订单
|
||||
*
|
||||
* @param id 退款订单ID
|
||||
* @return 退款订单
|
||||
*/
|
||||
@Override
|
||||
public ScrcuOnlineRefundOrders selectScrcuOnlineRefundOrdersById(Long id)
|
||||
{
|
||||
return scrcuOnlineRefundOrdersMapper.selectScrcuOnlineRefundOrdersById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询退款订单列表
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 退款订单
|
||||
*/
|
||||
@Override
|
||||
public List<ScrcuOnlineRefundOrders> selectScrcuOnlineRefundOrdersList(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders)
|
||||
{
|
||||
return scrcuOnlineRefundOrdersMapper.selectScrcuOnlineRefundOrdersList(scrcuOnlineRefundOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增退款订单
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertScrcuOnlineRefundOrders(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders)
|
||||
{
|
||||
scrcuOnlineRefundOrders.setCreateTime(DateUtils.getNowDate());
|
||||
return scrcuOnlineRefundOrdersMapper.insertScrcuOnlineRefundOrders(scrcuOnlineRefundOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改退款订单
|
||||
*
|
||||
* @param scrcuOnlineRefundOrders 退款订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateScrcuOnlineRefundOrders(ScrcuOnlineRefundOrders scrcuOnlineRefundOrders)
|
||||
{
|
||||
return scrcuOnlineRefundOrdersMapper.updateScrcuOnlineRefundOrders(scrcuOnlineRefundOrders);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除退款订单对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOnlineRefundOrdersByIds(String ids)
|
||||
{
|
||||
return scrcuOnlineRefundOrdersMapper.deleteScrcuOnlineRefundOrdersByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除退款订单信息
|
||||
*
|
||||
* @param id 退款订单ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteScrcuOnlineRefundOrdersById(Long id)
|
||||
{
|
||||
return scrcuOnlineRefundOrdersMapper.deleteScrcuOnlineRefundOrdersById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,409 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.TypeReference;
|
||||
import com.bending.core.his.bo.PayAccountBO;
|
||||
import com.bending.core.his.common.HISResult;
|
||||
import com.bending.core.his.constant.HisConstant;
|
||||
import com.bending.core.his.entity.*;
|
||||
import com.bending.core.his.vo.*;
|
||||
import com.bending.core.utils.HISClientUtil;
|
||||
import com.ruoyi.common.func.IConstant;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.func.Func;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.bean.BeanUtils;
|
||||
import com.ruoyi.his.domain.*;
|
||||
import com.ruoyi.his.service.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("his/v1/sync")
|
||||
@Api(value = "HIS同步数据接口", tags = "HIS同步数据接口")
|
||||
public class HisController {
|
||||
@Resource
|
||||
private HISClientUtil hisClientUtil;
|
||||
@Resource
|
||||
private IHisHospitalInfoService iHisHospitalInfoService;
|
||||
@Resource
|
||||
private IHisDepartmentService iHisDepartmentService;
|
||||
@Resource
|
||||
private IHisDoctorDepartmentService iHisDoctorDepartmentService;
|
||||
@Resource
|
||||
private IHisDoctorService iHisDoctorService;
|
||||
@Resource
|
||||
private IHisRegistrationTemplateService iHisRegistrationTemplateService;
|
||||
@Resource
|
||||
private IHisPayAccountService iHisPayAccountService;
|
||||
@Resource
|
||||
private IHisFeeItemService hisFeeItemService;
|
||||
@Resource
|
||||
private IHisDoctorScheduleService iHisDoctorScheduleService;
|
||||
|
||||
@ApiOperation("获取挂号模板")
|
||||
@GetMapping("/template/list")
|
||||
public AjaxResult templateList(String orgCode) {
|
||||
HisHospitalInfo hisHospitalInfo = iHisHospitalInfoService.selectHisHospitalInfoByOrgCode(orgCode);
|
||||
if (null == hisHospitalInfo) {
|
||||
return AjaxResult.error("指定机构不存在!");
|
||||
}
|
||||
RegistrationTemplate registrationTemplate = new RegistrationTemplate();
|
||||
registrationTemplate.setOrgCode(orgCode);
|
||||
registrationTemplate.setTemplateId("");
|
||||
HISResult hisResult = hisClientUtil.getRegistrationTemplateList(registrationTemplate);
|
||||
if (HisConstant.RESULT_SUCCESS_CODE.equals(hisResult.getResult())) {
|
||||
TypeReference<List<RegistrationTemplateVO>> typeRef = new TypeReference<List<RegistrationTemplateVO>>() {
|
||||
};
|
||||
List<RegistrationTemplateVO> list = JSON.parseObject(hisResult.getMsg(), typeRef);
|
||||
//保存数据到本地数据库
|
||||
for (RegistrationTemplateVO vo : list) {
|
||||
//每次更新时,查询是否已经存在
|
||||
String s = vo.getTemplateName().replaceAll("\\s*", "");
|
||||
vo.setTemplateName(Func.cleanChars(s));
|
||||
HisRegistrationTemplate hisRegistrationTemplate = Func.copy(vo, HisRegistrationTemplate.class);
|
||||
hisRegistrationTemplate.setIsShow(0);
|
||||
hisRegistrationTemplate.setFee(vo.getRegistrationAmount());
|
||||
hisRegistrationTemplate.setOrgCode(orgCode);
|
||||
hisRegistrationTemplate.setOrgName(hisHospitalInfo.getOrgName());
|
||||
iHisRegistrationTemplateService.insertHisRegistrationTemplate(hisRegistrationTemplate);
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
return AjaxResult.error(hisResult.getMsg());
|
||||
}
|
||||
|
||||
@ApiOperation("获取机构列表")
|
||||
@GetMapping("/hospital/list")
|
||||
public AjaxResult hospitalList(String orgName) {
|
||||
HospitalInfo hospitalInfo = new HospitalInfo();
|
||||
hospitalInfo.setOrgName(orgName);
|
||||
HISResult hisResult = hisClientUtil.getHospitalInfoByList(hospitalInfo);
|
||||
if (HisConstant.RESULT_SUCCESS_CODE.equals(hisResult.getResult())) {
|
||||
TypeReference<List<HospitalInfoVO>> typeRef = new TypeReference<List<HospitalInfoVO>>() {
|
||||
};
|
||||
List<HospitalInfoVO> list = JSON.parseObject(hisResult.getMsg(), typeRef);
|
||||
if (CollectionUtils.isNotEmpty(list)) {
|
||||
for (HospitalInfoVO hospitalInfoVO : list) {
|
||||
HisHospitalInfo hisHospitalInfo = iHisHospitalInfoService.selectHisHospitalInfoByOrgCode(hospitalInfoVO.getOrgCode());
|
||||
if (null == hisHospitalInfo) {
|
||||
hisHospitalInfo = new HisHospitalInfo();
|
||||
BeanUtils.copyProperties(hospitalInfoVO, hisHospitalInfo);
|
||||
iHisHospitalInfoService.insertHisHospitalInfo(hisHospitalInfo);
|
||||
} else {
|
||||
iHisHospitalInfoService.updateHisHospitalInfo(hisHospitalInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
return AjaxResult.error(hisResult.getMsg());
|
||||
}
|
||||
|
||||
@ApiOperation("获取科室列表")
|
||||
@GetMapping("/dept/list")
|
||||
public AjaxResult deptList(String orgCode) {
|
||||
//查询本地数据库
|
||||
HisHospitalInfo hisHospitalInfo = iHisHospitalInfoService.selectHisHospitalInfoByOrgCode(orgCode);
|
||||
if (null == hisHospitalInfo) {
|
||||
return AjaxResult.error("指定机构不存在!");
|
||||
}
|
||||
//HIS医院综合目录
|
||||
ComprehensiveCatalogue comprehensiveCatalogue = new ComprehensiveCatalogue();
|
||||
comprehensiveCatalogue.setDirectoryType(HisConstant.CATALOG_TYPE_1);
|
||||
comprehensiveCatalogue.setOrgCode(orgCode);
|
||||
HISResult hisResult = hisClientUtil.getComprehensiveCatalogueList(comprehensiveCatalogue);
|
||||
if (HisConstant.RESULT_SUCCESS_CODE.equals(hisResult.getResult())) {
|
||||
TypeReference<List<ComprehensiveCatalogueVO>> typeRef = new TypeReference<List<ComprehensiveCatalogueVO>>() {
|
||||
};
|
||||
List<ComprehensiveCatalogueVO> list = JSON.parseObject(hisResult.getMsg(), typeRef);
|
||||
for (ComprehensiveCatalogueVO vo : list) {
|
||||
String deptId = vo.getDirectoryCode();
|
||||
HisDepartment hisDepartment = new HisDepartment();
|
||||
hisDepartment.setDeptId(deptId);
|
||||
hisDepartment.setDeptName(vo.getDirectoryName());
|
||||
hisDepartment.setOrgCode(orgCode);
|
||||
hisDepartment.setOrgName(hisHospitalInfo.getOrgName());
|
||||
hisDepartment.setIsShow(0);
|
||||
hisDepartment.setCreateTime(DateUtils.getNowDate());
|
||||
int res = iHisDepartmentService.insertHisDepartment(hisDepartment);
|
||||
//每次更新时,查询是否已经存在
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
return AjaxResult.error(hisResult.getMsg());
|
||||
}
|
||||
|
||||
@ApiOperation("获取医生列表")
|
||||
@GetMapping("/doctor/list")
|
||||
public AjaxResult doctorList(String orgCode) {
|
||||
//查询本地数据库
|
||||
HisHospitalInfo hisHospitalInfo = iHisHospitalInfoService.selectHisHospitalInfoByOrgCode(orgCode);
|
||||
if (null == hisHospitalInfo) {
|
||||
return AjaxResult.error("指定机构不存在!");
|
||||
}
|
||||
//HIS医院综合目录
|
||||
ComprehensiveCatalogue comprehensiveCatalogue = new ComprehensiveCatalogue();
|
||||
comprehensiveCatalogue.setDirectoryType(HisConstant.CATALOG_TYPE_2);
|
||||
comprehensiveCatalogue.setOrgCode(orgCode);
|
||||
HISResult hisResult = hisClientUtil.getComprehensiveCatalogueList(comprehensiveCatalogue);
|
||||
if (HisConstant.RESULT_SUCCESS_CODE.equals(hisResult.getResult())) {
|
||||
TypeReference<List<ComprehensiveCatalogueVO>> typeRef = new TypeReference<List<ComprehensiveCatalogueVO>>() {
|
||||
};
|
||||
List<ComprehensiveCatalogueVO> list = JSON.parseObject(hisResult.getMsg(), typeRef);
|
||||
|
||||
//医生分组,但是数据没有去重。
|
||||
Map<String, List<ComprehensiveCatalogueVO>> map = list.stream().collect(Collectors.groupingBy(ComprehensiveCatalogueVO::getDirectoryCode));
|
||||
// 医生与科室对应关系
|
||||
// Map<doctorId,deptIds> --> Map<String,List<String>>
|
||||
Map<String, List<String>> doctorMapR = new HashMap<>();
|
||||
map.forEach((doctorId, voList) -> {
|
||||
//拿到科室ID,就是科室去重
|
||||
List<ComprehensiveCatalogueVO> tempList = voList.stream().filter(distinctByKey(ComprehensiveCatalogueVO::getRemark)).collect(Collectors.toList());
|
||||
List<String> deptIds = tempList.stream().map(ComprehensiveCatalogueVO::getRemark).collect(Collectors.toList());
|
||||
doctorMapR.put(doctorId, deptIds);
|
||||
});
|
||||
//保存医生与科室的对应关系
|
||||
doctorMapR.forEach((doctorId, deptIds) -> {
|
||||
deptIds.forEach(deptId -> {
|
||||
//每次更新时,查询是否已经存在对应关系
|
||||
HisDoctorDepartment doctorDepartment = new HisDoctorDepartment();
|
||||
//一个医生理论上对应一个科室,实际上是对应多个科室的.
|
||||
doctorDepartment.setDeptId(deptId);
|
||||
HisDepartment hisDepartment = iHisDepartmentService.selectHisDepartmentByDeptId(deptId);
|
||||
doctorDepartment.setDeptName(null != hisDepartment ? hisDepartment.getDeptName() : "");
|
||||
doctorDepartment.setDoctorId(doctorId);
|
||||
doctorDepartment.setOrgCode(orgCode);
|
||||
doctorDepartment.setIsShow(0);
|
||||
iHisDoctorDepartmentService.insertHisDoctorDepartment(doctorDepartment);
|
||||
});
|
||||
});
|
||||
|
||||
//根据医生ID去重
|
||||
List<ComprehensiveCatalogueVO> voList = list.stream().filter(distinctByKey(ComprehensiveCatalogueVO::getDirectoryCode)).collect(Collectors.toList());
|
||||
for (ComprehensiveCatalogueVO v : voList) {
|
||||
HisDoctor hisDoctor = new HisDoctor();
|
||||
hisDoctor.setDoctorId(v.getDirectoryCode());
|
||||
hisDoctor.setDoctorName(v.getDirectoryName());
|
||||
//备注[目录类型1: 返回医生所在科室的编码;目录类型3: 返回床位所在的病区编码.]
|
||||
hisDoctor.setDeptId(v.getRemark()); //随机设置一个默认科室
|
||||
HisDepartment hisDepartment = iHisDepartmentService.selectHisDepartmentByDeptId(v.getRemark());
|
||||
hisDoctor.setDeptName(null != hisDepartment ? hisDepartment.getDeptName() : "");
|
||||
hisDoctor.setOrgCode(orgCode);
|
||||
hisDoctor.setOrgName(hisHospitalInfo.getOrgName());
|
||||
hisDoctor.setIsShow(0);
|
||||
iHisDoctorService.insertHisDoctor(hisDoctor);
|
||||
}
|
||||
//每次更新时,查询是否已经存在
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
return AjaxResult.error(hisResult.getMsg());
|
||||
}
|
||||
|
||||
private static <T> Predicate<T> distinctByKey(Function<? super T, ?> keyExtractor) {
|
||||
Map<Object, Boolean> seen = new ConcurrentHashMap<>();
|
||||
return t -> seen.putIfAbsent(keyExtractor.apply(t), Boolean.TRUE) == null;
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/payment/list")
|
||||
@ApiOperation(value = "HIS同步数据接口:机构支付方式列表", notes = "传入查询参数")
|
||||
public AjaxResult queryHospitalPayment(@ApiParam(name = "orgCode", value = "机构ID", required = true) @RequestParam String orgCode) {
|
||||
HisHospitalInfo hisHospitalInfo = iHisHospitalInfoService.selectHisHospitalInfoByOrgCode(orgCode);
|
||||
if (null == hisHospitalInfo) {
|
||||
return AjaxResult.error("指定机构不存在!");
|
||||
}
|
||||
HospitalPayment hospitalPayment = new HospitalPayment();
|
||||
hospitalPayment.setOrgCode(orgCode);
|
||||
HISResult hisResult = hisClientUtil.getHospitalPaymentList(hospitalPayment);
|
||||
|
||||
List<HisPayAccount> hisPayAccountList = new ArrayList<>();
|
||||
|
||||
if (HisConstant.RESULT_SUCCESS_CODE.equals(hisResult.getResult())) {
|
||||
TypeReference<List<HospitalPaymentVO>> typeRef = new TypeReference<List<HospitalPaymentVO>>() {
|
||||
};
|
||||
List<HospitalPaymentVO> list = JSON.parseObject(hisResult.getMsg(), typeRef);
|
||||
//保存数据到本地数据库
|
||||
for (HospitalPaymentVO vo : list) {
|
||||
List<PayAccountBO> payAccountBOList = vo.getOrgAcc();
|
||||
payAccountBOList.forEach(bo -> {
|
||||
HisPayAccount payAccount = new HisPayAccount();
|
||||
Func.copy(bo, payAccount);
|
||||
payAccount.setAccId(bo.getId());
|
||||
hisPayAccountList.add(payAccount);
|
||||
});
|
||||
}
|
||||
if (Func.isNotEmpty(hisPayAccountList)) {
|
||||
iHisPayAccountService.insertHisPayAccountBatch(hisPayAccountList);
|
||||
}
|
||||
return AjaxResult.success(hisPayAccountList);
|
||||
}
|
||||
return AjaxResult.error(hisResult.getMsg());
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/fee/item/list")
|
||||
@ApiOperation(value = "HIS同步数据接口:挂号费用类型")
|
||||
public AjaxResult queryHisFeeItem() {
|
||||
List<HisFeeItem> hisFeeItemList = new ArrayList<>();
|
||||
RegistrationFeeType registrationFeeType = new RegistrationFeeType();
|
||||
HISResult hisResult = hisClientUtil.getFeeItemList(registrationFeeType);
|
||||
if (HisConstant.RESULT_SUCCESS_CODE.equals(hisResult.getResult())) {
|
||||
TypeReference<List<RegistrationFeeTypeVO>> typeRef = new TypeReference<List<RegistrationFeeTypeVO>>() {
|
||||
};
|
||||
List<RegistrationFeeTypeVO> list = JSON.parseObject(hisResult.getMsg(), typeRef);
|
||||
if (Func.isNotEmpty(list)) {
|
||||
for (RegistrationFeeTypeVO vo : list) {
|
||||
HisFeeItem hisFeeItem = new HisFeeItem();
|
||||
Func.copy(vo, hisFeeItem);
|
||||
hisFeeItem.setIsShow(IConstant.ZERO.getValue());
|
||||
hisFeeItem.setCreateTime(DateUtils.getNowDate());
|
||||
hisFeeItemList.add(hisFeeItem);
|
||||
}
|
||||
}
|
||||
if (Func.isNotEmpty(hisFeeItemList)) {
|
||||
hisFeeItemService.insertHisFeeItemBatch(hisFeeItemList);
|
||||
}
|
||||
return AjaxResult.success(hisFeeItemList);
|
||||
} else {
|
||||
return AjaxResult.error(hisResult.getMsg());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* /his/v1/sync/doctor/schedule
|
||||
* 同步医生排班信息
|
||||
*
|
||||
* @param orgCode 机构ID
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/doctor/schedule")
|
||||
@ApiOperation(value = "HIS同步数据接口:医生排班信息", notes = "传入查询参数")
|
||||
public AjaxResult queryDoctorSchedule(@ApiParam(name = "orgCode", value = "机构ID") @RequestParam(required = false) String orgCode) {
|
||||
Date nowDate = DateUtils.getNowDate();
|
||||
Date beginTime = Func.minusDays(nowDate, 1);//-days天
|
||||
Date endTime = Func.plusDays(nowDate, 1);//+days天
|
||||
if (Func.isNotEmpty(orgCode)) {
|
||||
HisHospitalInfo hospitalInfo = iHisHospitalInfoService.selectHisHospitalInfoByOrgCode(orgCode); //机构信息
|
||||
if (null == hospitalInfo) return AjaxResult.error("指定机构不存在!");
|
||||
syncDoctorSchedule(hospitalInfo, beginTime, endTime);
|
||||
} else {
|
||||
HisHospitalInfo hospitalInfoQuery = new HisHospitalInfo();
|
||||
hospitalInfoQuery.setIsShow(IConstant.ONE.getValue());
|
||||
List<HisHospitalInfo> hospitalInfoList = iHisHospitalInfoService.selectHisHospitalInfoList(hospitalInfoQuery);
|
||||
if (Func.isNotEmpty(hospitalInfoList)) {
|
||||
hospitalInfoList.forEach(hospitalInfo -> {
|
||||
syncDoctorSchedule(hospitalInfo, beginTime, endTime);
|
||||
});
|
||||
}
|
||||
}
|
||||
return AjaxResult.success("医生排班同步完成!");
|
||||
}
|
||||
|
||||
private void syncDoctorSchedule(HisHospitalInfo hospitalInfo, Date beginTime, Date endTime) {
|
||||
if (null == hospitalInfo) return;
|
||||
String orgName = Func.isNotEmpty(hospitalInfo) ? hospitalInfo.getOrgName() : "";
|
||||
String orgCode = hospitalInfo.getOrgCode();
|
||||
//班次判断是否存在
|
||||
HisDoctorSchedule doctorScheduleQuery = new HisDoctorSchedule();
|
||||
doctorScheduleQuery.setOrgCode(orgCode);
|
||||
Map<String, Object> paramsQuery = new HashMap<>();
|
||||
//删除过期排班老数据
|
||||
Date beginScheduleDate = Func.minusDays(beginTime, 7); //当前日期过去的days
|
||||
Date endScheduleDate = Func.minusDays(beginTime, 1); //昨天
|
||||
paramsQuery.put("beginScheduleDate", Func.formatDate(beginScheduleDate, DateUtils.YYYY_MM_DD));
|
||||
paramsQuery.put("endScheduleDate", Func.formatDate(endScheduleDate, DateUtils.YYYY_MM_DD));
|
||||
doctorScheduleQuery.setParams(paramsQuery);
|
||||
List<HisDoctorSchedule> oldScheduleList = iHisDoctorScheduleService.selectHisDoctorScheduleList(doctorScheduleQuery);
|
||||
if (Func.isNotEmpty(oldScheduleList)) {
|
||||
List<Long> idsList = oldScheduleList.stream().map(HisDoctorSchedule::getId).collect(toList());
|
||||
String ids = Func.join(idsList, ",");
|
||||
iHisDoctorScheduleService.deleteHisDoctorScheduleByIds(ids);
|
||||
}
|
||||
//医生列表(正常在线)
|
||||
HisDoctor hisDoctor = new HisDoctor();
|
||||
hisDoctor.setOrgCode(orgCode);
|
||||
hisDoctor.setIsShow(IConstant.ONE.getValue());
|
||||
List<HisDoctor> doctorList = iHisDoctorService.selectHisDoctorList(hisDoctor);
|
||||
if (Func.isNotEmpty(doctorList)) {
|
||||
// 新数据
|
||||
List<HisDoctorSchedule> newDoctorScheduleList = new ArrayList<>();
|
||||
List<HisDoctorSchedule> oldDoctorScheduleList = new ArrayList<>();
|
||||
|
||||
doctorList.forEach(doctor -> {
|
||||
DoctorSchedule doctorSchedule = new DoctorSchedule();
|
||||
doctorSchedule.setOrgCode(orgCode);
|
||||
doctorSchedule.setDoctorId(doctor.getDoctorId());
|
||||
//查询日期限制在7天内,yyyy-MM-dd
|
||||
doctorSchedule.setBeginTime(Func.formatDate(beginTime));
|
||||
doctorSchedule.setEndTime(Func.formatDate(endTime));
|
||||
HISResult hisResult = hisClientUtil.getDoctorScheduleList(doctorSchedule);
|
||||
if (HisConstant.RESULT_SUCCESS_CODE.equals(hisResult.getResult())) {
|
||||
TypeReference<List<DoctorScheduleVO>> typeRef = new TypeReference<List<DoctorScheduleVO>>() {
|
||||
};
|
||||
List<DoctorScheduleVO> list = JSON.parseObject(hisResult.getMsg(), typeRef);
|
||||
if (Func.isNotEmpty(list)) {
|
||||
for (DoctorScheduleVO vo : list) {
|
||||
String shift = Func.trimWhitespace(vo.getScheduleShift());
|
||||
Date scheduleDate = Func.parse(vo.getScheduleDate(), "yyyy-MM-dd");
|
||||
//班次判断是否存在 --老数据
|
||||
HisDoctorSchedule hisDoctorScheduleQuery = new HisDoctorSchedule();
|
||||
hisDoctorScheduleQuery.setOrgCode(orgCode);
|
||||
hisDoctorScheduleQuery.setDoctorId(vo.getDoctorId());
|
||||
hisDoctorScheduleQuery.setScheduleDate(scheduleDate);
|
||||
hisDoctorScheduleQuery.setScheduleShift(shift);
|
||||
HisDoctorSchedule hisDoctorSchedule = iHisDoctorScheduleService.selectHisDoctorSchedule(hisDoctorScheduleQuery);
|
||||
if (null == hisDoctorSchedule) {
|
||||
hisDoctorSchedule = new HisDoctorSchedule();
|
||||
hisDoctorSchedule.setScheduleDate(scheduleDate);
|
||||
hisDoctorSchedule.setOrgCode(orgCode);
|
||||
hisDoctorSchedule.setOrgName(orgName);
|
||||
hisDoctorSchedule.setCreateTime(DateUtils.getNowDate());
|
||||
hisDoctorSchedule.setIsShow(IConstant.ONE.getValue());
|
||||
Func.copy(vo, hisDoctorSchedule);
|
||||
if (HisConstant.MORNING.equals(shift)) {
|
||||
hisDoctorSchedule.setScheduleTag(IConstant.ONE.getValue());
|
||||
}
|
||||
if (HisConstant.AFTERNOON.equals(shift)) {
|
||||
hisDoctorSchedule.setScheduleTag(IConstant.TWO.getValue());
|
||||
}
|
||||
newDoctorScheduleList.add(hisDoctorSchedule);
|
||||
} else {
|
||||
Func.copy(vo, hisDoctorSchedule);
|
||||
if (HisConstant.MORNING.equals(shift)) {
|
||||
hisDoctorSchedule.setScheduleTag(IConstant.ONE.getValue());
|
||||
}
|
||||
if (HisConstant.AFTERNOON.equals(shift)) {
|
||||
hisDoctorSchedule.setScheduleTag(IConstant.TWO.getValue());
|
||||
}
|
||||
oldDoctorScheduleList.add(hisDoctorSchedule);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (Func.isNotEmpty(newDoctorScheduleList)) {
|
||||
iHisDoctorScheduleService.insertHisDoctorScheduleBatch(newDoctorScheduleList);
|
||||
}
|
||||
if (Func.isNotEmpty(oldDoctorScheduleList)) {
|
||||
iHisDoctorScheduleService.updateHisDoctorScheduleBatch(oldDoctorScheduleList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,138 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.his.domain.HisDoctorDepartment;
|
||||
import com.ruoyi.his.service.IHisDoctorDepartmentService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisDepartment;
|
||||
import com.ruoyi.his.service.IHisDepartmentService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 科室Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/department")
|
||||
public class HisDepartmentController extends BaseController
|
||||
{
|
||||
private String prefix = "his/department";
|
||||
|
||||
@Autowired
|
||||
private IHisDepartmentService hisDepartmentService;
|
||||
@Autowired
|
||||
private IHisDoctorDepartmentService iHisDoctorDepartmentService;
|
||||
|
||||
@RequiresPermissions("his:department:view")
|
||||
@GetMapping()
|
||||
public String department()
|
||||
{
|
||||
return prefix + "/department";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询科室列表
|
||||
*/
|
||||
@RequiresPermissions("his:department:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisDepartment hisDepartment)
|
||||
{
|
||||
startPage();
|
||||
List<HisDepartment> list = hisDepartmentService.selectHisDepartmentList(hisDepartment);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出科室列表
|
||||
*/
|
||||
@RequiresPermissions("his:department:export")
|
||||
@Log(title = "科室", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisDepartment hisDepartment)
|
||||
{
|
||||
List<HisDepartment> list = hisDepartmentService.selectHisDepartmentList(hisDepartment);
|
||||
ExcelUtil<HisDepartment> util = new ExcelUtil<HisDepartment>(HisDepartment.class);
|
||||
return util.exportExcel(list, "department");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增科室
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存科室
|
||||
*/
|
||||
@RequiresPermissions("his:department:add")
|
||||
@Log(title = "科室", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisDepartment hisDepartment)
|
||||
{
|
||||
return toAjax(hisDepartmentService.insertHisDepartment(hisDepartment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改科室
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisDepartment hisDepartment = hisDepartmentService.selectHisDepartmentById(id);
|
||||
mmap.put("hisDepartment", hisDepartment);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存科室
|
||||
*/
|
||||
@RequiresPermissions("his:department:edit")
|
||||
@Log(title = "科室", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisDepartment hisDepartment)
|
||||
{
|
||||
//科室更新时 同步更新对应关系
|
||||
String deptId = hisDepartment.getDeptId();
|
||||
HisDoctorDepartment hisDoctorDepartment = new HisDoctorDepartment();
|
||||
hisDoctorDepartment.setDeptId(deptId);
|
||||
hisDoctorDepartment.setIsShow(hisDepartment.getIsShow());
|
||||
iHisDoctorDepartmentService.updateHisDoctorDepartmentByDeptId(hisDoctorDepartment);
|
||||
|
||||
return toAjax(hisDepartmentService.updateHisDepartment(hisDepartment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除科室
|
||||
*/
|
||||
@RequiresPermissions("his:department:remove")
|
||||
@Log(title = "科室", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisDepartmentService.deleteHisDepartmentByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,172 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.func.Func;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.his.domain.HisDepartment;
|
||||
import com.ruoyi.his.domain.HisDoctor;
|
||||
import com.ruoyi.his.domain.HisDoctorDepartment;
|
||||
import com.ruoyi.his.domain.HisRegistrationTemplate;
|
||||
import com.ruoyi.his.service.IHisDepartmentService;
|
||||
import com.ruoyi.his.service.IHisDoctorDepartmentService;
|
||||
import com.ruoyi.his.service.IHisDoctorService;
|
||||
import com.ruoyi.his.service.IHisRegistrationTemplateService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 医生Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/doctor")
|
||||
public class HisDoctorController extends BaseController
|
||||
{
|
||||
private String prefix = "his/doctor";
|
||||
|
||||
@Autowired
|
||||
private IHisDoctorService hisDoctorService;
|
||||
@Autowired
|
||||
private IHisRegistrationTemplateService iHisRegistrationTemplateService;
|
||||
@Autowired
|
||||
private IHisDoctorDepartmentService iHisDoctorDepartmentService;
|
||||
@Autowired
|
||||
private IHisDepartmentService iHisDepartmentService;
|
||||
|
||||
|
||||
@RequiresPermissions("his:doctor:view")
|
||||
@GetMapping()
|
||||
public String doctor()
|
||||
{
|
||||
return prefix + "/doctor";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询医生列表
|
||||
*/
|
||||
@RequiresPermissions("his:doctor:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisDoctor hisDoctor)
|
||||
{
|
||||
startPage();
|
||||
List<HisDoctor> list = hisDoctorService.selectHisDoctorList(hisDoctor);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出医生列表
|
||||
*/
|
||||
@RequiresPermissions("his:doctor:export")
|
||||
@Log(title = "医生", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisDoctor hisDoctor)
|
||||
{
|
||||
List<HisDoctor> list = hisDoctorService.selectHisDoctorList(hisDoctor);
|
||||
ExcelUtil<HisDoctor> util = new ExcelUtil<HisDoctor>(HisDoctor.class);
|
||||
return util.exportExcel(list, "doctor");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增医生
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存医生
|
||||
*/
|
||||
@RequiresPermissions("his:doctor:add")
|
||||
@Log(title = "医生", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisDoctor hisDoctor)
|
||||
{
|
||||
return toAjax(hisDoctorService.insertHisDoctor(hisDoctor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改医生
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisDoctor hisDoctor = hisDoctorService.selectHisDoctorById(id);
|
||||
mmap.put("hisDoctor", hisDoctor);
|
||||
if(Func.isNotEmpty(hisDoctor)){
|
||||
//编辑时可设置挂号模板
|
||||
HisRegistrationTemplate template = new HisRegistrationTemplate();
|
||||
template.setOrgCode(hisDoctor.getOrgCode());
|
||||
template.setIsShow(1);
|
||||
List<HisRegistrationTemplate> hisRegistrationTemplateList = iHisRegistrationTemplateService.selectHisRegistrationTemplateList(template);
|
||||
if (Func.isNotEmpty(hisRegistrationTemplateList)){
|
||||
mmap.put("hisRegistrationTemplateList", hisRegistrationTemplateList);
|
||||
}
|
||||
//修改默认科室
|
||||
HisDoctorDepartment hisDoctorDepartment= new HisDoctorDepartment();
|
||||
hisDoctorDepartment.setDoctorId(hisDoctor.getDoctorId());
|
||||
List<HisDoctorDepartment> hisDoctorDepartmentList = iHisDoctorDepartmentService.selectHisDoctorDepartmentList(hisDoctorDepartment);
|
||||
if (Func.isNotEmpty(hisDoctorDepartmentList)){
|
||||
mmap.put("hisDoctorDepartmentList", hisDoctorDepartmentList);
|
||||
}
|
||||
}
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存医生
|
||||
*/
|
||||
@RequiresPermissions("his:doctor:edit")
|
||||
@Log(title = "医生", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisDoctor hisDoctor)
|
||||
{
|
||||
//根据挂号模板ID获取模板名称
|
||||
String templateId = hisDoctor.getTemplateId();
|
||||
if (Func.isNotEmpty(templateId)){
|
||||
HisRegistrationTemplate template = new HisRegistrationTemplate();
|
||||
template.setTemplateId(templateId);
|
||||
HisRegistrationTemplate hisRegistrationTemplate = iHisRegistrationTemplateService.selectHisRegistrationTemplate(template);
|
||||
if (Func.isNotEmpty(hisRegistrationTemplate)){
|
||||
hisDoctor.setTemplateName(hisRegistrationTemplate.getTemplateName());
|
||||
}
|
||||
}
|
||||
//设置默认科室
|
||||
String deptId = hisDoctor.getDeptId();
|
||||
if (Func.isNotEmpty(deptId)){
|
||||
HisDepartment hisDepartment = iHisDepartmentService.selectHisDepartmentByDeptId(deptId);
|
||||
if (Func.isNotEmpty(hisDepartment)){
|
||||
hisDoctor.setDeptName(hisDepartment.getDeptName());
|
||||
}
|
||||
}
|
||||
return toAjax(hisDoctorService.updateHisDoctor(hisDoctor));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除医生
|
||||
*/
|
||||
@RequiresPermissions("his:doctor:remove")
|
||||
@Log(title = "医生", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisDoctorService.deleteHisDoctorByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisDoctorDepartment;
|
||||
import com.ruoyi.his.service.IHisDoctorDepartmentService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 医生科室关系Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/doctorDepartment")
|
||||
public class HisDoctorDepartmentController extends BaseController
|
||||
{
|
||||
private String prefix = "his/doctorDepartment";
|
||||
|
||||
@Autowired
|
||||
private IHisDoctorDepartmentService hisDoctorDepartmentService;
|
||||
|
||||
@RequiresPermissions("his:doctorDepartment:view")
|
||||
@GetMapping()
|
||||
public String doctorDepartment()
|
||||
{
|
||||
return prefix + "/doctorDepartment";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询医生科室关系列表
|
||||
*/
|
||||
@RequiresPermissions("his:doctorDepartment:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisDoctorDepartment hisDoctorDepartment)
|
||||
{
|
||||
startPage();
|
||||
List<HisDoctorDepartment> list = hisDoctorDepartmentService.selectHisDoctorDepartmentList(hisDoctorDepartment);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出医生科室关系列表
|
||||
*/
|
||||
@RequiresPermissions("his:doctorDepartment:export")
|
||||
@Log(title = "医生科室关系", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisDoctorDepartment hisDoctorDepartment)
|
||||
{
|
||||
List<HisDoctorDepartment> list = hisDoctorDepartmentService.selectHisDoctorDepartmentList(hisDoctorDepartment);
|
||||
ExcelUtil<HisDoctorDepartment> util = new ExcelUtil<HisDoctorDepartment>(HisDoctorDepartment.class);
|
||||
return util.exportExcel(list, "doctorDepartment");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增医生科室关系
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存医生科室关系
|
||||
*/
|
||||
@RequiresPermissions("his:doctorDepartment:add")
|
||||
@Log(title = "医生科室关系", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisDoctorDepartment hisDoctorDepartment)
|
||||
{
|
||||
return toAjax(hisDoctorDepartmentService.insertHisDoctorDepartment(hisDoctorDepartment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改医生科室关系
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisDoctorDepartment hisDoctorDepartment = hisDoctorDepartmentService.selectHisDoctorDepartmentById(id);
|
||||
mmap.put("hisDoctorDepartment", hisDoctorDepartment);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存医生科室关系
|
||||
*/
|
||||
@RequiresPermissions("his:doctorDepartment:edit")
|
||||
@Log(title = "医生科室关系", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisDoctorDepartment hisDoctorDepartment)
|
||||
{
|
||||
return toAjax(hisDoctorDepartmentService.updateHisDoctorDepartment(hisDoctorDepartment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除医生科室关系
|
||||
*/
|
||||
@RequiresPermissions("his:doctorDepartment:remove")
|
||||
@Log(title = "医生科室关系", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisDoctorDepartmentService.deleteHisDoctorDepartmentByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisDoctorSchedule;
|
||||
import com.ruoyi.his.service.IHisDoctorScheduleService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 医生排班Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-03
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/doctorSchedule")
|
||||
public class HisDoctorScheduleController extends BaseController
|
||||
{
|
||||
private String prefix = "his/doctorSchedule";
|
||||
|
||||
@Autowired
|
||||
private IHisDoctorScheduleService hisDoctorScheduleService;
|
||||
|
||||
@RequiresPermissions("his:doctorSchedule:view")
|
||||
@GetMapping()
|
||||
public String doctorSchedule()
|
||||
{
|
||||
return prefix + "/doctorSchedule";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询医生排班列表
|
||||
*/
|
||||
@RequiresPermissions("his:doctorSchedule:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisDoctorSchedule hisDoctorSchedule)
|
||||
{
|
||||
startPage();
|
||||
List<HisDoctorSchedule> list = hisDoctorScheduleService.selectHisDoctorScheduleList(hisDoctorSchedule);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出医生排班列表
|
||||
*/
|
||||
@RequiresPermissions("his:doctorSchedule:export")
|
||||
@Log(title = "医生排班", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisDoctorSchedule hisDoctorSchedule)
|
||||
{
|
||||
List<HisDoctorSchedule> list = hisDoctorScheduleService.selectHisDoctorScheduleList(hisDoctorSchedule);
|
||||
ExcelUtil<HisDoctorSchedule> util = new ExcelUtil<HisDoctorSchedule>(HisDoctorSchedule.class);
|
||||
return util.exportExcel(list, "doctorSchedule");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增医生排班
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存医生排班
|
||||
*/
|
||||
@RequiresPermissions("his:doctorSchedule:add")
|
||||
@Log(title = "医生排班", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisDoctorSchedule hisDoctorSchedule)
|
||||
{
|
||||
return toAjax(hisDoctorScheduleService.insertHisDoctorSchedule(hisDoctorSchedule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改医生排班
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisDoctorSchedule hisDoctorSchedule = hisDoctorScheduleService.selectHisDoctorScheduleById(id);
|
||||
mmap.put("hisDoctorSchedule", hisDoctorSchedule);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存医生排班
|
||||
*/
|
||||
@RequiresPermissions("his:doctorSchedule:edit")
|
||||
@Log(title = "医生排班", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisDoctorSchedule hisDoctorSchedule)
|
||||
{
|
||||
return toAjax(hisDoctorScheduleService.updateHisDoctorSchedule(hisDoctorSchedule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除医生排班
|
||||
*/
|
||||
@RequiresPermissions("his:doctorSchedule:remove")
|
||||
@Log(title = "医生排班", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisDoctorScheduleService.deleteHisDoctorScheduleByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisEhealthClient;
|
||||
import com.ruoyi.his.service.IHisEhealthClientService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 健康卡Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/ehealthClient")
|
||||
public class HisEhealthClientController extends BaseController
|
||||
{
|
||||
private String prefix = "his/ehealthClient";
|
||||
|
||||
@Autowired
|
||||
private IHisEhealthClientService hisEhealthClientService;
|
||||
|
||||
@RequiresPermissions("his:ehealthClient:view")
|
||||
@GetMapping()
|
||||
public String ehealthClient()
|
||||
{
|
||||
return prefix + "/ehealthClient";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询健康卡列表
|
||||
*/
|
||||
@RequiresPermissions("his:ehealthClient:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisEhealthClient hisEhealthClient)
|
||||
{
|
||||
startPage();
|
||||
List<HisEhealthClient> list = hisEhealthClientService.selectHisEhealthClientList(hisEhealthClient);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出健康卡列表
|
||||
*/
|
||||
@RequiresPermissions("his:ehealthClient:export")
|
||||
@Log(title = "健康卡", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisEhealthClient hisEhealthClient)
|
||||
{
|
||||
List<HisEhealthClient> list = hisEhealthClientService.selectHisEhealthClientList(hisEhealthClient);
|
||||
ExcelUtil<HisEhealthClient> util = new ExcelUtil<HisEhealthClient>(HisEhealthClient.class);
|
||||
return util.exportExcel(list, "ehealthClient");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增健康卡
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存健康卡
|
||||
*/
|
||||
@RequiresPermissions("his:ehealthClient:add")
|
||||
@Log(title = "健康卡", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisEhealthClient hisEhealthClient)
|
||||
{
|
||||
return toAjax(hisEhealthClientService.insertHisEhealthClient(hisEhealthClient));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改健康卡
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisEhealthClient hisEhealthClient = hisEhealthClientService.selectHisEhealthClientById(id);
|
||||
mmap.put("hisEhealthClient", hisEhealthClient);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存健康卡
|
||||
*/
|
||||
@RequiresPermissions("his:ehealthClient:edit")
|
||||
@Log(title = "健康卡", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisEhealthClient hisEhealthClient)
|
||||
{
|
||||
return toAjax(hisEhealthClientService.updateHisEhealthClient(hisEhealthClient));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除健康卡
|
||||
*/
|
||||
@RequiresPermissions("his:ehealthClient:remove")
|
||||
@Log(title = "健康卡", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisEhealthClientService.deleteHisEhealthClientByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.his.domain.HisRegistrationTemplate;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisFeeItem;
|
||||
import com.ruoyi.his.service.IHisFeeItemService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 费用类型Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/feeItem")
|
||||
public class HisFeeItemController extends BaseController
|
||||
{
|
||||
private String prefix = "his/feeItem";
|
||||
|
||||
@Autowired
|
||||
private IHisFeeItemService hisFeeItemService;
|
||||
|
||||
@RequiresPermissions("his:feeItem:view")
|
||||
@GetMapping()
|
||||
public String feeItem()
|
||||
{
|
||||
return prefix + "/feeItem";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用类型列表
|
||||
*/
|
||||
@RequiresPermissions("his:feeItem:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisFeeItem hisFeeItem)
|
||||
{
|
||||
startPage();
|
||||
List<HisFeeItem> list = hisFeeItemService.selectHisFeeItemList(hisFeeItem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用类型列表
|
||||
*/
|
||||
@RequiresPermissions("his:feeItem:export")
|
||||
@Log(title = "费用类型", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisFeeItem hisFeeItem)
|
||||
{
|
||||
List<HisFeeItem> list = hisFeeItemService.selectHisFeeItemList(hisFeeItem);
|
||||
ExcelUtil<HisFeeItem> util = new ExcelUtil<HisFeeItem>(HisFeeItem.class);
|
||||
return util.exportExcel(list, "feeItem");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增费用类型
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存费用类型
|
||||
*/
|
||||
@RequiresPermissions("his:feeItem:add")
|
||||
@Log(title = "费用类型", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisFeeItem hisFeeItem)
|
||||
{
|
||||
return toAjax(hisFeeItemService.insertHisFeeItem(hisFeeItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改费用类型
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisFeeItem hisFeeItem = hisFeeItemService.selectHisFeeItemById(id);
|
||||
mmap.put("hisFeeItem", hisFeeItem);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存费用类型
|
||||
*/
|
||||
@RequiresPermissions("his:feeItem:edit")
|
||||
@Log(title = "费用类型", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisFeeItem hisFeeItem)
|
||||
{
|
||||
return toAjax(hisFeeItemService.updateHisFeeItem(hisFeeItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除费用类型
|
||||
*/
|
||||
@RequiresPermissions("his:feeItem:remove")
|
||||
@Log(title = "费用类型", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisFeeItemService.deleteHisFeeItemByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 状态修改
|
||||
*/
|
||||
@Log(title = "费用类型管理", businessType = BusinessType.UPDATE)
|
||||
@RequiresPermissions("his:feeItem:edit")
|
||||
@PostMapping("/changeStatus")
|
||||
@ResponseBody
|
||||
public AjaxResult changeStatus(HisFeeItem hisFeeItem)
|
||||
{
|
||||
return toAjax(hisFeeItemService.changeStatus(hisFeeItem));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,237 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.config.Global;
|
||||
import com.ruoyi.common.config.ServerConfig;
|
||||
import com.ruoyi.common.func.Func;
|
||||
import com.ruoyi.common.utils.file.FileUploadUtils;
|
||||
import com.ruoyi.his.domain.HisDepartment;
|
||||
import com.ruoyi.his.domain.HisDoctor;
|
||||
import com.ruoyi.his.service.IHisDepartmentService;
|
||||
import com.ruoyi.his.service.IHisDoctorService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisHospitalInfo;
|
||||
import com.ruoyi.his.service.IHisHospitalInfoService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 医疗机构Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-06-28
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/hospital")
|
||||
public class HisHospitalInfoController extends BaseController
|
||||
{
|
||||
private String prefix = "his/hospital";
|
||||
|
||||
@Autowired
|
||||
private IHisHospitalInfoService hisHospitalInfoService;
|
||||
@Autowired
|
||||
private IHisDoctorService hisDoctorService;
|
||||
@Autowired
|
||||
private IHisDepartmentService iHisDepartmentService;
|
||||
|
||||
@RequiresPermissions("his:hospital:view")
|
||||
@GetMapping()
|
||||
public String hospital()
|
||||
{
|
||||
return prefix + "/hospital";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询医疗机构列表
|
||||
*/
|
||||
@RequiresPermissions("his:hospital:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisHospitalInfo hisHospitalInfo)
|
||||
{
|
||||
startPage();
|
||||
List<HisHospitalInfo> list = hisHospitalInfoService.selectHisHospitalInfoList(hisHospitalInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出医疗机构列表
|
||||
*/
|
||||
@RequiresPermissions("his:hospital:export")
|
||||
@Log(title = "医疗机构", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisHospitalInfo hisHospitalInfo)
|
||||
{
|
||||
List<HisHospitalInfo> list = hisHospitalInfoService.selectHisHospitalInfoList(hisHospitalInfo);
|
||||
ExcelUtil<HisHospitalInfo> util = new ExcelUtil<HisHospitalInfo>(HisHospitalInfo.class);
|
||||
return util.exportExcel(list, "hospital");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增医疗机构
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存医疗机构
|
||||
*/
|
||||
@RequiresPermissions("his:hospital:add")
|
||||
@Log(title = "医疗机构", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisHospitalInfo hisHospitalInfo)
|
||||
{
|
||||
return toAjax(hisHospitalInfoService.insertHisHospitalInfo(hisHospitalInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改医疗机构
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisHospitalInfo hisHospitalInfo = hisHospitalInfoService.selectHisHospitalInfoById(id);
|
||||
mmap.put("hisHospitalInfo", hisHospitalInfo);
|
||||
if (Func.isNotEmpty(hisHospitalInfo)){
|
||||
HisDoctor hisDoctor = new HisDoctor();
|
||||
hisDoctor.setOrgCode(hisHospitalInfo.getOrgCode());
|
||||
hisDoctor.setIsShow(1);
|
||||
//选择优秀医生
|
||||
List<HisDoctor> hisDoctorList = hisDoctorService.selectHisDoctorList(hisDoctor);
|
||||
if (Func.isNotEmpty(hisDoctorList)){
|
||||
//已经选中的优秀医生
|
||||
String excellentDoctorIds = hisHospitalInfo.getExcellentDoctorIds();
|
||||
if (Func.isNotEmpty(excellentDoctorIds)){
|
||||
String[] doctorIds = Func.toStrArray(",", excellentDoctorIds);
|
||||
if (Func.isNotEmpty(doctorIds)){
|
||||
for (String doctorId : doctorIds) {
|
||||
for (HisDoctor doctor : hisDoctorList) {
|
||||
if (doctorId.equals(doctor.getDoctorId())) {
|
||||
doctor.setFlag(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//设置选中标签
|
||||
mmap.put("hisDoctorList", hisDoctorList);
|
||||
}
|
||||
|
||||
//选择机构虚拟操作员列表
|
||||
HisDoctor vmDoctor = new HisDoctor();
|
||||
vmDoctor.setOrgCode(hisHospitalInfo.getOrgCode());
|
||||
vmDoctor.setIsVirtualAccount(1);
|
||||
List<HisDoctor> vmUserList = hisDoctorService.selectHisDoctorList(vmDoctor);
|
||||
if (Func.isNotEmpty(vmUserList)){
|
||||
String vmUserId = hisHospitalInfo.getVmUserId();
|
||||
//已经选中的虚拟操作员
|
||||
if (Func.isNotEmpty(vmUserId)){
|
||||
for (HisDoctor vm : vmUserList) {
|
||||
if (vmUserId.equals(vm.getDoctorId())) {
|
||||
vm.setFlag(true);//设置选中标签
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
mmap.put("vmUserList", vmUserList);
|
||||
}
|
||||
|
||||
//选择优秀科室
|
||||
HisDepartment hisDepartment = new HisDepartment();
|
||||
hisDepartment.setOrgCode(hisHospitalInfo.getOrgCode());
|
||||
hisDepartment.setIsShow(1);
|
||||
List<HisDepartment> hisDepartmentList = iHisDepartmentService.selectHisDepartmentList(hisDepartment);
|
||||
if (Func.isNotEmpty(hisDepartmentList)){
|
||||
//已经选中的优秀科室
|
||||
String excellentDeptIds = hisHospitalInfo.getExcellentDeptIds();
|
||||
if (Func.isNotEmpty(excellentDeptIds)){
|
||||
String[] deptIds= Func.toStrArray(",", excellentDeptIds);
|
||||
if (Func.isNotEmpty(deptIds)){
|
||||
for (String deptId : deptIds) {
|
||||
for (HisDepartment department : hisDepartmentList) {
|
||||
if (deptId.equals(department.getDeptId())) {
|
||||
department.setFlag(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//设置选中标签
|
||||
mmap.put("hisDepartmentList", hisDepartmentList);
|
||||
}
|
||||
}
|
||||
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存医疗机构
|
||||
*/
|
||||
@RequiresPermissions("his:hospital:edit")
|
||||
@Log(title = "医疗机构", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisHospitalInfo hisHospitalInfo)
|
||||
{
|
||||
return toAjax(hisHospitalInfoService.updateHisHospitalInfo(hisHospitalInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除医疗机构
|
||||
*/
|
||||
@RequiresPermissions("his:hospital:remove")
|
||||
@Log(title = "医疗机构", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisHospitalInfoService.deleteHisHospitalInfoByIds(ids));
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private ServerConfig serverConfig;
|
||||
|
||||
/**
|
||||
* 机构图标
|
||||
*/
|
||||
@Log(title = "上传机构图标", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/update/logo")
|
||||
@ResponseBody
|
||||
public AjaxResult updateLogo(@RequestParam("logoFile") MultipartFile file)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!file.isEmpty())
|
||||
{
|
||||
String fileName = FileUploadUtils.upload(Global.getUploadPath(), file);
|
||||
String url = serverConfig.getUrl() + fileName;
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
ajax.put("data", fileName);
|
||||
ajax.put("url", url);
|
||||
return ajax;
|
||||
}
|
||||
return error();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return error(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.web.controller.his;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisInpatient;
|
||||
import com.ruoyi.his.service.IHisInpatientService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 住院病人Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-08
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/inpatient")
|
||||
public class HisInpatientController extends BaseController
|
||||
{
|
||||
private String prefix = "his/inpatient";
|
||||
|
||||
@Autowired
|
||||
private IHisInpatientService hisInpatientService;
|
||||
|
||||
@RequiresPermissions("his:inpatient:view")
|
||||
@GetMapping()
|
||||
public String inpatient()
|
||||
{
|
||||
return prefix + "/inpatient";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询住院病人列表
|
||||
*/
|
||||
@RequiresPermissions("his:inpatient:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisInpatient hisInpatient)
|
||||
{
|
||||
startPage();
|
||||
List<HisInpatient> list = hisInpatientService.selectHisInpatientList(hisInpatient);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出住院病人列表
|
||||
*/
|
||||
@RequiresPermissions("his:inpatient:export")
|
||||
@Log(title = "住院病人", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisInpatient hisInpatient)
|
||||
{
|
||||
List<HisInpatient> list = hisInpatientService.selectHisInpatientList(hisInpatient);
|
||||
ExcelUtil<HisInpatient> util = new ExcelUtil<HisInpatient>(HisInpatient.class);
|
||||
return util.exportExcel(list, "inpatient");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增住院病人
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存住院病人
|
||||
*/
|
||||
@RequiresPermissions("his:inpatient:add")
|
||||
@Log(title = "住院病人", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisInpatient hisInpatient)
|
||||
{
|
||||
return toAjax(hisInpatientService.insertHisInpatient(hisInpatient));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改住院病人
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisInpatient hisInpatient = hisInpatientService.selectHisInpatientById(id);
|
||||
mmap.put("hisInpatient", hisInpatient);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存住院病人
|
||||
*/
|
||||
@RequiresPermissions("his:inpatient:edit")
|
||||
@Log(title = "住院病人", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisInpatient hisInpatient)
|
||||
{
|
||||
return toAjax(hisInpatientService.updateHisInpatient(hisInpatient));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除住院病人
|
||||
*/
|
||||
@RequiresPermissions("his:inpatient:remove")
|
||||
@Log(title = "住院病人", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisInpatientService.deleteHisInpatientByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisInpatientPrepayment;
|
||||
import com.ruoyi.his.service.IHisInpatientPrepaymentService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 住院预交Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/inpatientPrepayment")
|
||||
public class HisInpatientPrepaymentController extends BaseController
|
||||
{
|
||||
private String prefix = "his/inpatientPrepayment";
|
||||
|
||||
@Autowired
|
||||
private IHisInpatientPrepaymentService hisInpatientPrepaymentService;
|
||||
|
||||
@RequiresPermissions("his:inpatientPrepayment:view")
|
||||
@GetMapping()
|
||||
public String inpatientPrepayment()
|
||||
{
|
||||
return prefix + "/inpatientPrepayment";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询住院预交列表
|
||||
*/
|
||||
@RequiresPermissions("his:inpatientPrepayment:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisInpatientPrepayment hisInpatientPrepayment)
|
||||
{
|
||||
startPage();
|
||||
List<HisInpatientPrepayment> list = hisInpatientPrepaymentService.selectHisInpatientPrepaymentList(hisInpatientPrepayment);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出住院预交列表
|
||||
*/
|
||||
@RequiresPermissions("his:inpatientPrepayment:export")
|
||||
@Log(title = "住院预交", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisInpatientPrepayment hisInpatientPrepayment)
|
||||
{
|
||||
List<HisInpatientPrepayment> list = hisInpatientPrepaymentService.selectHisInpatientPrepaymentList(hisInpatientPrepayment);
|
||||
ExcelUtil<HisInpatientPrepayment> util = new ExcelUtil<HisInpatientPrepayment>(HisInpatientPrepayment.class);
|
||||
return util.exportExcel(list, "inpatientPrepayment");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增住院预交
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存住院预交
|
||||
*/
|
||||
@RequiresPermissions("his:inpatientPrepayment:add")
|
||||
@Log(title = "住院预交", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisInpatientPrepayment hisInpatientPrepayment)
|
||||
{
|
||||
return toAjax(hisInpatientPrepaymentService.insertHisInpatientPrepayment(hisInpatientPrepayment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改住院预交
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisInpatientPrepayment hisInpatientPrepayment = hisInpatientPrepaymentService.selectHisInpatientPrepaymentById(id);
|
||||
mmap.put("hisInpatientPrepayment", hisInpatientPrepayment);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存住院预交
|
||||
*/
|
||||
@RequiresPermissions("his:inpatientPrepayment:edit")
|
||||
@Log(title = "住院预交", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisInpatientPrepayment hisInpatientPrepayment)
|
||||
{
|
||||
return toAjax(hisInpatientPrepaymentService.updateHisInpatientPrepayment(hisInpatientPrepayment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除住院预交
|
||||
*/
|
||||
@RequiresPermissions("his:inpatientPrepayment:remove")
|
||||
@Log(title = "住院预交", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisInpatientPrepaymentService.deleteHisInpatientPrepaymentByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisInspectionApply;
|
||||
import com.ruoyi.his.service.IHisInspectionApplyService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 申请单Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-10
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/inspectionApply")
|
||||
public class HisInspectionApplyController extends BaseController
|
||||
{
|
||||
private String prefix = "his/inspectionApply";
|
||||
|
||||
@Autowired
|
||||
private IHisInspectionApplyService hisInspectionApplyService;
|
||||
|
||||
@RequiresPermissions("his:inspectionApply:view")
|
||||
@GetMapping()
|
||||
public String inspectionApply()
|
||||
{
|
||||
return prefix + "/inspectionApply";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询申请单列表
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionApply:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisInspectionApply hisInspectionApply)
|
||||
{
|
||||
startPage();
|
||||
List<HisInspectionApply> list = hisInspectionApplyService.selectHisInspectionApplyList(hisInspectionApply);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出申请单列表
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionApply:export")
|
||||
@Log(title = "申请单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisInspectionApply hisInspectionApply)
|
||||
{
|
||||
List<HisInspectionApply> list = hisInspectionApplyService.selectHisInspectionApplyList(hisInspectionApply);
|
||||
ExcelUtil<HisInspectionApply> util = new ExcelUtil<HisInspectionApply>(HisInspectionApply.class);
|
||||
return util.exportExcel(list, "inspectionApply");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增申请单
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存申请单
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionApply:add")
|
||||
@Log(title = "申请单", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisInspectionApply hisInspectionApply)
|
||||
{
|
||||
return toAjax(hisInspectionApplyService.insertHisInspectionApply(hisInspectionApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改申请单
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisInspectionApply hisInspectionApply = hisInspectionApplyService.selectHisInspectionApplyById(id);
|
||||
mmap.put("hisInspectionApply", hisInspectionApply);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存申请单
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionApply:edit")
|
||||
@Log(title = "申请单", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisInspectionApply hisInspectionApply)
|
||||
{
|
||||
return toAjax(hisInspectionApplyService.updateHisInspectionApply(hisInspectionApply));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除申请单
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionApply:remove")
|
||||
@Log(title = "申请单", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisInspectionApplyService.deleteHisInspectionApplyByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,149 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.his.domain.HisInspectionReportItem;
|
||||
import com.ruoyi.his.domain.HisOutpatientExpensesBill;
|
||||
import com.ruoyi.his.domain.HisOutpatientExpensesBillDetail;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisInspectionReport;
|
||||
import com.ruoyi.his.service.IHisInspectionReportService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 检查检验Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-10
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/inspectionReport")
|
||||
public class HisInspectionReportController extends BaseController
|
||||
{
|
||||
private String prefix = "his/inspectionReport";
|
||||
|
||||
@Autowired
|
||||
private IHisInspectionReportService hisInspectionReportService;
|
||||
|
||||
@RequiresPermissions("his:inspectionReport:view")
|
||||
@GetMapping()
|
||||
public String inspectionReport()
|
||||
{
|
||||
return prefix + "/inspectionReport";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检查检验列表
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionReport:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisInspectionReport hisInspectionReport)
|
||||
{
|
||||
startPage();
|
||||
List<HisInspectionReport> list = hisInspectionReportService.selectHisInspectionReportList(hisInspectionReport);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检查检验列表
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionReport:export")
|
||||
@Log(title = "检查检验", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisInspectionReport hisInspectionReport)
|
||||
{
|
||||
List<HisInspectionReport> list = hisInspectionReportService.selectHisInspectionReportList(hisInspectionReport);
|
||||
ExcelUtil<HisInspectionReport> util = new ExcelUtil<HisInspectionReport>(HisInspectionReport.class);
|
||||
return util.exportExcel(list, "inspectionReport");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查检验
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存检查检验
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionReport:add")
|
||||
@Log(title = "检查检验", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisInspectionReport hisInspectionReport)
|
||||
{
|
||||
return toAjax(hisInspectionReportService.insertHisInspectionReport(hisInspectionReport));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查检验
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisInspectionReport hisInspectionReport = hisInspectionReportService.selectHisInspectionReportById(id);
|
||||
mmap.put("hisInspectionReport", hisInspectionReport);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存检查检验
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionReport:edit")
|
||||
@Log(title = "检查检验", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisInspectionReport hisInspectionReport)
|
||||
{
|
||||
return toAjax(hisInspectionReportService.updateHisInspectionReport(hisInspectionReport));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检查检验
|
||||
*/
|
||||
@RequiresPermissions("his:inspectionReport:remove")
|
||||
@Log(title = "检查检验", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisInspectionReportService.deleteHisInspectionReportByIds(ids));
|
||||
}
|
||||
|
||||
@RequiresPermissions("his:inspectionReport:detail")
|
||||
@GetMapping("/detail")
|
||||
public String expensesBillDetail(@RequestParam(value = "id") Long id, ModelMap mmap)
|
||||
{
|
||||
if (StringUtils.isNotNull(id))
|
||||
{
|
||||
HisInspectionReport report = hisInspectionReportService.selectHisInspectionReportById(id);
|
||||
mmap.put("report", report);
|
||||
}
|
||||
return prefix + "/inspectionReportItem";
|
||||
}
|
||||
|
||||
@RequiresPermissions("his:inspectionReport:list")
|
||||
@PostMapping("/detail/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisInspectionReportItem item)
|
||||
{
|
||||
startPage();
|
||||
List<HisInspectionReportItem> list = hisInspectionReportService.selectHisInspectionReportItemList(item);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisMerchantScrcu;
|
||||
import com.ruoyi.his.service.IHisMerchantScrcuService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 农信商户Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/merchantScrcu")
|
||||
public class HisMerchantScrcuController extends BaseController
|
||||
{
|
||||
private String prefix = "his/merchantScrcu";
|
||||
|
||||
@Autowired
|
||||
private IHisMerchantScrcuService hisMerchantScrcuService;
|
||||
|
||||
@RequiresPermissions("his:merchantScrcu:view")
|
||||
@GetMapping()
|
||||
public String merchantScrcu()
|
||||
{
|
||||
return prefix + "/merchantScrcu";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询农信商户列表
|
||||
*/
|
||||
@RequiresPermissions("his:merchantScrcu:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisMerchantScrcu hisMerchantScrcu)
|
||||
{
|
||||
startPage();
|
||||
List<HisMerchantScrcu> list = hisMerchantScrcuService.selectHisMerchantScrcuList(hisMerchantScrcu);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出农信商户列表
|
||||
*/
|
||||
@RequiresPermissions("his:merchantScrcu:export")
|
||||
@Log(title = "农信商户", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisMerchantScrcu hisMerchantScrcu)
|
||||
{
|
||||
List<HisMerchantScrcu> list = hisMerchantScrcuService.selectHisMerchantScrcuList(hisMerchantScrcu);
|
||||
ExcelUtil<HisMerchantScrcu> util = new ExcelUtil<HisMerchantScrcu>(HisMerchantScrcu.class);
|
||||
return util.exportExcel(list, "merchantScrcu");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增农信商户
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存农信商户
|
||||
*/
|
||||
@RequiresPermissions("his:merchantScrcu:add")
|
||||
@Log(title = "农信商户", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisMerchantScrcu hisMerchantScrcu)
|
||||
{
|
||||
return toAjax(hisMerchantScrcuService.insertHisMerchantScrcu(hisMerchantScrcu));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改农信商户
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisMerchantScrcu hisMerchantScrcu = hisMerchantScrcuService.selectHisMerchantScrcuById(id);
|
||||
mmap.put("hisMerchantScrcu", hisMerchantScrcu);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存农信商户
|
||||
*/
|
||||
@RequiresPermissions("his:merchantScrcu:edit")
|
||||
@Log(title = "农信商户", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisMerchantScrcu hisMerchantScrcu)
|
||||
{
|
||||
return toAjax(hisMerchantScrcuService.updateHisMerchantScrcu(hisMerchantScrcu));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除农信商户
|
||||
*/
|
||||
@RequiresPermissions("his:merchantScrcu:remove")
|
||||
@Log(title = "农信商户", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisMerchantScrcuService.deleteHisMerchantScrcuByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisMerchantWechat;
|
||||
import com.ruoyi.his.service.IHisMerchantWechatService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 特约商户Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/merchantWechat")
|
||||
public class HisMerchantWechatController extends BaseController
|
||||
{
|
||||
private String prefix = "his/merchantWechat";
|
||||
|
||||
@Autowired
|
||||
private IHisMerchantWechatService hisMerchantWechatService;
|
||||
|
||||
@RequiresPermissions("his:merchantWechat:view")
|
||||
@GetMapping()
|
||||
public String merchantWechat()
|
||||
{
|
||||
return prefix + "/merchantWechat";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询特约商户列表
|
||||
*/
|
||||
@RequiresPermissions("his:merchantWechat:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisMerchantWechat hisMerchantWechat)
|
||||
{
|
||||
startPage();
|
||||
List<HisMerchantWechat> list = hisMerchantWechatService.selectHisMerchantWechatList(hisMerchantWechat);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出特约商户列表
|
||||
*/
|
||||
@RequiresPermissions("his:merchantWechat:export")
|
||||
@Log(title = "特约商户", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisMerchantWechat hisMerchantWechat)
|
||||
{
|
||||
List<HisMerchantWechat> list = hisMerchantWechatService.selectHisMerchantWechatList(hisMerchantWechat);
|
||||
ExcelUtil<HisMerchantWechat> util = new ExcelUtil<HisMerchantWechat>(HisMerchantWechat.class);
|
||||
return util.exportExcel(list, "merchantWechat");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增特约商户
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存特约商户
|
||||
*/
|
||||
@RequiresPermissions("his:merchantWechat:add")
|
||||
@Log(title = "特约商户", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisMerchantWechat hisMerchantWechat)
|
||||
{
|
||||
return toAjax(hisMerchantWechatService.insertHisMerchantWechat(hisMerchantWechat));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改特约商户
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisMerchantWechat hisMerchantWechat = hisMerchantWechatService.selectHisMerchantWechatById(id);
|
||||
mmap.put("hisMerchantWechat", hisMerchantWechat);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存特约商户
|
||||
*/
|
||||
@RequiresPermissions("his:merchantWechat:edit")
|
||||
@Log(title = "特约商户", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisMerchantWechat hisMerchantWechat)
|
||||
{
|
||||
return toAjax(hisMerchantWechatService.updateHisMerchantWechat(hisMerchantWechat));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除特约商户
|
||||
*/
|
||||
@RequiresPermissions("his:merchantWechat:remove")
|
||||
@Log(title = "特约商户", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisMerchantWechatService.deleteHisMerchantWechatByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.web.controller.his;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisOutpatient;
|
||||
import com.ruoyi.his.service.IHisOutpatientService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 门诊病人Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/outpatient")
|
||||
public class HisOutpatientController extends BaseController
|
||||
{
|
||||
private String prefix = "his/outpatient";
|
||||
|
||||
@Autowired
|
||||
private IHisOutpatientService hisOutpatientService;
|
||||
|
||||
@RequiresPermissions("his:outpatient:view")
|
||||
@GetMapping()
|
||||
public String outpatient()
|
||||
{
|
||||
return prefix + "/outpatient";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询门诊病人列表
|
||||
*/
|
||||
@RequiresPermissions("his:outpatient:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisOutpatient hisOutpatient)
|
||||
{
|
||||
startPage();
|
||||
List<HisOutpatient> list = hisOutpatientService.selectHisOutpatientList(hisOutpatient);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出门诊病人列表
|
||||
*/
|
||||
@RequiresPermissions("his:outpatient:export")
|
||||
@Log(title = "门诊病人", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisOutpatient hisOutpatient)
|
||||
{
|
||||
List<HisOutpatient> list = hisOutpatientService.selectHisOutpatientList(hisOutpatient);
|
||||
ExcelUtil<HisOutpatient> util = new ExcelUtil<HisOutpatient>(HisOutpatient.class);
|
||||
return util.exportExcel(list, "outpatient");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增门诊病人
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存门诊病人
|
||||
*/
|
||||
@RequiresPermissions("his:outpatient:add")
|
||||
@Log(title = "门诊病人", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisOutpatient hisOutpatient)
|
||||
{
|
||||
return toAjax(hisOutpatientService.insertHisOutpatient(hisOutpatient));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改门诊病人
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisOutpatient hisOutpatient = hisOutpatientService.selectHisOutpatientById(id);
|
||||
mmap.put("hisOutpatient", hisOutpatient);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存门诊病人
|
||||
*/
|
||||
@RequiresPermissions("his:outpatient:edit")
|
||||
@Log(title = "门诊病人", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisOutpatient hisOutpatient)
|
||||
{
|
||||
return toAjax(hisOutpatientService.updateHisOutpatient(hisOutpatient));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除门诊病人
|
||||
*/
|
||||
@RequiresPermissions("his:outpatient:remove")
|
||||
@Log(title = "门诊病人", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisOutpatientService.deleteHisOutpatientByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.his.domain.HisOutpatientExpensesBillDetail;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisOutpatientExpensesBill;
|
||||
import com.ruoyi.his.service.IHisOutpatientExpensesBillService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 待缴费单Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-09
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/expensesBill")
|
||||
public class HisOutpatientExpensesBillController extends BaseController
|
||||
{
|
||||
private String prefix = "his/expensesBill";
|
||||
|
||||
@Autowired
|
||||
private IHisOutpatientExpensesBillService hisOutpatientExpensesBillService;
|
||||
|
||||
@RequiresPermissions("his:expensesBill:view")
|
||||
@GetMapping()
|
||||
public String expensesBill()
|
||||
{
|
||||
return prefix + "/expensesBill";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询待缴费单列表
|
||||
*/
|
||||
@RequiresPermissions("his:expensesBill:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisOutpatientExpensesBill hisOutpatientExpensesBill)
|
||||
{
|
||||
startPage();
|
||||
List<HisOutpatientExpensesBill> list = hisOutpatientExpensesBillService.selectHisOutpatientExpensesBillList(hisOutpatientExpensesBill);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出待缴费单列表
|
||||
*/
|
||||
@RequiresPermissions("his:expensesBill:export")
|
||||
@Log(title = "待缴费单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisOutpatientExpensesBill hisOutpatientExpensesBill)
|
||||
{
|
||||
List<HisOutpatientExpensesBill> list = hisOutpatientExpensesBillService.selectHisOutpatientExpensesBillList(hisOutpatientExpensesBill);
|
||||
ExcelUtil<HisOutpatientExpensesBill> util = new ExcelUtil<HisOutpatientExpensesBill>(HisOutpatientExpensesBill.class);
|
||||
return util.exportExcel(list, "expensesBill");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增待缴费单
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存待缴费单
|
||||
*/
|
||||
@RequiresPermissions("his:expensesBill:add")
|
||||
@Log(title = "待缴费单", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisOutpatientExpensesBill hisOutpatientExpensesBill)
|
||||
{
|
||||
return toAjax(hisOutpatientExpensesBillService.insertHisOutpatientExpensesBill(hisOutpatientExpensesBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改待缴费单
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisOutpatientExpensesBill hisOutpatientExpensesBill = hisOutpatientExpensesBillService.selectHisOutpatientExpensesBillById(id);
|
||||
mmap.put("hisOutpatientExpensesBill", hisOutpatientExpensesBill);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存待缴费单
|
||||
*/
|
||||
@RequiresPermissions("his:expensesBill:edit")
|
||||
@Log(title = "待缴费单", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisOutpatientExpensesBill hisOutpatientExpensesBill)
|
||||
{
|
||||
return toAjax(hisOutpatientExpensesBillService.updateHisOutpatientExpensesBill(hisOutpatientExpensesBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除待缴费单
|
||||
*/
|
||||
@RequiresPermissions("his:expensesBill:remove")
|
||||
@Log(title = "待缴费单", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisOutpatientExpensesBillService.deleteHisOutpatientExpensesBillByIds(ids));
|
||||
}
|
||||
|
||||
@RequiresPermissions("his:expensesBill:detail")
|
||||
@GetMapping("/detail")
|
||||
public String expensesBillDetail(@RequestParam(value = "billId") Long billId, ModelMap mmap)
|
||||
{
|
||||
if (StringUtils.isNotNull(billId))
|
||||
{
|
||||
HisOutpatientExpensesBill bill = hisOutpatientExpensesBillService.selectHisOutpatientExpensesBillById(billId);
|
||||
mmap.put("bill", bill);
|
||||
}
|
||||
return prefix + "/expensesBillDetail";
|
||||
}
|
||||
|
||||
@RequiresPermissions("his:expensesBill:list")
|
||||
@PostMapping("/detail/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisOutpatientExpensesBillDetail detail)
|
||||
{
|
||||
startPage();
|
||||
List<HisOutpatientExpensesBillDetail> list = hisOutpatientExpensesBillService.selectHisOutpatientExpensesBillDetailList(detail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisOutpatientPayment;
|
||||
import com.ruoyi.his.service.IHisOutpatientPaymentService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 门诊预交Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/outpatientPayment")
|
||||
public class HisOutpatientPaymentController extends BaseController
|
||||
{
|
||||
private String prefix = "his/outpatientPayment";
|
||||
|
||||
@Autowired
|
||||
private IHisOutpatientPaymentService hisOutpatientPaymentService;
|
||||
|
||||
@RequiresPermissions("his:outpatientPayment:view")
|
||||
@GetMapping()
|
||||
public String outpatientPayment()
|
||||
{
|
||||
return prefix + "/outpatientPayment";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询门诊预交列表
|
||||
*/
|
||||
@RequiresPermissions("his:outpatientPayment:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisOutpatientPayment hisOutpatientPayment)
|
||||
{
|
||||
startPage();
|
||||
List<HisOutpatientPayment> list = hisOutpatientPaymentService.selectHisOutpatientPaymentList(hisOutpatientPayment);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出门诊预交列表
|
||||
*/
|
||||
@RequiresPermissions("his:outpatientPayment:export")
|
||||
@Log(title = "门诊预交", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisOutpatientPayment hisOutpatientPayment)
|
||||
{
|
||||
List<HisOutpatientPayment> list = hisOutpatientPaymentService.selectHisOutpatientPaymentList(hisOutpatientPayment);
|
||||
ExcelUtil<HisOutpatientPayment> util = new ExcelUtil<HisOutpatientPayment>(HisOutpatientPayment.class);
|
||||
return util.exportExcel(list, "outpatientPayment");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增门诊预交
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存门诊预交
|
||||
*/
|
||||
@RequiresPermissions("his:outpatientPayment:add")
|
||||
@Log(title = "门诊预交", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisOutpatientPayment hisOutpatientPayment)
|
||||
{
|
||||
return toAjax(hisOutpatientPaymentService.insertHisOutpatientPayment(hisOutpatientPayment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改门诊预交
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisOutpatientPayment hisOutpatientPayment = hisOutpatientPaymentService.selectHisOutpatientPaymentById(id);
|
||||
mmap.put("hisOutpatientPayment", hisOutpatientPayment);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存门诊预交
|
||||
*/
|
||||
@RequiresPermissions("his:outpatientPayment:edit")
|
||||
@Log(title = "门诊预交", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisOutpatientPayment hisOutpatientPayment)
|
||||
{
|
||||
return toAjax(hisOutpatientPaymentService.updateHisOutpatientPayment(hisOutpatientPayment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除门诊预交
|
||||
*/
|
||||
@RequiresPermissions("his:outpatientPayment:remove")
|
||||
@Log(title = "门诊预交", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisOutpatientPaymentService.deleteHisOutpatientPaymentByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,152 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.his.domain.HisOutpatientExpensesBill;
|
||||
import com.ruoyi.his.domain.HisOutpatientExpensesBillDetail;
|
||||
import com.ruoyi.his.domain.HisPatientExpensesDetail;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisPatientExpenses;
|
||||
import com.ruoyi.his.service.IHisPatientExpensesService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 费用记录Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-09
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/patientExpenses")
|
||||
public class HisPatientExpensesController extends BaseController
|
||||
{
|
||||
private String prefix = "his/patientExpenses";
|
||||
|
||||
@Autowired
|
||||
private IHisPatientExpensesService hisPatientExpensesService;
|
||||
|
||||
@RequiresPermissions("his:patientExpenses:view")
|
||||
@GetMapping()
|
||||
public String patientExpenses()
|
||||
{
|
||||
return prefix + "/patientExpenses";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用记录列表
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpenses:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisPatientExpenses hisPatientExpenses)
|
||||
{
|
||||
startPage();
|
||||
List<HisPatientExpenses> list = hisPatientExpensesService.selectHisPatientExpensesList(hisPatientExpenses);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用记录列表
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpenses:export")
|
||||
@Log(title = "费用记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisPatientExpenses hisPatientExpenses)
|
||||
{
|
||||
List<HisPatientExpenses> list = hisPatientExpensesService.selectHisPatientExpensesList(hisPatientExpenses);
|
||||
ExcelUtil<HisPatientExpenses> util = new ExcelUtil<HisPatientExpenses>(HisPatientExpenses.class);
|
||||
return util.exportExcel(list, "patientExpenses");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增费用记录
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存费用记录
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpenses:add")
|
||||
@Log(title = "费用记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisPatientExpenses hisPatientExpenses)
|
||||
{
|
||||
return toAjax(hisPatientExpensesService.insertHisPatientExpenses(hisPatientExpenses));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改费用记录
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisPatientExpenses hisPatientExpenses = hisPatientExpensesService.selectHisPatientExpensesById(id);
|
||||
mmap.put("hisPatientExpenses", hisPatientExpenses);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存费用记录
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpenses:edit")
|
||||
@Log(title = "费用记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisPatientExpenses hisPatientExpenses)
|
||||
{
|
||||
return toAjax(hisPatientExpensesService.updateHisPatientExpenses(hisPatientExpenses));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除费用记录
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpenses:remove")
|
||||
@Log(title = "费用记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisPatientExpensesService.deleteHisPatientExpensesByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 费用记录详情
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpenses:detail")
|
||||
@GetMapping("/detail")
|
||||
public String patientExpensesDetail(@RequestParam(value = "expensesId") Long expensesId, ModelMap mmap)
|
||||
{
|
||||
if (StringUtils.isNotNull(expensesId))
|
||||
{
|
||||
HisPatientExpenses patientExpenses = hisPatientExpensesService.selectHisPatientExpensesById(expensesId);
|
||||
mmap.put("patientExpenses", patientExpenses);
|
||||
}
|
||||
return prefix + "/patientExpensesDetail";
|
||||
}
|
||||
|
||||
@RequiresPermissions("his:patientExpenses:list")
|
||||
@PostMapping("/detail/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisPatientExpensesDetail detail)
|
||||
{
|
||||
startPage();
|
||||
List<HisPatientExpensesDetail> list = hisPatientExpensesService.selectHisPatientExpensesDetailList(detail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.his.domain.HisPatientExpensesDetail;
|
||||
import com.ruoyi.his.service.IHisPatientExpensesDetailService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 费用详情Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-09
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/patientExpensesDetail")
|
||||
public class HisPatientExpensesDetailController extends BaseController
|
||||
{
|
||||
private String prefix = "his/patientExpensesDetail";
|
||||
|
||||
@Autowired
|
||||
private IHisPatientExpensesDetailService hisPatientExpensesDetailService;
|
||||
|
||||
@RequiresPermissions("his:patientExpensesDetail:view")
|
||||
@GetMapping()
|
||||
public String patientExpensesDetail()
|
||||
{
|
||||
return prefix + "/patientExpensesDetail";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询费用详情列表
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpensesDetail:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisPatientExpensesDetail hisPatientExpensesDetail)
|
||||
{
|
||||
startPage();
|
||||
List<HisPatientExpensesDetail> list = hisPatientExpensesDetailService.selectHisPatientExpensesDetailList(hisPatientExpensesDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出费用详情列表
|
||||
*/
|
||||
@RequiresPermissions("his:patientExpensesDetail:export")
|
||||
@Log(title = "费用详情", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisPatientExpensesDetail hisPatientExpensesDetail)
|
||||
{
|
||||
List<HisPatientExpensesDetail> list = hisPatientExpensesDetailService.selectHisPatientExpensesDetailList(hisPatientExpensesDetail);
|
||||
ExcelUtil<HisPatientExpensesDetail> util = new ExcelUtil<HisPatientExpensesDetail>(HisPatientExpensesDetail.class);
|
||||
return util.exportExcel(list, "patientExpensesDetail");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,140 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.his.domain.HisRegistrationTemplate;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisPayAccount;
|
||||
import com.ruoyi.his.service.IHisPayAccountService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 支付账户Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/payAccount")
|
||||
public class HisPayAccountController extends BaseController
|
||||
{
|
||||
private String prefix = "his/payAccount";
|
||||
|
||||
@Autowired
|
||||
private IHisPayAccountService hisPayAccountService;
|
||||
|
||||
@RequiresPermissions("his:payAccount:view")
|
||||
@GetMapping()
|
||||
public String payAccount()
|
||||
{
|
||||
return prefix + "/payAccount";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询支付账户列表
|
||||
*/
|
||||
@RequiresPermissions("his:payAccount:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisPayAccount hisPayAccount)
|
||||
{
|
||||
startPage();
|
||||
List<HisPayAccount> list = hisPayAccountService.selectHisPayAccountList(hisPayAccount);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出支付账户列表
|
||||
*/
|
||||
@RequiresPermissions("his:payAccount:export")
|
||||
@Log(title = "支付账户", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisPayAccount hisPayAccount)
|
||||
{
|
||||
List<HisPayAccount> list = hisPayAccountService.selectHisPayAccountList(hisPayAccount);
|
||||
ExcelUtil<HisPayAccount> util = new ExcelUtil<HisPayAccount>(HisPayAccount.class);
|
||||
return util.exportExcel(list, "payAccount");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支付账户
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存支付账户
|
||||
*/
|
||||
@RequiresPermissions("his:payAccount:add")
|
||||
@Log(title = "支付账户", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisPayAccount hisPayAccount)
|
||||
{
|
||||
return toAjax(hisPayAccountService.insertHisPayAccount(hisPayAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支付账户
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisPayAccount hisPayAccount = hisPayAccountService.selectHisPayAccountById(id);
|
||||
mmap.put("hisPayAccount", hisPayAccount);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存支付账户
|
||||
*/
|
||||
@RequiresPermissions("his:payAccount:edit")
|
||||
@Log(title = "支付账户", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisPayAccount hisPayAccount)
|
||||
{
|
||||
return toAjax(hisPayAccountService.updateHisPayAccount(hisPayAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支付账户
|
||||
*/
|
||||
@RequiresPermissions("his:payAccount:remove")
|
||||
@Log(title = "支付账户", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisPayAccountService.deleteHisPayAccountByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户状态修改
|
||||
*/
|
||||
@Log(title = "支付账户管理", businessType = BusinessType.UPDATE)
|
||||
@RequiresPermissions("his:payAccount:edit")
|
||||
@PostMapping("/changeStatus")
|
||||
@ResponseBody
|
||||
public AjaxResult changeStatus(HisPayAccount hisPayAccount)
|
||||
{
|
||||
return toAjax(hisPayAccountService.changeStatus(hisPayAccount));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisRegistrationRecord;
|
||||
import com.ruoyi.his.service.IHisRegistrationRecordService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 挂号记录Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-06-28
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/registration")
|
||||
public class HisRegistrationRecordController extends BaseController
|
||||
{
|
||||
private String prefix = "his/registration";
|
||||
|
||||
@Autowired
|
||||
private IHisRegistrationRecordService hisRegistrationRecordService;
|
||||
|
||||
@RequiresPermissions("his:registration:view")
|
||||
@GetMapping()
|
||||
public String registration()
|
||||
{
|
||||
return prefix + "/registration";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询挂号记录列表
|
||||
*/
|
||||
@RequiresPermissions("his:registration:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisRegistrationRecord hisRegistrationRecord)
|
||||
{
|
||||
startPage();
|
||||
List<HisRegistrationRecord> list = hisRegistrationRecordService.selectHisRegistrationRecordList(hisRegistrationRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出挂号记录列表
|
||||
*/
|
||||
@RequiresPermissions("his:registration:export")
|
||||
@Log(title = "挂号记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisRegistrationRecord hisRegistrationRecord)
|
||||
{
|
||||
List<HisRegistrationRecord> list = hisRegistrationRecordService.selectHisRegistrationRecordList(hisRegistrationRecord);
|
||||
ExcelUtil<HisRegistrationRecord> util = new ExcelUtil<HisRegistrationRecord>(HisRegistrationRecord.class);
|
||||
return util.exportExcel(list, "registration");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增挂号记录
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存挂号记录
|
||||
*/
|
||||
@RequiresPermissions("his:registration:add")
|
||||
@Log(title = "挂号记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisRegistrationRecord hisRegistrationRecord)
|
||||
{
|
||||
return toAjax(hisRegistrationRecordService.insertHisRegistrationRecord(hisRegistrationRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改挂号记录
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisRegistrationRecord hisRegistrationRecord = hisRegistrationRecordService.selectHisRegistrationRecordById(id);
|
||||
mmap.put("hisRegistrationRecord", hisRegistrationRecord);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存挂号记录
|
||||
*/
|
||||
@RequiresPermissions("his:registration:edit")
|
||||
@Log(title = "挂号记录", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisRegistrationRecord hisRegistrationRecord)
|
||||
{
|
||||
return toAjax(hisRegistrationRecordService.updateHisRegistrationRecord(hisRegistrationRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除挂号记录
|
||||
*/
|
||||
@RequiresPermissions("his:registration:remove")
|
||||
@Log(title = "挂号记录", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisRegistrationRecordService.deleteHisRegistrationRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,138 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisRegistrationTemplate;
|
||||
import com.ruoyi.his.service.IHisRegistrationTemplateService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 挂号模板Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/registrationTemplate")
|
||||
public class HisRegistrationTemplateController extends BaseController
|
||||
{
|
||||
private String prefix = "his/registrationTemplate";
|
||||
|
||||
@Autowired
|
||||
private IHisRegistrationTemplateService hisRegistrationTemplateService;
|
||||
|
||||
@RequiresPermissions("his:registrationTemplate:view")
|
||||
@GetMapping()
|
||||
public String registrationTemplate()
|
||||
{
|
||||
return prefix + "/registrationTemplate";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询挂号模板列表
|
||||
*/
|
||||
@RequiresPermissions("his:registrationTemplate:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisRegistrationTemplate hisRegistrationTemplate)
|
||||
{
|
||||
startPage();
|
||||
List<HisRegistrationTemplate> list = hisRegistrationTemplateService.selectHisRegistrationTemplateList(hisRegistrationTemplate);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出挂号模板列表
|
||||
*/
|
||||
@RequiresPermissions("his:registrationTemplate:export")
|
||||
@Log(title = "挂号模板", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisRegistrationTemplate hisRegistrationTemplate)
|
||||
{
|
||||
List<HisRegistrationTemplate> list = hisRegistrationTemplateService.selectHisRegistrationTemplateList(hisRegistrationTemplate);
|
||||
ExcelUtil<HisRegistrationTemplate> util = new ExcelUtil<HisRegistrationTemplate>(HisRegistrationTemplate.class);
|
||||
return util.exportExcel(list, "registrationTemplate");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增挂号模板
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存挂号模板
|
||||
*/
|
||||
@RequiresPermissions("his:registrationTemplate:add")
|
||||
@Log(title = "挂号模板", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisRegistrationTemplate hisRegistrationTemplate)
|
||||
{
|
||||
return toAjax(hisRegistrationTemplateService.insertHisRegistrationTemplate(hisRegistrationTemplate));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改挂号模板
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisRegistrationTemplate hisRegistrationTemplate = hisRegistrationTemplateService.selectHisRegistrationTemplateById(id);
|
||||
mmap.put("hisRegistrationTemplate", hisRegistrationTemplate);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存挂号模板
|
||||
*/
|
||||
@RequiresPermissions("his:registrationTemplate:edit")
|
||||
@Log(title = "挂号模板", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisRegistrationTemplate hisRegistrationTemplate)
|
||||
{
|
||||
return toAjax(hisRegistrationTemplateService.updateHisRegistrationTemplate(hisRegistrationTemplate));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除挂号模板
|
||||
*/
|
||||
@RequiresPermissions("his:registrationTemplate:remove")
|
||||
@Log(title = "挂号模板", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisRegistrationTemplateService.deleteHisRegistrationTemplateByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户状态修改
|
||||
*/
|
||||
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
||||
@RequiresPermissions("his:registrationTemplate:edit")
|
||||
@PostMapping("/changeStatus")
|
||||
@ResponseBody
|
||||
public AjaxResult changeStatus(HisRegistrationTemplate hisRegistrationTemplate)
|
||||
{
|
||||
return toAjax(hisRegistrationTemplateService.changeStatus(hisRegistrationTemplate));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,126 @@
|
|||
package com.ruoyi.his.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.his.domain.HisWechatProvider;
|
||||
import com.ruoyi.his.service.IHisWechatProviderService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 微信服务商Controller
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/his/wechatProvider")
|
||||
public class HisWechatProviderController extends BaseController
|
||||
{
|
||||
private String prefix = "his/wechatProvider";
|
||||
|
||||
@Autowired
|
||||
private IHisWechatProviderService hisWechatProviderService;
|
||||
|
||||
@RequiresPermissions("his:wechatProvider:view")
|
||||
@GetMapping()
|
||||
public String wechatProvider()
|
||||
{
|
||||
return prefix + "/wechatProvider";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询微信服务商列表
|
||||
*/
|
||||
@RequiresPermissions("his:wechatProvider:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(HisWechatProvider hisWechatProvider)
|
||||
{
|
||||
startPage();
|
||||
List<HisWechatProvider> list = hisWechatProviderService.selectHisWechatProviderList(hisWechatProvider);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出微信服务商列表
|
||||
*/
|
||||
@RequiresPermissions("his:wechatProvider:export")
|
||||
@Log(title = "微信服务商", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(HisWechatProvider hisWechatProvider)
|
||||
{
|
||||
List<HisWechatProvider> list = hisWechatProviderService.selectHisWechatProviderList(hisWechatProvider);
|
||||
ExcelUtil<HisWechatProvider> util = new ExcelUtil<HisWechatProvider>(HisWechatProvider.class);
|
||||
return util.exportExcel(list, "wechatProvider");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增微信服务商
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存微信服务商
|
||||
*/
|
||||
@RequiresPermissions("his:wechatProvider:add")
|
||||
@Log(title = "微信服务商", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(HisWechatProvider hisWechatProvider)
|
||||
{
|
||||
return toAjax(hisWechatProviderService.insertHisWechatProvider(hisWechatProvider));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改微信服务商
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
HisWechatProvider hisWechatProvider = hisWechatProviderService.selectHisWechatProviderById(id);
|
||||
mmap.put("hisWechatProvider", hisWechatProvider);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存微信服务商
|
||||
*/
|
||||
@RequiresPermissions("his:wechatProvider:edit")
|
||||
@Log(title = "微信服务商", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(HisWechatProvider hisWechatProvider)
|
||||
{
|
||||
return toAjax(hisWechatProviderService.updateHisWechatProvider(hisWechatProvider));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除微信服务商
|
||||
*/
|
||||
@RequiresPermissions("his:wechatProvider:remove")
|
||||
@Log(title = "微信服务商", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(hisWechatProviderService.deleteHisWechatProviderByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,162 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 科室对象 his_department
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
public class HisDepartment extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 科室ID */
|
||||
@Excel(name = "科室ID")
|
||||
private String deptId;
|
||||
|
||||
/** 科室名称 */
|
||||
@Excel(name = "科室名称")
|
||||
private String deptName;
|
||||
|
||||
/** 机构ID */
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 科室简介 */
|
||||
@Excel(name = "科室简介")
|
||||
private String deptProfile;
|
||||
|
||||
/** 显示状态(0否 1是) */
|
||||
@Excel(name = "显示状态", readConverterExp = "0=否,1=是")
|
||||
private Integer isShow;
|
||||
|
||||
/** 序号 */
|
||||
@Excel(name = "序号")
|
||||
private Integer sortNo;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
private Integer deleted;
|
||||
|
||||
/** 优秀医生标识 默认不存在 */
|
||||
private boolean flag = false;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeptId(String deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
public void setOrgCode(String orgCode)
|
||||
{
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCode()
|
||||
{
|
||||
return orgCode;
|
||||
}
|
||||
public void setOrgName(String orgName)
|
||||
{
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgName()
|
||||
{
|
||||
return orgName;
|
||||
}
|
||||
public void setDeptProfile(String deptProfile)
|
||||
{
|
||||
this.deptProfile = deptProfile;
|
||||
}
|
||||
|
||||
public String getDeptProfile()
|
||||
{
|
||||
return deptProfile;
|
||||
}
|
||||
public void setIsShow(Integer isShow)
|
||||
{
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public Integer getIsShow()
|
||||
{
|
||||
return isShow;
|
||||
}
|
||||
public void setSortNo(Integer sortNo)
|
||||
{
|
||||
this.sortNo = sortNo;
|
||||
}
|
||||
|
||||
public Integer getSortNo()
|
||||
{
|
||||
return sortNo;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
|
||||
public boolean isFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(boolean flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("deptId", getDeptId())
|
||||
.append("deptName", getDeptName())
|
||||
.append("orgCode", getOrgCode())
|
||||
.append("orgName", getOrgName())
|
||||
.append("deptProfile", getDeptProfile())
|
||||
.append("isShow", getIsShow())
|
||||
.append("sortNo", getSortNo())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("deleted", getDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,351 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 医生对象 his_doctor
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
public class HisDoctor extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 用户ID */
|
||||
private Long memberId;
|
||||
|
||||
/** 医生ID */
|
||||
private String doctorId;
|
||||
|
||||
/** 医生名称 */
|
||||
@Excel(name = "医生名称")
|
||||
private String doctorName;
|
||||
|
||||
/** 机构ID */
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 科室ID */
|
||||
private String deptId;
|
||||
|
||||
/** 科室名称 */
|
||||
@Excel(name = "科室名称")
|
||||
private String deptName;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
private String mobilePhone;
|
||||
|
||||
/** 医生头像 */
|
||||
private String avatar;
|
||||
|
||||
/** 职称头衔 */
|
||||
@Excel(name = "职称头衔")
|
||||
private String jobTitle;
|
||||
|
||||
/** 工作年限 */
|
||||
@Excel(name = "工作年限")
|
||||
private Long workingYears;
|
||||
|
||||
/** 擅长领域 */
|
||||
@Excel(name = "擅长领域")
|
||||
private String expertiseAreas;
|
||||
|
||||
/** 医生简介 */
|
||||
@Excel(name = "医生简介")
|
||||
private String doctorProfile;
|
||||
|
||||
/** 粉丝量 */
|
||||
private Long fans;
|
||||
|
||||
/** 星级评分 */
|
||||
private BigDecimal starRating;
|
||||
|
||||
/** 显示状态(0否 1是) */
|
||||
@Excel(name = "显示状态", readConverterExp = "0=否,1=是")
|
||||
private Integer isShow;
|
||||
|
||||
/** 虚拟账户(0否 1是) */
|
||||
@Excel(name = "虚拟账户", readConverterExp = "0=否,1=是")
|
||||
private Integer isVirtualAccount;
|
||||
|
||||
/** 挂号模板 */
|
||||
private String templateId;
|
||||
|
||||
/** 模板名称 */
|
||||
@Excel(name = "模板名称")
|
||||
private String templateName;
|
||||
|
||||
/** 日挂号量 */
|
||||
private Long dailyRegisteredNum;
|
||||
|
||||
/** 排序号 */
|
||||
@Excel(name = "排序号")
|
||||
private Integer sortNo;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
private Integer deleted;
|
||||
|
||||
/** 优秀医生标识 默认不存在 */
|
||||
private boolean flag = false;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMemberId(Long memberId)
|
||||
{
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Long getMemberId()
|
||||
{
|
||||
return memberId;
|
||||
}
|
||||
public void setDoctorId(String doctorId)
|
||||
{
|
||||
this.doctorId = doctorId;
|
||||
}
|
||||
|
||||
public String getDoctorId()
|
||||
{
|
||||
return doctorId;
|
||||
}
|
||||
public void setDoctorName(String doctorName)
|
||||
{
|
||||
this.doctorName = doctorName;
|
||||
}
|
||||
|
||||
public String getDoctorName()
|
||||
{
|
||||
return doctorName;
|
||||
}
|
||||
public void setOrgCode(String orgCode)
|
||||
{
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCode()
|
||||
{
|
||||
return orgCode;
|
||||
}
|
||||
public void setOrgName(String orgName)
|
||||
{
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgName()
|
||||
{
|
||||
return orgName;
|
||||
}
|
||||
public void setDeptId(String deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
public void setMobilePhone(String mobilePhone)
|
||||
{
|
||||
this.mobilePhone = mobilePhone;
|
||||
}
|
||||
|
||||
public String getMobilePhone()
|
||||
{
|
||||
return mobilePhone;
|
||||
}
|
||||
public void setAvatar(String avatar)
|
||||
{
|
||||
this.avatar = avatar;
|
||||
}
|
||||
|
||||
public String getAvatar()
|
||||
{
|
||||
return avatar;
|
||||
}
|
||||
public void setJobTitle(String jobTitle)
|
||||
{
|
||||
this.jobTitle = jobTitle;
|
||||
}
|
||||
|
||||
public String getJobTitle()
|
||||
{
|
||||
return jobTitle;
|
||||
}
|
||||
public void setWorkingYears(Long workingYears)
|
||||
{
|
||||
this.workingYears = workingYears;
|
||||
}
|
||||
|
||||
public Long getWorkingYears()
|
||||
{
|
||||
return workingYears;
|
||||
}
|
||||
public void setExpertiseAreas(String expertiseAreas)
|
||||
{
|
||||
this.expertiseAreas = expertiseAreas;
|
||||
}
|
||||
|
||||
public String getExpertiseAreas()
|
||||
{
|
||||
return expertiseAreas;
|
||||
}
|
||||
public void setDoctorProfile(String doctorProfile)
|
||||
{
|
||||
this.doctorProfile = doctorProfile;
|
||||
}
|
||||
|
||||
public String getDoctorProfile()
|
||||
{
|
||||
return doctorProfile;
|
||||
}
|
||||
public void setFans(Long fans)
|
||||
{
|
||||
this.fans = fans;
|
||||
}
|
||||
|
||||
public Long getFans()
|
||||
{
|
||||
return fans;
|
||||
}
|
||||
public void setStarRating(BigDecimal starRating)
|
||||
{
|
||||
this.starRating = starRating;
|
||||
}
|
||||
|
||||
public BigDecimal getStarRating()
|
||||
{
|
||||
return starRating;
|
||||
}
|
||||
public void setIsShow(Integer isShow)
|
||||
{
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public Integer getIsShow()
|
||||
{
|
||||
return isShow;
|
||||
}
|
||||
public void setIsVirtualAccount(Integer isVirtualAccount)
|
||||
{
|
||||
this.isVirtualAccount = isVirtualAccount;
|
||||
}
|
||||
|
||||
public Integer getIsVirtualAccount()
|
||||
{
|
||||
return isVirtualAccount;
|
||||
}
|
||||
public void setTemplateId(String templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public String getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
public void setTemplateName(String templateName)
|
||||
{
|
||||
this.templateName = templateName;
|
||||
}
|
||||
|
||||
public String getTemplateName()
|
||||
{
|
||||
return templateName;
|
||||
}
|
||||
public void setDailyRegisteredNum(Long dailyRegisteredNum)
|
||||
{
|
||||
this.dailyRegisteredNum = dailyRegisteredNum;
|
||||
}
|
||||
|
||||
public Long getDailyRegisteredNum()
|
||||
{
|
||||
return dailyRegisteredNum;
|
||||
}
|
||||
public void setSortNo(Integer sortNo)
|
||||
{
|
||||
this.sortNo = sortNo;
|
||||
}
|
||||
|
||||
public Integer getSortNo()
|
||||
{
|
||||
return sortNo;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
|
||||
public boolean isFlag()
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(boolean flag)
|
||||
{
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("memberId", getMemberId())
|
||||
.append("doctorId", getDoctorId())
|
||||
.append("doctorName", getDoctorName())
|
||||
.append("orgCode", getOrgCode())
|
||||
.append("orgName", getOrgName())
|
||||
.append("deptId", getDeptId())
|
||||
.append("deptName", getDeptName())
|
||||
.append("mobilePhone", getMobilePhone())
|
||||
.append("avatar", getAvatar())
|
||||
.append("jobTitle", getJobTitle())
|
||||
.append("workingYears", getWorkingYears())
|
||||
.append("expertiseAreas", getExpertiseAreas())
|
||||
.append("doctorProfile", getDoctorProfile())
|
||||
.append("fans", getFans())
|
||||
.append("starRating", getStarRating())
|
||||
.append("isShow", getIsShow())
|
||||
.append("isVirtualAccount", getIsVirtualAccount())
|
||||
.append("templateId", getTemplateId())
|
||||
.append("templateName", getTemplateName())
|
||||
.append("dailyRegisteredNum", getDailyRegisteredNum())
|
||||
.append("sortNo", getSortNo())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("deleted", getDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 医生科室关系对象 his_doctor_department
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
public class HisDoctorDepartment extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 科室ID */
|
||||
private String deptId;
|
||||
|
||||
/** 科室名称 */
|
||||
private String deptName;
|
||||
|
||||
/** 医生ID */
|
||||
private String doctorId;
|
||||
|
||||
/** 机构ID */
|
||||
private String orgCode;
|
||||
|
||||
/** 显示状态(0否 1是) */
|
||||
private Integer isShow;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
private Integer deleted;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeptId(String deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
public void setDoctorId(String doctorId)
|
||||
{
|
||||
this.doctorId = doctorId;
|
||||
}
|
||||
|
||||
public String getDoctorId()
|
||||
{
|
||||
return doctorId;
|
||||
}
|
||||
public void setOrgCode(String orgCode)
|
||||
{
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCode()
|
||||
{
|
||||
return orgCode;
|
||||
}
|
||||
public void setIsShow(Integer isShow)
|
||||
{
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public Integer getIsShow()
|
||||
{
|
||||
return isShow;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("deptId", getDeptId())
|
||||
.append("deptName", getDeptName())
|
||||
.append("doctorId", getDoctorId())
|
||||
.append("orgCode", getOrgCode())
|
||||
.append("isShow", getIsShow())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("deleted", getDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,245 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 医生排班对象 his_doctor_schedule
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-03
|
||||
*/
|
||||
public class HisDoctorSchedule extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 机构ID */
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 科室ID */
|
||||
private String deptId;
|
||||
|
||||
/** 科室名称 */
|
||||
@Excel(name = "科室名称")
|
||||
private String deptName;
|
||||
|
||||
/** 医生ID */
|
||||
private String doctorId;
|
||||
|
||||
/** 医生名称 */
|
||||
@Excel(name = "医生名称")
|
||||
private String doctorName;
|
||||
|
||||
/** 排班日期 */
|
||||
@Excel(name = "排班日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date scheduleDate;
|
||||
|
||||
/** 班次标签(1上午 2下午) */
|
||||
private Integer scheduleTag;
|
||||
|
||||
/** 班次 */
|
||||
@Excel(name = "班次")
|
||||
private String scheduleShift;
|
||||
|
||||
/** 线上限制量 */
|
||||
@Excel(name = "线上限制量")
|
||||
private Integer onLimitNum;
|
||||
|
||||
/** 线上已挂量 */
|
||||
@Excel(name = "线上已挂量")
|
||||
private Integer onNum;
|
||||
|
||||
/** 线下限制量 */
|
||||
@Excel(name = "线下限制量")
|
||||
private Integer offLimitNum;
|
||||
|
||||
/** 线下已挂量 */
|
||||
@Excel(name = "线下已挂量")
|
||||
private Integer offNum;
|
||||
|
||||
/** 显示状态(0否 1是) */
|
||||
@Excel(name = "显示状态", readConverterExp = "0=否,1=是")
|
||||
private Integer isShow;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
private Integer deleted;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOrgCode(String orgCode)
|
||||
{
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCode()
|
||||
{
|
||||
return orgCode;
|
||||
}
|
||||
public void setOrgName(String orgName)
|
||||
{
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgName()
|
||||
{
|
||||
return orgName;
|
||||
}
|
||||
public void setDeptId(String deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
public void setDoctorId(String doctorId)
|
||||
{
|
||||
this.doctorId = doctorId;
|
||||
}
|
||||
|
||||
public String getDoctorId()
|
||||
{
|
||||
return doctorId;
|
||||
}
|
||||
public void setDoctorName(String doctorName)
|
||||
{
|
||||
this.doctorName = doctorName;
|
||||
}
|
||||
|
||||
public String getDoctorName()
|
||||
{
|
||||
return doctorName;
|
||||
}
|
||||
public void setScheduleDate(Date scheduleDate)
|
||||
{
|
||||
this.scheduleDate = scheduleDate;
|
||||
}
|
||||
|
||||
public Date getScheduleDate()
|
||||
{
|
||||
return scheduleDate;
|
||||
}
|
||||
public void setScheduleTag(Integer scheduleTag)
|
||||
{
|
||||
this.scheduleTag = scheduleTag;
|
||||
}
|
||||
|
||||
public Integer getScheduleTag()
|
||||
{
|
||||
return scheduleTag;
|
||||
}
|
||||
public void setScheduleShift(String scheduleShift)
|
||||
{
|
||||
this.scheduleShift = scheduleShift;
|
||||
}
|
||||
|
||||
public String getScheduleShift()
|
||||
{
|
||||
return scheduleShift;
|
||||
}
|
||||
public void setOnLimitNum(Integer onLimitNum)
|
||||
{
|
||||
this.onLimitNum = onLimitNum;
|
||||
}
|
||||
|
||||
public Integer getOnLimitNum()
|
||||
{
|
||||
return onLimitNum;
|
||||
}
|
||||
public void setOnNum(Integer onNum)
|
||||
{
|
||||
this.onNum = onNum;
|
||||
}
|
||||
|
||||
public Integer getOnNum()
|
||||
{
|
||||
return onNum;
|
||||
}
|
||||
public void setOffLimitNum(Integer offLimitNum)
|
||||
{
|
||||
this.offLimitNum = offLimitNum;
|
||||
}
|
||||
|
||||
public Integer getOffLimitNum()
|
||||
{
|
||||
return offLimitNum;
|
||||
}
|
||||
public void setOffNum(Integer offNum)
|
||||
{
|
||||
this.offNum = offNum;
|
||||
}
|
||||
|
||||
public Integer getOffNum()
|
||||
{
|
||||
return offNum;
|
||||
}
|
||||
public void setIsShow(Integer isShow)
|
||||
{
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public Integer getIsShow()
|
||||
{
|
||||
return isShow;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("orgCode", getOrgCode())
|
||||
.append("orgName", getOrgName())
|
||||
.append("deptId", getDeptId())
|
||||
.append("deptName", getDeptName())
|
||||
.append("doctorId", getDoctorId())
|
||||
.append("doctorName", getDoctorName())
|
||||
.append("scheduleDate", getScheduleDate())
|
||||
.append("scheduleTag", getScheduleTag())
|
||||
.append("scheduleShift", getScheduleShift())
|
||||
.append("onLimitNum", getOnLimitNum())
|
||||
.append("onNum", getOnNum())
|
||||
.append("offLimitNum", getOffLimitNum())
|
||||
.append("offNum", getOffNum())
|
||||
.append("isShow", getIsShow())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("deleted", getDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 健康卡对象 his_ehealth_client
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "健康卡")
|
||||
@Table(name = "his_ehealth_client")
|
||||
public class HisEhealthClient extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** APPID */
|
||||
@ApiModelProperty(notes = "APPID")
|
||||
@Excel(name = "APPID")
|
||||
private String appId;
|
||||
|
||||
/** APP密钥 */
|
||||
@ApiModelProperty(notes = "APP密钥")
|
||||
@Excel(name = "APP密钥")
|
||||
private String appSecret;
|
||||
|
||||
/** 机构代码 */
|
||||
@ApiModelProperty(notes = "机构代码")
|
||||
@Excel(name = "机构代码")
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 接口地址 */
|
||||
@ApiModelProperty(notes = "接口地址")
|
||||
@Excel(name = "接口地址")
|
||||
private String openApi;
|
||||
|
||||
/** 版本号 */
|
||||
@ApiModelProperty(notes = "版本号")
|
||||
@Excel(name = "版本号")
|
||||
private String version;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 费用类型对象 his_fee_item
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "费用类型")
|
||||
@Table(name = "his_fee_item")
|
||||
public class HisFeeItem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 类型ID */
|
||||
@ApiModelProperty(notes = "类型ID")
|
||||
@Excel(name = "类型ID")
|
||||
private String feeTypeId;
|
||||
|
||||
/** 类型名称 */
|
||||
@ApiModelProperty(notes = "类型名称")
|
||||
@Excel(name = "类型名称")
|
||||
private String feeTypeName;
|
||||
|
||||
/** 默认显示(0否 1是) */
|
||||
@ApiModelProperty(notes = "默认显示(0否 1是)")
|
||||
@Excel(name = "默认显示", readConverterExp = "0=否,1=是")
|
||||
private Integer isShow;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,362 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 医疗机构对象 his_hospital_info
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-06-28
|
||||
*/
|
||||
public class HisHospitalInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 机构编码 */
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 注册地址 */
|
||||
@Excel(name = "注册地址")
|
||||
private String orgAddress;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
private String contactPhone;
|
||||
|
||||
/** 联系人 */
|
||||
@Excel(name = "联系人")
|
||||
private String contactPerson;
|
||||
|
||||
/** 邮政编码 */
|
||||
private String postalCode;
|
||||
|
||||
/** 机构图标 */
|
||||
@Excel(name = "机构图标")
|
||||
private String logo;
|
||||
|
||||
/** 机构简介 */
|
||||
@Excel(name = "机构简介")
|
||||
private String introduction;
|
||||
|
||||
/** 医院类别(1医院 2乡镇卫生院 3社区卫生服务中心 4诊所) */
|
||||
@Excel(name = "医院类别", readConverterExp = "1=医院,2=乡镇卫生院,3=社区卫生服务中心,4=诊所")
|
||||
private Integer orgType;
|
||||
|
||||
/** 医院等级(1三甲医院 2三乙医院 3三丙医院 4二甲医院 5二乙医院 6二丙医院 7一甲医院 8一乙医院 9一丙医院 10社区卫生服务中心 11社区卫生服务站 ) */
|
||||
@Excel(name = "医院等级", readConverterExp = "1=三甲医院,2=三乙医院,3=三丙医院,4=二甲医院,5=二乙医院,6=二丙医院,7=一甲医院,8=一乙医院,9=一丙医院,1=0社区卫生服务中心,1=1社区卫生服务站")
|
||||
private Integer orgLevel;
|
||||
|
||||
/** 优秀科室 */
|
||||
private String excellentDeptIds;
|
||||
|
||||
/** 优秀医生 */
|
||||
private String excellentDoctorIds;
|
||||
|
||||
/** 粉丝量 */
|
||||
private Long fans;
|
||||
|
||||
/** 星级评分 */
|
||||
private BigDecimal starRating;
|
||||
|
||||
/** 营业执照 */
|
||||
private String businessLicense;
|
||||
|
||||
/** 排序号 */
|
||||
@Excel(name = "排序号")
|
||||
private Long sortNo;
|
||||
|
||||
/** 经度 */
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 纬度 */
|
||||
private BigDecimal latitude;
|
||||
|
||||
/** 区划ID */
|
||||
private String regionId;
|
||||
|
||||
/** 区划代码 */
|
||||
private String regionCode;
|
||||
|
||||
/**机构虚拟操作员ID*/
|
||||
private String vmUserId;
|
||||
|
||||
/**虚拟操作员*/
|
||||
private String vmUserName;
|
||||
|
||||
/** 显示状态(0否 1是) */
|
||||
@Excel(name = "显示状态", readConverterExp = "0=否,1=是")
|
||||
private Integer isShow;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
private Integer deleted;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOrgCode(String orgCode)
|
||||
{
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCode()
|
||||
{
|
||||
return orgCode;
|
||||
}
|
||||
public void setOrgName(String orgName)
|
||||
{
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgName()
|
||||
{
|
||||
return orgName;
|
||||
}
|
||||
public void setOrgAddress(String orgAddress)
|
||||
{
|
||||
this.orgAddress = orgAddress;
|
||||
}
|
||||
|
||||
public String getOrgAddress()
|
||||
{
|
||||
return orgAddress;
|
||||
}
|
||||
public void setContactPhone(String contactPhone)
|
||||
{
|
||||
this.contactPhone = contactPhone;
|
||||
}
|
||||
|
||||
public String getContactPhone()
|
||||
{
|
||||
return contactPhone;
|
||||
}
|
||||
public void setContactPerson(String contactPerson)
|
||||
{
|
||||
this.contactPerson = contactPerson;
|
||||
}
|
||||
|
||||
public String getContactPerson()
|
||||
{
|
||||
return contactPerson;
|
||||
}
|
||||
public void setPostalCode(String postalCode)
|
||||
{
|
||||
this.postalCode = postalCode;
|
||||
}
|
||||
|
||||
public String getPostalCode()
|
||||
{
|
||||
return postalCode;
|
||||
}
|
||||
public void setLogo(String logo)
|
||||
{
|
||||
this.logo = logo;
|
||||
}
|
||||
|
||||
public String getLogo()
|
||||
{
|
||||
return logo;
|
||||
}
|
||||
public void setIntroduction(String introduction)
|
||||
{
|
||||
this.introduction = introduction;
|
||||
}
|
||||
|
||||
public String getIntroduction()
|
||||
{
|
||||
return introduction;
|
||||
}
|
||||
public void setOrgType(Integer orgType)
|
||||
{
|
||||
this.orgType = orgType;
|
||||
}
|
||||
|
||||
public Integer getOrgType()
|
||||
{
|
||||
return orgType;
|
||||
}
|
||||
public void setOrgLevel(Integer orgLevel)
|
||||
{
|
||||
this.orgLevel = orgLevel;
|
||||
}
|
||||
|
||||
public Integer getOrgLevel()
|
||||
{
|
||||
return orgLevel;
|
||||
}
|
||||
public void setExcellentDeptIds(String excellentDeptIds)
|
||||
{
|
||||
this.excellentDeptIds = excellentDeptIds;
|
||||
}
|
||||
|
||||
public String getExcellentDeptIds()
|
||||
{
|
||||
return excellentDeptIds;
|
||||
}
|
||||
public void setExcellentDoctorIds(String excellentDoctorIds)
|
||||
{
|
||||
this.excellentDoctorIds = excellentDoctorIds;
|
||||
}
|
||||
|
||||
public String getExcellentDoctorIds()
|
||||
{
|
||||
return excellentDoctorIds;
|
||||
}
|
||||
public void setFans(Long fans)
|
||||
{
|
||||
this.fans = fans;
|
||||
}
|
||||
|
||||
public Long getFans()
|
||||
{
|
||||
return fans;
|
||||
}
|
||||
public void setStarRating(BigDecimal starRating)
|
||||
{
|
||||
this.starRating = starRating;
|
||||
}
|
||||
|
||||
public BigDecimal getStarRating()
|
||||
{
|
||||
return starRating;
|
||||
}
|
||||
public void setBusinessLicense(String businessLicense)
|
||||
{
|
||||
this.businessLicense = businessLicense;
|
||||
}
|
||||
|
||||
public String getBusinessLicense()
|
||||
{
|
||||
return businessLicense;
|
||||
}
|
||||
public void setSortNo(Long sortNo)
|
||||
{
|
||||
this.sortNo = sortNo;
|
||||
}
|
||||
|
||||
public Long getSortNo()
|
||||
{
|
||||
return sortNo;
|
||||
}
|
||||
public void setLongitude(BigDecimal longitude)
|
||||
{
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public BigDecimal getLongitude()
|
||||
{
|
||||
return longitude;
|
||||
}
|
||||
public void setLatitude(BigDecimal latitude)
|
||||
{
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public BigDecimal getLatitude()
|
||||
{
|
||||
return latitude;
|
||||
}
|
||||
public void setRegionId(String regionId)
|
||||
{
|
||||
this.regionId = regionId;
|
||||
}
|
||||
|
||||
public String getRegionId()
|
||||
{
|
||||
return regionId;
|
||||
}
|
||||
public void setRegionCode(String regionCode)
|
||||
{
|
||||
this.regionCode = regionCode;
|
||||
}
|
||||
|
||||
public String getRegionCode()
|
||||
{
|
||||
return regionCode;
|
||||
}
|
||||
|
||||
public String getVmUserId() {
|
||||
return vmUserId;
|
||||
}
|
||||
|
||||
public void setVmUserId(String vmUserId) {
|
||||
this.vmUserId = vmUserId;
|
||||
}
|
||||
|
||||
public String getVmUserName() {
|
||||
return vmUserName;
|
||||
}
|
||||
|
||||
public void setVmUserName(String vmUserName) {
|
||||
this.vmUserName = vmUserName;
|
||||
}
|
||||
|
||||
public void setIsShow(Integer isShow)
|
||||
{
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public Integer getIsShow()
|
||||
{
|
||||
return isShow;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("orgCode", getOrgCode())
|
||||
.append("orgName", getOrgName())
|
||||
.append("orgAddress", getOrgAddress())
|
||||
.append("contactPhone", getContactPhone())
|
||||
.append("contactPerson", getContactPerson())
|
||||
.append("postalCode", getPostalCode())
|
||||
.append("logo", getLogo())
|
||||
.append("introduction", getIntroduction())
|
||||
.append("orgType", getOrgType())
|
||||
.append("orgLevel", getOrgLevel())
|
||||
.append("excellentDeptIds", getExcellentDeptIds())
|
||||
.append("excellentDoctorIds", getExcellentDoctorIds())
|
||||
.append("fans", getFans())
|
||||
.append("starRating", getStarRating())
|
||||
.append("businessLicense", getBusinessLicense())
|
||||
.append("sortNo", getSortNo())
|
||||
.append("longitude", getLongitude())
|
||||
.append("latitude", getLatitude())
|
||||
.append("regionId", getRegionId())
|
||||
.append("regionCode", getRegionCode())
|
||||
.append("vmUserId", getVmUserId())
|
||||
.append("vmUserName", getVmUserName())
|
||||
.append("isShow", getIsShow())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("deleted", getDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,218 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 住院病人对象 his_inpatient
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-08
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "住院病人")
|
||||
@Table(name = "his_inpatient")
|
||||
public class HisInpatient extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 就诊人 */
|
||||
@ApiModelProperty(notes = "就诊人")
|
||||
private Long patientId;
|
||||
|
||||
/** 姓名 */
|
||||
@ApiModelProperty(notes = "姓名")
|
||||
@Excel(name = "姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(notes = "身份证号")
|
||||
@Excel(name = "身份证号")
|
||||
private String idCardNo;
|
||||
|
||||
/** 性别 */
|
||||
@ApiModelProperty(notes = "性别")
|
||||
@Excel(name = "性别")
|
||||
private String patientSex;
|
||||
|
||||
/** 出生日期 */
|
||||
@ApiModelProperty(notes = "出生日期")
|
||||
@Excel(name = "出生日期")
|
||||
private String birthday;
|
||||
|
||||
/** 联系人 */
|
||||
@ApiModelProperty(notes = "联系人")
|
||||
private String contactName;
|
||||
|
||||
/** 联系电话 */
|
||||
@ApiModelProperty(notes = "联系电话")
|
||||
private String mobilePhone;
|
||||
|
||||
/** 家庭地址 */
|
||||
@ApiModelProperty(notes = "家庭地址")
|
||||
private String familyAddress;
|
||||
|
||||
/** 入院日期 */
|
||||
@ApiModelProperty(notes = "入院日期")
|
||||
@Excel(name = "入院日期")
|
||||
private String admissionDate;
|
||||
|
||||
/** 出院日期 */
|
||||
@ApiModelProperty(notes = "出院日期")
|
||||
@Excel(name = "出院日期")
|
||||
private String leaveDate;
|
||||
|
||||
/** 住院号 */
|
||||
@ApiModelProperty(notes = "住院号")
|
||||
@Excel(name = "住院号")
|
||||
private String hospitalizedNo;
|
||||
|
||||
/** 住院ID */
|
||||
@ApiModelProperty(notes = "住院ID")
|
||||
@Excel(name = "住院ID")
|
||||
private String businessId;
|
||||
|
||||
/** 医院ID */
|
||||
@ApiModelProperty(notes = "医院ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 医院名称 */
|
||||
@ApiModelProperty(notes = "医院名称")
|
||||
@Excel(name = "医院名称")
|
||||
private String orgName;
|
||||
|
||||
/** 入院科室 */
|
||||
@ApiModelProperty(notes = "入院科室")
|
||||
private String deptId;
|
||||
|
||||
/** 入院科室名称 */
|
||||
@ApiModelProperty(notes = "入院科室名称")
|
||||
@Excel(name = "入院科室名称")
|
||||
private String deptName;
|
||||
|
||||
/** 入院诊断医生ID */
|
||||
@ApiModelProperty(notes = "入院诊断医生ID")
|
||||
private String doctorId;
|
||||
|
||||
/** 入院诊断医生 */
|
||||
@ApiModelProperty(notes = "入院诊断医生")
|
||||
@Excel(name = "入院诊断医生")
|
||||
private String doctorName;
|
||||
|
||||
/** 入院床位编码 */
|
||||
@ApiModelProperty(notes = "入院床位编码")
|
||||
private String bedId;
|
||||
|
||||
/** 入院床位 */
|
||||
@ApiModelProperty(notes = "入院床位")
|
||||
private String bedName;
|
||||
|
||||
/** 入院主诊断 */
|
||||
@ApiModelProperty(notes = "入院主诊断")
|
||||
@Excel(name = "入院主诊断")
|
||||
private String mainDiagnose;
|
||||
|
||||
/** 入院主诊断ICD10 */
|
||||
@ApiModelProperty(notes = "入院主诊断ICD10")
|
||||
@Excel(name = "入院主诊断ICD10")
|
||||
private String mainDiagnoseIcd10;
|
||||
|
||||
/** 入院次诊断 */
|
||||
@ApiModelProperty(notes = "入院次诊断")
|
||||
@Excel(name = "入院次诊断")
|
||||
private String secondaryDiagnose;
|
||||
|
||||
/** 入院次诊断ICD10 */
|
||||
@ApiModelProperty(notes = "入院次诊断ICD10")
|
||||
private String secondaryDiagnoseIcd10;
|
||||
|
||||
/** 入院病区编码 */
|
||||
@ApiModelProperty(notes = "入院病区编码")
|
||||
private String wardId;
|
||||
|
||||
/** 入院病区 */
|
||||
@ApiModelProperty(notes = "入院病区")
|
||||
private String wardName;
|
||||
|
||||
/** 入院经办人 */
|
||||
@ApiModelProperty(notes = "入院经办人")
|
||||
private String operator;
|
||||
|
||||
/** 入院经办时间 */
|
||||
@ApiModelProperty(notes = "入院经办时间")
|
||||
private String operateTime;
|
||||
|
||||
/** 住院总费用 */
|
||||
@ApiModelProperty(notes = "住院总费用")
|
||||
@Excel(name = "住院总费用")
|
||||
private BigDecimal totalFee;
|
||||
|
||||
/** 出院科室编码 */
|
||||
@ApiModelProperty(notes = "出院科室编码")
|
||||
private String leaveDeptId;
|
||||
|
||||
/** 出院科室名称 */
|
||||
@ApiModelProperty(notes = "出院科室名称")
|
||||
@Excel(name = "出院科室名称")
|
||||
private String leaveDeptName;
|
||||
|
||||
/** 出院病区编码 */
|
||||
@ApiModelProperty(notes = "出院病区编码")
|
||||
private String leaveWardId;
|
||||
|
||||
/** 出院病区 */
|
||||
@ApiModelProperty(notes = "出院病区")
|
||||
private String leaveWardName;
|
||||
|
||||
/** 出院床位编码 */
|
||||
@ApiModelProperty(notes = "出院床位编码")
|
||||
private String leaveBedId;
|
||||
|
||||
/** 出院床位 */
|
||||
@ApiModelProperty(notes = "出院床位")
|
||||
private String leaveBedName;
|
||||
|
||||
/** 出院主诊断 */
|
||||
@ApiModelProperty(notes = "出院主诊断")
|
||||
@Excel(name = "出院主诊断")
|
||||
private String leaveMainDiagnose;
|
||||
|
||||
/** 出院主诊断ICD10 */
|
||||
@ApiModelProperty(notes = "出院主诊断ICD10")
|
||||
private String leaveMainDiagnoseIcd10;
|
||||
|
||||
/** 出院次诊断 */
|
||||
@ApiModelProperty(notes = "出院次诊断")
|
||||
@Excel(name = "出院次诊断")
|
||||
private String leaveSecondaryDiagnose;
|
||||
|
||||
/** 出院次诊断ICD10 */
|
||||
@ApiModelProperty(notes = "出院次诊断ICD10")
|
||||
private String leaveSecondaryDiagnoseIcd10;
|
||||
|
||||
/** 在院状态(0在院无床 1在院有床 2出院未结算 3出院已结算 -1撤销入院) */
|
||||
@ApiModelProperty(notes = "在院状态(0在院无床 1在院有床 2出院未结算 3出院已结算 -1撤销入院)")
|
||||
@Excel(name = "在院状态", readConverterExp = "0=在院无床,1=在院有床,2=出院未结算,3=出院已结算,-=1撤销入院")
|
||||
private Integer inpatientStatus;
|
||||
|
||||
/** 住院总预交费 */
|
||||
@ApiModelProperty(notes = "住院总预交费")
|
||||
@Excel(name = "住院总预交费")
|
||||
private BigDecimal prepaidTotalFee;
|
||||
|
||||
/** 执业医师证号 */
|
||||
@ApiModelProperty(notes = "执业医师证号")
|
||||
private String doctorNumber;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 住院预交对象 his_inpatient_prepayment
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "住院预交")
|
||||
@Table(name = "his_inpatient_prepayment")
|
||||
public class HisInpatientPrepayment extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty(notes = "用户ID")
|
||||
private Long memberId;
|
||||
|
||||
/** 手机号 */
|
||||
@ApiModelProperty(notes = "手机号")
|
||||
@Excel(name = "手机号")
|
||||
private String mobilePhone;
|
||||
|
||||
/** 就诊人ID */
|
||||
@ApiModelProperty(notes = "就诊人ID")
|
||||
private Long patientId;
|
||||
|
||||
/** 就诊人 */
|
||||
@ApiModelProperty(notes = "就诊人")
|
||||
@Excel(name = "就诊人")
|
||||
private String patientName;
|
||||
|
||||
/** 身份证 */
|
||||
@ApiModelProperty(notes = "身份证")
|
||||
@Excel(name = "身份证")
|
||||
private String idCardNo;
|
||||
|
||||
/** 住院ID */
|
||||
@ApiModelProperty(notes = "住院ID")
|
||||
@Excel(name = "住院ID")
|
||||
private String businessId;
|
||||
|
||||
/** 订单编号 */
|
||||
@ApiModelProperty(notes = "订单编号")
|
||||
@Excel(name = "订单编号")
|
||||
private String orderCode;
|
||||
|
||||
/** 预缴费ID */
|
||||
@ApiModelProperty(notes = "预缴费ID")
|
||||
@Excel(name = "预缴费ID")
|
||||
private String prepayId;
|
||||
|
||||
/** 流水号 */
|
||||
@ApiModelProperty(notes = "流水号")
|
||||
@Excel(name = "流水号")
|
||||
private String paySerialNo;
|
||||
|
||||
/** 缴费方式列表 */
|
||||
@ApiModelProperty(notes = "缴费方式列表")
|
||||
@Excel(name = "缴费方式列表")
|
||||
private String paymentListStr;
|
||||
|
||||
/** 收费人员ID */
|
||||
@ApiModelProperty(notes = "收费人员ID")
|
||||
@Excel(name = "收费人员ID")
|
||||
private String userId;
|
||||
|
||||
/** 收费人员 */
|
||||
@ApiModelProperty(notes = "收费人员")
|
||||
@Excel(name = "收费人员")
|
||||
private String userName;
|
||||
|
||||
/** 厂商标识 */
|
||||
@ApiModelProperty(notes = "厂商标识")
|
||||
@Excel(name = "厂商标识")
|
||||
private String vendorId;
|
||||
|
||||
/** 基层流水号 */
|
||||
@ApiModelProperty(notes = "基层流水号")
|
||||
@Excel(name = "基层流水号")
|
||||
private String hisSerialNo;
|
||||
|
||||
/** 预交金额 */
|
||||
@ApiModelProperty(notes = "预交金额")
|
||||
@Excel(name = "预交金额")
|
||||
private BigDecimal totalFee;
|
||||
|
||||
/** 实际金额 */
|
||||
@ApiModelProperty(notes = "实际金额")
|
||||
@Excel(name = "实际金额")
|
||||
private BigDecimal totalCost;
|
||||
|
||||
/** 机构ID */
|
||||
@ApiModelProperty(notes = "机构ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 状态(0未交费 1已支付) */
|
||||
@ApiModelProperty(notes = "状态(0未交费 1已支付)")
|
||||
@Excel(name = "状态", readConverterExp = "0=未交费,1=已支付")
|
||||
private Integer prepayStatus;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 申请单对象 his_inspection_apply
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-10
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "申请单")
|
||||
@Table(name = "his_inspection_apply")
|
||||
public class HisInspectionApply extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 机构编码 */
|
||||
@ApiModelProperty(notes = "机构编码")
|
||||
private String orgCode;
|
||||
|
||||
/** 姓名 */
|
||||
@ApiModelProperty(notes = "姓名")
|
||||
@Excel(name = "姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(notes = "身份证号")
|
||||
@Excel(name = "身份证号")
|
||||
private String idCardNo;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 申请单ID */
|
||||
@ApiModelProperty(notes = "申请单ID")
|
||||
@Excel(name = "申请单ID")
|
||||
private String applyId;
|
||||
|
||||
/** 项目名称 */
|
||||
@ApiModelProperty(notes = "项目名称")
|
||||
@Excel(name = "项目名称")
|
||||
private String applyItemName;
|
||||
|
||||
/** 开单时间 */
|
||||
@ApiModelProperty(notes = "开单时间")
|
||||
@Excel(name = "开单时间")
|
||||
private String billTime;
|
||||
|
||||
/** 开单人 */
|
||||
@ApiModelProperty(notes = "开单人")
|
||||
@Excel(name = "开单人")
|
||||
private String operator;
|
||||
|
||||
/** 操作人员 */
|
||||
@ApiModelProperty(notes = "操作人员")
|
||||
@Excel(name = "操作人员")
|
||||
private String userId;
|
||||
|
||||
/** 业务ID */
|
||||
@ApiModelProperty(notes = "业务ID")
|
||||
@Excel(name = "业务ID")
|
||||
private String businessId;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 检查检验对象 his_inspection_report
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-10
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "检查检验报告单")
|
||||
@Table(name = "his_inspection_report")
|
||||
public class HisInspectionReport extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 申请单ID */
|
||||
@ApiModelProperty(notes = "申请单ID")
|
||||
@Excel(name = "申请单ID")
|
||||
private String applyId;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(notes = "身份证号")
|
||||
@Excel(name = "身份证号")
|
||||
private String idCardNo;
|
||||
|
||||
/** 病人姓名 */
|
||||
@ApiModelProperty(notes = "病人姓名")
|
||||
@Excel(name = "病人姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 性别 */
|
||||
@ApiModelProperty(notes = "性别")
|
||||
@Excel(name = "性别")
|
||||
private String patientSex;
|
||||
|
||||
/** 年龄 */
|
||||
@ApiModelProperty(notes = "年龄")
|
||||
@Excel(name = "年龄")
|
||||
private String age;
|
||||
|
||||
/** 金额 */
|
||||
@ApiModelProperty(notes = "金额")
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal fee;
|
||||
|
||||
/** 单据号 */
|
||||
@ApiModelProperty(notes = "单据号")
|
||||
@Excel(name = "单据号")
|
||||
private String billCode;
|
||||
|
||||
/** 单据类型(8检查 9检验) */
|
||||
@ApiModelProperty(notes = "单据类型(8检查 9检验)")
|
||||
@Excel(name = "单据类型", readConverterExp = "8=检查,9=检验")
|
||||
private Integer billType;
|
||||
|
||||
/** 单据状态 */
|
||||
@ApiModelProperty(notes = "单据状态")
|
||||
private Integer billStatus;
|
||||
|
||||
/** 开单时间 */
|
||||
@ApiModelProperty(notes = "开单时间")
|
||||
@Excel(name = "开单时间")
|
||||
private String billTime;
|
||||
|
||||
/** 数据来源 */
|
||||
@ApiModelProperty(notes = "数据来源")
|
||||
private Integer dataSource;
|
||||
|
||||
/** 主诉 */
|
||||
@ApiModelProperty(notes = "主诉")
|
||||
@Excel(name = "主诉")
|
||||
private String subjective;
|
||||
|
||||
/** 诊断 */
|
||||
@ApiModelProperty(notes = "诊断")
|
||||
@Excel(name = "诊断")
|
||||
private String assessment;
|
||||
|
||||
/** 包名称 */
|
||||
@ApiModelProperty(notes = "包名称")
|
||||
@Excel(name = "包名称")
|
||||
private String packName;
|
||||
|
||||
/** 标本类型(1全血 2血清 3粪便 4白带 5穿刺液) */
|
||||
@ApiModelProperty(notes = "标本类型(1全血 2血清 3粪便 4白带 5穿刺液)")
|
||||
@Excel(name = "标本类型", readConverterExp = "1=全血,2=血清,3=粪便,4=白带,5=穿刺液")
|
||||
private Integer specimenType;
|
||||
|
||||
/** 标本号 */
|
||||
@ApiModelProperty(notes = "标本号")
|
||||
private String specimen;
|
||||
|
||||
/** 图片源 */
|
||||
@ApiModelProperty(notes = "图片源")
|
||||
private String imageSrc;
|
||||
|
||||
/** 结果 */
|
||||
@ApiModelProperty(notes = "结果")
|
||||
@Excel(name = "结果")
|
||||
private String dataResult;
|
||||
|
||||
/** 异常类型(0否 1是 2无) */
|
||||
@ApiModelProperty(notes = "异常类型(0否 1是 2无)")
|
||||
@Excel(name = "异常类型", readConverterExp = "0=否,1=是,2=无")
|
||||
private Integer infectious;
|
||||
|
||||
/** 结论 */
|
||||
@ApiModelProperty(notes = "结论")
|
||||
@Excel(name = "结论")
|
||||
private String conclusion;
|
||||
|
||||
/** 模板ID */
|
||||
@ApiModelProperty(notes = "模板ID")
|
||||
private String templateId;
|
||||
|
||||
/** 科室ID */
|
||||
@ApiModelProperty(notes = "科室ID")
|
||||
private String deptId;
|
||||
|
||||
/** 科室名称 */
|
||||
@ApiModelProperty(notes = "科室名称")
|
||||
@Excel(name = "科室名称")
|
||||
private String deptName;
|
||||
|
||||
/** 开单医生 */
|
||||
@ApiModelProperty(notes = "开单医生")
|
||||
@Excel(name = "开单医生")
|
||||
private String userName;
|
||||
|
||||
/** 机构ID */
|
||||
@ApiModelProperty(notes = "机构ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 执行人 */
|
||||
@ApiModelProperty(notes = "执行人")
|
||||
@Excel(name = "执行人")
|
||||
private String actorName;
|
||||
|
||||
/** 操作员 */
|
||||
@ApiModelProperty(notes = "操作员")
|
||||
@Excel(name = "操作员")
|
||||
private String operators;
|
||||
|
||||
/** 报告时间 */
|
||||
@ApiModelProperty(notes = "报告时间")
|
||||
@Excel(name = "报告时间")
|
||||
private String execTime;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
/** 检查检验明细信息 */
|
||||
@ApiModelProperty(notes = "检查检验明细信息")
|
||||
private List<HisInspectionReportItem> hisInspectionReportItemList;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
/**
|
||||
* 检查检验明细对象 his_inspection_report_item
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-10
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "检查检验明细")
|
||||
@Table(name = "his_inspection_report_item")
|
||||
public class HisInspectionReportItem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 报告ID */
|
||||
@ApiModelProperty(notes = "报告ID")
|
||||
@Excel(name = "报告ID")
|
||||
private Long reportId;
|
||||
|
||||
/** 检查项ID */
|
||||
@ApiModelProperty(notes = "检查项ID")
|
||||
@Excel(name = "检查项ID")
|
||||
private String itemId;
|
||||
|
||||
/** 执行记录ID */
|
||||
@ApiModelProperty(notes = "执行记录ID")
|
||||
@Excel(name = "执行记录ID")
|
||||
private String execRecordId;
|
||||
|
||||
/** 项目名称 */
|
||||
@ApiModelProperty(notes = "项目名称")
|
||||
@Excel(name = "项目名称")
|
||||
private String itemName;
|
||||
|
||||
/** 项目内容 */
|
||||
@ApiModelProperty(notes = "项目内容")
|
||||
@Excel(name = "项目内容")
|
||||
private String itemValue;
|
||||
|
||||
/** 排序 */
|
||||
@ApiModelProperty(notes = "排序")
|
||||
@Excel(name = "排序")
|
||||
private String sortNo;
|
||||
|
||||
/** 单位 */
|
||||
@ApiModelProperty(notes = "单位")
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 参考值 */
|
||||
@ApiModelProperty(notes = "参考值")
|
||||
@Excel(name = "参考值")
|
||||
private String referenceValue;
|
||||
|
||||
/** 定性结果 */
|
||||
@ApiModelProperty(notes = "定性结果")
|
||||
@Excel(name = "定性结果")
|
||||
private String qualityResult;
|
||||
|
||||
/** 档案标志 */
|
||||
@ApiModelProperty(notes = "档案标志")
|
||||
@Excel(name = "档案标志")
|
||||
private String archivedFlag;
|
||||
|
||||
/** 金额 */
|
||||
@ApiModelProperty(notes = "金额")
|
||||
@Excel(name = "金额")
|
||||
private String fee;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 农信商户对象 his_merchant_scrcu
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "农信商户")
|
||||
@Table(name = "his_merchant_scrcu")
|
||||
public class HisMerchantScrcu extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主商户号 */
|
||||
@ApiModelProperty(notes = "主商户号")
|
||||
@Excel(name = "主商户号")
|
||||
private String mchNo;
|
||||
|
||||
/** 主商户名 */
|
||||
@ApiModelProperty(notes = "主商户名")
|
||||
@Excel(name = "主商户名")
|
||||
private String mchName;
|
||||
|
||||
/** 子商户号 */
|
||||
@ApiModelProperty(notes = "子商户号")
|
||||
@Excel(name = "子商户号")
|
||||
private String subMchNo;
|
||||
|
||||
/** 子商户名 */
|
||||
@ApiModelProperty(notes = "子商户名")
|
||||
@Excel(name = "子商户名")
|
||||
private String subMchName;
|
||||
|
||||
/** 机构ID */
|
||||
@ApiModelProperty(notes = "机构ID")
|
||||
@Excel(name = "机构ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 客户端ID */
|
||||
@ApiModelProperty(notes = "客户端ID")
|
||||
@Excel(name = "客户端ID")
|
||||
private String clientId;
|
||||
|
||||
/** 客户端密钥 */
|
||||
@ApiModelProperty(notes = "客户端密钥")
|
||||
@Excel(name = "客户端密钥")
|
||||
private String secret;
|
||||
|
||||
/** 开放平台 */
|
||||
@ApiModelProperty(notes = "开放平台")
|
||||
@Excel(name = "开放平台")
|
||||
private String openClientId;
|
||||
|
||||
/** 接口地址 */
|
||||
@ApiModelProperty(notes = "接口地址")
|
||||
@Excel(name = "接口地址")
|
||||
private String openApi;
|
||||
|
||||
/** 公钥路径 */
|
||||
@ApiModelProperty(notes = "公钥路径")
|
||||
@Excel(name = "公钥路径")
|
||||
private String publicKeyPath;
|
||||
|
||||
/** 私钥路径 */
|
||||
@ApiModelProperty(notes = "私钥路径")
|
||||
@Excel(name = "私钥路径")
|
||||
private String privateKeyPath;
|
||||
|
||||
/** 私钥密码 */
|
||||
@ApiModelProperty(notes = "私钥密码")
|
||||
@Excel(name = "私钥密码")
|
||||
private String privateKeyPassword;
|
||||
|
||||
/** 区划代码 */
|
||||
@ApiModelProperty(notes = "区划代码")
|
||||
@Excel(name = "区划代码")
|
||||
private String txnAreaInfo;
|
||||
|
||||
/** 版本号 */
|
||||
@ApiModelProperty(notes = "版本号")
|
||||
@Excel(name = "版本号")
|
||||
private String version;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
/**
|
||||
* 特约商户对象 his_merchant_wechat
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "微信服务商")
|
||||
@Table(name = "his_wechat_provider")
|
||||
public class HisMerchantWechat extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 服务商ID */
|
||||
@ApiModelProperty(notes = "服务商ID")
|
||||
@Excel(name = "服务商ID")
|
||||
private Long providerId;
|
||||
|
||||
/** 特约商户 */
|
||||
@ApiModelProperty(notes = "特约商户")
|
||||
@Excel(name = "特约商户")
|
||||
private String subAppId;
|
||||
|
||||
/** 机构ID */
|
||||
@ApiModelProperty(notes = "机构ID")
|
||||
@Excel(name = "机构ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,127 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 门诊病人对象 his_outpatient
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-08
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "门诊病人")
|
||||
@Table(name = "his_outpatient")
|
||||
public class HisOutpatient extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 就诊人 */
|
||||
@ApiModelProperty(notes = "就诊人")
|
||||
private Long patientId;
|
||||
|
||||
/** 姓名 */
|
||||
@ApiModelProperty(notes = "姓名")
|
||||
@Excel(name = "姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 身份证 */
|
||||
@ApiModelProperty(notes = "身份证")
|
||||
@Excel(name = "身份证")
|
||||
private String idCardNo;
|
||||
|
||||
/** 性别 */
|
||||
@ApiModelProperty(notes = "性别")
|
||||
@Excel(name = "性别")
|
||||
private String patientSex;
|
||||
|
||||
/** 医院名称 */
|
||||
@ApiModelProperty(notes = "医院名称")
|
||||
@Excel(name = "医院名称")
|
||||
private String orgName;
|
||||
|
||||
/** 医院ID */
|
||||
@ApiModelProperty(notes = "医院ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 门诊ID */
|
||||
@ApiModelProperty(notes = "门诊ID")
|
||||
@Excel(name = "门诊ID")
|
||||
private String businessId;
|
||||
|
||||
/** 挂号ID */
|
||||
@ApiModelProperty(notes = "挂号ID")
|
||||
private String registeredId;
|
||||
|
||||
/** 挂号费 */
|
||||
@ApiModelProperty(notes = "挂号费")
|
||||
private BigDecimal registeredFee;
|
||||
|
||||
/** 门诊号 */
|
||||
@ApiModelProperty(notes = "门诊号")
|
||||
@Excel(name = "门诊号")
|
||||
private String outpatientNumber;
|
||||
|
||||
/** 就诊时间 */
|
||||
@ApiModelProperty(notes = "就诊时间")
|
||||
@Excel(name = "就诊时间")
|
||||
private String visitDate;
|
||||
|
||||
/** 科室ID */
|
||||
@ApiModelProperty(notes = "科室ID")
|
||||
private String deptId;
|
||||
|
||||
/** 科室名称 */
|
||||
@ApiModelProperty(notes = "科室名称")
|
||||
@Excel(name = "科室名称")
|
||||
private String deptName;
|
||||
|
||||
/** 医生ID */
|
||||
@ApiModelProperty(notes = "医生ID")
|
||||
private String doctorId;
|
||||
|
||||
/** 医生名称 */
|
||||
@ApiModelProperty(notes = "医生名称")
|
||||
@Excel(name = "医生名称")
|
||||
private String doctorName;
|
||||
|
||||
/** 诊断编码 */
|
||||
@ApiModelProperty(notes = "诊断编码")
|
||||
private String diagnoseDiseaseCode;
|
||||
|
||||
/** 诊断名称 */
|
||||
@ApiModelProperty(notes = "诊断名称")
|
||||
@Excel(name = "诊断名称")
|
||||
private String diagnoseDiseaseName;
|
||||
|
||||
/** 病情描述 */
|
||||
@ApiModelProperty(notes = "病情描述")
|
||||
@Excel(name = "病情描述")
|
||||
private String diseaseDesc;
|
||||
|
||||
/** 经办人 */
|
||||
@ApiModelProperty(notes = "经办人")
|
||||
private String operator;
|
||||
|
||||
/** 总费用 */
|
||||
@ApiModelProperty(notes = "总费用")
|
||||
@Excel(name = "总费用")
|
||||
private BigDecimal totalCost;
|
||||
|
||||
/** 接诊状态(-1已取消 0未接诊 1接诊中 2已结诊) */
|
||||
@ApiModelProperty(notes = "接诊状态(-1已取消 0未接诊 1接诊中 2已结诊)")
|
||||
@Excel(name = "接诊状态", readConverterExp = "-1=已取消,0=未接诊,1=接诊中,2=已结诊")
|
||||
private Integer receptionStatus;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,133 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Date;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
* 待缴费单对象 his_outpatient_expenses_bill
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-09
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "待缴费单")
|
||||
@Table(name = "his_outpatient_expenses_bill")
|
||||
public class HisOutpatientExpensesBill extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty(notes = "用户ID")
|
||||
private Long memberId;
|
||||
|
||||
/** 患者ID */
|
||||
@ApiModelProperty(notes = "患者ID")
|
||||
private Long patientId;
|
||||
|
||||
|
||||
/** 病人姓名 */
|
||||
@ApiModelProperty(notes = "病人姓名")
|
||||
@Excel(name = "病人姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(notes = "身份证号")
|
||||
@Excel(name = "身份证号")
|
||||
private String idCardNo;
|
||||
|
||||
/** 门诊ID */
|
||||
@ApiModelProperty(notes = "门诊ID")
|
||||
@Excel(name = "门诊ID")
|
||||
private String businessId;
|
||||
|
||||
/** 挂号ID */
|
||||
@ApiModelProperty(notes = "挂号ID")
|
||||
private String registeredId;
|
||||
|
||||
/** 处方ID */
|
||||
@ApiModelProperty(notes = "处方ID")
|
||||
private String recipeId;
|
||||
|
||||
/** 处方号 */
|
||||
@ApiModelProperty(notes = "处方号")
|
||||
@Excel(name = "处方号")
|
||||
private String recipeCode;
|
||||
|
||||
/** 处方费用 */
|
||||
@ApiModelProperty(notes = "处方费用")
|
||||
@Excel(name = "处方费用")
|
||||
private BigDecimal recipeFee;
|
||||
|
||||
/** 处方医生 */
|
||||
@ApiModelProperty(notes = "处方医生")
|
||||
@Excel(name = "处方医生")
|
||||
private String billDoctor;
|
||||
|
||||
/** 开单科室 */
|
||||
@ApiModelProperty(notes = "开单科室")
|
||||
@Excel(name = "开单科室")
|
||||
private String billDept;
|
||||
|
||||
/** 开单时间 */
|
||||
@ApiModelProperty(notes = "开单时间")
|
||||
@Excel(name = "开单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date billTime;
|
||||
|
||||
/** 费用名称 */
|
||||
@ApiModelProperty(notes = "费用名称")
|
||||
@Excel(name = "费用名称")
|
||||
private String feeName;
|
||||
|
||||
/** 执行科室 */
|
||||
@ApiModelProperty(notes = "执行科室")
|
||||
private String operateDept;
|
||||
|
||||
/** 处方状态(0待缴费 1已缴费) */
|
||||
@ApiModelProperty(notes = "处方状态(0待缴费 1已缴费)")
|
||||
@Excel(name = "处方状态", readConverterExp = "0=待缴费,1=已缴费")
|
||||
private Integer recipeStatus;
|
||||
|
||||
/** 收费记录ID */
|
||||
@ApiModelProperty(notes = "收费记录ID")
|
||||
@Excel(name = "收费记录ID")
|
||||
private String chargeRecordId;
|
||||
|
||||
/** 订单编号 */
|
||||
@ApiModelProperty(notes = "订单编号")
|
||||
@Excel(name = "订单编号")
|
||||
private String orderCode;
|
||||
|
||||
/** 机构ID */
|
||||
@ApiModelProperty(notes = "机构ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 缴费时间 */
|
||||
@ApiModelProperty(notes = "缴费时间")
|
||||
@Excel(name = "缴费时间")
|
||||
private String payTime;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
/** 清单详情信息 */
|
||||
@ApiModelProperty(notes = "清单详情信息")
|
||||
@Transient
|
||||
private List<HisOutpatientExpensesBillDetail> hisOutpatientExpensesBillDetailList;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 清单详情对象 his_outpatient_expenses_bill_detail
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-09
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "待缴费单详情")
|
||||
@Table(name = "his_outpatient_expenses_bill")
|
||||
public class HisOutpatientExpensesBillDetail
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(notes = "主键ID")
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private String id;
|
||||
|
||||
/** 清单ID */
|
||||
@ApiModelProperty(notes = "清单ID")
|
||||
@Excel(name = "清单ID")
|
||||
private Long billId;
|
||||
|
||||
/** 清单详情ID */
|
||||
@ApiModelProperty(notes = "清单详情ID")
|
||||
@Excel(name = "清单详情ID")
|
||||
private String billDetailId;
|
||||
|
||||
/** 处方ID */
|
||||
@ApiModelProperty(notes = "处方ID")
|
||||
@Excel(name = "处方ID")
|
||||
private String recipeId;
|
||||
|
||||
/** 处方号 */
|
||||
@ApiModelProperty(notes = "处方号")
|
||||
@Excel(name = "处方号")
|
||||
private String recipeCode;
|
||||
|
||||
/** 金额 */
|
||||
@ApiModelProperty(notes = "金额")
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal fee;
|
||||
|
||||
/** 费用名称 */
|
||||
@ApiModelProperty(notes = "费用名称")
|
||||
@Excel(name = "费用名称")
|
||||
private String feeName;
|
||||
|
||||
/** 处方医生 */
|
||||
@ApiModelProperty(notes = "处方医生")
|
||||
@Excel(name = "处方医生")
|
||||
private String billDoctor;
|
||||
|
||||
/** 开单科室 */
|
||||
@ApiModelProperty(notes = "开单科室")
|
||||
@Excel(name = "开单科室")
|
||||
private String billDept;
|
||||
|
||||
/** 执行科室 */
|
||||
@ApiModelProperty(notes = "执行科室")
|
||||
@Excel(name = "执行科室")
|
||||
private String operateDept;
|
||||
|
||||
/** 开单时间 */
|
||||
@ApiModelProperty(notes = "开单时间")
|
||||
@Excel(name = "开单时间")
|
||||
private String billTime;
|
||||
|
||||
/** 数量 */
|
||||
@ApiModelProperty(notes = "数量")
|
||||
@Excel(name = "数量")
|
||||
private Long amount;
|
||||
|
||||
/** 单位 */
|
||||
@ApiModelProperty(notes = "单位")
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 规格 */
|
||||
@ApiModelProperty(notes = "规格")
|
||||
@Excel(name = "规格")
|
||||
private String specification;
|
||||
|
||||
/** 单价 */
|
||||
@ApiModelProperty(notes = "单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
/** 费用项目名称 */
|
||||
@ApiModelProperty(notes = "费用项目名称")
|
||||
@Excel(name = "费用项目名称")
|
||||
private String costItemName;
|
||||
|
||||
/** 创建时间 */
|
||||
@ApiModelProperty(notes = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 门诊预交对象 his_outpatient_payment
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "门诊预交")
|
||||
@Table(name = "his_outpatient_payment")
|
||||
public class HisOutpatientPayment extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 订单编号 */
|
||||
@ApiModelProperty(notes = "订单编号")
|
||||
@Excel(name = "订单编号")
|
||||
private String orderCode;
|
||||
|
||||
/** 挂号ID */
|
||||
@ApiModelProperty(notes = "挂号ID")
|
||||
@Excel(name = "挂号ID")
|
||||
private String registeredId;
|
||||
|
||||
/** 处方IDS */
|
||||
@ApiModelProperty(notes = "处方IDS")
|
||||
@Excel(name = "处方IDS")
|
||||
private String recipeIds;
|
||||
|
||||
/** 收费人员ID */
|
||||
@ApiModelProperty(notes = "收费人员ID")
|
||||
@Excel(name = "收费人员ID")
|
||||
private String userId;
|
||||
|
||||
/** 总金额 */
|
||||
@ApiModelProperty(notes = "总金额")
|
||||
@Excel(name = "总金额")
|
||||
private BigDecimal totalFee;
|
||||
|
||||
/** 缴费流水号 */
|
||||
@ApiModelProperty(notes = "缴费流水号")
|
||||
@Excel(name = "缴费流水号")
|
||||
private String paySerialNo;
|
||||
|
||||
/** 缴费方式列表 */
|
||||
@ApiModelProperty(notes = "缴费方式列表")
|
||||
@Excel(name = "缴费方式列表")
|
||||
private String paymentListStr;
|
||||
|
||||
/** 厂商标识 */
|
||||
@ApiModelProperty(notes = "厂商标识")
|
||||
@Excel(name = "厂商标识")
|
||||
private String vendorId;
|
||||
|
||||
/** 机构ID */
|
||||
@ApiModelProperty(notes = "机构ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.util.List;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 费用记录对象 his_patient_expenses
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-09
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "费用记录")
|
||||
@Table(name = "his_patient_expenses")
|
||||
public class HisPatientExpenses extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 用户ID */
|
||||
@ApiModelProperty(notes = "用户ID")
|
||||
private Long memberId;
|
||||
|
||||
/** 患者ID */
|
||||
@ApiModelProperty(notes = "患者ID")
|
||||
private Long patientId;
|
||||
|
||||
/** 病人姓名 */
|
||||
@ApiModelProperty(notes = "病人姓名")
|
||||
@Excel(name = "病人姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(notes = "身份证号")
|
||||
@Excel(name = "身份证号")
|
||||
private String idCardNo;
|
||||
|
||||
/** 订单号 */
|
||||
@ApiModelProperty(notes = "订单号")
|
||||
private String orderCode;
|
||||
|
||||
/** 机构ID */
|
||||
@ApiModelProperty(notes = "机构ID")
|
||||
private String orgCode;
|
||||
|
||||
/** 医院名称 */
|
||||
@ApiModelProperty(notes = "医院名称")
|
||||
@Excel(name = "医院名称")
|
||||
private String orgName;
|
||||
|
||||
/** 开单科室 */
|
||||
@ApiModelProperty(notes = "开单科室")
|
||||
@Excel(name = "开单科室")
|
||||
private String billDept;
|
||||
|
||||
/** 开单医生 */
|
||||
@ApiModelProperty(notes = "开单医生")
|
||||
@Excel(name = "开单医生")
|
||||
private String billDoctor;
|
||||
|
||||
/** 业务ID[分别对应门诊和住院] */
|
||||
@ApiModelProperty(notes = "业务ID[分别对应门诊和住院]")
|
||||
@Excel(name = "业务ID")
|
||||
private String businessId;
|
||||
|
||||
/** 业务编号[分别对应门诊号和住院号] */
|
||||
@ApiModelProperty(notes = "业务编号[分别对应门诊号和住院号]")
|
||||
@Excel(name = "业务编号")
|
||||
private String expenseBusinessNo;
|
||||
|
||||
/** 业务类型(1门诊 2住院) */
|
||||
@ApiModelProperty(notes = "业务类型(1门诊 2住院)")
|
||||
@Excel(name = "业务类型", readConverterExp = "1=门诊,2=住院")
|
||||
private Integer expenseType;
|
||||
|
||||
/** 收费记录ID */
|
||||
@ApiModelProperty(notes = "收费记录ID")
|
||||
@Excel(name = "收费记录ID")
|
||||
private String chargeRecordId;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
/** 费用详情信息 */
|
||||
@ApiModelProperty(notes = "费用详情信息")
|
||||
private List<HisPatientExpensesDetail> hisPatientExpensesDetailList;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,241 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
/**
|
||||
* 费用详情对象 his_patient_expenses_detail
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-09
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "费用记录")
|
||||
@Table(name = "his_patient_expenses")
|
||||
public class HisPatientExpensesDetail
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(notes = "主键ID")
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private String id;
|
||||
|
||||
/** 费用ID(分别对应门诊费和住院费) */
|
||||
@ApiModelProperty(notes = "费用ID(分别对应门诊费和住院费)")
|
||||
@Excel(name = "费用ID")
|
||||
private Long expensesId;
|
||||
|
||||
/** 费用明细ID */
|
||||
@ApiModelProperty(notes = "费用明细ID")
|
||||
@Excel(name = "费用明细ID")
|
||||
private String costDetailId;
|
||||
|
||||
/** 项目名称 */
|
||||
@ApiModelProperty(notes = "项目名称")
|
||||
@Excel(name = "项目名称")
|
||||
private String costItemName;
|
||||
|
||||
/** 项目编码 */
|
||||
@ApiModelProperty(notes = "项目编码")
|
||||
private String costItemCode;
|
||||
|
||||
/** 项目类别名称 */
|
||||
@ApiModelProperty(notes = "项目类别名称")
|
||||
@Excel(name = "项目类别名称")
|
||||
private String costItemCategoryName;
|
||||
|
||||
/** 项目类别编码 */
|
||||
@ApiModelProperty(notes = "项目类别编码")
|
||||
private String costItemCategoryCode;
|
||||
|
||||
/** 单位 */
|
||||
@ApiModelProperty(notes = "单位")
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 剂型 */
|
||||
@ApiModelProperty(notes = "剂型")
|
||||
@Excel(name = "剂型")
|
||||
private String formulation;
|
||||
|
||||
/** 规格 */
|
||||
@ApiModelProperty(notes = "规格")
|
||||
@Excel(name = "规格")
|
||||
private String specification;
|
||||
|
||||
/** 单价 */
|
||||
@ApiModelProperty(notes = "单价")
|
||||
@Excel(name = "单价")
|
||||
private BigDecimal unitPrice;
|
||||
|
||||
/** 数量 */
|
||||
@ApiModelProperty(notes = "数量")
|
||||
@Excel(name = "数量")
|
||||
private Long quantity;
|
||||
|
||||
/** 金额 */
|
||||
@ApiModelProperty(notes = "金额")
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal amount;
|
||||
|
||||
/** 药品用量 */
|
||||
@ApiModelProperty(notes = "药品用量")
|
||||
@Excel(name = "药品用量")
|
||||
private String drugDosage;
|
||||
|
||||
/** 药品用法 */
|
||||
@ApiModelProperty(notes = "药品用法")
|
||||
@Excel(name = "药品用法")
|
||||
private String drugUsage;
|
||||
|
||||
/** 用药频次 */
|
||||
@ApiModelProperty(notes = "用药频次")
|
||||
@Excel(name = "用药频次")
|
||||
private String frequency;
|
||||
|
||||
/** 用药天数 */
|
||||
@ApiModelProperty(notes = "用药天数")
|
||||
@Excel(name = "用药天数")
|
||||
private Long medicateDays;
|
||||
|
||||
/** 医院计价单位 */
|
||||
@ApiModelProperty(notes = "医院计价单位")
|
||||
private String hospitalPricingUnit;
|
||||
|
||||
/** 是否进口药品 */
|
||||
@ApiModelProperty(notes = "是否进口药品")
|
||||
private String isImportedDrugs;
|
||||
|
||||
/** 药品产地 */
|
||||
@ApiModelProperty(notes = "药品产地")
|
||||
private String drugProducingArea;
|
||||
|
||||
/** 处方号 */
|
||||
@ApiModelProperty(notes = "处方号")
|
||||
@Excel(name = "处方号")
|
||||
private String recipeCode;
|
||||
|
||||
/** 费用单据类型 */
|
||||
@ApiModelProperty(notes = "费用单据类型")
|
||||
@Excel(name = "费用单据类型")
|
||||
private String costDocumentType;
|
||||
|
||||
/** 开单科室名称 */
|
||||
@ApiModelProperty(notes = "开单科室名称")
|
||||
@Excel(name = "开单科室名称")
|
||||
private String billDeptName;
|
||||
|
||||
/** 开单科室编码 */
|
||||
@ApiModelProperty(notes = "开单科室编码")
|
||||
private String billDeptId;
|
||||
|
||||
/** 开单医生姓名 */
|
||||
@ApiModelProperty(notes = "开单医生姓名")
|
||||
@Excel(name = "开单医生姓名")
|
||||
private String billDoctorName;
|
||||
|
||||
/** 开单医生编码 */
|
||||
@ApiModelProperty(notes = "开单医生编码")
|
||||
private String billDoctorId;
|
||||
|
||||
/** 开单时间 */
|
||||
@ApiModelProperty(notes = "开单时间")
|
||||
@Excel(name = "开单时间")
|
||||
private String billTime;
|
||||
|
||||
/** 执行科室名称 */
|
||||
@ApiModelProperty(notes = "执行科室名称")
|
||||
@Excel(name = "执行科室名称")
|
||||
private String operateDeptName;
|
||||
|
||||
/** 执行科室编码 */
|
||||
@ApiModelProperty(notes = "执行科室编码")
|
||||
private String operateDeptId;
|
||||
|
||||
/** 执行医生姓名 */
|
||||
@ApiModelProperty(notes = "执行医生姓名")
|
||||
@Excel(name = "执行医生姓名")
|
||||
private String operateDoctorName;
|
||||
|
||||
/** 执行医生编码 */
|
||||
@ApiModelProperty(notes = "执行医生编码")
|
||||
private String operateDoctorId;
|
||||
|
||||
/** 执行时间 */
|
||||
@ApiModelProperty(notes = "执行时间")
|
||||
@Excel(name = "执行时间")
|
||||
private String operateTime;
|
||||
|
||||
/** 处方医师 */
|
||||
@ApiModelProperty(notes = "处方医师")
|
||||
@Excel(name = "处方医师")
|
||||
private String prescribe;
|
||||
|
||||
/** 经办人 */
|
||||
@ApiModelProperty(notes = "经办人")
|
||||
@Excel(name = "经办人")
|
||||
private String operator;
|
||||
|
||||
/** 执业医师证号 */
|
||||
@ApiModelProperty(notes = "执业医师证号")
|
||||
private String doctorNumber;
|
||||
|
||||
/** 费用冲销ID */
|
||||
@ApiModelProperty(notes = "费用冲销ID")
|
||||
private String costWriteOffId;
|
||||
|
||||
/** 是否收费(0否 1是) */
|
||||
@ApiModelProperty(notes = "是否收费(0否 1是)")
|
||||
@Excel(name = "是否收费", readConverterExp = "0=否,1=是")
|
||||
private Integer isChargeFee;
|
||||
|
||||
/** 费用时间 */
|
||||
@ApiModelProperty(notes = "费用时间")
|
||||
@Excel(name = "费用时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date chargeTime;
|
||||
|
||||
/** 机构编码 */
|
||||
@ApiModelProperty(notes = "机构编码")
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@ApiModelProperty(notes = "机构名称")
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 包装规格 */
|
||||
@ApiModelProperty(notes = "包装规格")
|
||||
private String packageSpec;
|
||||
|
||||
/** 与单次用量同单位规格 */
|
||||
@ApiModelProperty(notes = "与单次用量同单位规格")
|
||||
private String dosageSpec;
|
||||
|
||||
/** 每次用量 */
|
||||
@ApiModelProperty(notes = "每次用量")
|
||||
private String everyTimeDosage;
|
||||
|
||||
/** 目录CODE */
|
||||
@ApiModelProperty(notes = "目录CODE")
|
||||
private String dirCode;
|
||||
|
||||
/** 创建时间 */
|
||||
@ApiModelProperty(notes = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,69 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 支付账户对象 his_pay_account
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "支付账户")
|
||||
@Table(name = "his_pay_account")
|
||||
public class HisPayAccount extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 账户ID */
|
||||
@ApiModelProperty(notes = "账户ID")
|
||||
@Excel(name = "账户ID")
|
||||
private String accId;
|
||||
|
||||
/** 拼音简写 */
|
||||
@ApiModelProperty(notes = "拼音简写")
|
||||
@Excel(name = "拼音简写")
|
||||
private String accPy;
|
||||
|
||||
/** 支付方式名称 */
|
||||
@ApiModelProperty(notes = "支付方式名称")
|
||||
@Excel(name = "支付方式名称")
|
||||
private String accName;
|
||||
|
||||
/** 支付类型 */
|
||||
@ApiModelProperty(notes = "支付类型")
|
||||
@Excel(name = "支付类型")
|
||||
private String payment;
|
||||
|
||||
/** 拼音简写 */
|
||||
@ApiModelProperty(notes = "拼音简写")
|
||||
@Excel(name = "拼音简写")
|
||||
private String payPy;
|
||||
|
||||
/** 支付方式ID */
|
||||
@ApiModelProperty(notes = "支付方式ID")
|
||||
@Excel(name = "支付方式ID")
|
||||
private String paymentId;
|
||||
|
||||
/** 默认显示(0否 1是) */
|
||||
@ApiModelProperty(notes = "默认显示(0否 1是)")
|
||||
@Excel(name = "默认显示", readConverterExp = "0=否,1=是")
|
||||
private Integer isDefaultShow;
|
||||
|
||||
/** 排序号 */
|
||||
@ApiModelProperty(notes = "排序号")
|
||||
@Excel(name = "排序号")
|
||||
private Long sortNo;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,492 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 挂号记录对象 his_registration_record
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-06-28
|
||||
*/
|
||||
public class HisRegistrationRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 用户ID */
|
||||
private Long memberId;
|
||||
|
||||
/** 就诊人 */
|
||||
private Long patientId;
|
||||
|
||||
/** 姓名 */
|
||||
@Excel(name = "姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 病人性别(0未知 1男 2女 9未说明) */
|
||||
@Excel(name = "病人性别", readConverterExp = "0=未知,1=男,2=女,9=未说明")
|
||||
private Integer patientSex;
|
||||
|
||||
/** 身份证号 */
|
||||
@Excel(name = "身份证号")
|
||||
private String idCardNo;
|
||||
|
||||
/** 医院ID */
|
||||
private String orgCode;
|
||||
|
||||
/** 医院名称 */
|
||||
@Excel(name = "医院名称")
|
||||
private String orgName;
|
||||
|
||||
/** 科室ID */
|
||||
private String deptId;
|
||||
|
||||
/** 科室名称 */
|
||||
@Excel(name = "科室名称")
|
||||
private String deptName;
|
||||
|
||||
/** 医生ID */
|
||||
private String doctorId;
|
||||
|
||||
/** 医生名称 */
|
||||
@Excel(name = "医生名称")
|
||||
private String doctorName;
|
||||
|
||||
/** 厂商标识 */
|
||||
private String vendorId;
|
||||
|
||||
/** 挂号费 */
|
||||
@Excel(name = "挂号费")
|
||||
private BigDecimal fee;
|
||||
|
||||
/** 流水号 */
|
||||
@Excel(name = "流水号")
|
||||
private String paySerialNo;
|
||||
|
||||
/** 缴费方式列表[{PaymentID:支付方式ID,OrgAccID:账户ID,Fee:金额}] */
|
||||
private String paymentListStr;
|
||||
|
||||
/** 虚拟收费员ID */
|
||||
private String userId;
|
||||
|
||||
/** 挂号ID */
|
||||
@Excel(name = "挂号ID")
|
||||
private String registeredId;
|
||||
|
||||
/** 挂号CODE */
|
||||
private String registeredCode;
|
||||
|
||||
/** 挂号日期 */
|
||||
@Excel(name = "挂号日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date registeredDate;
|
||||
|
||||
/** 就诊日期 */
|
||||
@Excel(name = "就诊日期")
|
||||
private String visitDate;
|
||||
|
||||
/** 就诊时段(1上午 2下午) */
|
||||
@Excel(name = "就诊时段", readConverterExp = "1=上午,2=下午")
|
||||
private String visitTime;
|
||||
|
||||
/** 挂号类型(0预约挂号 1当日挂号 2分诊挂号) */
|
||||
@Excel(name = "挂号类型", readConverterExp = "0=预约挂号,1=当日挂号,2=分诊挂号")
|
||||
private Integer registeredType;
|
||||
|
||||
/** 门诊ID */
|
||||
@Excel(name = "门诊ID")
|
||||
private String businessId;
|
||||
|
||||
/** 门诊号 */
|
||||
@Excel(name = "门诊号")
|
||||
private String outpatientNumber;
|
||||
|
||||
/** 就诊序号 */
|
||||
@Excel(name = "就诊序号")
|
||||
private String seq;
|
||||
|
||||
/** 是否可退(0否 1是) */
|
||||
@Excel(name = "是否可退", readConverterExp = "0=否,1=是")
|
||||
private Integer refundAble;
|
||||
|
||||
/** 费用类型ID */
|
||||
private String feeTypeId;
|
||||
|
||||
/** 挂号模板ID */
|
||||
private String templateId;
|
||||
|
||||
/** 订单编号 */
|
||||
@Excel(name = "订单编号")
|
||||
private String orderCode;
|
||||
|
||||
/** 挂号来源(0线下 1线上 2自助分诊终端) */
|
||||
@Excel(name = "挂号来源", readConverterExp = "0=线下,1=线上,2=自助分诊终端")
|
||||
private Integer registeredSource;
|
||||
|
||||
/** 状态(0新建 1待接诊 2已就诊 3已退费) */
|
||||
@Excel(name = "状态", readConverterExp = "0=新建,1=待接诊,2=已就诊,3=已退费")
|
||||
private Integer registeredStatus;
|
||||
|
||||
/** 取消时间 */
|
||||
@Excel(name = "取消时间")
|
||||
private String cancelTime;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
private Integer deleted;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMemberId(Long memberId)
|
||||
{
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Long getMemberId()
|
||||
{
|
||||
return memberId;
|
||||
}
|
||||
public void setPatientId(Long patientId)
|
||||
{
|
||||
this.patientId = patientId;
|
||||
}
|
||||
|
||||
public Long getPatientId()
|
||||
{
|
||||
return patientId;
|
||||
}
|
||||
public void setPatientName(String patientName)
|
||||
{
|
||||
this.patientName = patientName;
|
||||
}
|
||||
|
||||
public String getPatientName()
|
||||
{
|
||||
return patientName;
|
||||
}
|
||||
public void setPatientSex(Integer patientSex)
|
||||
{
|
||||
this.patientSex = patientSex;
|
||||
}
|
||||
|
||||
public Integer getPatientSex()
|
||||
{
|
||||
return patientSex;
|
||||
}
|
||||
public void setIdCardNo(String idCardNo)
|
||||
{
|
||||
this.idCardNo = idCardNo;
|
||||
}
|
||||
|
||||
public String getIdCardNo()
|
||||
{
|
||||
return idCardNo;
|
||||
}
|
||||
public void setOrgCode(String orgCode)
|
||||
{
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCode()
|
||||
{
|
||||
return orgCode;
|
||||
}
|
||||
public void setOrgName(String orgName)
|
||||
{
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgName()
|
||||
{
|
||||
return orgName;
|
||||
}
|
||||
public void setDeptId(String deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
public void setDeptName(String deptName)
|
||||
{
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getDeptName()
|
||||
{
|
||||
return deptName;
|
||||
}
|
||||
public void setDoctorId(String doctorId)
|
||||
{
|
||||
this.doctorId = doctorId;
|
||||
}
|
||||
|
||||
public String getDoctorId()
|
||||
{
|
||||
return doctorId;
|
||||
}
|
||||
public void setDoctorName(String doctorName)
|
||||
{
|
||||
this.doctorName = doctorName;
|
||||
}
|
||||
|
||||
public String getDoctorName()
|
||||
{
|
||||
return doctorName;
|
||||
}
|
||||
public void setVendorId(String vendorId)
|
||||
{
|
||||
this.vendorId = vendorId;
|
||||
}
|
||||
|
||||
public String getVendorId()
|
||||
{
|
||||
return vendorId;
|
||||
}
|
||||
public void setFee(BigDecimal fee)
|
||||
{
|
||||
this.fee = fee;
|
||||
}
|
||||
|
||||
public BigDecimal getFee()
|
||||
{
|
||||
return fee;
|
||||
}
|
||||
public void setPaySerialNo(String paySerialNo)
|
||||
{
|
||||
this.paySerialNo = paySerialNo;
|
||||
}
|
||||
|
||||
public String getPaySerialNo()
|
||||
{
|
||||
return paySerialNo;
|
||||
}
|
||||
public void setPaymentListStr(String paymentListStr)
|
||||
{
|
||||
this.paymentListStr = paymentListStr;
|
||||
}
|
||||
|
||||
public String getPaymentListStr()
|
||||
{
|
||||
return paymentListStr;
|
||||
}
|
||||
public void setUserId(String userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
public void setRegisteredId(String registeredId)
|
||||
{
|
||||
this.registeredId = registeredId;
|
||||
}
|
||||
|
||||
public String getRegisteredId()
|
||||
{
|
||||
return registeredId;
|
||||
}
|
||||
public void setRegisteredCode(String registeredCode)
|
||||
{
|
||||
this.registeredCode = registeredCode;
|
||||
}
|
||||
|
||||
public String getRegisteredCode()
|
||||
{
|
||||
return registeredCode;
|
||||
}
|
||||
public void setRegisteredDate(Date registeredDate)
|
||||
{
|
||||
this.registeredDate = registeredDate;
|
||||
}
|
||||
|
||||
public Date getRegisteredDate()
|
||||
{
|
||||
return registeredDate;
|
||||
}
|
||||
public void setVisitDate(String visitDate)
|
||||
{
|
||||
this.visitDate = visitDate;
|
||||
}
|
||||
|
||||
public String getVisitDate()
|
||||
{
|
||||
return visitDate;
|
||||
}
|
||||
public void setVisitTime(String visitTime)
|
||||
{
|
||||
this.visitTime = visitTime;
|
||||
}
|
||||
|
||||
public String getVisitTime()
|
||||
{
|
||||
return visitTime;
|
||||
}
|
||||
public void setRegisteredType(Integer registeredType)
|
||||
{
|
||||
this.registeredType = registeredType;
|
||||
}
|
||||
|
||||
public Integer getRegisteredType()
|
||||
{
|
||||
return registeredType;
|
||||
}
|
||||
public void setBusinessId(String businessId)
|
||||
{
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getBusinessId()
|
||||
{
|
||||
return businessId;
|
||||
}
|
||||
public void setOutpatientNumber(String outpatientNumber)
|
||||
{
|
||||
this.outpatientNumber = outpatientNumber;
|
||||
}
|
||||
|
||||
public String getOutpatientNumber()
|
||||
{
|
||||
return outpatientNumber;
|
||||
}
|
||||
public void setSeq(String seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
public String getSeq()
|
||||
{
|
||||
return seq;
|
||||
}
|
||||
public void setRefundAble(Integer refundAble)
|
||||
{
|
||||
this.refundAble = refundAble;
|
||||
}
|
||||
|
||||
public Integer getRefundAble()
|
||||
{
|
||||
return refundAble;
|
||||
}
|
||||
public void setFeeTypeId(String feeTypeId)
|
||||
{
|
||||
this.feeTypeId = feeTypeId;
|
||||
}
|
||||
|
||||
public String getFeeTypeId()
|
||||
{
|
||||
return feeTypeId;
|
||||
}
|
||||
public void setTemplateId(String templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public String getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
public void setOrderCode(String orderCode)
|
||||
{
|
||||
this.orderCode = orderCode;
|
||||
}
|
||||
|
||||
public String getOrderCode()
|
||||
{
|
||||
return orderCode;
|
||||
}
|
||||
public void setRegisteredSource(Integer registeredSource)
|
||||
{
|
||||
this.registeredSource = registeredSource;
|
||||
}
|
||||
|
||||
public Integer getRegisteredSource()
|
||||
{
|
||||
return registeredSource;
|
||||
}
|
||||
public void setRegisteredStatus(Integer registeredStatus)
|
||||
{
|
||||
this.registeredStatus = registeredStatus;
|
||||
}
|
||||
|
||||
public Integer getRegisteredStatus()
|
||||
{
|
||||
return registeredStatus;
|
||||
}
|
||||
public void setCancelTime(String cancelTime)
|
||||
{
|
||||
this.cancelTime = cancelTime;
|
||||
}
|
||||
|
||||
public String getCancelTime()
|
||||
{
|
||||
return cancelTime;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("memberId", getMemberId())
|
||||
.append("patientId", getPatientId())
|
||||
.append("patientName", getPatientName())
|
||||
.append("patientSex", getPatientSex())
|
||||
.append("idCardNo", getIdCardNo())
|
||||
.append("orgCode", getOrgCode())
|
||||
.append("orgName", getOrgName())
|
||||
.append("deptId", getDeptId())
|
||||
.append("deptName", getDeptName())
|
||||
.append("doctorId", getDoctorId())
|
||||
.append("doctorName", getDoctorName())
|
||||
.append("vendorId", getVendorId())
|
||||
.append("fee", getFee())
|
||||
.append("paySerialNo", getPaySerialNo())
|
||||
.append("paymentListStr", getPaymentListStr())
|
||||
.append("userId", getUserId())
|
||||
.append("registeredId", getRegisteredId())
|
||||
.append("registeredCode", getRegisteredCode())
|
||||
.append("registeredDate", getRegisteredDate())
|
||||
.append("visitDate", getVisitDate())
|
||||
.append("visitTime", getVisitTime())
|
||||
.append("registeredType", getRegisteredType())
|
||||
.append("businessId", getBusinessId())
|
||||
.append("outpatientNumber", getOutpatientNumber())
|
||||
.append("seq", getSeq())
|
||||
.append("refundAble", getRefundAble())
|
||||
.append("feeTypeId", getFeeTypeId())
|
||||
.append("templateId", getTemplateId())
|
||||
.append("orderCode", getOrderCode())
|
||||
.append("registeredSource", getRegisteredSource())
|
||||
.append("registeredStatus", getRegisteredStatus())
|
||||
.append("cancelTime", getCancelTime())
|
||||
.append("remark", getRemark())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("deleted", getDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,136 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 挂号模板对象 his_registration_template
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
public class HisRegistrationTemplate extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 机构ID */
|
||||
private String orgCode;
|
||||
|
||||
/** 机构名称 */
|
||||
@Excel(name = "机构名称")
|
||||
private String orgName;
|
||||
|
||||
/** 模板ID */
|
||||
@Excel(name = "模板ID")
|
||||
private String templateId;
|
||||
|
||||
/** 模板名称 */
|
||||
@Excel(name = "模板名称")
|
||||
private String templateName;
|
||||
|
||||
/** 挂号金额 */
|
||||
@Excel(name = "挂号金额")
|
||||
private BigDecimal fee;
|
||||
|
||||
/** 显示状态(0否 1是) */
|
||||
@Excel(name = "显示状态", readConverterExp = "0=否,1=是")
|
||||
private Integer isShow;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
private Integer deleted;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setOrgCode(String orgCode)
|
||||
{
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
public String getOrgCode()
|
||||
{
|
||||
return orgCode;
|
||||
}
|
||||
public void setOrgName(String orgName)
|
||||
{
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgName()
|
||||
{
|
||||
return orgName;
|
||||
}
|
||||
public void setTemplateId(String templateId)
|
||||
{
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
public String getTemplateId()
|
||||
{
|
||||
return templateId;
|
||||
}
|
||||
public void setTemplateName(String templateName)
|
||||
{
|
||||
this.templateName = templateName;
|
||||
}
|
||||
|
||||
public String getTemplateName()
|
||||
{
|
||||
return templateName;
|
||||
}
|
||||
public void setFee(BigDecimal fee)
|
||||
{
|
||||
this.fee = fee;
|
||||
}
|
||||
|
||||
public BigDecimal getFee()
|
||||
{
|
||||
return fee;
|
||||
}
|
||||
public void setIsShow(Integer isShow)
|
||||
{
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public Integer getIsShow()
|
||||
{
|
||||
return isShow;
|
||||
}
|
||||
public void setDeleted(Integer deleted)
|
||||
{
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public Integer getDeleted()
|
||||
{
|
||||
return deleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("orgCode", getOrgCode())
|
||||
.append("orgName", getOrgName())
|
||||
.append("templateId", getTemplateId())
|
||||
.append("templateName", getTemplateName())
|
||||
.append("fee", getFee())
|
||||
.append("isShow", getIsShow())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("deleted", getDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package com.ruoyi.his.domain;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import java.util.List;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* 微信服务商对象 his_wechat_provider
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiModel(value = "微信服务商")
|
||||
@Table(name = "his_wechat_provider")
|
||||
public class HisWechatProvider extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 客户端ID */
|
||||
@ApiModelProperty(notes = "客户端ID")
|
||||
@Excel(name = "客户端ID")
|
||||
private String clientId;
|
||||
|
||||
/** 客户端密钥 */
|
||||
@ApiModelProperty(notes = "客户端密钥")
|
||||
@Excel(name = "客户端密钥")
|
||||
private String clientSecret;
|
||||
|
||||
/** AppID */
|
||||
@ApiModelProperty(notes = "AppID")
|
||||
@Excel(name = "AppID")
|
||||
private String appId;
|
||||
|
||||
/** AppSecret */
|
||||
@ApiModelProperty(notes = "AppSecret")
|
||||
@Excel(name = "AppSecret")
|
||||
private String appSecret;
|
||||
|
||||
/** 服务商AppId */
|
||||
@ApiModelProperty(notes = "服务商AppId")
|
||||
@Excel(name = "服务商AppId")
|
||||
private String mchAppId;
|
||||
|
||||
/** 服务商账号 */
|
||||
@ApiModelProperty(notes = "服务商账号")
|
||||
@Excel(name = "服务商账号")
|
||||
private String mchId;
|
||||
|
||||
/** 服务商密钥 */
|
||||
@ApiModelProperty(notes = "服务商密钥")
|
||||
@Excel(name = "服务商密钥")
|
||||
private String mchKey;
|
||||
|
||||
/** 证书路径 */
|
||||
@ApiModelProperty(notes = "证书路径")
|
||||
@Excel(name = "证书路径")
|
||||
private String keyPath;
|
||||
|
||||
/**
|
||||
* 前端地址(公众号)
|
||||
*/
|
||||
@ApiModelProperty(value = "前端地址(公众号)")
|
||||
@Excel(name = "前端地址")
|
||||
private String frontUrl;
|
||||
|
||||
/** 后台接口 */
|
||||
@ApiModelProperty(notes = "后台接口")
|
||||
@Excel(name = "后台接口")
|
||||
private String openApi;
|
||||
|
||||
/** 删除标记(0否 1是) */
|
||||
@ApiModelProperty(notes = "删除标记(0否 1是)")
|
||||
private Integer deleted;
|
||||
|
||||
/** 特约商户信息 */
|
||||
@ApiModelProperty(notes = "特约商户信息")
|
||||
private List<HisMerchantWechat> hisMerchantWechatList;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
package com.ruoyi.his.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.his.domain.HisDepartment;
|
||||
|
||||
/**
|
||||
* 科室Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
public interface HisDepartmentMapper extends RuoYiBaseMapper<HisDepartment>
|
||||
{
|
||||
/**
|
||||
* 查询科室
|
||||
*
|
||||
* @param id 科室ID
|
||||
* @return 科室
|
||||
*/
|
||||
public HisDepartment selectHisDepartmentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询科室列表
|
||||
*
|
||||
* @param hisDepartment 科室
|
||||
* @return 科室集合
|
||||
*/
|
||||
public List<HisDepartment> selectHisDepartmentList(HisDepartment hisDepartment);
|
||||
|
||||
/**
|
||||
* 新增科室
|
||||
*
|
||||
* @param hisDepartment 科室
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHisDepartment(HisDepartment hisDepartment);
|
||||
|
||||
/**
|
||||
* 修改科室
|
||||
*
|
||||
* @param hisDepartment 科室
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHisDepartment(HisDepartment hisDepartment);
|
||||
|
||||
/**
|
||||
* 删除科室
|
||||
*
|
||||
* @param id 科室ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDepartmentById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除科室
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDepartmentByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 查询科室
|
||||
*
|
||||
* @param deptId 科室ID
|
||||
* @return 科室
|
||||
*/
|
||||
public HisDepartment selectHisDepartmentByDeptId(String deptId);
|
||||
}
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
package com.ruoyi.his.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.his.domain.HisDoctorDepartment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 医生科室关系Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
public interface HisDoctorDepartmentMapper extends RuoYiBaseMapper<HisDoctorDepartment>
|
||||
{
|
||||
/**
|
||||
* 查询医生科室关系
|
||||
*
|
||||
* @param id 医生科室关系ID
|
||||
* @return 医生科室关系
|
||||
*/
|
||||
public HisDoctorDepartment selectHisDoctorDepartmentById(Long id);
|
||||
|
||||
/**
|
||||
* 查询医生科室关系列表
|
||||
*
|
||||
* @param hisDoctorDepartment 医生科室关系
|
||||
* @return 医生科室关系集合
|
||||
*/
|
||||
public List<HisDoctorDepartment> selectHisDoctorDepartmentList(HisDoctorDepartment hisDoctorDepartment);
|
||||
|
||||
/**
|
||||
* 新增医生科室关系
|
||||
*
|
||||
* @param hisDoctorDepartment 医生科室关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHisDoctorDepartment(HisDoctorDepartment hisDoctorDepartment);
|
||||
|
||||
/**
|
||||
* 修改医生科室关系
|
||||
*
|
||||
* @param hisDoctorDepartment 医生科室关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHisDoctorDepartment(HisDoctorDepartment hisDoctorDepartment);
|
||||
|
||||
public int updateHisDoctorDepartmentByDeptId(HisDoctorDepartment hisDoctorDepartment);
|
||||
|
||||
/**
|
||||
* 删除医生科室关系
|
||||
*
|
||||
* @param id 医生科室关系ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDoctorDepartmentById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除医生科室关系
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDoctorDepartmentByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
package com.ruoyi.his.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.his.domain.HisDoctor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 医生Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-01
|
||||
*/
|
||||
public interface HisDoctorMapper extends RuoYiBaseMapper<HisDoctor>
|
||||
{
|
||||
/**
|
||||
* 查询医生
|
||||
*
|
||||
* @param id 医生ID
|
||||
* @return 医生
|
||||
*/
|
||||
public HisDoctor selectHisDoctorById(Long id);
|
||||
|
||||
/**
|
||||
* 查询医生列表
|
||||
*
|
||||
* @param hisDoctor 医生
|
||||
* @return 医生集合
|
||||
*/
|
||||
public List<HisDoctor> selectHisDoctorList(HisDoctor hisDoctor);
|
||||
|
||||
/**
|
||||
* 新增医生
|
||||
*
|
||||
* @param hisDoctor 医生
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHisDoctor(HisDoctor hisDoctor);
|
||||
|
||||
/**
|
||||
* 修改医生
|
||||
*
|
||||
* @param hisDoctor 医生
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHisDoctor(HisDoctor hisDoctor);
|
||||
|
||||
/**
|
||||
* 删除医生
|
||||
*
|
||||
* @param id 医生ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDoctorById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除医生
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDoctorByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 查询医生列表
|
||||
*
|
||||
* @param orgCode 机构编码
|
||||
* @return 医生集合
|
||||
*/
|
||||
public List<HisDoctor> selectHisDoctorOrgCode(String orgCode);
|
||||
|
||||
/**
|
||||
* 获取机构虚拟账户
|
||||
* @param orgCode 机构编码
|
||||
* @return 虚拟账户
|
||||
*/
|
||||
public HisDoctor getVirtualAccount(String orgCode);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param vmUserId 虚拟用户ID
|
||||
* @return
|
||||
*/
|
||||
public HisDoctor getVirtualAccountById(String vmUserId);
|
||||
}
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
package com.ruoyi.his.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.his.domain.HisDoctorSchedule;
|
||||
|
||||
/**
|
||||
* 医生排班Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-03
|
||||
*/
|
||||
public interface HisDoctorScheduleMapper extends RuoYiBaseMapper<HisDoctorSchedule>
|
||||
{
|
||||
/**
|
||||
* 查询医生排班
|
||||
*
|
||||
* @param id 医生排班ID
|
||||
* @return 医生排班
|
||||
*/
|
||||
public HisDoctorSchedule selectHisDoctorScheduleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询医生排班
|
||||
*
|
||||
* @param hisDoctorSchedule 医生排班
|
||||
* @return 医生排班
|
||||
*/
|
||||
public HisDoctorSchedule selectHisDoctorSchedule(HisDoctorSchedule hisDoctorSchedule);
|
||||
|
||||
/**
|
||||
* 查询医生排班列表
|
||||
*
|
||||
* @param hisDoctorSchedule 医生排班
|
||||
* @return 医生排班集合
|
||||
*/
|
||||
public List<HisDoctorSchedule> selectHisDoctorScheduleList(HisDoctorSchedule hisDoctorSchedule);
|
||||
|
||||
/**
|
||||
* 新增医生排班
|
||||
*
|
||||
* @param hisDoctorSchedule 医生排班
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHisDoctorSchedule(HisDoctorSchedule hisDoctorSchedule);
|
||||
|
||||
/**
|
||||
* 新增医生排班
|
||||
* @param doctorScheduleList 医生排班列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHisDoctorScheduleBatch(List<HisDoctorSchedule> doctorScheduleList);
|
||||
|
||||
/**
|
||||
* 修改医生排班
|
||||
*
|
||||
* @param hisDoctorSchedule 医生排班
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHisDoctorSchedule(HisDoctorSchedule hisDoctorSchedule);
|
||||
|
||||
/**
|
||||
* 删除医生排班
|
||||
*
|
||||
* @param id 医生排班ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDoctorScheduleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除医生排班
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisDoctorScheduleByIds(String[] ids);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.ruoyi.his.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.his.domain.HisEhealthClient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 健康卡Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-27
|
||||
*/
|
||||
public interface HisEhealthClientMapper extends RuoYiBaseMapper<HisEhealthClient>
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询健康卡
|
||||
*
|
||||
* @param id 健康卡ID
|
||||
* @return 健康卡
|
||||
*/
|
||||
public HisEhealthClient selectHisEhealthClientById(Long id);
|
||||
|
||||
/**
|
||||
* 查询健康卡列表
|
||||
*
|
||||
* @param hisEhealthClient 健康卡
|
||||
* @return 健康卡集合
|
||||
*/
|
||||
public List<HisEhealthClient> selectHisEhealthClientList(HisEhealthClient hisEhealthClient);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.ruoyi.his.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.his.domain.HisFeeItem;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 费用类型Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-07-14
|
||||
*/
|
||||
public interface HisFeeItemMapper extends RuoYiBaseMapper<HisFeeItem>
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询费用类型
|
||||
*
|
||||
* @param id 费用类型ID
|
||||
* @return 费用类型
|
||||
*/
|
||||
public HisFeeItem selectHisFeeItemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询费用类型列表
|
||||
*
|
||||
* @param hisFeeItem 费用类型
|
||||
* @return 费用类型集合
|
||||
*/
|
||||
public List<HisFeeItem> selectHisFeeItemList(HisFeeItem hisFeeItem);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.ruoyi.his.mapper;
|
||||
|
||||
import com.ruoyi.common.mappers.RuoYiBaseMapper;
|
||||
import com.ruoyi.his.domain.HisHospitalInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 医疗机构Mapper接口
|
||||
*
|
||||
* @author bend
|
||||
* @date 2020-06-28
|
||||
*/
|
||||
public interface HisHospitalInfoMapper extends RuoYiBaseMapper<HisHospitalInfo>
|
||||
{
|
||||
/**
|
||||
* 查询医疗机构
|
||||
*
|
||||
* @param id 医疗机构ID
|
||||
* @return 医疗机构
|
||||
*/
|
||||
public HisHospitalInfo selectHisHospitalInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询医疗机构
|
||||
* @param orgCode 医疗机构编码
|
||||
* @return 医疗机构
|
||||
*/
|
||||
public HisHospitalInfo selectHisHospitalInfoByOrgCode(String orgCode);
|
||||
|
||||
/**
|
||||
* 查询医疗机构列表
|
||||
*
|
||||
* @param hisHospitalInfo 医疗机构
|
||||
* @return 医疗机构集合
|
||||
*/
|
||||
public List<HisHospitalInfo> selectHisHospitalInfoList(HisHospitalInfo hisHospitalInfo);
|
||||
|
||||
/**
|
||||
* 新增医疗机构
|
||||
*
|
||||
* @param hisHospitalInfo 医疗机构
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertHisHospitalInfo(HisHospitalInfo hisHospitalInfo);
|
||||
|
||||
/**
|
||||
* 修改医疗机构
|
||||
*
|
||||
* @param hisHospitalInfo 医疗机构
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateHisHospitalInfo(HisHospitalInfo hisHospitalInfo);
|
||||
|
||||
/**
|
||||
* 删除医疗机构
|
||||
*
|
||||
* @param id 医疗机构ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisHospitalInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除医疗机构
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteHisHospitalInfoByIds(String[] ids);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue