增加接口
This commit is contained in:
@@ -15,4 +15,6 @@ import java.util.List;
|
|||||||
public interface WarehouseInfoMapper extends Mapper<WarehouseInfoDO> {
|
public interface WarehouseInfoMapper extends Mapper<WarehouseInfoDO> {
|
||||||
|
|
||||||
List<WarehouseInfoDO> getAllAndActive(@Param("keyword") String keyword);
|
List<WarehouseInfoDO> getAllAndActive(@Param("keyword") String keyword);
|
||||||
|
|
||||||
|
WarehouseInfoDO getByCode(@Param("code") String code);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,4 +17,7 @@
|
|||||||
and ( warehouse_name like concat('%',#{keyword},'%'))
|
and ( warehouse_name like concat('%',#{keyword},'%'))
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getByCode" resultType="com.cool.store.entity.WarehouseInfoDO">
|
||||||
|
select * from xfsg_warehouse_info where warehouse_code = #{code}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -141,6 +141,9 @@ public class BuildInformationResponse {
|
|||||||
@ApiModelProperty(value = "报货物流仓库(编码)" )
|
@ApiModelProperty(value = "报货物流仓库(编码)" )
|
||||||
private String declareGoodsLogisticsWarehouse;
|
private String declareGoodsLogisticsWarehouse;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "报货物流仓库" )
|
||||||
|
private String declareGoodsLogisticsWarehouseName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "报货日期" )
|
@ApiModelProperty(value = "报货日期" )
|
||||||
private String declareGoodsDate;
|
private String declareGoodsDate;
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import com.cool.store.enums.UserRoleEnum;
|
|||||||
import com.cool.store.enums.point.ShopSubStageEnum;
|
import com.cool.store.enums.point.ShopSubStageEnum;
|
||||||
import com.cool.store.enums.point.ShopSubStageStatusEnum;
|
import com.cool.store.enums.point.ShopSubStageStatusEnum;
|
||||||
import com.cool.store.exception.ServiceException;
|
import com.cool.store.exception.ServiceException;
|
||||||
|
import com.cool.store.mapper.WarehouseInfoMapper;
|
||||||
import com.cool.store.request.BuildInformationRequest;
|
import com.cool.store.request.BuildInformationRequest;
|
||||||
import com.cool.store.response.BuildInformationResponse;
|
import com.cool.store.response.BuildInformationResponse;
|
||||||
import com.cool.store.service.BuildInformationService;
|
import com.cool.store.service.BuildInformationService;
|
||||||
@@ -53,6 +54,8 @@ public class BuildInformationServiceImpl implements BuildInformationService{
|
|||||||
private UserAuthMappingService userAuthMappingService;
|
private UserAuthMappingService userAuthMappingService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private OrderSysInfoDAO orderSysInfoDAO;
|
private OrderSysInfoDAO orderSysInfoDAO;
|
||||||
|
@Resource
|
||||||
|
private WarehouseInfoMapper warehouseInfoMapper;
|
||||||
@Override
|
@Override
|
||||||
public BuildInformationResponse getBuildInformation(Long shopId) {
|
public BuildInformationResponse getBuildInformation(Long shopId) {
|
||||||
BuildInformationResponse response = new BuildInformationResponse();
|
BuildInformationResponse response = new BuildInformationResponse();
|
||||||
@@ -91,6 +94,8 @@ public class BuildInformationServiceImpl implements BuildInformationService{
|
|||||||
response.setReceivingMsBankAccount(orderSysInfoDO.getReceivingMsBankAccount());
|
response.setReceivingMsBankAccount(orderSysInfoDO.getReceivingMsBankAccount());
|
||||||
response.setReceivingMsBankBranch(orderSysInfoDO.getReceivingMsBankBranch());
|
response.setReceivingMsBankBranch(orderSysInfoDO.getReceivingMsBankBranch());
|
||||||
response.setBankUnionPayAccount(orderSysInfoDO.getBankUnionPayAccount());
|
response.setBankUnionPayAccount(orderSysInfoDO.getBankUnionPayAccount());
|
||||||
|
WarehouseInfoDO warehouseInfoDO = warehouseInfoMapper.getByCode(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
|
||||||
|
response.setDeclareGoodsLogisticsWarehouseName(warehouseInfoDO.getWarehouseName());
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user