|
@@ -1,6 +1,7 @@
|
|
|
package cn.hnthyy.thmz.entity.his.mz;
|
|
|
|
|
|
import lombok.Data;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.math.BigDecimal;
|
|
@@ -228,6 +229,14 @@ public class MzChargeDetail implements Serializable,Comparable<MzChargeDetail> {
|
|
|
this.origPriceStr = origPrice.toString();
|
|
|
}
|
|
|
}
|
|
|
+ //表里只能存32个字节
|
|
|
+ public void setTcName(String tcName) {
|
|
|
+ if(StringUtils.isNotBlank(tcName) && tcName.length()>16){
|
|
|
+ this.tcName = tcName.substring(0,16);
|
|
|
+ }else {
|
|
|
+ this.tcName = tcName;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public String toString() {
|