dev
This commit is contained in:
parent
5480288923
commit
d439c5760a
|
|
@ -275,8 +275,7 @@ public class ChargeService extends BaseService {
|
|||
chargeItemListMapper.insert(chargeServiceLists);
|
||||
|
||||
List<ChargeGoodsList> chargeGoodsLists = new ArrayList<>();
|
||||
for (
|
||||
ChargeGoodsListVo goods : dto.getGoodsDetail()) {
|
||||
for (ChargeGoodsListVo goods : dto.getGoodsDetail()) {
|
||||
ChargeGoodsList itemList = new ChargeGoodsList();
|
||||
Goods dbGoods = goodsMapper.selectById(goods.getId());
|
||||
if (dbGoods == null) {
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ public class PatientInfoService extends BaseService {
|
|||
|
||||
public PatientInfo save(PatientInfo patientInfo){
|
||||
patientInfo.setCreateDatetime(LocalDateTime.now());
|
||||
patientInfo.setLastVisitTime(patientInfo.getCreateDatetime());
|
||||
if (patientInfo.getBirthday() != null && patientInfo.getAge() == null) {
|
||||
int currentYear = LocalDate.now().getYear();
|
||||
int birthYear = patientInfo.getBirthday().getYear();
|
||||
|
|
@ -53,7 +54,7 @@ public class PatientInfoService extends BaseService {
|
|||
if (level != null){
|
||||
patientInfo.setLevelId(level.getLevelId());
|
||||
}else {
|
||||
patientInfo.setLevelId(0);
|
||||
patientInfo.setLevelId(1);
|
||||
}
|
||||
|
||||
QueryWrapper<PatientInfo> queryWrapper = new QueryWrapper<>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue