ly 3 年之前
父節點
當前提交
a4a54a8257

+ 1 - 1
master/src/main/java/com/ruoyi/framework/task/BirthTask.java

@@ -35,7 +35,7 @@ public class BirthTask extends BaseController
 
     public void BirthTask() throws ParseException {
         brithstaffmgrService.deleteAllBirthstaffmgr();
-        List<TStaffmgr> staffmgrs = staffmgrService.selectList(new TStaffmgr());
+        List<TStaffmgr> staffmgrs = staffmgrService.selectTaskList(new TStaffmgr());
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
         Long week = Long.parseLong(String.valueOf(3 * 24 * 3600 * 1000));
         Long zero = Long.parseLong(String.valueOf(0));

+ 3 - 0
master/src/main/java/com/ruoyi/project/plant/mapper/TStaffmgrMapper.java

@@ -49,6 +49,7 @@ public interface TStaffmgrMapper
     @DataScope(deptAlias = "d")
     public List<TStaffmgr> selectList(TStaffmgr tStaffmgr);
 
+    List<TStaffmgr> selectTaskList(TStaffmgr tStaffmgr);
     /**
      * 培训查询人员管理列表
      *
@@ -101,4 +102,6 @@ public interface TStaffmgrMapper
 
 
     int reLeftTStaffmgrByIds(Long id);
+
+
 }

+ 4 - 1
master/src/main/java/com/ruoyi/project/plant/service/ITStaffmgrService.java

@@ -43,6 +43,7 @@ public interface ITStaffmgrService
      */
     public List<TStaffmgr> selectList(TStaffmgr tStaffmgr);
 
+    List<TStaffmgr> selectTaskList(TStaffmgr tStaffmgr);
     /**
      * 培训查询人员管理列表
      *
@@ -87,4 +88,6 @@ public interface ITStaffmgrService
 
 
     int reLeftTStaffmgrByIds(Long id);
-}
+
+
+}

+ 6 - 1
master/src/main/java/com/ruoyi/project/plant/service/impl/TStaffmgrServiceImpl.java

@@ -65,6 +65,11 @@ public class TStaffmgrServiceImpl implements ITStaffmgrService
         return tStaffmgrMapper.selectList(tStaffmgr);
     }
 
+    @Override
+    public List<TStaffmgr> selectTaskList(TStaffmgr tStaffmgr) {
+        return tStaffmgrMapper.selectTaskList(tStaffmgr);
+    }
+
     /**
      * 培训查询人员管理列表
      *
@@ -139,4 +144,4 @@ public class TStaffmgrServiceImpl implements ITStaffmgrService
     public int reLeftTStaffmgrByIds(Long id) {
         return tStaffmgrMapper.reLeftTStaffmgrByIds(id);
     }
-}
+}

+ 8 - 0
master/src/main/resources/mybatis/plant/TStaffmgrMapper.xml

@@ -134,6 +134,14 @@
         ${params.dataScope}
     </select>
 
+    <select id="selectTaskList" parameterType="TStaffmgr" resultMap="TStaffmgrResult">
+        <include refid="selectTStaffmgrVo"/>
+        <where>
+            and d.del_flag = 0
+        </where>
+    </select>
+
+
     <select id="selectLeftTStaffmgrList" parameterType="TStaffmgr" resultMap="TStaffmgrResult">
         <include refid="selectTStaffmgrVo"/>
         <where>