parent
e5f1cbe1b2
commit
5fc3bc4c54
13 changed files with 316 additions and 6 deletions
@ -0,0 +1,96 @@ |
||||
package org.springblade.desk.dashboard.pojo.entity; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import java.io.Serial; |
||||
import java.util.Date; |
||||
|
||||
@Data |
||||
@TableName("DS_CRAFT_TURN_RECORD") |
||||
@Schema(description = "内部协作工艺内容提前转出") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class DsCraftTurnRecordEntity extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 计划序号 |
||||
*/ |
||||
@Schema(description = "计划序号") |
||||
private String toolid; |
||||
|
||||
/** |
||||
* 零件号 |
||||
*/ |
||||
@Schema(description = "零件号") |
||||
private String code; |
||||
|
||||
/** |
||||
* 零件名称 |
||||
*/ |
||||
@Schema(description = "零件名称") |
||||
private String name; |
||||
|
||||
/** |
||||
* 材料号 |
||||
*/ |
||||
@Schema(description = "材料号") |
||||
private String goodsCode; |
||||
|
||||
/** |
||||
* 镀种 |
||||
*/ |
||||
@Schema(description = "镀种") |
||||
private String platingKinds; |
||||
|
||||
/** |
||||
* 工艺内容 |
||||
*/ |
||||
@Schema(description = "工艺内容") |
||||
private String memo; |
||||
|
||||
/** |
||||
* 面积 |
||||
*/ |
||||
@Schema(description = "面积") |
||||
private Integer areaQuantity; |
||||
|
||||
/** |
||||
* 路线卡号 |
||||
*/ |
||||
@Schema(description = "路线卡号") |
||||
private String partsCode; |
||||
|
||||
/** |
||||
* ds_process主键 |
||||
*/ |
||||
@Schema(description = "ds_process主键") |
||||
private Long pid; |
||||
|
||||
/** |
||||
* 工序名称 |
||||
*/ |
||||
@Schema(description = "工序名称") |
||||
private String seqccName; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@Schema(description = "创建时间") |
||||
private Date createDate; |
||||
|
||||
/** |
||||
* 工艺变更操作类型,1增加,2修改,3删除 |
||||
*/ |
||||
@Schema(description = "工艺变更操作类型,1增加,2修改,3删除") |
||||
private Integer operType; |
||||
|
||||
/** |
||||
* 工艺编制状态:1未编制2已编制 |
||||
*/ |
||||
@Schema(description = "工艺编制状态:1未编制2已编制") |
||||
private Integer status; |
||||
} |
||||
@ -0,0 +1,11 @@ |
||||
<?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.desk.dashboard.mapper.DsCraftTurnRecordMapper"> |
||||
|
||||
|
||||
<select id="selectByCardNo" |
||||
resultType="org.springblade.desk.dashboard.pojo.entity.DsCraftTurnRecordEntity"> |
||||
select * from DS_CRAFT_TURN_RECORD where PARTS_CODE = #{cardNo} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,48 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.desk.dashboard.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.desk.dashboard.excel.BsCraftAbilityExcel; |
||||
import org.springblade.desk.dashboard.pojo.entity.BsCraftAbilityEntity; |
||||
import org.springblade.desk.dashboard.pojo.entity.DsCraftTurnRecordEntity; |
||||
import org.springblade.desk.dashboard.pojo.vo.BsCraftAbilityVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工艺能力表 Mapper 接口 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-11-12 |
||||
*/ |
||||
public interface DsCraftTurnRecordMapper extends BaseMapper<DsCraftTurnRecordEntity> { |
||||
|
||||
List<DsCraftTurnRecordEntity> selectByCardNo(@Param("cardNo") String cardNo); |
||||
} |
||||
@ -0,0 +1,47 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.desk.dashboard.service; |
||||
|
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.desk.dashboard.pojo.entity.DsCraftTurnRecordEntity; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工艺能力表 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-11-12 |
||||
*/ |
||||
public interface IDsCraftTurnRecordService extends BaseService<DsCraftTurnRecordEntity> { |
||||
|
||||
/** |
||||
* 根据流程卡号查询 |
||||
* @param cardNo |
||||
* @return |
||||
*/ |
||||
List<DsCraftTurnRecordEntity> selectByCardNo(String cardNo); |
||||
} |
||||
@ -0,0 +1,53 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.desk.dashboard.service.impl; |
||||
|
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springblade.desk.dashboard.mapper.DsCraftTurnRecordMapper; |
||||
import org.springblade.desk.dashboard.pojo.entity.DsCraftTurnRecordEntity; |
||||
import org.springblade.desk.dashboard.service.IDsCraftTurnRecordService; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工艺能力表 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-11-12 |
||||
*/ |
||||
@Service |
||||
public class DsCraftTurnRecordServiceImpl extends BaseServiceImpl<DsCraftTurnRecordMapper, DsCraftTurnRecordEntity> implements IDsCraftTurnRecordService { |
||||
|
||||
@Autowired |
||||
DsCraftTurnRecordMapper craftTurnRecordMapper; |
||||
|
||||
@Override |
||||
public List<DsCraftTurnRecordEntity> selectByCardNo(String cardNo) { |
||||
return craftTurnRecordMapper.selectByCardNo(cardNo); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue