科室问卷数量
This commit is contained in:
parent
d7e7f32d8c
commit
2509d8a5c4
@ -1,6 +1,7 @@
|
|||||||
package com.xinelu.manage.dto.textmessage;
|
package com.xinelu.manage.dto.textmessage;
|
||||||
|
|
||||||
import com.xinelu.common.annotation.Excel;
|
import com.xinelu.common.annotation.Excel;
|
||||||
|
import com.xinelu.common.core.domain.BaseEntity;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@ -15,7 +16,7 @@ import lombok.NoArgsConstructor;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@ApiModel(value = "短信模板信息对象DTO")
|
@ApiModel(value = "短信模板信息对象DTO")
|
||||||
public class TextMessageDTO {
|
public class TextMessageDTO extends BaseEntity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 所属科室id
|
* 所属科室id
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.xinelu.manage.service.servicepackage.impl;
|
package com.xinelu.manage.service.servicepackage.impl;
|
||||||
|
|
||||||
|
import com.xinelu.common.annotation.DataScope;
|
||||||
import com.xinelu.common.constant.Constants;
|
import com.xinelu.common.constant.Constants;
|
||||||
import com.xinelu.common.core.page.TableDataInfo;
|
import com.xinelu.common.core.page.TableDataInfo;
|
||||||
import com.xinelu.common.exception.ServiceException;
|
import com.xinelu.common.exception.ServiceException;
|
||||||
@ -67,7 +68,8 @@ public class ServicePackageServiceImpl implements IServicePackageService {
|
|||||||
* @param id 服务包基础信息主键
|
* @param id 服务包基础信息主键
|
||||||
* @return 服务包基础信息
|
* @return 服务包基础信息
|
||||||
*/
|
*/
|
||||||
@Override public ServicePackageVO getById(Long id) {
|
@Override
|
||||||
|
public ServicePackageVO getById(Long id) {
|
||||||
ServicePackageDetailVO servicePackageDetailVo = servicePackageMapper.selectServicePackagesById(id);
|
ServicePackageDetailVO servicePackageDetailVo = servicePackageMapper.selectServicePackagesById(id);
|
||||||
if (ObjectUtils.isEmpty(servicePackageDetailVo)) {
|
if (ObjectUtils.isEmpty(servicePackageDetailVo)) {
|
||||||
throw new ServiceException("数据传输错误");
|
throw new ServiceException("数据传输错误");
|
||||||
@ -83,6 +85,7 @@ public class ServicePackageServiceImpl implements IServicePackageService {
|
|||||||
* @param servicePackage 服务包基础信息
|
* @param servicePackage 服务包基础信息
|
||||||
* @return 服务包基础信息
|
* @return 服务包基础信息
|
||||||
*/
|
*/
|
||||||
|
@DataScope(agencyAlias = "d", deptAlias = "sp")
|
||||||
@Override
|
@Override
|
||||||
public TableDataInfo selectServicePackageList(ServicePackage servicePackage) {
|
public TableDataInfo selectServicePackageList(ServicePackage servicePackage) {
|
||||||
pageServiceUtil.startPage();
|
pageServiceUtil.startPage();
|
||||||
@ -95,7 +98,8 @@ public class ServicePackageServiceImpl implements IServicePackageService {
|
|||||||
return pageServiceUtil.getDataTable(voList);
|
return pageServiceUtil.getDataTable(voList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public List<ServicePackageVO> selectList(ServicePackage servicePackage) {
|
@Override
|
||||||
|
public List<ServicePackageVO> selectList(ServicePackage servicePackage) {
|
||||||
return servicePackageMapper.selectServicePackageLists(servicePackage);
|
return servicePackageMapper.selectServicePackageLists(servicePackage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.xinelu.manage.service.textmessage.impl;
|
package com.xinelu.manage.service.textmessage.impl;
|
||||||
|
|
||||||
|
import com.xinelu.common.annotation.DataScope;
|
||||||
import com.xinelu.common.core.domain.entity.SysDictData;
|
import com.xinelu.common.core.domain.entity.SysDictData;
|
||||||
import com.xinelu.common.exception.ServiceException;
|
import com.xinelu.common.exception.ServiceException;
|
||||||
import com.xinelu.common.utils.SecurityUtils;
|
import com.xinelu.common.utils.SecurityUtils;
|
||||||
@ -66,6 +67,7 @@ public class TextMessageServiceImpl implements ITextMessageService {
|
|||||||
* @param textMessageDTO 短信模板信息
|
* @param textMessageDTO 短信模板信息
|
||||||
* @return 短信模板信息
|
* @return 短信模板信息
|
||||||
*/
|
*/
|
||||||
|
@DataScope(agencyAlias = "d", deptAlias = "tm")
|
||||||
@Override
|
@Override
|
||||||
public List<TextMessageTaskVO> selectTextMessageList(TextMessageDTO textMessageDTO) {
|
public List<TextMessageTaskVO> selectTextMessageList(TextMessageDTO textMessageDTO) {
|
||||||
List<TextMessageVO> voList = textMessageMapper.selectTextMessageList(textMessageDTO);
|
List<TextMessageVO> voList = textMessageMapper.selectTextMessageList(textMessageDTO);
|
||||||
|
|||||||
@ -161,55 +161,46 @@
|
|||||||
|
|
||||||
<select id="selectServicePackageLists" resultType="com.xinelu.manage.vo.servicepackage.ServicePackageVO"
|
<select id="selectServicePackageLists" resultType="com.xinelu.manage.vo.servicepackage.ServicePackageVO"
|
||||||
parameterType="com.xinelu.manage.domain.servicepackage.ServicePackage">
|
parameterType="com.xinelu.manage.domain.servicepackage.ServicePackage">
|
||||||
select id,
|
select
|
||||||
disease_type_id,
|
sp.id,
|
||||||
disease_type_name,
|
sp.disease_type_id,
|
||||||
package_name,
|
sp.disease_type_name,
|
||||||
package_introduction,
|
sp.package_name,
|
||||||
package_version,
|
sp.package_introduction,
|
||||||
package_term,
|
sp.package_version,
|
||||||
package_term_unit,
|
sp.package_term,
|
||||||
package_price,
|
sp.package_term_unit,
|
||||||
package_remark,
|
sp.package_price,
|
||||||
whether_release
|
sp.package_remark,
|
||||||
from service_package
|
sp.whether_release
|
||||||
|
from service_package sp
|
||||||
|
left join department d on d.id = sp.department_id
|
||||||
<where>
|
<where>
|
||||||
<if test="departmentId != null ">
|
<if test="departmentId != null ">
|
||||||
and department_id =
|
and sp.department_id = #{departmentId}
|
||||||
#{departmentId}
|
|
||||||
</if>
|
</if>
|
||||||
<if test="diseaseTypeId != null ">
|
<if test="diseaseTypeId != null ">
|
||||||
and disease_type_id =
|
and sp.disease_type_id = #{diseaseTypeId}
|
||||||
#{diseaseTypeId}
|
|
||||||
</if>
|
</if>
|
||||||
<if test="diseaseTypeName != null and diseaseTypeName != ''">
|
<if test="diseaseTypeName != null and diseaseTypeName != ''">
|
||||||
and disease_type_name like concat('%',
|
and sp.disease_type_name like concat('%',#{diseaseTypeName},'%')
|
||||||
#{diseaseTypeName},
|
|
||||||
'%'
|
|
||||||
)
|
|
||||||
</if>
|
</if>
|
||||||
<if test="packageName != null and packageName != ''">
|
<if test="packageName != null and packageName != ''">
|
||||||
and package_name like concat('%',
|
and sp.package_name like concat('%',#{packageName},'%')
|
||||||
#{packageName},
|
|
||||||
'%'
|
|
||||||
)
|
|
||||||
</if>
|
</if>
|
||||||
<if test="packageVersion != null and packageVersion != ''">
|
<if test="packageVersion != null and packageVersion != ''">
|
||||||
and package_version like concat('%',
|
and sp.package_version like concat('%',#{packageVersion},'%')
|
||||||
#{packageVersion},
|
|
||||||
'%'
|
|
||||||
)
|
|
||||||
</if>
|
</if>
|
||||||
<if test="packagePrice != null ">
|
<if test="packagePrice != null ">
|
||||||
and package_price =
|
and sp.package_price = #{packagePrice}
|
||||||
#{packagePrice}
|
|
||||||
</if>
|
</if>
|
||||||
<if test="whetherRelease != null ">
|
<if test="whetherRelease != null ">
|
||||||
and whether_release =
|
and sp.whether_release = #{whetherRelease}
|
||||||
#{whetherRelease}
|
|
||||||
</if>
|
</if>
|
||||||
|
<!-- 数据范围过滤 -->
|
||||||
|
${params.dataScope}
|
||||||
</where>
|
</where>
|
||||||
order by create_time DESC
|
order by sp.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="selectServicePackageVoListById"
|
<select id="selectServicePackageVoListById"
|
||||||
resultType="com.xinelu.manage.vo.servicepackagecontent.ServicePackageContentVO">
|
resultType="com.xinelu.manage.vo.servicepackagecontent.ServicePackageContentVO">
|
||||||
|
|||||||
@ -113,8 +113,8 @@
|
|||||||
tmst.suit_task_type_id,
|
tmst.suit_task_type_id,
|
||||||
tmst.suit_task_type_name
|
tmst.suit_task_type_name
|
||||||
from text_message tm
|
from text_message tm
|
||||||
left join text_message_suit_task tmst on
|
left join text_message_suit_task tmst on tm.id = tmst.message_id
|
||||||
tm.id = tmst.message_id
|
left join department d on d.id = tm.department_id
|
||||||
<where>
|
<where>
|
||||||
<if test="departmentId != null">
|
<if test="departmentId != null">
|
||||||
AND tm.department_id =
|
AND tm.department_id =
|
||||||
@ -136,6 +136,8 @@
|
|||||||
AND tm.text_message_status =
|
AND tm.text_message_status =
|
||||||
#{textMessageStatus}
|
#{textMessageStatus}
|
||||||
</if>
|
</if>
|
||||||
|
<!-- 数据范围过滤 -->
|
||||||
|
${params.dataScope}
|
||||||
</where>
|
</where>
|
||||||
order by tm.create_time DESC ,tmst.create_time DESC
|
order by tm.create_time DESC ,tmst.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user