开发2021-10-17issueLog
parent
1bcac38a77
commit
55ebdef488
Binary file not shown.
@ -0,0 +1,90 @@
|
||||
package com.emr.controller;
|
||||
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.service.ipml.ArchiveForceSumbitInfoService;
|
||||
import com.emr.util.ExceptionPrintUtil;
|
||||
import com.emr.util.ExportExcelUtil;
|
||||
import com.emr.util.Msg;
|
||||
import com.emr.vo.ArchiveForceSumbitInfoVo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2021/10/17 9:53
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2021/10/17 9:53
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("forceSumbit")
|
||||
public class ForceSumbitController {
|
||||
@Autowired
|
||||
private ArchiveForceSumbitInfoService archiveForceSumbitInfoService;
|
||||
|
||||
/**
|
||||
* 跳转强制提交列表
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("forceSumbitList")
|
||||
private String forSumbitList(){
|
||||
return "/vCountDir/forceSumbitList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取强制提交列表数据
|
||||
* @param archiveForceSumbitInfoVo
|
||||
* @param offset
|
||||
* @param limit
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "getForceSumbitList")
|
||||
public OffsetLimitPage getForceSumbitList(ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo, Integer offset, Integer limit) throws Exception{
|
||||
try {
|
||||
return archiveForceSumbitInfoService.getForceSumbitList(archiveForceSumbitInfoVo, offset, limit);
|
||||
} catch (Exception e) {
|
||||
ExceptionPrintUtil.printException(e);
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出
|
||||
* @param response
|
||||
* @param archiveForceSumbitInfoVo
|
||||
*/
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "/exportExcel")
|
||||
public void exportExcel(HttpServletResponse response,ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo){
|
||||
String tableThNames = "住院号,住院次数,姓名,出院科室,出院日期,操作节点,操作人工号,操作人姓名,操作时间,缺失信息,状态";
|
||||
String fieldCns = "inpNo,visitId,name,deptName,dischargeDateTime,operNodeCode,creater,createrName,createTimeStr,lockInfo,stateCode";
|
||||
//构造excel的数据
|
||||
try {
|
||||
List<ArchiveForceSumbitInfoVo> list = archiveForceSumbitInfoService.getList(archiveForceSumbitInfoVo);
|
||||
//文件名
|
||||
String fileName = "强制提交质控列表" + new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".xls";
|
||||
//ExportExcelUtil
|
||||
ExportExcelUtil exportExcelUtil = new ExportExcelUtil();
|
||||
//导出excel的操作
|
||||
exportExcelUtil.expordExcel(tableThNames,fieldCns,list,fileName,response);
|
||||
}catch (Exception e){
|
||||
ExceptionPrintUtil.printException(e);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.emr.dao;
|
||||
|
||||
import com.emr.entity.ArchiveForceSumbitInfo;
|
||||
import com.emr.vo.ArchiveForceSumbitInfoVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ArchiveForceSumbitInfoMapper {
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(ArchiveForceSumbitInfo record);
|
||||
|
||||
int insertSelective(ArchiveForceSumbitInfo record);
|
||||
|
||||
ArchiveForceSumbitInfo selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(ArchiveForceSumbitInfo record);
|
||||
|
||||
int updateByPrimaryKey(ArchiveForceSumbitInfo record);
|
||||
|
||||
List<ArchiveForceSumbitInfoVo> getForceSumbitList(ArchiveForceSumbitInfoVo record);
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package com.emr.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
public class ArchiveForceSumbitInfo implements Serializable {
|
||||
private Long id;
|
||||
|
||||
private String masterId;
|
||||
|
||||
private String operNodeCode;
|
||||
|
||||
private String creater;
|
||||
|
||||
private String createrName;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private String lockInfo;
|
||||
|
||||
private String stateCode;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMasterId() {
|
||||
return masterId;
|
||||
}
|
||||
|
||||
public void setMasterId(String masterId) {
|
||||
this.masterId = masterId == null ? null : masterId.trim();
|
||||
}
|
||||
|
||||
public String getOperNodeCode() {
|
||||
return operNodeCode;
|
||||
}
|
||||
|
||||
public void setOperNodeCode(String operNodeCode) {
|
||||
this.operNodeCode = operNodeCode == null ? null : operNodeCode.trim();
|
||||
}
|
||||
|
||||
public String getCreater() {
|
||||
return creater;
|
||||
}
|
||||
|
||||
public void setCreater(String creater) {
|
||||
this.creater = creater == null ? null : creater.trim();
|
||||
}
|
||||
|
||||
public String getCreaterName() {
|
||||
return createrName;
|
||||
}
|
||||
|
||||
public void setCreaterName(String createrName) {
|
||||
this.createrName = createrName == null ? null : createrName.trim();
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getLockInfo() {
|
||||
return lockInfo;
|
||||
}
|
||||
|
||||
public void setLockInfo(String lockInfo) {
|
||||
this.lockInfo = lockInfo == null ? null : lockInfo.trim();
|
||||
}
|
||||
|
||||
public String getStateCode() {
|
||||
return stateCode;
|
||||
}
|
||||
|
||||
public void setStateCode(String stateCode) {
|
||||
this.stateCode = stateCode == null ? null : stateCode.trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", id=").append(id);
|
||||
sb.append(", masterId=").append(masterId);
|
||||
sb.append(", operNodeCode=").append(operNodeCode);
|
||||
sb.append(", creater=").append(creater);
|
||||
sb.append(", createrName=").append(createrName);
|
||||
sb.append(", createTime=").append(createTime);
|
||||
sb.append(", lockInfo=").append(lockInfo);
|
||||
sb.append(", stateCode=").append(stateCode);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package com.emr.service.ipml;
|
||||
|
||||
import com.emr.dao.ArchiveForceSumbitInfoMapper;
|
||||
import com.emr.entity.ArchiveForceSumbitInfo;
|
||||
import com.emr.entity.OffsetLimitPage;
|
||||
import com.emr.entity.Power_User;
|
||||
import com.emr.service.Archive_MasterService;
|
||||
import com.emr.util.IDHelper;
|
||||
import com.emr.util.Msg;
|
||||
import com.emr.vo.ArchiveForceSumbitInfoVo;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import org.apache.shiro.util.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2021/10/29 14:31
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2021/10/29 14:31
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
@Service
|
||||
@Transactional
|
||||
public class ArchiveForceSumbitInfoService {
|
||||
@Autowired
|
||||
private ArchiveForceSumbitInfoMapper archiveForceSumbitInfoMapper;
|
||||
@Autowired
|
||||
private Archive_MasterService archiveMasterService;
|
||||
|
||||
public OffsetLimitPage getForceSumbitList(ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo, Integer offset, Integer limit) {
|
||||
PageHelper.offsetPage(offset, limit);
|
||||
List<ArchiveForceSumbitInfoVo> list = getList(archiveForceSumbitInfoVo);
|
||||
return new OffsetLimitPage((Page) list);
|
||||
}
|
||||
|
||||
public List<ArchiveForceSumbitInfoVo> getList(ArchiveForceSumbitInfoVo archiveForceSumbitInfoVo){
|
||||
List<ArchiveForceSumbitInfoVo> list = archiveForceSumbitInfoMapper.getForceSumbitList(archiveForceSumbitInfoVo);
|
||||
//转换状态
|
||||
if(!CollectionUtils.isEmpty(list)){
|
||||
Msg role = archiveMasterService.getRole();
|
||||
if(null != role) {
|
||||
for (ArchiveForceSumbitInfoVo vo : list) {
|
||||
String stateCode = vo.getStateCode();
|
||||
Integer status = Integer.valueOf(stateCode);
|
||||
//组织已经审核的状态
|
||||
stateCode = EnumVerify.DocState.GetStepName(status, role.getCode());
|
||||
//组织未审核的状态
|
||||
//String currentArchivestate = EnumVerify.DocState.GetCurrentStepName(status, role.getCode());
|
||||
vo.setStateCode(stateCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public void saveForceSumbit(ArchiveForceSumbitInfo archiveForceSumbitInfo){
|
||||
//获取request
|
||||
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes())
|
||||
.getRequest();
|
||||
Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
|
||||
//获取id
|
||||
try {
|
||||
archiveForceSumbitInfo.setId(IDHelper.NewID());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
archiveForceSumbitInfo.setCreater(user.getUserName());
|
||||
archiveForceSumbitInfo.setCreaterName(user.getUserPosition());
|
||||
archiveForceSumbitInfo.setCreateTime(new Date());
|
||||
archiveForceSumbitInfoMapper.insert(archiveForceSumbitInfo);
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.emr.vo;
|
||||
|
||||
/**
|
||||
* @ProjectName:
|
||||
* @Description:
|
||||
* @Param 传输参数
|
||||
* @Return
|
||||
* @Author: 曾文和
|
||||
* @CreateDate: 2021/10/29 15:08
|
||||
* @UpdateUser: 曾文和
|
||||
* @UpdateDate: 2021/10/29 15:08
|
||||
* @UpdateRemark: 更新说明
|
||||
* @Version: 1.0
|
||||
*/
|
||||
|
||||
import com.emr.entity.ArchiveForceSumbitInfo;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ArchiveForceSumbitInfoVo extends ArchiveForceSumbitInfo {
|
||||
private String inpNo;
|
||||
|
||||
private Integer visitId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String deptName;
|
||||
|
||||
private String dischargeDateTime;
|
||||
|
||||
private String createTimeStr;
|
||||
|
||||
private String startDate;
|
||||
|
||||
private String endDate;
|
||||
|
||||
private String startDate1;
|
||||
|
||||
private String endDate1;
|
||||
}
|
@ -0,0 +1,202 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.emr.dao.ArchiveForceSumbitInfoMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.emr.entity.ArchiveForceSumbitInfo" >
|
||||
<id column="id" property="id" jdbcType="BIGINT" />
|
||||
<result column="master_id" property="masterId" jdbcType="NVARCHAR" />
|
||||
<result column="oper_node_code" property="operNodeCode" jdbcType="NVARCHAR" />
|
||||
<result column="creater" property="creater" jdbcType="NVARCHAR" />
|
||||
<result column="creater_name" property="createrName" jdbcType="NVARCHAR" />
|
||||
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
||||
<result column="lock_info" property="lockInfo" jdbcType="NVARCHAR" />
|
||||
<result column="state_code" property="stateCode" jdbcType="NVARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
id, master_id, oper_node_code, creater, creater_name, create_time, lock_info, state_code
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from archive_force_sumbit_info
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from archive_force_sumbit_info
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
|
||||
insert into archive_force_sumbit_info (id, master_id, oper_node_code,
|
||||
creater, creater_name, create_time,
|
||||
lock_info, state_code)
|
||||
values (#{id,jdbcType=BIGINT}, #{masterId,jdbcType=NVARCHAR}, #{operNodeCode,jdbcType=NVARCHAR},
|
||||
#{creater,jdbcType=NVARCHAR}, #{createrName,jdbcType=NVARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||
#{lockInfo,jdbcType=NVARCHAR}, #{stateCode,jdbcType=NVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
|
||||
insert into archive_force_sumbit_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
id,
|
||||
</if>
|
||||
<if test="masterId != null" >
|
||||
master_id,
|
||||
</if>
|
||||
<if test="operNodeCode != null" >
|
||||
oper_node_code,
|
||||
</if>
|
||||
<if test="creater != null" >
|
||||
creater,
|
||||
</if>
|
||||
<if test="createrName != null" >
|
||||
creater_name,
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_time,
|
||||
</if>
|
||||
<if test="lockInfo != null" >
|
||||
lock_info,
|
||||
</if>
|
||||
<if test="stateCode != null" >
|
||||
state_code,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
#{id,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="masterId != null" >
|
||||
#{masterId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="operNodeCode != null" >
|
||||
#{operNodeCode,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="creater != null" >
|
||||
#{creater,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createrName != null" >
|
||||
#{createrName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lockInfo != null" >
|
||||
#{lockInfo,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="stateCode != null" >
|
||||
#{stateCode,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
|
||||
update archive_force_sumbit_info
|
||||
<set >
|
||||
<if test="masterId != null" >
|
||||
master_id = #{masterId,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="operNodeCode != null" >
|
||||
oper_node_code = #{operNodeCode,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="creater != null" >
|
||||
creater = #{creater,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createrName != null" >
|
||||
creater_name = #{createrName,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null" >
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lockInfo != null" >
|
||||
lock_info = #{lockInfo,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
<if test="stateCode != null" >
|
||||
state_code = #{stateCode,jdbcType=NVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.emr.entity.ArchiveForceSumbitInfo" >
|
||||
update archive_force_sumbit_info
|
||||
set master_id = #{masterId,jdbcType=NVARCHAR},
|
||||
oper_node_code = #{operNodeCode,jdbcType=NVARCHAR},
|
||||
creater = #{creater,jdbcType=NVARCHAR},
|
||||
creater_name = #{createrName,jdbcType=NVARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
lock_info = #{lockInfo,jdbcType=NVARCHAR},
|
||||
state_code = #{stateCode,jdbcType=NVARCHAR}
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--查询列表-->
|
||||
<select id="getForceSumbitList" resultType="com.emr.vo.ArchiveForceSumbitInfoVo">
|
||||
SELECT
|
||||
archive_force_sumbit_info.id,
|
||||
archive_master.inp_no,
|
||||
archive_master.visit_id,
|
||||
archive_master.NAME,
|
||||
emr_dictionary.NAME dept_name,
|
||||
CONVERT(varchar(19),archive_master.discharge_date_time,23) discharge_date_time,
|
||||
archive_flow_role.NAME oper_node_code,
|
||||
archive_force_sumbit_info.creater,
|
||||
archive_force_sumbit_info.creater_name,
|
||||
CONVERT(varchar(19),archive_force_sumbit_info.create_time,120) create_time_str,
|
||||
archive_force_sumbit_info.lock_info,
|
||||
archive_force_sumbit_info.state_code
|
||||
FROM
|
||||
archive_force_sumbit_info
|
||||
INNER JOIN archive_master ON archive_master.id = archive_force_sumbit_info.master_id
|
||||
LEFT JOIN emr_dictionary ON archive_master.dept_name = emr_dictionary.CODE
|
||||
AND emr_dictionary.parent_id = 'dept_code'
|
||||
LEFT JOIN archive_flow_role ON archive_flow_role.CODE = archive_force_sumbit_info.oper_node_code
|
||||
<where>
|
||||
<if test="inpNo != null and inpNo != ''">
|
||||
AND inp_no LIKE '%' + #{inpNo} + '%'
|
||||
</if>
|
||||
<if test="visitId != null">
|
||||
AND visit_id = #{visitId}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
AND archive_master.NAME LIKE '%' + #{name} + '%'
|
||||
</if>
|
||||
<if test="deptName!= null and deptName!= ''">
|
||||
and dept_name in
|
||||
<foreach item="item" collection="deptName.split(',')" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="operNodeCode != null and operNodeCode != ''">
|
||||
AND oper_node_code = #{operNodeCode}
|
||||
</if>
|
||||
<if test="creater != null and creater != ''">
|
||||
AND archive_force_sumbit_info.creater LIKE '%' + #{creater} + '%'
|
||||
</if>
|
||||
<if test="createrName != null and createrName != ''">
|
||||
AND creater_name LIKE '%' + #{createrName} + '%'
|
||||
</if>
|
||||
<choose>
|
||||
<when test="startDate != null and startDate != '' and endDate != null and endDate != ''">
|
||||
and archive_force_sumbit_info.create_time between CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120) and
|
||||
#{endDate,jdbcType=NCHAR}+ ' 23:59:59'
|
||||
</when>
|
||||
<when test="startDate != null and startDate != ''">
|
||||
and archive_force_sumbit_info.create_time >= CONVERT(VARCHAR(10),#{startDate,jdbcType=NCHAR},120)
|
||||
</when>
|
||||
<when test="endDate != null and endDate != ''">
|
||||
and archive_force_sumbit_info.create_time <= #{endDate,jdbcType=NCHAR}+ ' 23:59:59'
|
||||
</when>
|
||||
</choose>
|
||||
<choose>
|
||||
<when test="startDate1 != null and startDate1 != '' and endDate1 != null and endDate1 != ''">
|
||||
and discharge_date_time between CONVERT(VARCHAR(10),#{startDate1,jdbcType=NCHAR},120) and
|
||||
#{endDate1,jdbcType=NCHAR}+ ' 23:59:59'
|
||||
</when>
|
||||
<when test="startDate1 != null and startDate1 != ''">
|
||||
and discharge_date_time >= CONVERT(VARCHAR(10),#{startDate1,jdbcType=NCHAR},120)
|
||||
</when>
|
||||
<when test="endDate1 != null and endDate1 != ''">
|
||||
and discharge_date_time <= #{endDate1,jdbcType=NCHAR}+ ' 23:59:59'
|
||||
</when>
|
||||
</choose>
|
||||
</where>
|
||||
ORDER BY archive_force_sumbit_info.create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue