|
@@ -130,6 +130,7 @@ public class YpZdDictServiceImpl implements YpZdDictService {
|
|
|
public int saveYpZdDict(YpZdDict ypZdDict) throws MzException {
|
|
|
ypZdDict.setPyCode(PyWbUtil.toBigFirstChar(ypZdDict.getName()));
|
|
|
ypZdDict.setWbCode(PyWbUtil.getWBCode(ypZdDict.getName()));
|
|
|
+ ypZdDict.setDrugId(ypZdDict.getCode());
|
|
|
if(StringUtils.isNotBlank(ypZdDict.getCode())){
|
|
|
YpZdDict oldZd = ypZdDictMapper.selectYpZdDictByCodeAndSerial(ypZdDict.getCode(), ypZdDict.getSerial());
|
|
|
String changedFieldsOfSql = ColumnSqlUtil.getChangedNotFieldsOfSql(oldZd, ypZdDict,0);
|