上传文件至 src/main/java/co/jp/mamol/myapp/repository
This commit is contained in:
@ -0,0 +1,25 @@
|
|||||||
|
package co.jp.mamol.myapp.repository;
|
||||||
|
|
||||||
|
import co.jp.mamol.myapp.model.SizaiModel;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface BuyApprovalRepository {
|
||||||
|
|
||||||
|
// DA 2001
|
||||||
|
public List<SizaiModel> getDeptRequestList(
|
||||||
|
@Param(value = "startDate") String startDate,
|
||||||
|
@Param(value = "endDate") String endDate,
|
||||||
|
@Param(value = "request_dept_id") String request_dept_id
|
||||||
|
);
|
||||||
|
|
||||||
|
// DA 2003
|
||||||
|
public boolean approval(@Param("id") int id);
|
||||||
|
|
||||||
|
// DA 2004
|
||||||
|
public boolean reject(@Param("id") int id);
|
||||||
|
|
||||||
|
// DA 2002
|
||||||
|
public SizaiModel getRequestById(@Param("targetId") int targetId);
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
package co.jp.mamol.myapp.repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import co.jp.mamol.myapp.model.CategoryModel;
|
||||||
|
import co.jp.mamol.myapp.model.SizaiModel;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface BuyRequestRepository {
|
||||||
|
|
||||||
|
// DA 1003
|
||||||
|
public List<SizaiModel> getUserRequsetList(
|
||||||
|
@Param(value = "startDate") String startDate,
|
||||||
|
@Param(value = "endDate") String endDate,
|
||||||
|
@Param(value = "request_user_id") String request_user_id
|
||||||
|
);
|
||||||
|
|
||||||
|
// DA 004
|
||||||
|
public SizaiModel getRequestById(@Param(value = "id") int id);
|
||||||
|
|
||||||
|
// DA 1006
|
||||||
|
public boolean deleteById(@Param(value = "id") int id);
|
||||||
|
|
||||||
|
// DA 1001
|
||||||
|
public void requestRegist(SizaiModel sizai);
|
||||||
|
|
||||||
|
// DA 1002
|
||||||
|
public List<CategoryModel> getCategory();
|
||||||
|
|
||||||
|
// DA 1005
|
||||||
|
public boolean modifyRequest(SizaiModel sizai);
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package co.jp.mamol.myapp.repository;
|
||||||
|
|
||||||
|
import co.jp.mamol.myapp.model.DepartmentModel;
|
||||||
|
import co.jp.mamol.myapp.model.SizaiModel;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface OrderDeliverRepository {
|
||||||
|
|
||||||
|
// DA 3001
|
||||||
|
List<DepartmentModel> deptList();
|
||||||
|
|
||||||
|
// DA 3002
|
||||||
|
List<SizaiModel> approvaledList(@Param(value = "deptId")String deptId);
|
||||||
|
|
||||||
|
// DA 3004
|
||||||
|
boolean orderAct(@Param(value = "id") int id);
|
||||||
|
|
||||||
|
// DA 3003
|
||||||
|
List<SizaiModel> orderedList(@Param(value = "deptId")String deptId);
|
||||||
|
|
||||||
|
// DA 3005
|
||||||
|
boolean deleverAct(@Param(value = "id") int id);
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package co.jp.mamol.myapp.repository;
|
||||||
|
|
||||||
|
import co.jp.mamol.myapp.model.SizaiModel;
|
||||||
|
import co.jp.mamol.myapp.model.SoukoModel;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface StoreRepository {
|
||||||
|
|
||||||
|
// DA 4001
|
||||||
|
SizaiModel getSizaiById(int id);
|
||||||
|
|
||||||
|
// DA 4002
|
||||||
|
List<SoukoModel> getSoukoList();
|
||||||
|
|
||||||
|
// DA 4003
|
||||||
|
boolean inStoreAct(SizaiModel sizai);
|
||||||
|
|
||||||
|
// DA 4004
|
||||||
|
boolean outStoreAct(SizaiModel sizai);
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package co.jp.mamol.myapp.repository;
|
||||||
|
|
||||||
|
import co.jp.mamol.myapp.model.UserModel;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface UserRepository {
|
||||||
|
//ユーザ情報取得
|
||||||
|
UserModel findUserById(@Param("userid") String userid);
|
||||||
|
|
||||||
|
//転換用
|
||||||
|
List<UserModel> findAllUsersForPasswordMigration();
|
||||||
|
|
||||||
|
//転換用
|
||||||
|
void updateUserHashedPassword(@Param("id") String id, @Param("hashedPassword") String hashedPassword);
|
||||||
|
}
|
Reference in New Issue
Block a user