|
|
|
@ -10,6 +10,7 @@ import com.docus.server.collection.entity.TBasic;
|
|
|
|
|
import com.docus.server.collection.entity.TBasicExtend;
|
|
|
|
|
import com.docus.server.collection.mapper.TBasicMapper;
|
|
|
|
|
import com.docus.server.collection.service.ITBasicService;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
@ -25,6 +26,7 @@ import java.util.Date;
|
|
|
|
|
* @Version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
@Service
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class TBasicServiceImpl implements ITBasicService {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@ -205,6 +207,11 @@ public class TBasicServiceImpl implements ITBasicService {
|
|
|
|
|
if (Func.isEmpty(patientId)) {
|
|
|
|
|
throw new BaseException("数据不存在,更新失败");
|
|
|
|
|
}
|
|
|
|
|
if("2".equals(tBasicDto.getStatu())){
|
|
|
|
|
tBasicMapper.deleteByPatientId(patientId);
|
|
|
|
|
log.info("入院信息删除jzh:{},patientId:{},statusCode:{}",tBasicDto.getJzh(),patientId,tBasicDto.getStatu());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//数据类型转化,格式处理
|
|
|
|
|
Date admissDate=null;
|
|
|
|
|
if(Func.isNotEmpty(tBasicDto.getAdmissDate())){
|
|
|
|
|