校验重名

This commit is contained in:
zhal 2022-06-28 11:40:52 +08:00
parent 68e3f64c93
commit 40186eb8bd
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
/**

View File

@ -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{