Browse Source

change delete action to physical deletion

pull/2/head
baoliang 6 years ago
parent
commit
9d53ad9827
  1. 3
      escheduler-dao/src/main/java/cn/escheduler/dao/mapper/ProjectMapperProvider.java

3
escheduler-dao/src/main/java/cn/escheduler/dao/mapper/ProjectMapperProvider.java

@ -55,8 +55,7 @@ public class ProjectMapperProvider {
public String delete(Map<String, Object> parameter) { public String delete(Map<String, Object> parameter) {
return new SQL() { return new SQL() {
{ {
UPDATE(TABLE_NAME); DELETE_FROM(TABLE_NAME);
SET("flag=0");
WHERE("`id`=#{projectId}"); WHERE("`id`=#{projectId}");
} }
}.toString(); }.toString();

Loading…
Cancel
Save