|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.docus.server.collection.service.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.docus.core.util.DateUtil;
|
|
|
|
|
import com.docus.core.util.Func;
|
|
|
|
|
import com.docus.infrastructure.core.exception.BaseException;
|
|
|
|
@ -101,6 +102,11 @@ public class TBasicServiceImpl implements ITBasicService {
|
|
|
|
|
if ("死亡".equals(isDeadStr)) {
|
|
|
|
|
isDead = 1;
|
|
|
|
|
}
|
|
|
|
|
String leaveMethodStr = tBasicDto.getLeaveMethod();
|
|
|
|
|
Integer leaveMethod = null;
|
|
|
|
|
if (ObjectUtil.isNotEmpty(leaveMethodStr)&&NumberUtil.isInteger(leaveMethodStr)) {
|
|
|
|
|
leaveMethod=Integer.parseInt(leaveMethodStr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//组装数据
|
|
|
|
|
TBasic tBasic = new TBasic();
|
|
|
|
@ -140,6 +146,8 @@ public class TBasicServiceImpl implements ITBasicService {
|
|
|
|
|
tBasicExtend.setWardCode(tBasicDto.getWardCode());
|
|
|
|
|
tBasicExtend.setWardName(tBasicDto.getWardName());
|
|
|
|
|
tBasicExtend.setSdryIndex(sdryIndex == null ? null : sdryIndex.replace("z", "").replace("m", ""));
|
|
|
|
|
tBasicExtend.setLeaveMethod(leaveMethod);
|
|
|
|
|
|
|
|
|
|
//持久化
|
|
|
|
|
tBasicMapper.insert(tBasic);
|
|
|
|
|
tBasicMapper.insertExtend(tBasicExtend);
|
|
|
|
|