浏览代码

作业本同步数据时添加规格
教材入库信息同步

phoenix 1 年之前
父节点
当前提交
e6f3604611

+ 1 - 1
src/main/java/com/xjrsoft/module/liteflow/node/WfTextbookRecedeNode.java

@@ -11,7 +11,7 @@ import java.util.Map;
 /**
  * 退书申请
  */
-@Component("wf_textbook_recede")
+@Component("wf_textbook_recede_node")
 public class WfTextbookRecedeNode extends NodeComponent {
     @Autowired
     private IWfTextbookRecedeService wfTextbookRecedeService;

+ 1 - 0
src/main/java/com/xjrsoft/module/textbook/service/impl/TextbookServiceImpl.java

@@ -456,6 +456,7 @@ public class TextbookServiceImpl extends MPJBaseServiceImpl<TextbookMapper, Text
 
         TextbookWarehouseRecord textbookWarehouseRecord = BeanUtil.toBean(dto, TextbookWarehouseRecord.class);
         textbookWarehouseRecord.setWarehouseMode(WarehouseModeEnum.WmManual.getCode());
+        textbookWarehouseRecord.setDiscount(discount);
         textbookWarehouseRecord.setSubtotal(subtotal);
         isSuccess = textbookClassWarehouseService.save(textbookWarehouseRecord);
 

+ 1 - 1
src/test/java/com/xjrsoft/module/textbook/service/impl/WfTextbookClaimServiceImplTest.java

@@ -18,6 +18,6 @@ class WfTextbookClaimServiceImplTest {
     private IWfTextbookClaimService wfTextbookClaimService;
     @Test
     void dataHandleAddClaimUserNode() {
-        wfTextbookClaimService.dataHandleAddClaimUserNode(1739576121003929600L);
+        wfTextbookClaimService.dataHandleAddClaimUserNode(1743210949226065920L);
     }
 }

+ 1 - 3
src/test/java/com/xjrsoft/module/textbook/service/impl/WfTextbookRecedeServiceImplTest.java

@@ -5,8 +5,6 @@ import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 
-import static org.junit.jupiter.api.Assertions.*;
-
 /**
  * @description:TODO
  * @author: phoenix
@@ -21,6 +19,6 @@ class WfTextbookRecedeServiceImplTest {
 
     @Test
     void dataHandle() {
-        wfTextbookRecedeService.dataHandle(1739838239871660032L);
+        wfTextbookRecedeService.dataHandle(1743226403487281152L);
     }
 }