1 Star 0 Fork 462

誓言/bullshit-codes

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ShitJudge.java 648 Bytes
一键复制 编辑 原始数据 按行查看 历史
Crazy_Coder 提交于 2019-05-29 17:06 +08:00 . 判断true false
/**
* 判断表单数据是否被发起流程.
*
* @param _formDef 表单对象
* @param id 表单数据id
* @return
*/
public boolean isFormDataAssocationProcess(FormDef _formDef, Long id) {
String sql = "select count(*) from t_auto_" + _formDef.getId() + " where db_id=:id and processinstanceid_ is not null";
Map<String, Object> params = new HashMap<String, Object>();
params.put("id", id);
int count = this.genericJdbcDAO.queryForInt(sql, params);
// 这个判断,一口老血喷出来,一个项目经理写的
if (count > 0) {
return true;
} else {
return false;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/java521/bullshit-codes.git
git@gitee.com:java521/bullshit-codes.git
java521
bullshit-codes
bullshit-codes
master

搜索帮助