Skip to content

Commit

Permalink
修复using关键字的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Feb 17, 2017
1 parent 1640ad0 commit 3eed9e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void deploy(String formId) throws SQLException {
Form old = this.selectByPk(formId);
assertNotNull(old, "表单不存在");
//先卸载正在使用的表单
Form using = getMapper().selectUsing(old.getName());
Form using = selectUsing(old.getName());
if (using != null) {
this.unDeploy(using.getId());
}
Expand Down Expand Up @@ -238,7 +238,7 @@ public String createViewHtml(String formId) {
@Override
@Cacheable(value = CACHE_KEY, key = "'using.'+#name")
public Form selectUsing(String name) {
return formMapper.selectUsing(name);
return createQuery().where(Property.using,1).and().is(Property.name,name).single();
}

@Override
Expand Down

0 comments on commit 3eed9e3

Please sign in to comment.