fix:获取图册最大编号错误
This commit is contained in:
parent
e8df732bcc
commit
d420884685
@ -36,6 +36,8 @@ import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import static com.yem.em.utils.SubRelationUtils.Getatlasno;
|
||||
|
||||
/**
|
||||
* @author zhouc
|
||||
* @date 2023/11/25 15:26
|
||||
@ -236,6 +238,13 @@ public class AssAtlasdetFromEdit extends AbstractBillPlugIn implements UploadLis
|
||||
args.cancel = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ("test_getatlasno".equals(key)) {
|
||||
IDataModel model = this.getModel();
|
||||
String number = (String)model.getValue("number");
|
||||
int atlasno = Getatlasno(number);
|
||||
getView().showMessage(String.valueOf(atlasno));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -638,7 +638,7 @@ public class SubRelationUtils {
|
||||
QFilter qFilter = new QFilter("number", QCP.in, repno);
|
||||
DynamicObjectCollection data = QueryServiceHelper.query("yem_em_assatlasdet",
|
||||
"id,number,name,yem_entryentity.yem_atlasno", new QFilter[]{qFilter},
|
||||
"length(yem_entryentity.yem_atlasno),yem_entryentity.yem_atlasno DESC");
|
||||
"length(yem_entryentity.yem_atlasno) DESC,yem_entryentity.yem_atlasno DESC");
|
||||
if (data.size() > 0) {
|
||||
result = data.get(0).getInt("yem_entryentity.yem_atlasno");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user