|
@@ -0,0 +1,35 @@
|
|
|
+package thyyxxk.webserver.service.medicalinsurance;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+import thyyxxk.webserver.dao.his.medicalinsurance.SiLogDao;
|
|
|
+import thyyxxk.webserver.entity.ResultVo;
|
|
|
+import thyyxxk.webserver.entity.medicalinsurance.log.FetchLog;
|
|
|
+import thyyxxk.webserver.entity.medicalinsurance.log.SiLog;
|
|
|
+import thyyxxk.webserver.utils.ResultVoUtil;
|
|
|
+import thyyxxk.webserver.utils.StringUtil;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Service
|
|
|
+public class SiLogService {
|
|
|
+ private final SiLogDao dao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ public SiLogService(SiLogDao dao) {
|
|
|
+ this.dao = dao;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ResultVo<List<SiLog>> selectSiLogs(FetchLog ftchlg) {
|
|
|
+ QueryWrapper<SiLog> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("log_type", ftchlg.getLogType());
|
|
|
+ if (StringUtil.notBlank(ftchlg.getInfno())) {
|
|
|
+ wrapper.eq("infno", ftchlg.getInfno());
|
|
|
+ }
|
|
|
+ if (null != ftchlg.getBegntime() && null != ftchlg.getEndtime()) {
|
|
|
+ wrapper.between("create_datetime", ftchlg.getBegntime(), ftchlg.getEndtime());
|
|
|
+ }
|
|
|
+ return ResultVoUtil.success(dao.selectList(wrapper));
|
|
|
+ }
|
|
|
+}
|