parent
862808752f
commit
5378210b8e
@ -0,0 +1,13 @@ |
||||
package digital.laboratory.platform.imr.controller; |
||||
|
||||
|
||||
import io.swagger.annotations.Api; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
@RestController |
||||
@RequestMapping("/drugUsageRecord") |
||||
@Api(value = "DrugUsageRecordController", tags = "毒品检材的领用归还记录表相关接口") |
||||
public class DrugUsageRecordController { |
||||
|
||||
} |
@ -0,0 +1,39 @@ |
||||
package digital.laboratory.platform.imr.dto; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import digital.laboratory.platform.imr.component.DateUtils; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import javax.validation.constraints.NotBlank; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* 毒品检材的领用归还记录表 保存DTO类 |
||||
* @TableName b_drug_usage_record |
||||
*/ |
||||
@Data |
||||
@ApiModel(value = "DrugUsageRecordDTO", description = "毒品检材的领用归还记录表 保存DTO类") |
||||
public class DrugUsageRecordDTO { |
||||
|
||||
/** |
||||
* 关联领用的毒品id |
||||
*/ |
||||
@ApiModelProperty("关联领用的毒品id") |
||||
@NotBlank(message = "请选择领用的检材!") |
||||
private String drugId; |
||||
|
||||
/** |
||||
* 领用时间 |
||||
*/ |
||||
@ApiModelProperty("领用时间") |
||||
@JsonFormat(pattern = DateUtils.yyyy_MM_dd_HH_mm_ss, timezone = DateUtils.TIME_ZONE) |
||||
private LocalDateTime usageDate; |
||||
|
||||
/** |
||||
* 领用目的 |
||||
*/ |
||||
@ApiModelProperty("领用目的") |
||||
private String usagePurpose; |
||||
} |
@ -0,0 +1,59 @@ |
||||
package digital.laboratory.platform.imr.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import digital.laboratory.platform.common.mybatis.base.BaseEntity; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
import java.util.Date; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* 毒品检材的领用归还记录表 |
||||
* @TableName b_drug_usage_record |
||||
*/ |
||||
@Data |
||||
@TableName(value ="b_drug_usage_record") |
||||
public class DrugUsageRecord extends BaseEntity { |
||||
|
||||
/** |
||||
* 主键标识 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.ASSIGN_ID) |
||||
private String id; |
||||
|
||||
/** |
||||
* 关联领用的毒品id |
||||
*/ |
||||
private String drugId; |
||||
|
||||
/** |
||||
* 领用申请人 |
||||
*/ |
||||
private String applicant; |
||||
|
||||
/** |
||||
* 领用时间 |
||||
*/ |
||||
private LocalDateTime usageDate; |
||||
|
||||
/** |
||||
* 领用目的 |
||||
*/ |
||||
private String usagePurpose; |
||||
|
||||
/** |
||||
* 归还时间 |
||||
*/ |
||||
private LocalDateTime returnDate; |
||||
|
||||
/** |
||||
* 领用状态,1 领用中 | 5 已归还 |
||||
*/ |
||||
private Integer status; |
||||
|
||||
@TableField(exist = false) |
||||
private static final long serialVersionUID = 1L; |
||||
} |
@ -0,0 +1,20 @@ |
||||
package digital.laboratory.platform.imr.mapper; |
||||
|
||||
import digital.laboratory.platform.imr.entity.DrugUsageRecord; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
|
||||
/** |
||||
* @author ChenJiangBao |
||||
* @description 针对表【b_drug_usage_record(毒品检材的领用归还记录表)】的数据库操作Mapper |
||||
* @createDate 2024-11-11 11:40:42 |
||||
* @Entity digital.laboratory.platform.imr.entity.DrugUsageRecord |
||||
*/ |
||||
@Mapper |
||||
public interface DrugUsageRecordMapper extends BaseMapper<DrugUsageRecord> { |
||||
|
||||
} |
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@ |
||||
package digital.laboratory.platform.imr.service; |
||||
|
||||
import digital.laboratory.platform.imr.entity.DrugUsageRecord; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
||||
/** |
||||
* @author ChenJiangBao |
||||
* @description 针对表【b_drug_usage_record(毒品检材的领用归还记录表)】的数据库操作Service |
||||
* @createDate 2024-11-11 11:40:42 |
||||
*/ |
||||
public interface DrugUsageRecordService extends IService<DrugUsageRecord> { |
||||
|
||||
} |
@ -0,0 +1,22 @@ |
||||
package digital.laboratory.platform.imr.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import digital.laboratory.platform.imr.entity.DrugUsageRecord; |
||||
import digital.laboratory.platform.imr.mapper.DrugUsageRecordMapper; |
||||
import digital.laboratory.platform.imr.service.DrugUsageRecordService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author ChenJiangBao |
||||
* @description 针对表【b_drug_usage_record(毒品检材的领用归还记录表)】的数据库操作Service实现 |
||||
* @createDate 2024-11-11 11:40:42 |
||||
*/ |
||||
@Service |
||||
public class DrugUsageRecordServiceImpl extends ServiceImpl<DrugUsageRecordMapper, DrugUsageRecord> |
||||
implements DrugUsageRecordService{ |
||||
|
||||
} |
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue