修复健康评估弹窗

This commit is contained in:
huangdeliang
2021-01-29 13:56:53 +08:00
parent 459d55913e
commit 3c7e7a0f00
8 changed files with 199 additions and 26 deletions

View File

@ -22,6 +22,8 @@ public interface SysCustomerPhysicalSignsMapper
*/
public SysCustomerPhysicalSigns selectSysCustomerPhysicalSignsById(Long id);
public SysCustomerPhysicalSigns selectSysCustomerPhysicalSignsByCusId(Long id);
/**
* 新增客户体征信息
*

View File

@ -22,6 +22,8 @@ public interface ISysCustomerPhysicalSignsService {
*/
public SysCustomerPhysicalSigns selectSysCustomerPhysicalSignsById(Long id);
public SysCustomerPhysicalSigns selectSysCustomerPhysicalSignsByCusId(Long id);
/**
* 新增客户体征信息
*

View File

@ -41,6 +41,11 @@ public class SysCustomerPhysicalSignsServiceImpl implements ISysCustomerPhysical
return sysCustomerPhysicalSignsMapper.selectSysCustomerPhysicalSignsById(id);
}
@Override
public SysCustomerPhysicalSigns selectSysCustomerPhysicalSignsByCusId(Long cusId) {
return sysCustomerPhysicalSignsMapper.selectSysCustomerPhysicalSignsByCusId(cusId);
}
/**
* 新增客户体征信息
*

View File

@ -67,6 +67,10 @@
<include refid="selectSysCustomerPhysicalSigns"/> where scps.del_flag = 0 and sc.del_flag = 0 and scps.id = #{id}
</select>
<select id="selectSysCustomerPhysicalSignsByCusId" parameterType="Long" resultMap="SysCustomerSignResult">
<include refid="selectSysCustomerPhysicalSigns"/> where scps.del_flag = 0 and sc.del_flag = 0 and scps.customer_id = #{id}
</select>
<insert id="insertSysCustomerPhysicalSigns" parameterType="SysCustomerPhysicalSigns" useGeneratedKeys="true" keyProperty="id">
insert into sys_customer_physical_signs
<trim prefix="(" suffix=")" suffixOverrides=",">