优化,文件状态修改报错问题
This commit is contained in:
parent
ad90c06acb
commit
927def8665
@ -575,8 +575,6 @@ public class UpateFileStateController {
|
|||||||
public void createKmsByNew(BO bo, String wsId, ProcessInstance processExecutionContext,
|
public void createKmsByNew(BO bo, String wsId, ProcessInstance processExecutionContext,
|
||||||
String uid) {
|
String uid) {
|
||||||
{
|
{
|
||||||
OutputTaskModel model = new OutputTask().getTaskReportById(bo.getString("TASKID"));
|
|
||||||
wsId = model.getWsId();
|
|
||||||
String publishfileid = bo.getString("PUBLISHFILEID");
|
String publishfileid = bo.getString("PUBLISHFILEID");
|
||||||
String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'";
|
String sql_n = "select * from APP_ACT_COE_PAL_REPOSITORY where id = '" + publishfileid + "'";
|
||||||
RowMap map = DBSql.getMap(sql_n);
|
RowMap map = DBSql.getMap(sql_n);
|
||||||
@ -668,6 +666,10 @@ public class UpateFileStateController {
|
|||||||
if (StringUtils.isNotEmpty(cardId)) {
|
if (StringUtils.isNotEmpty(cardId)) {
|
||||||
String sql_ext4 = "select * from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + cardId + "'";
|
String sql_ext4 = "select * from APP_ACT_COE_PAL_REPOSITORY where EXT4 = '" + cardId + "'";
|
||||||
RowMap map = DBSql.getMap(sql_ext4);
|
RowMap map = DBSql.getMap(sql_ext4);
|
||||||
|
//此处map可能为空
|
||||||
|
if(null == map){
|
||||||
|
return;
|
||||||
|
}
|
||||||
System.out.println("maps======>>>>>>>" + map);
|
System.out.println("maps======>>>>>>>" + map);
|
||||||
System.out.println("fileid==》》》》" + fileid);
|
System.out.println("fileid==》》》》" + fileid);
|
||||||
System.out.println("id==》》》》" + map.getString("ID"));
|
System.out.println("id==》》》》" + map.getString("ID"));
|
||||||
@ -843,7 +845,10 @@ public class UpateFileStateController {
|
|||||||
// 取消发布知识(全部维度)
|
// 取消发布知识(全部维度)
|
||||||
ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params);
|
ResponseObject ro = appAPI.callASLP(appAPI.getAppContext(sourceAppId), aslp, params);
|
||||||
System.out.println("取消发布的ro=====>>>>" + ro);
|
System.out.println("取消发布的ro=====>>>>" + ro);
|
||||||
List<BO> bo_act_document = SDK.getBOAPI().query("BO_ACT_DOCUMENT", true).addQuery("CARDID = ", knwlId).list();
|
if(UtilString.isEmpty(knwlId)){//兼容为null报错问题 by yujh
|
||||||
|
knwlId = "";
|
||||||
|
}
|
||||||
|
List<BO> bo_act_document = SDK.getBOAPI().query("BO_ACT_DOCUMENT", true).addQuery("CARDID=", knwlId).list();
|
||||||
for (BO bo:
|
for (BO bo:
|
||||||
bo_act_document) {
|
bo_act_document) {
|
||||||
String documentid = bo.getString("DOCUMENTID");
|
String documentid = bo.getString("DOCUMENTID");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user