增加接口

This commit is contained in:
shuo.wang
2025-04-11 18:57:10 +08:00
parent cc996d8db6
commit 841dcb1d0d
4 changed files with 13 additions and 0 deletions

View File

@@ -15,4 +15,6 @@ import java.util.List;
public interface WarehouseInfoMapper extends Mapper<WarehouseInfoDO> {
List<WarehouseInfoDO> getAllAndActive(@Param("keyword") String keyword);
WarehouseInfoDO getByCode(@Param("code") String code);
}

View File

@@ -17,4 +17,7 @@
and ( warehouse_name like concat('%',#{keyword},'%'))
</if>
</select>
<select id="getByCode" resultType="com.cool.store.entity.WarehouseInfoDO">
select * from xfsg_warehouse_info where warehouse_code = #{code}
</select>
</mapper>

View File

@@ -141,6 +141,9 @@ public class BuildInformationResponse {
@ApiModelProperty(value = "报货物流仓库(编码)" )
private String declareGoodsLogisticsWarehouse;
@ApiModelProperty(value = "报货物流仓库" )
private String declareGoodsLogisticsWarehouseName;
@ApiModelProperty(value = "报货日期" )
private String declareGoodsDate;

View File

@@ -10,6 +10,7 @@ import com.cool.store.enums.UserRoleEnum;
import com.cool.store.enums.point.ShopSubStageEnum;
import com.cool.store.enums.point.ShopSubStageStatusEnum;
import com.cool.store.exception.ServiceException;
import com.cool.store.mapper.WarehouseInfoMapper;
import com.cool.store.request.BuildInformationRequest;
import com.cool.store.response.BuildInformationResponse;
import com.cool.store.service.BuildInformationService;
@@ -53,6 +54,8 @@ public class BuildInformationServiceImpl implements BuildInformationService{
private UserAuthMappingService userAuthMappingService;
@Autowired
private OrderSysInfoDAO orderSysInfoDAO;
@Resource
private WarehouseInfoMapper warehouseInfoMapper;
@Override
public BuildInformationResponse getBuildInformation(Long shopId) {
BuildInformationResponse response = new BuildInformationResponse();
@@ -91,6 +94,8 @@ public class BuildInformationServiceImpl implements BuildInformationService{
response.setReceivingMsBankAccount(orderSysInfoDO.getReceivingMsBankAccount());
response.setReceivingMsBankBranch(orderSysInfoDO.getReceivingMsBankBranch());
response.setBankUnionPayAccount(orderSysInfoDO.getBankUnionPayAccount());
WarehouseInfoDO warehouseInfoDO = warehouseInfoMapper.getByCode(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
response.setDeclareGoodsLogisticsWarehouseName(warehouseInfoDO.getWarehouseName());
}
return response;