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