parent
b5589499fb
commit
9e221628c5
23 changed files with 368 additions and 45 deletions
@ -0,0 +1,42 @@ |
||||
package org.springblade.modules.business.contraller; |
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.common.constant.CommonConstant; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.modules.business.pojo.entity.supplies.ApplyLog; |
||||
import org.springblade.modules.business.service.IApplyLogService; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工单表 控制器 |
||||
* |
||||
* @author BladeX |
||||
* @since 2024-10-14 |
||||
*/ |
||||
@Slf4j |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping(CommonConstant.APPLICATION_PROJECT + "/apply-log") |
||||
public class ApplyLogController extends BladeController { |
||||
|
||||
private final IApplyLogService applyLogService; |
||||
|
||||
/** |
||||
* 工单列表 |
||||
*/ |
||||
@GetMapping("/find-list-by-code") |
||||
public R<List<ApplyLog>> findListByCode(String code) { |
||||
List<ApplyLog> list = applyLogService.list(Wrappers.lambdaQuery(ApplyLog.class).eq(ApplyLog::getCode,code).eq(BaseEntity::getIsDeleted,0)); |
||||
return R.data(list); |
||||
} |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,17 @@ |
||||
|
||||
package org.springblade.modules.business.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import org.springblade.modules.business.pojo.entity.supplies.ApplyLog; |
||||
import org.springblade.modules.business.pojo.entity.workorder.WorkOrderLog; |
||||
|
||||
/** |
||||
* 申领日志表 Mapper 接口 |
||||
* |
||||
* @author BladeX |
||||
* @since 2024-10-14 |
||||
*/ |
||||
public interface ApplyLogMapper extends BaseMapper<ApplyLog> { |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="org.springblade.modules.business.mapper.ApplyLogMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="applyLogResultMap" type="org.springblade.modules.business.pojo.entity.supplies.ApplyLog"> |
||||
</resultMap> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,31 @@ |
||||
package org.springblade.modules.business.pojo.entity.supplies; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
/** |
||||
* 申领日志表 实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2024-10-14 |
||||
*/ |
||||
@Data |
||||
@TableName("lab_apply_log") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class ApplyLog extends BaseEntity { |
||||
|
||||
/** |
||||
* 申领单号 |
||||
*/ |
||||
private String code; |
||||
|
||||
|
||||
/** |
||||
* 备注 |
||||
*/ |
||||
private String content; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,16 @@ |
||||
package org.springblade.modules.business.service; |
||||
|
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.modules.business.pojo.entity.supplies.ApplyLog; |
||||
import org.springblade.modules.business.pojo.entity.workorder.WorkOrderLog; |
||||
|
||||
/** |
||||
* 申领日志表 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2024-10-14 |
||||
*/ |
||||
public interface IApplyLogService extends BaseService<ApplyLog> { |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,23 @@ |
||||
package org.springblade.modules.business.service.impl; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springblade.modules.business.mapper.ApplyLogMapper; |
||||
import org.springblade.modules.business.mapper.WorkOrderLogMapper; |
||||
import org.springblade.modules.business.pojo.entity.supplies.ApplyLog; |
||||
import org.springblade.modules.business.pojo.entity.workorder.WorkOrderLog; |
||||
import org.springblade.modules.business.service.IApplyLogService; |
||||
import org.springblade.modules.business.service.IWorkOrderLogService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* 申领日志表 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2024-10-14 |
||||
*/ |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class ApplyLogServiceImpl extends BaseServiceImpl<ApplyLogMapper, ApplyLog> implements IApplyLogService { |
||||
|
||||
} |
||||
Binary file not shown.
Loading…
Reference in new issue