校验重名
This commit is contained in:
parent
68e3f64c93
commit
40186eb8bd
@ -2899,9 +2899,9 @@ public class CoEPALController {
|
||||
* @return
|
||||
*/
|
||||
@Mapping("com.actionsoft.apps.coe.pal_pl_repository_designer_checkname")
|
||||
public String checkCreatePalProcessLevelRepository(UserContext me,String title) {
|
||||
public String checkCreatePalProcessLevelRepository(UserContext me,String title,String method) {
|
||||
CoeProcessLevelWeb web = new CoeProcessLevelWeb(me);
|
||||
return web.checkCreatePalProcessLevelRepository(title);
|
||||
return web.checkCreatePalProcessLevelRepository(title,method);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -8032,10 +8032,10 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
* @param title
|
||||
* @return
|
||||
*/
|
||||
public String checkCreatePalProcessLevelRepository(String title){
|
||||
public String checkCreatePalProcessLevelRepository(String title,String method){
|
||||
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
RowMap rowMap=DBSql.getMap("SELECT * FROM APP_ACT_COE_PAL_REPOSITORY where plname=?",title);
|
||||
RowMap rowMap=DBSql.getMap("SELECT * FROM APP_ACT_COE_PAL_REPOSITORY WHERE PLNAME=? AND PLMETHODID=?",title,method);
|
||||
if(rowMap!=null){
|
||||
ro.put("result","error");
|
||||
}else{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user