建模代码块

ht
qijirenjian 3 months ago
parent 33157b3475
commit f6649e7234

@ -39,22 +39,24 @@ public class UpdateSecLevelAndLockStatus implements EsbServerlessRpcRemoteInterf
* @return
*/
public WeaResult<Map<String, Object>> execute(Map<String, Object> param) {
logger_b15f4fa5.error("htjt_mode_UpdateSecLevelAndLockStatus start param == " + param);
// 构建E9 requestInfo对象参数
I18nContextUtil.getBean(GetCubeBtnActionParam.class).getCubeBtnActionParam(param);
Long billid = Long.parseLong(String.valueOf(param.getOrDefault("billid", -1)));
logger_b15f4fa5.error("billid == "+ billid );
Map<String, String> result = new HashMap<String, String>();
try {
User user = (User) param.get("user");
// 数据id
int billid = -1;
// 模块id
int modeid = -1;
RequestInfo requestInfo = (RequestInfo) param.get("RequestInfo");
if (requestInfo != null) {
billid = Util.getIntValue(requestInfo.getRequestid());
modeid = Util.getIntValue(requestInfo.getWorkflowid());
if (billid > 0 && modeid > 0) {
if (billid != null) {
if (billid > 0 ) {
RecordSet rs = I18nContextUtil.getBean(RecordSet.class);
String sql = "select * from uf_sellevellock_chg where id=" + billid;
String sql = "select * from e10_common.dbo.uf_sellevellock_chg where id=" + billid;
String ry = "";
String aqjb = "";
String zhsd = "";
@ -67,8 +69,9 @@ public class UpdateSecLevelAndLockStatus implements EsbServerlessRpcRemoteInterf
if ("".equals(zhsd)) {
zhsd = "0";
}
sql = "update employee as hrmresource set seclevel=" + aqjb + ",passwordlock=" + zhsd + " where id=" + ry + "";
rs.execute(sql);
sql = "update eteams.dbo.employee as hrmresource set seclevel=" + aqjb + ",passwordlock=" + zhsd + " where id=" + ry + "";
boolean execute = rs.execute(sql);
logger_b15f4fa5.error("execute == "+ execute );
ResourceComInfo rci = I18nContextUtil.getBean(ResourceComInfo.class);
rci.updateResourceInfoCache(ry);
}
@ -79,6 +82,7 @@ public class UpdateSecLevelAndLockStatus implements EsbServerlessRpcRemoteInterf
return WeaResult.fail(500, "UpdateSecLevelAndLockStatus e {}"+ e);
}
logger_b15f4fa5.error("htjt_mode_UpdateSecLevelAndLockStatus stop result == " + result);
return WeaResult.success(new HashMap<>(result));
}
}

Loading…
Cancel
Save