|
@@ -11,6 +11,7 @@ import org.springframework.transaction.annotation.Isolation;
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
|
|
|
@Service
|
|
@@ -43,7 +44,7 @@ public class MzSerialNoServiceImpl implements MzSerialNoService {
|
|
|
if (mzSerialNo == null) {
|
|
|
throw new MzException("序列号生成器不存在,请先设置!");
|
|
|
}
|
|
|
- Integer newOutpatientNo=Integer.valueOf(mzSerialNo.getOutpatientNo()) + 1;
|
|
|
+ BigDecimal newOutpatientNo = new BigDecimal(mzSerialNo.getOutpatientNo()).add(new BigDecimal(1));
|
|
|
mzSerialNo.setNewOutpatientNo(newOutpatientNo.toString());
|
|
|
int num = mzSerialNoMapper.updateOutpatientNo(mzSerialNo.getOutpatientNo(),mzSerialNo.getNewOutpatientNo());
|
|
|
if (num == 0) {
|