main-business/src/main/java/com/ruoyi/business/controller/ProductionSchedulingController.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,65 @@ package com.ruoyi.business.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.business.dto.PurchaseRegistrationDto; import com.ruoyi.business.entity.ProductionScheduling; import com.ruoyi.business.entity.PurchaseRegistration; import com.ruoyi.business.service.ProductionSchedulingService; import com.ruoyi.common.core.domain.R; import lombok.AllArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import java.util.List; /** * @author :yys * @date : 2025/8/25 16:39 */ @RestController @AllArgsConstructor @RequestMapping("/productionScheduling") public class ProductionSchedulingController { @Autowired private ProductionSchedulingService productionSchedulingService; @GetMapping("/list") public R<IPage<ProductionScheduling>> list(Page<ProductionScheduling> page, ProductionScheduling productionScheduling) { IPage<ProductionScheduling> list = productionSchedulingService.listPage(page,productionScheduling); return R.ok(list); } @PostMapping("/addProductionScheduling") @Transactional(rollbackFor = Exception.class) public R addProductionScheduling(@RequestBody List<ProductionScheduling> productionScheduling) { boolean save = productionSchedulingService.addProductionScheduling(productionScheduling); return save ? R.ok() : R.fail(); } @PostMapping("/updateProductionScheduling") @Transactional(rollbackFor = Exception.class) public R updateProductionScheduling(@RequestBody ProductionScheduling productionScheduling) { boolean update = productionSchedulingService.updateById(productionScheduling); return update ? R.ok() : R.fail(); } @DeleteMapping("/delProductionScheduling") @Transactional(rollbackFor = Exception.class) public R delProductionScheduling(@RequestBody List<Long> ids) { boolean delete = productionSchedulingService.removeByIds(ids); return delete ? R.ok() : R.fail(); } @PostMapping("/work") @Transactional(rollbackFor = Exception.class) public R work(@RequestBody ProductionScheduling productionScheduling) { boolean update = productionSchedulingService.work(productionScheduling); return update ? R.ok() : R.fail(); } } main-business/src/main/java/com/ruoyi/business/dto/OfficialInventoryDto.java
@@ -14,6 +14,8 @@ private List<Long> ids;//è¦åå¹¶çæ£å¼åºçid private Integer type; private String coal; //ç ¤ç§ private String supplierName; //ä¾åºå main-business/src/main/java/com/ruoyi/business/entity/OfficialInventory.java
@@ -38,6 +38,12 @@ private Long supplierId; /** * ç ¤æç±»å 1-æå 2-åæ */ @TableField(value = "type") private Integer type; /** * ç ¤ç§ */ @TableField(value = "coal_id") main-business/src/main/java/com/ruoyi/business/entity/PendingInventory.java
@@ -55,6 +55,11 @@ @TableField(value = "coal_id") private Long coalId; /** * ç ¤æç±»å 1-æå 2-åæ */ @TableField(value = "type") private Integer type; /** * åä½ */ @TableField(value = "unit") main-business/src/main/java/com/ruoyi/business/entity/Production.java
@@ -82,4 +82,16 @@ */ @TableField(value = "production_date") private LocalDate productionDate; /** * ç ¤æç±»å(1-æå 2-åæ) */ @TableField(value = "type") private Integer type; /** * ç¶æï¼1-å¾ æäº§ 2-æäº§ä¸ 3-å·²æäº§ï¼ */ @TableField(value = "status") private Integer status; } main-business/src/main/java/com/ruoyi/business/entity/ProductionScheduling.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,102 @@ package com.ruoyi.business.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 com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.core.domain.MyBaseEntity; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.time.LocalDate; import java.util.Date; /** * @author :yys * @date : 2025/8/25 16:28 */ @Data @TableName("production_scheduling") public class ProductionScheduling extends MyBaseEntity { private static final long serialVersionUID = 1L; /** * 主é®ID */ @TableId(value = "id", type = IdType.AUTO) private Long id; /** * ç产æç»id */ @TableField(value = "production_id") private Long productionId; /** * ç ¤ç§ID */ @TableField(value = "coal_id") private Long coalId; /** * æ»æ°é */ @TableField(exist = false) private BigDecimal productionQuantity; /** * æäº§æ°é */ @TableField(value = "scheduling_num") private BigDecimal schedulingNum; /** * å ¥åºæ°é */ @TableField(value = "success_num") private BigDecimal successNum; /** * ç ¤æç±»åï¼1-æå 2-åæï¼ */ @TableField(value = "type") private Integer type; /** *ç¶æï¼1-å¾ ç产 2-çäº§ä¸ 3-å·²æ¥å·¥ï¼ */ @TableField(value = "status") private Integer status; /** * åä½ */ @TableField(value = "unit") private String unit; /** * å·¥åºï¼åå ¸ï¼ */ @TableField(value = "process") private String process; /** * å·¥æ¶å®é¢ */ @TableField(value = "work_hours") private BigDecimal workHours; /** * æäº§æ¥æ */ @TableField(value = "scheduling_date") @JsonFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date schedulingDate; /** * æäº§äººid */ @TableField(value = "scheduling_user_id") private Long schedulingUserId; /** * æäº§äººåç§° */ @TableField(value = "scheduling_user_name") private String schedulingUserName; } main-business/src/main/java/com/ruoyi/business/entity/PurchaseRegistration.java
@@ -93,4 +93,10 @@ */ @TableField(value = "freight") private BigDecimal freight; /** * ç±»åï¼1-æåï¼2-åæï¼ */ @TableField(value = "type") private Integer type; } main-business/src/main/java/com/ruoyi/business/mapper/ProductionSchedulingMapper.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,25 @@ package com.ruoyi.business.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.business.entity.ProductionScheduling; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * @author :yys * @date : 2025/8/25 16:35 */ @Mapper public interface ProductionSchedulingMapper extends BaseMapper<ProductionScheduling> { /** * æ¥è¯¢å表 * * @param page * @param productionScheduling * @return */ IPage<ProductionScheduling> listPage(Page<ProductionScheduling> page,@Param("req") ProductionScheduling productionScheduling); } main-business/src/main/java/com/ruoyi/business/service/ProductionSchedulingService.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,28 @@ package com.ruoyi.business.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.business.entity.ProductionScheduling; import java.util.List; /** * @author :yys * @date : 2025/8/25 16:37 */ public interface ProductionSchedulingService extends IService<ProductionScheduling> { /** * å页æ¥è¯¢ * * @param page * @param productionScheduling * @return */ IPage<ProductionScheduling> listPage(Page<ProductionScheduling> page, ProductionScheduling productionScheduling); boolean addProductionScheduling(List<ProductionScheduling> productionScheduling); boolean work(ProductionScheduling productionScheduling); } main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java
@@ -19,6 +19,7 @@ import com.ruoyi.basic.service.CoalFieldService; import com.ruoyi.basic.service.CoalPlanService; import com.ruoyi.basic.service.CoalValueService; import com.ruoyi.business.constant.InventoryRecordConstant; import com.ruoyi.business.dto.PendingInventoryDto; import com.ruoyi.business.entity.OfficialInventory; import com.ruoyi.business.entity.PendingInventory; @@ -290,6 +291,7 @@ officialInventory.setPendingId(pendingInventoryDto.getPId()); officialInventory.setInventoryQuantity(quantity); officialInventory.setRegistrantId(1L); officialInventory.setType(pendingInventory.getType()); officialInventory.setSupplierId(pendingInventoryDto.getSupplierId()); officialInventoryMapper.insert(officialInventory); } else { main-business/src/main/java/com/ruoyi/business/service/impl/ProductionMasterServiceImpl.java
@@ -173,7 +173,7 @@ batchInsertInventories(masterId, dto.getProductionInventoryList()); // æå ¥å¾ å ¥åºæ°æ® insertPendingInventory(dto.getProductionList()); // insertPendingInventory(dto.getProductionList()); return 1; } @@ -263,6 +263,7 @@ BeanUtils.copyProperties(p, copy); copy.setId(null); copy.setProductionMasterId(masterId); copy.setStatus(1); productionMapper.insert(copy); } } @@ -283,7 +284,7 @@ /** * å°å 工产çç产åè®°å½å°å¾ å ¥åºè¡¨ */ private void insertPendingInventory(List<Production> list) { public void insertPendingInventory(List<Production> list) { LocalDate currentDate = LocalDate.now(); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); String formattedDate = currentDate.format(formatter); @@ -402,20 +403,20 @@ } // æ¹éæ´æ°å®æ¹åºå for (Map.Entry<Long, BigDecimal> entry : inventoryAdjustMap.entrySet()) { OfficialInventory official = officialInventoryMapper.selectById(entry.getKey()); if (official == null) { throw new BaseException("宿¹åºåä¸åå¨ï¼ID: " + entry.getKey()); } // 使ç¨çº¿ç¨å®å ¨çBigDecimalæä½ official.setInventoryQuantity( Optional.ofNullable(official.getInventoryQuantity()) .orElse(BigDecimal.ZERO) .add(entry.getValue()) ); officialInventoryMapper.updateById(official); } // for (Map.Entry<Long, BigDecimal> entry : inventoryAdjustMap.entrySet()) { // OfficialInventory official = officialInventoryMapper.selectById(entry.getKey()); // if (official == null) { // throw new BaseException("宿¹åºåä¸åå¨ï¼ID: " + entry.getKey()); // } // // // 使ç¨çº¿ç¨å®å ¨çBigDecimalæä½ // official.setInventoryQuantity( // Optional.ofNullable(official.getInventoryQuantity()) // .orElse(BigDecimal.ZERO) // .add(entry.getValue()) // ); // officialInventoryMapper.updateById(official); // } // æ¹éå é¤ç产åºå if (!productionIdsToDelete.isEmpty()) { main-business/src/main/java/com/ruoyi/business/service/impl/ProductionSchedulingServiceImpl.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,103 @@ package com.ruoyi.business.service.impl; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.business.entity.Production; import com.ruoyi.business.entity.ProductionScheduling; import com.ruoyi.business.mapper.ProductionMapper; import com.ruoyi.business.mapper.ProductionSchedulingMapper; import com.ruoyi.business.service.ProductionSchedulingService; import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.system.mapper.SysUserMapper; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.math.BigDecimal; import java.util.Arrays; import java.util.List; /** * @author :yys * @date : 2025/8/25 16:38 */ @Service @Slf4j public class ProductionSchedulingServiceImpl extends ServiceImpl<ProductionSchedulingMapper, ProductionScheduling> implements ProductionSchedulingService { @Autowired private ProductionSchedulingMapper productionSchedulingMapper; @Autowired private ProductionMapper productionMapper; @Autowired private SysUserMapper sysUserMapper; @Autowired private ProductionMasterServiceImpl productionMasterService; @Override public IPage<ProductionScheduling> listPage(Page<ProductionScheduling> page, ProductionScheduling productionScheduling) { return productionSchedulingMapper.listPage(page, productionScheduling); } @Override public boolean addProductionScheduling(List<ProductionScheduling> productionScheduling) { if (CollectionUtils.isEmpty(productionScheduling)) { return false; } BigDecimal reduce = productionScheduling.stream() .map(ProductionScheduling::getSchedulingNum) .reduce(BigDecimal.ZERO, BigDecimal::add); if(reduce.compareTo(productionScheduling.get(0).getProductionQuantity()) < 0){ return false; } Production production = productionMapper.selectById(productionScheduling.get(0).getProductionId()); if(production == null){ throw new RuntimeException("ç产订å为空"); } production.setStatus(2); if(reduce.compareTo(productionScheduling.get(0).getProductionQuantity()) == 0){ production.setStatus(3); } productionMapper.updateById(production); for (ProductionScheduling scheduling : productionScheduling) { SysUser sysUser = sysUserMapper.selectUserById(scheduling.getSchedulingUserId()); if(sysUser == null) throw new RuntimeException("æäº§äººåä¸åå¨"); scheduling.setStatus(1); scheduling.setSchedulingUserName(sysUser.getNickName()); productionSchedulingMapper.insert(scheduling); } return true; } @Override public boolean work(ProductionScheduling productionScheduling) { ProductionScheduling productionScheduling1 = productionSchedulingMapper.selectById(productionScheduling.getId()); if(productionScheduling1 == null){ throw new RuntimeException("ç产æ¥å·¥ä¸åå¨"); } Production production = productionMapper.selectById(productionScheduling1.getProductionId()); if(production == null){ throw new RuntimeException("ç产订å为空"); } production.setProductionQuantity(productionScheduling.getSuccessNum()); production.setProducerId(productionScheduling.getSchedulingUserId()); // å ¥åº productionMasterService.insertPendingInventory(Arrays.asList(production)); // ä¿®æ¹æ¥å·¥è¡¨çå ¥åºæ°é productionScheduling1.setSuccessNum(productionScheduling1.getSuccessNum().add(productionScheduling.getSuccessNum())); productionScheduling1.setStatus(2); // å ¥åºæ°é == æäº§æ°é åä¿®æ¹ç产订åç¶æ if(productionScheduling1.getSuccessNum().compareTo(productionScheduling1.getSchedulingNum()) == 0){ productionScheduling1.setStatus(3); } productionSchedulingMapper.updateById(productionScheduling1); return true; } } main-business/src/main/java/com/ruoyi/business/service/impl/ProductionServiceImpl.java
@@ -11,6 +11,7 @@ import com.ruoyi.business.service.ProductionService; import com.ruoyi.common.utils.bean.BeanUtils; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Objects; @@ -27,6 +28,7 @@ @RequiredArgsConstructor public class ProductionServiceImpl extends ServiceImpl<ProductionMapper, Production> implements ProductionService { @Autowired private ProductionMapper productionMapper; @Override main-business/src/main/java/com/ruoyi/business/service/impl/PurchaseRegistrationServiceImpl.java
@@ -127,6 +127,7 @@ pendingInventory.setPurchaseId(purchaseRegistration.getId()); pendingInventory.setCoalId(purchaseRegistration.getCoalId()); pendingInventory.setInventoryQuantity(purchaseRegistration.getPurchaseQuantity()); pendingInventory.setType(purchaseRegistration.getType()); return pendingInventory; } main-business/src/main/resources/db/migration/postgresql/V20250603160101__create_table_purchase_registration.sql
@@ -21,7 +21,8 @@ create_by VARCHAR(255), -- åå»ºäººç¨æ·å create_time TIMESTAMP WITHOUT TIME ZONE, -- å建æ¶é´ï¼é»è®¤å½åæ¶é´ update_by VARCHAR(255), -- æåæ´æ°äººç¨æ·å update_time TIMESTAMP WITHOUT TIME ZONE -- æåæ´æ°æ¶é´ï¼é»è®¤å½åæ¶é´ update_time TIMESTAMP WITHOUT TIME ZONE, -- æåæ´æ°æ¶é´ï¼é»è®¤å½åæ¶é´ type BIGINT, -- ç±»åï¼1-æåï¼2-åæï¼ ); -- ä¸ºè¡¨æ·»å æ³¨é @@ -47,3 +48,4 @@ COMMENT ON COLUMN purchase_registration.create_time IS 'è®°å½å建æ¶é´'; COMMENT ON COLUMN purchase_registration.update_by IS 'æåä¿®æ¹è¯¥è®°å½çç¨æ·'; COMMENT ON COLUMN purchase_registration.update_time IS 'è®°å½æåæ´æ°æ¶é´'; COMMENT ON COLUMN purchase_registration.type IS 'ç±»åï¼1-æåï¼2-åæï¼'; main-business/src/main/resources/db/migration/postgresql/V20250604101800__create_table_production.sql
@@ -13,6 +13,8 @@ producer_id BIGINT, -- ç产人id producer VARCHAR(50), -- ç产人 production_date DATE, -- çäº§æ¥æ type BIGINT, -- ç ¤æç±»å 1-æå 2-åæ status BIGINT, -- ç¶æï¼1-å¾ æäº§ 2-å·²æäº§ï¼ deleted INT NOT NULL DEFAULT 0, -- 软å 餿 å¿ï¼0=æªå é¤ï¼1=å·²å é¤ create_by VARCHAR(255), -- åå»ºäººç¨æ·å @@ -35,6 +37,8 @@ COMMENT ON COLUMN production.total_cost IS 'æ»ææ¬'; COMMENT ON COLUMN production.producer IS 'ç产人'; COMMENT ON COLUMN production.production_date IS 'çäº§æ¥æ'; COMMENT ON COLUMN production.type IS 'ç ¤æç±»å 1-æå 2-åæ'; COMMENT ON COLUMN production.status IS 'ç¶æï¼1-å¾ æäº§ 2-å·²æäº§ï¼'; COMMENT ON COLUMN production.deleted IS '软å 餿 å¿ï¼0=æªå é¤ï¼1=å·²å é¤'; COMMENT ON COLUMN production.create_by IS 'å建该记å½çç¨æ·'; main-business/src/main/resources/db/migration/postgresql/V20250604104500__create_table_pending_inventory.sql
@@ -18,6 +18,7 @@ master_id BIGINT, -- ç产å å·¥id purchase_id BIGINT, -- éè´id coal_plan_id BIGINT, -- ç ¤è´¨æ¹æ¡id type BIGINT, -- ç ¤æç±»å 1-æå 2-åæ deleted INTEGER DEFAULT 0, -- 软å 餿 å¿ï¼0=æªå é¤ï¼1=å·²å é¤ create_by VARCHAR(255), -- å建该记å½çç¨æ· @@ -37,6 +38,7 @@ COMMENT ON COLUMN pending_inventory.price_including_tax IS 'åä»·ï¼å«ç¨ï¼'; COMMENT ON COLUMN pending_inventory.total_price_including_tax IS 'æ»ä»·ï¼å«ç¨ï¼'; COMMENT ON COLUMN pending_inventory.registrant IS 'ç»è®°äºº'; COMMENT ON COLUMN pending_inventory.type IS 'ç ¤æç±»å 1-æå 2-åæ'; COMMENT ON COLUMN pending_inventory.registration_time IS 'ç»è®°æ¶é´'; COMMENT ON COLUMN pending_inventory.price_excluding_tax IS 'åä»·ï¼ä¸å«ç¨ï¼'; COMMENT ON COLUMN pending_inventory.total_price_excluding_tax IS 'æ»ä»·ï¼ä¸å«ç¨ï¼'; main-business/src/main/resources/db/migration/postgresql/V20250604111200__create_table_official_inventory.sql
@@ -12,7 +12,7 @@ total_price_excluding_tax DECIMAL(10, 2) NOT NULL, -- ä¸å«ç¨æ»ä»· pending_replenishment DECIMAL(10, 0), -- å¾ è¡¥åº registrant_id BIGINT NOT NULL, -- ç»è®°äººid type VARCHAR(50), -- ç±»å 1 éè´/ 2 æ£å¼ å ¥åº type BIGINT, -- ç ¤æç±»å 1 æå/ 2 åæ pending_id BIGINT, -- å¾ å ¥åºid coal_plan_id BIGINT, -- ç ¤è´¨æ¹æ¡id merge_id VARCHAR(255), -- åå¹¶id @@ -37,6 +37,7 @@ COMMENT ON COLUMN official_inventory.price_including_tax IS 'åä»·ï¼å«ç¨ï¼'; COMMENT ON COLUMN official_inventory.total_price_including_tax IS 'æ»ä»·ï¼å«ç¨ï¼'; COMMENT ON COLUMN official_inventory.pending_replenishment IS 'å¾ è¡¥åº'; COMMENT ON COLUMN official_inventory.type IS 'ç ¤æç±»å 1 æå/ 2 åæ'; COMMENT ON COLUMN official_inventory.registrant_id IS 'ç»è®°äººid'; COMMENT ON COLUMN official_inventory.registration_date IS 'ç»è®°æ¥æ'; COMMENT ON COLUMN official_inventory.merge_id IS 'åå¹¶id'; main-business/src/main/resources/db/migration/postgresql/V20250825111200__create_table_production_scheduling.sql
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,59 @@ -- å建æ£å¼åºè¡¨ CREATE TABLE production_scheduling ( id BIGSERIAL PRIMARY KEY, -- BIGSERIAL å¯¹åº int8 production_id int8 NOT NULL DEFAULT 0, coal_id BIGINT NOT NULL DEFAULT 0, -- ç ¤ç§ID scheduling_num numeric(10,2), type int8, status int8, unit varchar(50), process varchar(50) NOT NULL, work_hours numeric(10,2) NOT NULL, scheduling_date date, scheduling_user_id int8, scheduling_user_name varchar(50), deleted int4 NOT NULL DEFAULT 0, create_by varchar(255) COLLATE "pg_catalog"."default", create_time timestamp(6), update_by varchar(255) COLLATE "pg_catalog"."default", success_num int8 DEFAULT 0, update_time timestamp(6) ); COMMENT ON COLUMN "production_scheduling"."id" IS '主é®ID'; COMMENT ON COLUMN "production_scheduling"."production_id" IS 'ç产æç»id'; COMMENT ON COLUMN production_scheduling.coal_id IS 'ç ¤ç§ID'; COMMENT ON COLUMN "production_scheduling"."scheduling_num" IS 'æäº§æ°é'; COMMENT ON COLUMN "production_scheduling"."unit" IS 'åä½'; COMMENT ON COLUMN "production_scheduling"."process" IS 'å·¥åºï¼åå ¸ï¼'; COMMENT ON COLUMN "production_scheduling"."work_hours" IS 'å·¥æ¶å®é¢'; COMMENT ON COLUMN "production_scheduling"."scheduling_date" IS 'æäº§æ¥æ'; COMMENT ON COLUMN "production_scheduling"."scheduling_user_id" IS 'æäº§äººid'; COMMENT ON COLUMN "production_scheduling"."scheduling_user_name" IS 'æäº§äººåç§°'; COMMENT ON COLUMN "production_scheduling"."deleted" IS '软å 餿 å¿ï¼0=æªå é¤ï¼1=å·²å é¤'; COMMENT ON COLUMN "production_scheduling"."create_by" IS 'å建该记å½çç¨æ·'; COMMENT ON COLUMN "production_scheduling"."create_time" IS 'è®°å½å建æ¶é´'; COMMENT ON COLUMN "production_scheduling"."production_scheduling"."update_by" IS 'æåä¿®æ¹è¯¥è®°å½çç¨æ·'; COMMENT ON COLUMN "production_scheduling"."production_scheduling"."update_time" IS 'è®°å½æåæ´æ°æ¶é´'; COMMENT ON COLUMN "production_scheduling"."production_scheduling"."type" IS 'ç ¤æç±»åï¼1-æå 2-åæï¼'; COMMENT ON COLUMN "production_scheduling"."production_scheduling"."status" IS 'ç¶æï¼1-å¾ ç产 2-çäº§ä¸ 3-å·²æ¥å·¥ï¼'; COMMENT ON COLUMN "production_scheduling"."production_scheduling"."success_num" IS 'å ¥åºæ°é'; COMMENT ON TABLE "public"."production_scheduling" IS 'ç产æ¥å·¥è¡¨'; main-business/src/main/resources/mapper/ProductionSchedulingMapper.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,8 @@ <?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="com.ruoyi.business.mapper.ProductionSchedulingMapper"> <select id="listPage" resultType="com.ruoyi.business.entity.ProductionScheduling"> select * from production_scheduling where deleted = 0 </select> </mapper>