Browse Source

回归之前版本

master
clong 1 year ago
parent
commit
c38fb7fa79
3 changed files with 0 additions and 24 deletions
  1. +0
    -16
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/infra/mapper/SalesOrderDetailMapper.xml
  2. +0
    -7
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/infra/repository/SalesOrderDetailRepository.java
  3. +0
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java

+ 0
- 16
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/infra/mapper/SalesOrderDetailMapper.xml View File

@ -1,16 +0,0 @@
<?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.digiwin.athena.app.infra.repository.SalesOrderDetailRepository">
<update id="updateStatus">
<foreach collection="list" item="item" close="" open="" separator=";">
update cim_sales_order_detail set status = 2
where id = #{item.id} and tenantsid = #{item.tenantSid}
</foreach>
</update>
</mapper>

+ 0
- 7
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/infra/repository/SalesOrderDetailRepository.java View File

@ -3,15 +3,8 @@ package com.digiwin.athena.app.infra.repository;
import com.digiwin.athena.app.infra.entity.SalesOrderDetailEntity;
import com.digiwin.athena.opt.persistence.repository.BaseRepository;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SalesOrderDetailRepository extends BaseRepository<SalesOrderDetailEntity> {
/**
* 更新数据
* @param list
*/
void updateStatus(@Param("list") List<SalesOrderDetailEntity> list);
}

+ 0
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/service/order/SalesOrderDetailUpdateEAIService.java View File

@ -46,7 +46,6 @@ public class SalesOrderDetailUpdateEAIService extends AbsEAIService {
List<SalesOrderDetailEntity> salesOrderDetailEntityList = salesOrderDetailDTOList.stream().map(assemble->{
SalesOrderDetailEntity salesOrderDetailEntity = new SalesOrderDetailEntity();
salesOrderDetailEntity.setId(assemble.getId());
salesOrderDetailEntity.setTenantSid(1L);
salesOrderDetailEntity.setStatus(2);
return salesOrderDetailEntity;
}).collect(Collectors.toList());


Loading…
Cancel
Save